:root {

  /* 🎨 COLORS */
  --primary: #3C7027;
  --secondary: #40938C;
  --accent: #0D475D;
  --bg: #F5F7F6;
  --highlight: #E97A5A;

  --white: #ffffff;
  --text-dark: #0f3e6d;
  --text-light: #6b7280;

  /* 🧱 SPACING SYSTEM (8pt rhythm) */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-xxl: 64px;

  /* 🔤 TYPE */
  --text-sm: 14px;
  --text-md: 16px;
  --text-lg: 20px;
  --text-xl: 32px;
  --text-hero: 48px;

  /* ✨ UI */
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0,0,0,0.06);
}

body {
  color: var(--text-dark);
  font-size: var(--text-md);
  font-family: 'Inter', sans-serif;
  background: linear-gradient(
    to bottom,
    #f5f7f6 0%,
    #f5f7f6 60%,
    #ffffff 100%
  );
  overflow-x: hidden;
}


h1, .logo {
  font-family: 'Pacifico', cursive;
  font-size: var(--text-hero);
  letter-spacing: 1px;
}

h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--accent);
}

h3 {
  font-size: var(--text-lg);
  font-weight: 600;
}

p {
  line-height: 1.6;
  color: var(--text-light);
}

h1, h2, h3 {
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-md);
}

/* =========================
   🔥 GLOBAL SECTION SPACING (SYSTEM CONTROL)
========================= */
section {
  padding: 32px 0;
}

img{
width:100%;
border-radius:6px;
margin-bottom:var(--space-sm);
}

.container{
max-width:1400px;
margin:0 auto;
padding:0 24px;
}

/* GRID SYSTEM */

.grid-12{
display:grid;
grid-template-columns:repeat(12,1fr);
gap:30px;
}

.grid-3{
display:grid;
grid-template-columns:repeat(auto-fit, minmax(250px,1fr));
gap:var(--space-md);
}

/* COLUMN SPANS */

.col-3{
grid-column:span 3;
}

.col-6{
grid-column:span 6;
}

/* RESET */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

/* HEADER */

.site-header{
background:white;
position:sticky;
top:0;
z-index:1000;
border-bottom:1px solid #ddd;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px; /* 🔥 prevents crowding */
}

.logo{
font-family:"Pacifico",cursive;
font-size:36px;
}

/* NAV */

.main-nav {
  display: flex;
  gap: 12px;
  justify-content: flex-end;

  flex-wrap: wrap; /* 🔥 allows clean wrapping instead of overlap */
}

.main-nav a i {
  margin-right: 6px;
}

.main-nav a:hover {
  transform: translateY(-2px);
}

.main-nav a,
.nav-item > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  white-space: nowrap;

  padding: 10px 16px;
  border-radius: var(--radius);

  background: var(--secondary);
  color: white;

  font-weight: 600;
  min-width: 120px; /* 🔥 THIS fixes uneven size */
  transition: 0.2s;
}

.main-nav a:hover,
.nav-item > a:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.main-nav a.active,
.nav-item > a.active {
  background: var(--primary);
}


.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  padding: 10px 0;
  display: none;
  min-width: 180px;
  z-index: 100;
}

.dropdown a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: #333;
}

.dropdown a:hover {
  background: #f5f5f5;
}

/* SHOW DROPDOWN */
.nav-item:hover .dropdown {
  display: block;
}

/* MOBILE MENU */

.menu-toggle{
display:none;
font-size:26px;
background:none;
border:none;
cursor:pointer;
}

.nav-cta {
  background: linear-gradient(135deg, var(--secondary), var(--accent)) !important;
  color: white;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);

  font-weight: 600;

  position: relative;
  overflow: hidden;

  transition: 0.2s;
}

.nav-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  animation: none;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(60,112,39, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(60,112,39, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(60,112,39, 0);
  }
}

.nav-cta {
  animation: pulseGlow 2.5s infinite;
}

.nav-cta i {
  margin-right: 6px;
}

.magazine {
  max-width: 1300px;   /* 🔥 controls overall size */
  margin: 0 auto;      /* centers it */
  background: #f8f8f8;
  padding: 40px 20px;
  border-radius: 20px;
  position: relative;
}

.magazine-section {
  padding: 40px 0;
}

.magazine-section .magazine {
  max-width: 100%;
}

/* MOBILE → 1 PAGE */
@media (max-width: 768px) {

  .magazine {
    padding: 0;              /* 🔥 remove outer padding */
    margin: 20px auto;
  }

.magazine-scroll {
  display: flex;
  overflow-x: auto;

  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;

  gap: 0;
  padding: 0 16px; /* ✅ keep this */

  scroll-behavior: smooth;
}

.magazine-scroll .spread {
  flex: 0 0 100%; /* 👈 match container padding */
  scroll-snap-align: start;
}

.mag-mobile-btn {
  position: absolute;
  bottom: 16px;
  z-index: 20;

  width: 44px;
  height: 44px;

  border-radius: 50%;
  border: none;

  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 22px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.mag-mobile-btn.prev { left: 16px; }
.mag-mobile-btn.next { right: 16px; }

  .spread {
    flex: 0 0 100%;   /* 👈 each slide = full width */
    scroll-snap-align: start;

    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }

  .zoom-wrapper {
    width: 100%;
  }

  .spread img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

/* Swipe hint */
.spread::after {
  content: "→ Swipe";
  position: absolute;
  right: 12px;
  bottom: 12px;

  font-size: 12px;
  opacity: 0.6;

  transition: opacity 0.4s ease;
}


/* Hide on last page */
.spread:last-child::after {
  content: "End";
  opacity: 0.4;
}

/* Fade out state */
.spread.hide-hint::after {
  opacity: 0;
}
  
.zoom-wrapper {
  width: 100%;
}

.zoom-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  touch-action: pan-y; /* 🔥 required for mobile gestures */
}

.zoom-wrapper:first-child {
  box-shadow: inset -6px 0 10px rgba(0,0,0,0.05);
}

.zoom-wrapper:last-child {
  box-shadow: inset 6px 0 10px rgba(0,0,0,0.05);
}

}

/* =========================
   📱 RESPONSIVE SYSTEM
========================= */

/* TABLET */
@media (max-width: 900px) {

  /* GRID COLLAPSE */
  .grid-12 {
    grid-template-columns: 1fr;
  }

  .col-3,
  .col-6 {
    grid-column: span 1;
  }

  /* HERO */
  .hero-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }

.hero-block,
.poem-block {
  max-width: 480px;   /* tighten slightly */
}

  .painting-wrapper {
    text-align: center;
  }

  .hero {
    width: 100%;
    max-width: 100%;
  }

  /* FEATURES */
  .home-features {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* MOBILE */
@media (max-width: 768px) {
  /* CONTAINER */
  .container {
    padding: 0 16px;
  }

  /* NAV */
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: white;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,.1);
    width: 90%;
  right: 5%;
  }

  .main-nav.show {
    display: flex;
  }

  .main-nav a {
    min-width: auto;
    width: 100%;
    white-space: nowrap;
  }

  .homepage {
    gap: var(--space-lg); /* 🔥 tighter vertical rhythm */
  }

  /* HERO */
 .hero-section {
  display: flex;
  flex-direction: column;
  gap: 20px;

  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.hero-left {
  align-items: center;
  text-align: center;
}

  .hero-left,
  .hero-right {
    width: 100%;
    max-width: 100%;
  }

.hero-block,
.poem-block {
  max-width: 100%;
}

.painting-wrapper {
  text-align: center;
}

.painting-wrapper,
  .thumbnail-strip {
    width: 100%;
    max-width: 100%;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-sub {
    font-size: 14px;
  }

  .poem-block {
    font-size: 14px;
    line-height: 1.6;
  }

  /* FEATURES */
  .home-features {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 16px;
  }

  .feature-card img {
    height: 140px;
  }

  /* PILLARS */
  .pillars {
  grid-template-columns: 1fr;
  gap: 16px;
}

  .pillar {
    padding: 16px;
  }

  /* CTA */

  .cta-block {
  margin: 0; /* 🔥 let homepage gap handle spacing */
  padding: 20px;
}

  .homepage > section {
  margin: 0;
}

  .cta-block .btn-solid {
    width: 100%;
  }

  /* AUTH */
  .auth-bar {
    justify-content: center;
  }

  .auth-card {
    flex-direction: column;
    border-radius: 16px;
    padding: 16px;
  }

  .auth-actions {
    width: 100%;
  }

.auth-input-group {
  flex-direction: column;
  width: 100%;
}

.auth-input-group input {
  width: 100%;
  padding: 12px;
  font-size: 16px;
}

  .hero {
    width: 100%;
    max-width: 100%;
    margin-bottom: 6px;
  }

  .hero-caption {
    margin-top: 4px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
     font-style: italic;
     opacity: 0.75;
  }

}

/* CENTER SECTION */

.center{
text-align:center;
}

.hero {
  width: 100%;
  max-width: 500px;   /* 👈 THIS fixes the oversized look */
  margin: 0 auto;
  display: block;
   border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  margin-bottom: 8px;
}

.hero:hover {
  transform: scale(1.01);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.hero-block,
.poem-block {
  max-width: 480px;   /* tighten slightly */
}

.hero-block::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--secondary);
  margin-top: 12px;
}

.poem-block {
  margin-top: 10px; /* instead of 20+ */
}

.painting-wrapper {
  text-align: center;
}

.hero-caption {
  font-size: var(--text-sm);
  color: var(--text-light);
  text-align: center;
  margin-top: 6px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  font-style: italic;
  opacity: 0.75;
}


/* CARD */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
  margin-bottom: var(--space-lg);
  transition:0.2s;
}

.card:hover{
transform:translateY(-4px);
box-shadow:0 8px 18px rgba(0,0,0,0.12);
}

.card-icon{
font-size:28px;
margin-bottom:10px;
display:block;
}


.card img{
width:100%;
border-radius:4px;
margin-bottom:10px;
}



/* FORM */

.signup{
display:flex;
flex-direction:column;
gap:10px;
margin-top:10px;
}

.signup input{
padding:10px;
border:1px solid #ccc;
border-radius:4px;
}

.signup button{
padding:10px;
background:var(--primary);
color:white;
border:none;
border-radius:4px;
cursor:pointer;
}

/* FOOTER */

.site-footer{
text-align:center;
padding:40px;
margin-top:40px;
}





/* TWO COLUMN SECTION */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.grid-2.reverse {
  direction: rtl;
}

.grid-2.reverse > * {
  direction: ltr;
}

.grid-2 img {
  width: 100%;
  border-radius: 12px;
}

/* FEATURE LIST */
.feature-list{
padding-left:20px;
line-height:1.8;
}


/* CTA grid */
.cta-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:20px;
margin:30px 0;
}

@media(max-width:800px){
.cta-grid{
grid-template-columns:1fr;
}
}

nav a{
transition:0.2s;
}

nav a:hover{
transform:translateY(-2px);
opacity:0.9;
}

/* PAGE HERO */
.page-hero{
text-align:center;
margin-bottom:var(--space-lg);
}

.page-hero p{
max-width:600px;
margin:auto;
}

.page-hero h1 {
  font-family: 'Pacifico', cursive;
  font-size: var(--text-hero);
  color: var(--primary);
}

/* SECTION TITLE */
.section-title{
text-align:center;
font-size: var(--text-xl);
margin-bottom:var(--space-md);
color: var(--accent);
font-weight: 700;
}

/* FEATURE */
.feature {
  background: linear-gradient(
    135deg,
    rgba(64,147,140,0.08),
    rgba(60,112,39,0.08)
  );
  text-align:center;
}

.embed-container{
position:relative;
padding-bottom:56.25%;
height:0;
overflow:hidden;
margin-top:var(--space-md);
}

.embed-container iframe{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
border-radius:var(--radius);
}

.caption{
font-size:14px;
opacity:0.7;
margin-top:var(--space-sm);
}

/* MASONRY GALLERY */
.gallery{
column-count:3;
column-gap:var(--space-sm);
min-height: 300px;
}

@media(max-width:900px){
.gallery{
column-count:2;
}
}

@media(max-width:500px){
.gallery{
column-count:1;
}
}

.gallery img{
width:100%;
margin-bottom:var(--space-sm);
border-radius:var(--radius);
cursor:pointer;
transition:transform 0.3s ease;
height:auto;
display:block;
}

.gallery img:hover{
transform:scale(1.03);
}

/* LIGHTBOX */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.92);

  justify-content: center;
  align-items: center;

  z-index: 2000;

  opacity: 0;
  transition: opacity 0.3s ease;
}

#lightbox.show {
  display: flex;
  opacity: 1;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;

  width: auto;
  height: auto;

  object-fit: contain;

  border-radius: 12px;

  transform: scale(0.96);
  opacity: 0;

  transition: transform 0.35s ease, opacity 0.3s ease;
}

#lightbox.show img {
  transform: scale(1);
  opacity: 1;
}

#lightbox::before {
  content: "";
  position: absolute;
  inset: 0;

  backdrop-filter: blur(6px);
}

/* SECTION COLORS */
.section-earn{
background:#f0f9ff;
padding:var(--space-lg);
border-radius:var(--radius);
}

.section-spend{
background:#fef9c3;
padding:var(--space-lg);
border-radius:var(--radius);
}

.section-responsibility{
background:#f0fdf4;
padding:var(--space-lg);
border-radius:var(--radius);
}

.section-concepts{
background:#fdf2f8;
padding:var(--space-lg);
border-radius:var(--radius);
}

.download-btn{
display:inline-block;
margin-top:15px;
padding:10px 16px;
background:linear-gradient(135deg,#111,#444);
box-shadow:0 4px 10px rgba(0,0,0,0.2);
color:#fff;
border-radius:8px;
font-size:14px;
text-decoration:none;
transition:0.3s;
}

.download-btn:hover{
background:#333;
}

.btn {
  display: inline-block;
  padding: 8px 14px;
  text-decoration: none;
  border-radius: 6px;
}

.newsletter {
  text-align: center;
  padding: 2rem;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.newsletter-form input {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  min-width: 250px;
}

.newsletter-form button {
  padding: 10px 16px;
}

.reading-journey {
  margin: 0; /* let .homepage handle spacing */
}

.section-sub {
  text-align: center;
  margin-bottom: 20px;
  color: #555;
}

.journey-scroll {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 20px;
  scroll-snap-type: x mandatory;
}

.book-card {
  min-width: 260px;
  max-width: 260px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  scroll-snap-align: start;
  text-align: center;
  position: relative;
}

.book-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

.book-card h3 {
  font-size: 1.1rem;
  margin: 10px 0 5px;
}

.author {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 10px;
}

.review {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.question {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6a0dad;
}

.journey-scroll::-webkit-scrollbar {
  height: 8px;
}

.journey-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.book-card:hover {
  transform: translateY(-5px);
  transition: 0.2s;
}

/* 🔥 BADGE */
.currently-reading::before {
  content: "Currently Reading";

  position: absolute;
  top: 10px;
  left: 10px;

  background: var(--primary);
  color: white;

  font-size: 12px;
  font-weight: 600;

  padding: 4px 10px;
  border-radius: 999px;

  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.book-modal {
  display: none;   /* 👈 hidden by default */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 999;

  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  background: #fff;
  margin: 40px auto;
  padding: 20px;
  width: 90%;
  max-width: 520px;
  max-height: 80vh;   /* 👈 limits height */
  overflow-y: auto;   /* 👈 enables scrolling */
  border-radius: 12px;
  text-align: center;
  scroll-behavior: smooth;

}

.modal-content {
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from {
    transform: translateY(30px) scale(0.98);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-content img {
  width: 100%;
  border-radius: 8px;
}

.close-btn {
  position: sticky;   /* 👈 stays visible while scrolling */
  top: 0;
  float: right;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  background: #fff;
  padding: 5px 10px;
  z-index: 10;
}

.current-book {
  border: 3px solid #6a0dad;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 20;
}

.prev {
  left: -15px;   /* 👈 slightly outside card */
}

.next {
  right: -15px;
}

.progress-container {
  margin: 20px 0;
  text-align: center;
}

.progress-text {
  margin-bottom: 10px;
  font-weight: 600;
}

.progress-bar {
  width: 100%;
  max-width: 500px;
  height: 10px;
  background: #eee;
  border-radius: 10px;
  margin: 0 auto;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #6a0dad, #9b30ff);
  border-radius: 10px;
  transition: width 1s ease-in-out;
}

.progress-percent {
  font-size: 10px;
  color: white;
  position: absolute;
  right: 5px;
  top: -18px;
}

.modal-content img {
  width: 120px;          /* 👈 smaller size */
  height: auto;
  display: block;
  margin: 0 auto 15px;
  border-radius: 8px;
}

.modal-body {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.modal-body img {
  width: 90px;
  flex-shrink: 0;
  margin-top: 4px;
}

.modal-text {
  text-align: left;
}

@media (max-width: 768px) {
  .modal-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .modal-text {
    text-align: center;
  }

  .modal-content {
    width: 92%;
    max-width: 400px;
    max-height: 85vh;
  }


  .modal-body img {
    width: 120px;
  }
}

.comments-box {
  margin-top: 20px;
}

.comments-box textarea {
  width: 100%;
  padding: var(--space-md);
  border-radius: var(--radius);
  border: 1px solid #ddd;
  font-size: var(--text-md);
  margin-bottom: var(--space-md);
}


#comment-input {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
  font-size: 14px;
}

#book-input {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  margin-bottom: 12px;
  font-size: 16px;
}

.comment-btn {
  display: block;
  margin: 0 auto 16px;
  padding: 12px 28px;
  border-radius: 999px;
  background: black;
  color: white;
  border: none;
  font-weight:600;
  cursor: pointer;
}

.comment-btn:hover {
  opacity: 0.85;
}

.comment {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  margin-bottom: var(--space-md);
}

.comment-content {
  flex: 1;
}

.comment-header {
  font-size: var(--text-sm);
  color: var(--text-light);
  margin-bottom: 4px;
}

.comment-text {
  font-size: var(--text-md);
  margin-bottom: 8px;
}

.comment-actions {
  font-size: var(--text-sm);
  color: var(--text-light);
  cursor: pointer;
}



.reply {
  margin-left: 40px;
  margin-top: 8px;
}

.comment-sort {
  text-align: center;
  margin-bottom: 12px;
}

.comment-sort button {
  margin: 0 6px;
  padding: 6px 14px;
  border-radius: 12px;
  border: none;
  background: #eee;
  cursor: pointer;
}

.comments-list {
  margin-top: 10px;
}

.auth-bar {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

/* CARD */
.auth-card {
  display: flex;
  align-items: stretch; /* 🔥 FIX */
  gap: 10px;

  padding: 12px 16px; /* slightly more breathing room */
  border-radius: 999px;

  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);

  max-width: 500px;
  width: 100%;
}

/* INPUTS */
.auth-input-group {
  display: flex;
  gap: 8px;
  flex: 1;
}

.auth-input-group input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.auth-input-group input:focus {
  background: #e8e8e8;
}

.auth-input-group input:last-child {
  margin-bottom: 8px; /* 👈 creates space under password */
}

/* BUTTONS */
.auth-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}

 .auth-actions button {
    flex: 1;
    padding: 10px 0;
 }

.btn-solid,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: var(--space-md);
  border-radius: var(--radius);

  font-weight: 600;
  font-size: var(--text-md);

  transition: 0.2s;
}

.btn-solid {
  background: var(--secondary); /* 👈 SAME as nav */
  color: white;
  border: none;
}

.btn-solid:hover {
  background: var(--accent);
  box-shadow: 0 6px 20px rgba(13,71,93,0.3);
}

.btn-outline:hover {
  background: var(--secondary);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
}


.btn-solid i,
.btn-outline i {
  margin-right: 8px;
}

.btn-ghost {
  background: transparent;
  border: none;
  color: #555;
  cursor: pointer;
}

/* USER STATE */
.auth-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.05);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s;
}

.user-pill:hover {
  background: rgba(0,0,0,0.1);
}

.profile-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 3000;
  justify-content: center;
  align-items: center;
}

.profile-content {
  background: white;
  padding: 20px;
  border-radius: 16px;
  width: 320px;
  text-align: center;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 10px;
  object-fit: cover;
}

.profile-name {
  font-size: 18px;
  font-weight: 600;
}

.profile-btn {
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  background: black;
  color: white;
  cursor: pointer;
}

.profile-edit {
  text-align: left;
  margin-top: 10px;
}

.edit-group {
  margin-bottom: 12px;
}

.edit-group label {
  font-size: 12px;
  color: #555;
  display: block;
  margin-bottom: 4px;
}

.edit-group input {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.edit-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.profile-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-top: 10px;
  object-fit: cover;
}

html {
  scroll-behavior: smooth;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;

  background: var(--primary);
  color: white;

  border: none;
  border-radius: 50%;

  width: 50px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  cursor: pointer;

  box-shadow: var(--shadow);

  opacity: 0;
  pointer-events: none;

  transition: 0.3s;
  transform: translateY(20px);
}

/* Show state */
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Hover */
.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.homepage-flow {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl); /* 🔥 adds spacing between intro, pillars, CTA */
}

/* Intro */
.intro-block {
  text-align: center;
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.pillar {
  background: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: 0.2s;
}

.pillar i {
  font-size: 28px;
  color: var(--secondary);
  margin-bottom: var(--space-sm);
}

/* CTA */
.cta-block {
  position: relative;
  color: white;
  margin: 0;
}

.cta-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25); /* 🔥 subtle dark overlay */
  border-radius: inherit;
}

.cta-block * {
  position: relative;
  z-index: 1;
}

.btn-solid.active {
  background: var(--primary);
  box-shadow: 0 6px 18px rgba(60,112,39,0.3);
}

.cta-block .btn-solid {
  margin-top: 16px;

  background: white;
  color: var(--accent);

  font-weight: 600;
  border-radius: 999px; /* 👈 pill button = premium */

  padding: 12px 24px;
}

.cta-block .btn-solid:hover {
  background: #f1f1f1;
  transform: translateY(-2px);
}

.homepage {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl); /* 🔥 adds consistent spacing between sections */
}

/* =========================
   🔥 GLOBAL SECTION SPACING (SYSTEM CONTROL)
========================= */
section {
  margin: 0; /* 🔥 prevent stacking conflicts */
}

/* HERO */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.hero-left {
  display: flex;           /* 🔥 THIS was missing */
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.hero-title {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
}

.season {
  color: var(--secondary);
  letter-spacing: 1px;
  font-weight: 600;
}

.hero-sub {
  font-size: 16px;
  opacity: 0.8;
  max-width: 420px;
}

/* FEATURES GRID (replaces asides) */
.home-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;

  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);

  text-align: left;
  transition: 0.25s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.feature-card img {
  height: 160px;
  object-fit: cover;
}

.pillar:hover {
  box-shadow: 0 10px 30px rgba(64,147,140,0.2);
}

.feature-card h3 {
  margin-top: 10px;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.8;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.6s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   📱 FEATURE STACK FIX
========================= */

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
}

/* =========================
   🔧 MOBILE ALIGNMENT FIXES
========================= */

@media (max-width: 768px) {

  /* HEADER FIX */
  .nav-container {
    align-items: center;
  }

  .logo {
    font-size: 28px;
    line-height: 1.2;
  }

  /* HERO FIX */
  .hero-left {
    align-items: center !important;
    text-align: center !important;
  }

  .hero-sub {
    margin: 0 auto;
  }

  .hero-block::after {
    margin-left: auto;
    margin-right: auto;
  }

  /* IMAGE ALIGNMENT */
  .hero-right {
    align-items: center;
    overflow: hidden;
    min-width: 0;
  }

  .hero {
    max-width: 100%;
  }


  /* CARD GRID FIX */
  .pillars {
    grid-template-columns: 1fr !important;
    max-width: 500px;
    margin: 0 auto;
  }

  .pillar {
    width: 100%;
  }

  /* FEATURE CARDS CENTER */
  .home-features {
    grid-template-columns: 1fr !important;
    max-width: 500px;
    margin: 0 auto;
  }

  .feature-card {
    text-align: center;
  }

  .feature-card img {
    margin-left: auto;
    margin-right: auto;
  }

  /* BACK TO TOP (avoid overlap feel) */
  .back-to-top {
    bottom: 20px;
    right: 20px;
  }

}

/* =========================
   ✅ FINAL MOBILE FIX PATCH (SAFE)
========================= */

@media (max-width: 768px) {

  /* 🔥 HERO — FORCE CLEAN STACK */
 
  .hero {
    max-width: 100%;
  }

  /* 🔥 PILLARS — FORCE STACK */
  .pillars {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
  }

  .pillar {
    width: 100%;
  }

}

/* =========================
   ✅ HERO WIDTH CONSTRAINT FIX
========================= */

@media (min-width: 769px) {

  .hero-section {
    max-width: 1100px;   /* 🔥 keeps content from stretching too wide */
    margin: 0 auto;      /* 🔥 centers the whole hero */
    gap: 30px;           /* balanced spacing */
  }

   .logo {
    font-size: 30px;       /* 🔥 slightly smaller */
    line-height: 1.1;      /* 🔥 tighter stacking */
    white-space: nowrap;   /* 🔥 prevents stacking */
    max-width: none;      /* 🔥 controls wrap */
  }

 .magazine-scroll::before {
  content: "";
  display: block;
  padding-top: 70%;
  padding-bottom: 5%;
}

  .magazine {
    position: relative;
  }

  .magazine-scroll {
  position: relative;
  width: 100%;
  overflow: visible;
}

  .mag-mobile-btn {
    display: none;
  }

  /* 🔥 ALL spreads stack in same position */
  .spread {
    position: absolute;
    inset: 0;
    gap: 0;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    opacity: 0;
    pointer-events: none;
    visibility: hidden;

    transform: translateZ(0); /* 🔥 prevents flicker on iOS */

}

  /* 🔥 ONLY active one shows */
  .spread.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .spread:first-child {
  opacity: 1;
  pointer-events: auto;
}

 .zoom-wrapper {
  display: flex;
  align-items: stretch;
}


 .spread .zoom-wrapper {
  flex: 0 0 50%;
  max-width: 50%;
}

.zoom-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0; /* 🔥 replaces your margin-bottom fix */
  box-shadow:
    0 4px 12px rgba(0,0,0,0.08),
    inset 0 0 0 1px rgba(0,0,0,0.04);
}

.zoom-wrapper:first-child {
  margin-right: -1px; /* 🔥 pulls pages together slightly */
}

.zoom-wrapper:first-child img {
  box-shadow:
    inset -8px 0 10px rgba(0,0,0,0.08),
    0 4px 12px rgba(0,0,0,0.06);
}

.zoom-wrapper:last-child img {
  box-shadow:
    inset 8px 0 10px rgba(0,0,0,0.08),
    0 4px 12px rgba(0,0,0,0.06);
}

.zoom-wrapper:last-child {
  margin-left: -1px;
}

}

/* =========================
   ✨ PREMIUM HEADER UPGRADE
========================= */

/* HEADER BAR */
.site-header {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* NAV BUTTONS */
.main-nav a,
.nav-item > a {
  border-radius: 999px; /* 🔥 pill = premium */
  padding: 10px 18px;

  background: rgba(64,147,140,0.9);
  backdrop-filter: blur(6px);

  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* HOVER FEEL */
.main-nav a:hover,
.nav-item > a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ACTIVE (HOME BUTTON) */
.main-nav a.active {
  background: var(--primary);
  box-shadow: 0 6px 18px rgba(60,112,39,0.3);
}

/* CTA BUTTON (Shop MVL) */
.nav-cta {
  box-shadow: 0 6px 20px rgba(13,71,93,0.25);
}

/* =========================
   ✨ PREMIUM FEATURE CARDS
========================= */

/* CARD BASE */
.feature-card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);

  border-radius: 18px;
  padding: 20px;

  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);

  transition: all 0.25s ease;
}

/* IMAGE — CLEAN + CONSISTENT */
.feature-card img {
  height: auto !important;
  max-height: 200px;
  object-fit: contain;

  background: #f8faf9;
  padding: 10px;
  border-radius: 12px;

  margin-bottom: 14px;
}

/* TITLE */
.feature-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

/* TEXT */
.feature-card p {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.85;
}

/* BUTTON SPACING */
.feature-card .btn-outline {
  margin-top: 10px;
}

/* HOVER — SUBTLE LIFT */
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}

/* OPTIONAL: slight scale feel */
.feature-card:hover img {
  transform: scale(1.02);
  transition: 0.3s ease;
}

/* =========================
   ✅ SCROLL BUTTONS
========================= */

.journey-wrapper {
  position: relative;
}

/* BUTTON BASE */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  background: rgba(0,0,0,0.6);
  color: white;

  border: none;
  border-radius: 50%;

  width: 40px;
  height: 40px;

  cursor: pointer;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: 0.2s;
}

/* LEFT / RIGHT POSITION */
.scroll-btn.left {
  left: -10px;
}

.scroll-btn.right {
  right: -10px;
}

/* HOVER */
.scroll-btn:hover {
  background: rgba(0,0,0,0.8);
}

/* MOBILE — hide buttons */
@media (max-width: 768px) {
  .scroll-btn {
    display: none;
  }
}

/* =========================
   ✅ MODAL CONSISTENCY FIX
========================= */

/* LIMIT OVERALL MODAL HEIGHT */
.modal-content {
  max-height: 85vh !important;
  overflow-y: auto;

  display: flex;
  flex-direction: column;
}

/* SPACE CONTENT PROPERLY */
.modal-text {
  line-height: 1.6;
}

/* ADD BREATHING ROOM BETWEEN SECTIONS */
.modal-text p {
  margin-bottom: 14px;
}

/* KEEP HEADER AREA TIGHT */
.modal-body {
  align-items: flex-start;
}

/* OPTIONAL: constrain long text width for readability */
.modal-text {
  max-width: 500px;
}

/* =========================
   🎬 STICKY HEADER
========================= */

.modal-header {
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-bottom: 10px;
  margin-bottom: 10px;

  border-bottom: 1px solid #eee;
}

/* Title area */
.modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-title img {
  width: 50px;
  border-radius: 6px;
}

.modal-title h2 {
  font-size: 22px;
  margin: 0;
}

/* =========================
   🎯 MODAL NAV BUTTONS
========================= */

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 44px;
  height: 44px;

  border-radius: 50%;
  border: none;

  background: rgba(0,0,0,0.6);
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: 0.25s;
}

/* HOVER = premium feel */
.nav-btn:hover {
  background: rgba(0,0,0,0.85);
  transform: translateY(-50%) scale(1.1);
}

/* =========================
   🔧 AUTH BAR MOBILE FIX (SAFE)
========================= */
@media (max-width: 768px) {

  .auth-card {
    flex-direction: column;     /* 🔥 stack content */
    align-items: stretch;       /* 🔥 full width */
    gap: 12px;

    padding: 16px;
    border-radius: 20px;        /* less pill, more card */
  }

  /* stack inputs cleanly */
  .auth-input-group {
    flex-direction: column;
    gap: 10px;
  }

  .auth-input-group input {
    width: 100%;
    font-size: 16px;
  }

  /* fix button layout */
  .auth-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 4px;
  }

.auth-input-group input:last-child {
  margin-bottom: 8px; /* 👈 creates space under password */
}

  .auth-actions button {
    flex: 1;
    padding: 12px;
    font-size: 15px;
  }

  /* make buttons feel balanced */
  .btn-outline {
    border-width: 2px;
  }

}

/* =========================
   🎞️ THUMBNAILS (DESKTOP)
========================= */
.thumbnail-strip {
  display: flex;
  gap: 10px;

  overflow-x: auto;
  justify-content: flex-start; /* 🔥 FIX: was center */

  padding: 10px 0;
  margin-top: 6px;

  max-width: 100%;
  box-sizing: border-box;
}

/* hide scrollbar */
.thumbnail-strip::-webkit-scrollbar {
  display: none;
}

.thumb {
  flex: 0 0 auto;

  width: 80px;
  height: 80px;

  object-fit: cover;
  border-radius: var(--radius);

  cursor: pointer;
  opacity: 0.6;
  transition: 0.25s;

  border: 2px solid transparent;
}

.thumb.active,
.thumb:hover {
  opacity: 1;
  border-color: var(--secondary);
  transform: scale(1.05);
}

/* =========================
   📱 THUMBNAILS DROPDOWN (MOBILE)
========================= */
@media (max-width: 768px) {
  .thumbnail-strip {
    display: flex;
    gap: 10px;
    position: relative;

    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overflow-y: hidden;

    padding: 10px 0; /* 👈 balanced padding */
    margin: 0;
    padding-right: 40px; /* 👈 space for fade */

    width: 100%;
    max-width: 100%;

    scroll-snap-type: x mandatory;

    box-sizing: border-box;
    
  }

  .thumb {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .thumb:first-child {
  animation: scrollHint 1.2s ease;
}

/* RIGHT FADE */
.thumbnail-strip::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;

  width: 40px;
  height: 100%;

  background: linear-gradient(to right, transparent, var(--bg));
  pointer-events: none;
  z-index: 2;
}

  .dropdown {
  display: block;

  max-height: 0;
  overflow: hidden;

  opacity: 0;
  transform: translateY(-6px);

  transition: max-height 0.3s ease,
              opacity 0.2s ease,
              transform 0.2s ease;
}

.dropdown.open {
  max-height: 300px;
  opacity: 1;
  transform: translateY(0);
}

}

/* LIGHTBOX BUTTONS */
.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  background: rgba(0,0,0,0.5);
  color: white;

  border: none;
  border-radius: 50%;

  width: 44px;
  height: 44px;

  font-size: 24px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 10;
  transition: 0.2s;
}

.lightbox-btn:hover {
  background: rgba(0,0,0,0.8);
}

/* POSITION */
.lightbox-btn.prev { left: 20px; }
.lightbox-btn.next { right: 20px; }

/* MOBILE — slightly bigger tap target */
@media (max-width: 768px) {
  .lightbox-btn {
    width: 48px;
    height: 48px;
    font-size: 26px;
  }
}

@media (max-width: 768px) {

  .hero-section {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px;
  }

  .hero-left,
  .hero-right {
    width: 100% !important;
    max-width: 100%;
  }

}

/* KEYFRAME (GLOBAL) */

 @keyframes scrollHint {
  0% { transform: translateX(0); }
  50% { transform: translateX(-10px); }
  100% { transform: translateX(0); }
}

@keyframes pulseReading {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.currently-reading::before {
  animation: pulseReading 2s infinite;
}

.mag-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  background: rgba(0,0,0,0.6);
  color: white;

  border: none;
  border-radius: 50%;

  width: 48px;
  height: 48px;

  font-size: 22px;
  cursor: pointer;

  z-index: 999;
  transition: 0.2s;
}

.mag-btn:hover {
  background: rgba(0,0,0,0.85);
  transform: translateY(-50%) scale(1.1);
}

.mag-btn.prev { left: 10px; }
.mag-btn.next { right: 10px; }

/* hide on mobile */
@media (max-width: 768px) {
  .mag-btn {
    display: none;
  }
}

img, video {
  max-width: 100%;
}

/* 🔥 ANDROID OVERFLOW FIX (CRITICAL) */

html, body {
  width: 100%;
  overflow-x: hidden;
}

/* allow flex/grid children to shrink */
* {
  min-width: 0;
}

/* fix container overflow */
.container {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

/* 🔥 HERO FIX */
.hero-section {
  grid-template-columns: 1fr; /* force safe stacking */
}

/* keep 2 columns on desktop only */
@media (min-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr 1fr;
  }
}

/* 🔥 NAV FIX */
.main-nav a {
  min-width: unset;
}
