/* =====================
   RESET + VARIABLES
===================== */

:root {
  --content-width: 1200px;
  --text-main: #3D3D3D;
  --text-muted: #6f6f6f;
  --bg-muted: #F2F0EC;
  --accent: #F4B80F;
   --purple: #B781B3;
  --purple-light: #E9DADA;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  display: block;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* =====================
   LAYOUT
===================== */

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
}

.column {
  flex-direction: column;
}

.section {
  padding: 5rem 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pages without scroll observer — show sections immediately */
.no-fade .section {
  opacity: 1;
  transform: none;
  transition: none;
}

.section-muted {

   background-color: var(--bg-muted);
}

.section-title {
  margin-bottom: 2rem;
  font-size: 2rem;
}

/* =====================
   NAVBAR
===================== */

#navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0 1.5rem;
}

.navbar {
  align-items: center;
  height: 72px;
}

.navbar-logo {
  margin-right: auto;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 2rem; /* THIS is the key */
}

#logo {
  height: 50px;
} 

.navbar-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.navbar-list a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar-list a:hover {
  color: var(--accent);
}

.navbar-list span {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
}


.navbar-button {
  border: none;
  background-color: var(--accent);
  color: var(--text-main);
  padding: 12px 40px;
  font-size: 15px;
  font-weight: 600;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.navbar-button:hover {
  background-color: #dc4229;
  color: #fff;
}

/* =====================
   HERO
===================== */

#hero {
  position: relative;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  display: block;
    animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.05); }
}

.hero-title {
  position: absolute;
  top: 45%;
  left: 10%;
  color: #fff;
  z-index: 2;
}

.issue-in-title {
  font-size: 4rem;
  margin: 0;
}

.hero-subtitle {
  margin: 1rem 0 2rem;
}

.read-button {
  background: var(--accent);
  color: var(--text-main);
  border: none;
  padding: 12px 36px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.read-button:hover {
  background-color: #dc4229;
  color: #fff;
}

/* =====================
   FEATURED
===================== */

.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.featured-image {
  background: #ddd;
  height: 420px;
}

.category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.author {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.summary {
  margin: 1rem 0;
}

.read-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}

.read-link:hover {
  color: var(--purple);
}

/* =====================
   CARDS
===================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  
}

.card-image {
  background: var(--bg-muted);
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
}

.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(183, 129, 179, 0.18); 
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover .card-image::after {
  opacity: 1;
}
/* =====================
   FOOTER
===================== */

#footer {
  border-top: 1px solid #eee;
  padding: 2rem 0;
  font-size: 0.9rem;
  background-color: #fff;
  opacity: 1 !important;
  transform: none !important;
}

.footer {
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
}


/* =====================
   ABOUT PAGE
===================== */

.about-content {
  max-width: 760px;
  -webkit-backdrop-filter: blur(80px);
  backdrop-filter: blur(80px);
}

.about-content h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: #eee;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  color: #eee;
}

.about-body {
  background-image: url(./Assets/Hero_img.jpeg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: var(--text-main);
}

/* =====================
   ISSUE PAGE
===================== */

.issue-header {
  max-width: 900px;
}

.issue-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.issue-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 720px;
}




.nav-issues {
  position: relative;
}

.issues-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  padding: 0.5rem 0;
  list-style: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.nav-issues:hover .issues-dropdown {
  display: block;
}

.issues-dropdown li {
  padding: 0.4rem 1rem;
}

.issues-dropdown a {
  text-decoration: none;
  color: inherit;
}

/* =====================
   ISSUES ARCHIVE PAGE
===================== */

.archive-page-header {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.archive-page-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.75rem;
  line-height: 1.1;
}

.archive-page-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 480px;
  line-height: 1.6;
}

.archive-main {
  padding-top: 3rem;
}

.archive-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
}

.archive-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.archive-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.09);
  border-color: var(--accent);
}

.archive-card .card-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--bg-muted);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.archive-card .card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(183, 129, 179, 0.15);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.archive-card:hover .card-image::after {
  opacity: 1;
}

.archive-card-content {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 1px solid #f0f0f0;
  background: #fff;
  flex: 1;
}

.issue-year {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  letter-spacing: 0.05em;
}

.archive-card-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.archive-view-link {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, letter-spacing 0.2s ease;
  margin-top: auto;
}

.archive-card:hover .archive-view-link {
  color: var(--text-main);
  letter-spacing: 0.06em;
}

/* =========================
   ISSUE PAGE HERO
========================= */

.issue-hero {
  position: relative;
  height: 55vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.issue-hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.issue-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.2) 60%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 1;
}

.issue-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.issue-hero-content .issue-description {
  color: rgba(255, 255, 255, 0.82);
}


/* =========================
   ISSUE PAGE GRID
========================= */

.issue-card-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  justify-content: center;
  margin-top: 2rem;
}

.issue-card {
  max-width: 280px;
}


/* =========================
   PORTRAIT THUMBNAILS
========================= */

.issue-card .card-image {
  width: 100%;
  height: 320px;   /* Portrait ratio */
  background-size: cover;
  background-position: center;
}


/* =========================
   ISSUE SECTION SPACING
========================= */

.issue-category {
  padding: 4rem 0;
}

/* =====================
   HAMBURGER MENU
===================== */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.mobile-nav a:hover {
  color: var(--accent);
}

.mobile-nav .navbar-button {
  margin-top: 0.5rem;
  font-size: 1rem;
  clip-path: none;
  border-radius: 4px;
  padding: 12px 40px;
}

/* =====================
   RESPONSIVE — TABLET
   769px – 1024px
===================== */

@media (max-width: 1024px) and (min-width: 769px) {

  .issue-in-title {
    font-size: 3rem;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .archive-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .issue-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .issue-card {
    max-width: 100%;
  }
}

/* =====================
   RESPONSIVE — MOBILE
   max-width: 768px
===================== */

@media (max-width: 768px) {

  /* Navbar */
  #navbar {
    padding: 0 1rem;
  }

  .navbar {
    height: 60px;
  }

  #logo {
    height: 36px;
  }

  .navbar-actions nav,
  .navbar-actions .navbar-button {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Layout */
  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
  }

  /* Hero */
  .hero-title {
    top: auto;
    bottom: 10%;
    left: 5%;
    right: 5%;
  }

  .issue-in-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
    margin: 0.5rem 0 1rem;
  }

  .read-button {
    padding: 10px 24px;
    font-size: 0.85rem;
  }

  /* Cards */
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* Featured */
  .featured {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .featured-image {
    height: 260px;
  }

  /* Archive */
  .archive-page-header {
    padding: 2rem 0 1.5rem;
  }

  .archive-page-title {
    font-size: 2rem;
  }

  .archive-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .archive-card {
    max-width: 100%;
  }

  /* Issue hero */
  .issue-hero {
    height: 38vh;
    min-height: 220px;
  }

  .issue-hero-content h1 {
    font-size: 1.5rem;
  }

  .issue-description {
    font-size: 0.9rem;
  }

  /* Issue grid */
  .issue-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .issue-card {
    max-width: 100%;
  }

  .issue-card .card-image {
    height: 220px;
  }

  /* About */
  .about-body {
    background-attachment: scroll;
  }

  .about-content h1 {
    font-size: 1.75rem;
  }

  .about-content p {
    font-size: 0.95rem;
  }

  /* Footer */
  #footer {
    font-size: 0.8rem;
    padding: 1.25rem 0;
  }
}
