:root {
  --navbar-height: 80px;
}

/* ARTICLE */
.article-page {
  max-width: 100%;
  padding: 3.5rem 4rem;
  background: rgba(73, 118, 150, 0.247);
  border-radius: 28px;
}

/* LAYOUT */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 900px) 260px;
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem;
}

@media (max-width: 1100px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

/* SIDEBAR */
.blog-sidebar {
  display: flex;
  align-items: flex-start;
}

/* STORE RAIL */
.store-rail {
  display: block;
  position: sticky;
  top: calc(var(--navbar-height) + 20px);
  height: 440px;
  max-height: 140vh;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  text-decoration: none;
  color: #fff;
}

/* IMAGE */
.store-rail img {
  width: 100%;
  height: 55%;
  object-fit: cover;
  object-position: right top;
  filter: brightness(0.75) contrast(1.1);
}

/* CONTENT */
.store-rail-content {
  padding: 1.4rem;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0),
    rgba(0,0,0,0.6),
    rgba(0,0,0,0.9)
  );
}

.store-rail-content span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.store-rail-content h3 {
  font-size: 1.05rem;
  margin: 0.4rem 0;
  line-height: 1.3;
}

.store-rail-content p {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-bottom: 0.8rem;
}

.store-rail-content strong {
  font-size: 0.85rem;
  color: var(--accent);
}


/* HERO */
.article-hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 4rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}

.article-hero-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transform: scale(1.05);
  filter: brightness(0.9) contrast(1.1) saturate(1.15);
  transition: transform 1.2s ease;
}

.article-hero:hover .article-hero-image {
  transform: scale(1.12);
}

.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.6) 50%,
    rgba(0,0,0,0.9) 100%
  );
  z-index: 1;
}

.article-hero-content {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  z-index: 2;
}

.article-category {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.article-page-title {
  font-size: 2.4rem;
  margin: 0.5rem 0;
}

.article-page-meta {
  opacity: 0.85;
  font-size: 0.9rem;
}

/* BODY */
.article-body {
  line-height: 1.8;
  font-size: 1.05rem;
  color: #eaeaea;
}

.article-body p {
  margin-bottom: 1.6rem;
}

.article-body h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.6rem;
  color: #fff;
}


/* AUTHOR CARD */
.author-card {
  margin-top: 4rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(0,180,216,0.15),
    rgba(0,119,182,0.05)
  );
  padding: 1.8rem;
  border-radius: 14px;
  border: 1px solid rgba(0,180,216,0.2);
}

/* Avatar stays left, fixed size */
.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0; /* prevents squishing */
}

/* Text block fills remaining space */
.author-info {
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertically aligns text */
  flex: 1; /* takes up remaining width */
}

.author-info h4 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.author-info p {
  margin: 0.3rem 0 0;
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.5;
}


/* ===============================
   TABLET / LARGE PHONES
   (Horizontal, full width, medium height)
================================ */

@media (min-width: 481px) and (max-width: 768px) {
  .store-rail {
    position: relative;
    top: auto;
    height: 140px;
    width: 100%;
    display: flex;
    flex-direction: row;
    border-radius: 0;
    box-shadow: none;
  }

  .store-rail img {
    width: 40%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
  }

  .store-rail-content {
    width: 60%;
    padding: 1rem 1.2rem;
    background: #111;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}


/* ===============================
   MOBILE PORTRAIT
   (Shorter, subtle, full width)
================================ */

@media (max-width: 480px) {
  .store-rail {
    position: relative;
    top: auto;
    height: 150px;
    width: 100%;
    display: flex;
    flex-direction: row;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 50px
  }

  .store-rail img {
    width: 42%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
  }

  .store-rail-content {
    width: 58%;
    padding: 0.8rem 1rem;
    background: #111;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .store-rail-content h3 {
    font-size: 0.9rem;
  }

  .store-rail-content p,
  .store-rail-content strong {
    font-size: 0.75rem;
  }
}

/* Tablet / Large phones */
@media (min-width: 481px) and (max-width: 768px) {
  .store-rail {
    border-radius: 14px;
    overflow: hidden;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  .store-rail {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 50px
  }
}

@media (max-width: 768px) {
  .blog-layout {
    padding: 0;              /* remove outer spacing */
    max-width: 100%;
  }

  main {
    padding: 0;
  }

  .article-page {
    max-width: 100%;
    margin: 0;               /* remove centering margin */
    padding: 1.8rem 1.2rem;  /* tighter mobile padding */
    border-radius: 0;        /* edge-to-edge like native apps */
  }
}



/* =========================
   NAVBAR
========================= */
.navbar {
  position: relative;
  width: 100%;
  height: 70px;
  padding: 0 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* background-color: transparent; */
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.6);
  z-index: 1000;
  transition: 
    background 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.35s ease,
    opacity 0.25s ease;
}

/* Sticky state */
.navbar.sticky {
  position: fixed;
  top: 0;
  left: 0;
  /* background-color: transparent; */
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.6);
  transform: translateY(-10px);
  opacity: 0;
}

/* After sticky is applied, we animate it in */
.navbar.sticky.show {
  transform: translateY(0);
  opacity: 1;
}

body.navbar-active {
  padding-top: 70px;
}

.logo img {
  max-height: 55px; /* fits cleanly inside 70px navbar */
  width: auto;
  display: block;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.navbar a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar a:hover {
  color: #4da6ff;
}


.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: 0.3s ease;
}

@media (max-width: 820px) {
  /* Show hamburger */
  .hamburger {
    display: flex;
    z-index: 1100;
  }

  /* Hide desktop nav */
  .navbar nav ul {
    display: none;
  }
}

@media (max-width: 820px) {
  .navbar nav {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 70%;
    height: calc(100vh - 70px);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    padding: 2rem;
    transition: right 0.35s ease;
  }

  .navbar nav.open {
    right: 0;
  }

  .navbar nav ul {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
}


/* =========================
   BUTTONS
========================= */
.btn {
  background: linear-gradient(135deg, #0077b6, #003049);
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.4s ease;
}

.btn:hover::after {
  left: 0;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn.involved {
  margin-top: 2rem;
}

.btn.donate {
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
}




/* =========================
   GLOBAL RESET & BASE STYLES
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #fff;
  background-color: #0d5896;
  overflow-x: hidden;
}





/* ================= QUICK READ SECTION ================= */



.quick-read h2 {
  text-align: center;
  padding: 1rem 0 2.5rem;
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
}

.quick-read__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-size: clamp(1rem, 2vw, 1.4rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 3rem;
}

.quickeyebrow-line {
  flex: 1;
  height: 1px;
  background: rgb(255, 254, 254);
}

.quickeyebrow-text {
  white-space: nowrap;
}


/* ================= CUSTOM SWIPER ================= */

.quick-read-swiper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.swiper-viewport {
  overflow: hidden;
  width: 100%;
}

.swiper-track {
  display: flex;
  transition: transform 0.4s ease;
}

.article {
  flex: 0 0 calc(100% / 3);
  display: flex;
  flex-direction: column;
  height: 420px;              /* lock card height */
  background: #0b3f6b;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  border-radius: 0;
  transition: transform 0.25s ease;
}

.article:hover {
  transform: translateY(-6px);
}

/* ================= IMAGE ================= */


.quick-image {
  width: 100%;
  height: 200px;              /* lock image height */
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;             /* fixes iPhone gaps */
  display: block;
  transition: transform 0.5s ease;
}
.article:hover .quick-image {
  transform: scale(1.05);
}

/* ================= TEXT AREA ================= */

.article-data-container {
  flex: 1;                    /* fills remaining space */
  padding: 1rem;
  background: #072f52;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


/* Date + read time */
.article-data {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.article-data-spacer {
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  margin: 0 0.5rem;
}

/* Title */
.article-title {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.35;
  font-weight: 600;
  text-align: left;
}

/* ================= CONTROLS ================= */

.swiper-btn {
  position: absolute;
  z-index: 10;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background: rgba(0, 0, 0, 0.65);
  color: #fdfdfd;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-btn.prev {
  left: 10px;
}

.swiper-btn.next {
  right: 10px;
}


/* Tablet */
@media (max-width: 900px) {
  .article {
    flex: 0 0 50%;   /* 2 cards */
  }
}

/* Mobile portrait */
@media (max-width: 600px) {
  .article {
    flex: 0 0 100%;  /* 1 card */
  }

  .swiper-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}







