/*
 * AAL Children — assets/css/main.css  v3.0
 * Pill nav buttons | header lang toggle | rich hover/bg transitions
 */

/* ══ 1. CONTAINER ══════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sp-md);
}

/* ══ 2. BUTTONS ════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .75rem 1.65rem;
  border: 2px solid transparent;
  border-radius: 30px;
  font-size: .875rem; font-weight: 600; letter-spacing: .02em;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  position: relative; overflow: hidden;
  transition: background .35s ease, color .35s ease, border-color .35s ease,
              transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s ease;
}
/* Shimmer light sweep across button on hover */
.btn::after {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 45%; height: 200%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,.38), transparent);
  transform: rotate(30deg);
  transition: transform .65s ease;
  pointer-events: none;
}
.btn:hover::after {
  transform: rotate(30deg) translate(380%, 0);
}
.btn:hover  { transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 28px rgba(0,0,0,.18); text-decoration: none; }
.btn:active { transform: translateY(-1px) scale(0.98); }
.btn:focus-visible { outline: 3px solid var(--aal-yellow); outline-offset: 3px; }

.btn-primary { background: var(--aal-green); color: #fff; border-color: var(--aal-green); }
.btn-primary:hover { background: var(--aal-green-dark); border-color: var(--aal-green-dark); color: #fff; }

.btn-secondary { background: var(--aal-red); color: #fff; border-color: var(--aal-red); }
.btn-secondary:hover { background: #a33b1e; border-color: #a33b1e; color: #fff; }

.btn-white { background: #fff; color: var(--aal-green); border-color: #fff; }
.btn-white:hover { background: var(--aal-green); color: #fff; border-color: var(--aal-green); }

.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: #fff; color: var(--aal-green); border-color: #fff; }

.btn-nav { padding: .5rem 1rem; font-size: .8rem; }

/* ══ 3. TOP BAR ════════════════════════════════════════════ */
.topbar {
  background: var(--aal-green);
  color: rgba(255,255,255,.85);
  font-size: .8rem; padding-block: 7px;
  transition: background .4s ease;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.topbar-left  { display: flex; align-items: center; gap: .4rem; }
.topbar-left a { color: rgba(255,255,255,.9); text-decoration: none; transition: color .25s; }
.topbar-left a:hover { color: var(--aal-yellow); }
.topbar-right { display: flex; align-items: center; gap: .75rem; }
.topbar-socials { display: flex; align-items: center; gap: .4rem; }
.topbar-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff;
  transition: background .25s, transform .25s;
}
.topbar-social-link:hover { background: rgba(255,255,255,.3); transform: scale(1.15); text-decoration: none; }

/* ══ 4. SITE HEADER — white sticky ═════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
  transition: box-shadow .35s ease, padding .35s ease, background .35s ease;
}
.site-header.scrolled {
  box-shadow: 0 4px 28px rgba(0,0,0,.12);
  background: rgba(255,255,255,1);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 14px;
  transition: padding .35s ease;
}
.site-header.scrolled .header-inner { padding-block: 10px; }

/* Branding */
.site-branding { flex-shrink: 0; }
.site-title-link { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.site-title-link:hover { text-decoration: none; }
.site-logo {
  height: 48px;
  width: auto;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s ease;
}
.site-title-link:hover .site-logo {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
}
.brand-icon { flex-shrink: 0; transition: transform .4s ease; }
.site-title-link:hover .brand-icon { transform: rotate(-8deg) scale(1.08); }
.site-name-wrap { display: flex; flex-direction: column; line-height: 1.2; }
.site-name { font-size: 1.05rem; font-weight: 700; color: var(--aal-green); transition: color .25s; }
.site-name.lang-ta-content { font-family: var(--font-tamil); font-size: 1.15rem; }
.site-title-link:hover .site-name { color: var(--aal-green-dark); }
.site-desc { font-size: .65rem; color: var(--aal-grey-500); }
.site-desc.lang-ta-content { font-family: var(--font-tamil); font-size: .75rem; }

/* Hamburger */
.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: 2px solid var(--aal-green);
  border-radius: 8px; padding: 6px 8px; cursor: pointer;
  transition: border-color .25s, background .25s;
}
.nav-toggle:hover { border-color: var(--aal-green-dark); background: rgba(0,151,69,.06); }
.hamburger-bar {
  display: block; width: 22px; height: 2px;
  background: var(--aal-green); border-radius: 2px;
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .35s ease, background .25s;
}
.nav-toggle:hover .hamburger-bar { background: var(--aal-green-dark); }
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Primary nav wrapper */
.primary-nav {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; padding: 1rem 1.25rem;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  border-top: 1px solid rgba(0,0,0,.06);
  animation: slideDown .3s ease;
  z-index: 300;
}
.primary-nav.is-open { display: flex; flex-direction: column; gap: .75rem; }
@keyframes slideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:none; } }

/* ══ 5. NAV PILL BUTTONS ═══════════════════════════════════
   Each nav item is styled as a clean pill button in an
   outlined ghost style that fills with green on hover.
   ══════════════════════════════════════════════════════════ */
.nav-menu { display: flex; flex-direction: column; gap: .5rem; list-style: none; }

/* The pill anchor — ghost outlined style */
.nav-menu li a,
.nav-pill-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .5rem 1.15rem;
  border: 1.5px solid var(--aal-grey-200);
  border-radius: 30px;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 600;
  color: var(--aal-black);
  position: relative; overflow: hidden;
  transition: background .35s ease, border-color .35s ease,
              color .3s ease, transform .3s ease, box-shadow .3s ease;
  cursor: pointer;
  white-space: nowrap;
}
/* Ripple fill effect on hover — pseudo-element slides up */
.nav-menu li a::before,
.nav-pill-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--aal-green);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  border-radius: inherit; z-index: 0;
}
.nav-menu li a:hover::before,
.nav-pill-btn:hover::before,
.nav-menu li.current-menu-item > a:not([href*="#"]):not([href$="/"])::before { transform: scaleY(1); }

.nav-menu li a .lang-en-content,
.nav-menu li a .lang-ta-content,
.nav-pill-btn .lang-en-content,
.nav-pill-btn .lang-ta-content {
  position: relative; z-index: 1;
  color: var(--aal-black);
  transition: color .3s ease;
  line-height: 1.3;
}
.nav-menu li a .lang-ta-content,
.nav-pill-btn .lang-ta-content {
  font-family: var(--font-tamil);
  font-size: .95rem;
}

/* On hover / non-hash active: labels go white */
.nav-menu li a:hover,
.nav-pill-btn:hover,
.nav-menu li.current-menu-item > a:not([href*="#"]):not([href$="/"]) {
  border-color: var(--aal-green);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,151,69,.2);
}
.nav-menu li a:hover .lang-en-content,
.nav-menu li a:hover .lang-ta-content,
.nav-pill-btn:hover .lang-en-content,
.nav-pill-btn:hover .lang-ta-content,
.nav-menu li.current-menu-item > a:not([href*="#"]):not([href$="/"]) .lang-en-content,
.nav-menu li.current-menu-item > a:not([href*="#"]):not([href$="/"]) .lang-ta-content {
  color: #fff !important;
}

/* ══ 6. LANGUAGE TOGGLE — header pill ══════════════════════ */
.lang-toggle {
  display: inline-flex; align-items: center;
  background: var(--aal-grey-100);
  border-radius: 30px;
  padding: 4px;
  gap: 2px;
  border: 1.5px solid var(--aal-grey-200);
  transition: border-color .25s, box-shadow .25s;
}
.lang-toggle:hover { border-color: var(--aal-green); box-shadow: 0 0 0 3px rgba(0,151,69,.1); }

.lang-toggle__option {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 12px;
  border-radius: 22px;
  font-size: .775rem; font-weight: 600;
  color: var(--aal-grey-500);
  text-decoration: none;
  transition: background .3s ease, color .3s ease, transform .25s ease;
  cursor: pointer;
  user-select: none;
}
.lang-toggle__option:hover { color: var(--aal-green); transform: scale(1.05); text-decoration: none; }
.lang-toggle__option--active {
  background: var(--aal-green); color: #fff;
  box-shadow: 0 2px 8px rgba(0,151,69,.35);
}
.lang-toggle__option--active:hover { color: #fff; }
.lang-toggle__divider {
  width: 1px; height: 14px;
  background: var(--aal-grey-200);
  border-radius: 1px;
}

/* ══ 7. HERO BANNER ════════════════════════════════════════ */
.hero-banner {
  position: relative;
  background: linear-gradient(135deg, #009745 0%, #007a37 45%, #005a28 100%);
  background-size: 200% 200%;
  animation: heroGradient 10s ease infinite;
  min-height: 84vh; display: flex; align-items: center;
  overflow: hidden; padding-block: var(--sp-2xl);
}
@keyframes heroGradient {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

/* ── Children Animation Layer ── */
.hero-anim-layer {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

/* 1. Clouds */
.cloud {
  position: absolute;
  background: radial-gradient(circle, rgba(255,255,255,.22) 0%, rgba(255,255,255,.07) 70%, transparent 100%);
  border-radius: 100px;
  filter: blur(10px);
  pointer-events: none;
}
.cloud-1 { top: 8%; left: -10%; width: 280px; height: 80px; animation: cloudDrift 36s linear infinite; }
.cloud-2 { top: 24%; left: 35%; width: 360px; height: 100px; animation: cloudDrift 48s linear infinite 10s; }
.cloud-3 { top: 12%; right: -15%; width: 240px; height: 70px; animation: cloudDrift 40s linear infinite 20s; }

@keyframes cloudDrift {
  0%   { transform: translateX(-150px); opacity: 0; }
  10%  { opacity: 0.85; }
  90%  { opacity: 0.85; }
  100% { transform: translateX(calc(100vw + 150px)); opacity: 0; }
}

/* 2. Floating Bubbles */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.75) 0%, rgba(255,209,10,0.35) 45%, rgba(0,151,69,0.18) 75%, rgba(255,255,255,0.45) 100%);
  box-shadow: inset 0 2px 8px rgba(255,255,255,0.7), 0 6px 18px rgba(0,0,0,0.12);
  pointer-events: auto;
  cursor: pointer;
  animation: bubbleRise ease-in-out infinite;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.bubble:hover {
  transform: scale(1.4) !important;
  filter: brightness(1.25);
}
.bubble-1 { width: 46px; height: 46px; left: 8%;  bottom: -60px; animation-duration: 9.5s;  animation-delay: 0s; }
.bubble-2 { width: 30px; height: 30px; left: 22%; bottom: -60px; animation-duration: 12.5s; animation-delay: 2s; }
.bubble-3 { width: 58px; height: 58px; left: 42%; bottom: -60px; animation-duration: 14s;   animation-delay: 0.8s; }
.bubble-4 { width: 34px; height: 34px; left: 60%; bottom: -60px; animation-duration: 11s;   animation-delay: 3.5s; }
.bubble-5 { width: 50px; height: 50px; left: 75%; bottom: -60px; animation-duration: 11.5s; animation-delay: 2.8s; }
.bubble-6 { width: 24px; height: 24px; left: 88%; bottom: -60px; animation-duration: 8.5s;  animation-delay: 5s; }
.bubble-7 { width: 40px; height: 40px; left: 15%; bottom: -60px; animation-duration: 13s;   animation-delay: 5.8s; }
.bubble-8 { width: 32px; height: 32px; left: 54%; bottom: -60px; animation-duration: 10.5s; animation-delay: 6.5s; }

@keyframes bubbleRise {
  0% {
    transform: translateY(0) translateX(0) scale(0.6);
    opacity: 0;
  }
  15% {
    opacity: 0.85;
  }
  50% {
    transform: translateY(-50vh) translateX(30px) scale(1);
  }
  85% {
    opacity: 0.85;
  }
  100% {
    transform: translateY(-115vh) translateX(-26px) scale(1.15);
    opacity: 0;
  }
}

/* 3. Whimsical Drifting Leaves */
.anim-leaf {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.18));
  animation: leafFall ease-in-out infinite;
}
.leaf-1 { left: 14%; top: -35px; animation-duration: 15s; animation-delay: 0.5s; }
.leaf-2 { left: 40%; top: -35px; animation-duration: 19s; animation-delay: 4.5s; }
.leaf-3 { left: 68%; top: -35px; animation-duration: 17s; animation-delay: 2s; }
.leaf-4 { left: 84%; top: -35px; animation-duration: 14s; animation-delay: 7.5s; }

@keyframes leafFall {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg) rotateY(0deg);
    opacity: 0;
  }
  10% { opacity: 0.9; }
  50% {
    transform: translateY(48vh) translateX(45px) rotate(180deg) rotateY(180deg);
  }
  85% { opacity: 0.9; }
  100% {
    transform: translateY(105vh) translateX(-40px) rotate(360deg) rotateY(360deg);
    opacity: 0;
  }
}

/* 4. Twinkling Stars */
.star {
  position: absolute;
  color: var(--aal-yellow);
  pointer-events: none;
  user-select: none;
  animation: starPulse 4.5s ease-in-out infinite;
}
.star-1 { top: 16%; left: 12%; animation-delay: 0s;   font-size: 1.3rem; }
.star-2 { top: 32%; left: 46%; animation-delay: 1.3s; font-size: 1.7rem; }
.star-3 { top: 68%; left: 20%; animation-delay: 2.5s; font-size: 1.2rem; }
.star-4 { top: 40%; right: 16%; animation-delay: 0.9s; font-size: 1.6rem; }
.star-5 { top: 76%; right: 30%; animation-delay: 2.2s; font-size: 1.4rem; }

@keyframes starPulse {
  0%, 100% {
    transform: scale(0.6) rotate(0deg);
    opacity: 0.2;
  }
  50% {
    transform: scale(1.4) rotate(25deg);
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(255,209,10,0.9));
  }
}

/* 5. Gliding Paper Plane */
.paper-plane {
  position: absolute;
  top: 22%;
  left: -70px;
  pointer-events: none;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.25));
  animation: planeFlight 22s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes planeFlight {
  0% {
    transform: translate(0, 0) rotate(18deg) scale(0.65);
    opacity: 0;
  }
  4% { opacity: 0.95; }
  25% {
    transform: translate(30vw, -10vh) rotate(6deg) scale(0.9);
  }
  50% {
    transform: translate(58vw, 10vh) rotate(26deg) scale(1);
  }
  75% {
    transform: translate(84vw, -8vh) rotate(-4deg) scale(0.85);
  }
  96% { opacity: 0.95; }
  100% {
    transform: translate(calc(100vw + 90px), 6vh) rotate(16deg) scale(0.65);
    opacity: 0;
  }
}

/* 6. Click Particle Sparkle */
.click-sparkle {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  animation: sparklePop .75s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
@keyframes sparklePop {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(0);
    opacity: 0;
  }
}

.hero-bg-motif {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: flex-end;
  pointer-events: none;
  animation: motifFloat 6s ease-in-out infinite;
}
@keyframes motifFloat {
  0%,100% { transform: translateY(0px); opacity: .07; }
  50%      { transform: translateY(-14px); opacity: .11; }
}
.hero-bg-motif svg { width: 60%; max-width: 620px; }
.hero-content { position: relative; z-index: 1; }
.hero-text { max-width: 620px; }
.hero-subtitle {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--aal-yellow); background: rgba(255,255,255,.1);
  padding: 4px 14px; border-radius: 20px; margin-bottom: .875rem;
  animation: fadeInDown .7s ease .1s both;
}
.hero-title {
  color: #fff; margin-bottom: .875rem; line-height: 1.15;
  animation: fadeInDown .7s ease .2s both;
}
.hero-tagline {
  color: rgba(255,255,255,.88); font-size: 1.0625rem; line-height: 1.8;
  margin-bottom: 2rem;
  animation: fadeInDown .7s ease .3s both;
}
.hero-ctas { display: flex; gap: .875rem; flex-wrap: wrap; animation: fadeInDown .7s ease .4s both; }

@keyframes fadeInDown {
  from { opacity:0; transform:translateY(-18px); }
  to   { opacity:1; transform:none; }
}
.hero-wave { position: absolute; bottom:-1px; left:0; right:0; line-height:0; pointer-events:none; }
.hero-wave svg { display:block; width:100%; }
.hero-wave svg path {
  animation: waveUndulate 8s ease-in-out infinite alternate;
  transform-origin: center bottom;
}
@keyframes waveUndulate {
  0%   { transform: scaleY(1) translateY(0); }
  50%  { transform: scaleY(1.2) translateY(-2px); }
  100% { transform: scaleY(0.96) translateY(1px); }
}

/* ══ 8. SECTION COMMON ═════════════════════════════════════ */
.section { padding-block: 90px; overflow: hidden; position: relative; }
.section--white { background: #fff; }
.section--tint  { background: #f8fdf9; }

/* Decorative ambient background floats */
.section-decor {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(50px);
  z-index: 0;
  animation: decorFloat 12s ease-in-out infinite alternate;
}
.decor-circle-1 {
  width: 280px; height: 280px;
  background: rgba(255,209,10, 0.14);
  top: -40px; right: -50px;
}
.decor-circle-2 {
  width: 340px; height: 340px;
  background: rgba(0,151,69, 0.08);
  bottom: -60px; left: -60px;
  animation-delay: -6s;
}
@keyframes decorFloat {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-28px) scale(1.12); }
}

/* Section header */
.section-header { text-align:center; max-width:700px; margin-inline:auto; margin-bottom:56px; }
.section-eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--aal-green); padding: 5px 18px;
  border: 1.5px solid var(--aal-green); border-radius: 20px;
  margin-bottom: .875rem;
  transition: background .3s, color .3s;
}
.section-eyebrow:hover { background: var(--aal-green); color: #fff; }
.section-title { color: var(--aal-black); margin-bottom: .875rem; }
.section-desc  { color: var(--aal-grey-500); font-size: 1rem; line-height: 1.75; }

/* ══ 9. ABOUT SECTION — BANYAN TREE ═════════════════════════ */
.section-aal { background: #fff; }
.section-aal__grid { display:grid; grid-template-columns:1fr; gap:48px; align-items:center; }

.section-lead-tagline {
  font-size: 1.15rem; font-weight: 600; color: var(--aal-green);
  line-height: 1.6; margin-bottom: 1.25rem;
}

.storybook-prose .story-p {
  font-size: 1.025rem; line-height: 1.85; color: #333; margin-bottom: 1.25rem;
}
.story-dropcap::first-letter {
  float: left; font-size: 3.2rem; line-height: .85; font-weight: 800;
  color: var(--aal-green); margin-right: .5rem; margin-top: .15rem;
  font-family: var(--font-sans);
}

.story-quote-box {
  display: flex; gap: 12px; align-items: flex-start;
  background: linear-gradient(135deg, #f2faf5 0%, #fffbe6 100%);
  border-left: 4px solid var(--aal-yellow); border-radius: 12px;
  padding: 16px 20px; margin-block: 1.25rem;
  box-shadow: 0 4px 18px rgba(0,151,69,.06);
  transition: transform .3s ease, box-shadow .3s ease;
}
.story-quote-box:hover { transform: translateX(4px); box-shadow: 0 8px 24px rgba(0,151,69,.12); }
.story-quote-icon { font-size: 1.4rem; color: var(--aal-yellow); line-height: 1; flex-shrink: 0; }
.story-quote-text { font-size: .975rem; font-weight: 600; color: var(--aal-black); margin: 0; line-height: 1.65; }

.about-action-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Image frames with gold/green border & floating badges */
.section-aal__images {
  position: relative; display: flex;
  justify-content: center; align-items: center; min-height: 420px;
}
.about-img-frame {
  position: relative; border-radius: 24px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.15);
  border: 4px solid #fff;
  transition: transform .5s cubic-bezier(.34,1.56,.64,1), box-shadow .5s ease;
}
.about-img-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.primary-frame {
  width: 82%; aspect-ratio: 4/3; z-index: 1;
}
.primary-frame:hover { transform: scale(1.03) rotate(-1deg); box-shadow: 0 24px 60px rgba(0,0,0,.22); }

.secondary-frame {
  position: absolute; width: 44%; aspect-ratio: 4/3; right: -10px; bottom: -20px; z-index: 2;
  border-width: 5px;
}
.secondary-frame:hover { transform: scale(1.06) rotate(2deg); box-shadow: 0 20px 50px rgba(0,0,0,.24); }

.img-caption-badge {
  position: absolute; bottom: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,.65); backdrop-filter: blur(8px);
  color: #fff; font-size: .75rem; font-weight: 600;
  padding: 4px 12px; border-radius: 20px;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--aal-yellow); }

.floating-pulse-badge {
  position: absolute; top: -15px; left: -10px;
  background: var(--aal-green); color: #fff;
  padding: 12px 18px; border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,151,69,.4);
  z-index: 3; text-align: center;
  animation: pulseBadge 3.5s ease-in-out infinite;
}
@keyframes pulseBadge {
  0%,100% { transform: translateY(0); box-shadow: 0 8px 24px rgba(0,151,69,.4); }
  50%      { transform: translateY(-6px); box-shadow: 0 14px 36px rgba(0,151,69,.6); }
}
.stat-icon { font-size: 1.2rem; }
.floating-pulse-badge .stat-num { font-size: 1.4rem; font-weight: 800; line-height: 1; }
.floating-pulse-badge .stat-label { font-size: .7rem; font-weight: 500; opacity: .9; }

/* ══ 10. STORY SECTION — AAL - A STORY ═════════════════════ */
.section-kathai { background: #f9fbf8; }

.story-hero-card {
  background: #fff; border-radius: 24px; padding: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,.06);
  margin-bottom: 40px; border: 1px solid rgba(0,151,69,.12);
  transition: transform .4s ease, box-shadow .4s ease;
}
.story-hero-card:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(0,151,69,.12); }
.story-hero-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }

.story-hero-image-wrap { position: relative; border-radius: 20px; overflow: hidden; }
.story-girl-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; border-radius: 20px; }

.story-bubble-tag {
  position: absolute; bottom: 14px; left: 14px; right: 14px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  color: var(--aal-black); font-weight: 600; font-size: .875rem;
  padding: 8px 14px; border-radius: 12px; display: inline-flex; align-items: center; gap: 8px;
}

.story-lead-p { font-size: 1.1rem; line-height: 1.8; color: #222; margin-bottom: 1rem; }
.story-quote-intro { font-size: 1rem; font-style: italic; color: var(--aal-green); font-weight: 600; margin-bottom: 1.25rem; }
.story-interactive-hint { display: inline-flex; align-items: center; gap: 6px; font-size: .825rem; font-weight: 700; color: var(--aal-grey-500); text-transform: uppercase; letter-spacing: .08em; }

/* 4 Dreams Grid */
.dreams-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px;
}
.dream-card {
  position: relative; background: #fff; border-radius: 20px; padding: 28px;
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
  border: 2px solid transparent;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .4s ease, border-color .4s ease;
  overflow: hidden;
}
.dream-card:hover { transform: translateY(-8px) scale(1.02); }

.dream-card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 14px;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.dream-card:hover .dream-card__icon { transform: rotate(12deg) scale(1.15); }

.dream-card__badge {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 12px;
}
.dream-card__quote {
  font-size: .975rem; line-height: 1.75; font-style: italic; color: #222; margin: 0;
  position: relative; z-index: 1;
}

/* Individual Dream Card color themes */
.dream-card--sport { border-color: rgba(255,209,10,.3); }
.dream-card--sport:hover { border-color: var(--aal-yellow); box-shadow: 0 16px 40px rgba(255,209,10,.25); }
.dream-card--sport .dream-card__icon { background: #fff9db; }
.dream-card--sport .dream-card__badge { background: #fff3bf; color: #8f6b00; }

.dream-card--ocean { border-color: rgba(0,151,69,.25); }
.dream-card--ocean:hover { border-color: var(--aal-green); box-shadow: 0 16px 40px rgba(0,151,69,.2); }
.dream-card--ocean .dream-card__icon { background: #e6f5ec; }
.dream-card--ocean .dream-card__badge { background: #d3f9d8; color: #006e31; }

.dream-card--magic { border-color: rgba(142,68,173,.2); }
.dream-card--magic:hover { border-color: #8e44ad; box-shadow: 0 16px 40px rgba(142,68,173,.2); }
.dream-card--magic .dream-card__icon { background: #f3e8ff; }
.dream-card--magic .dream-card__badge { background: #e9d5ff; color: #6b21a8; }

.dream-card--art { border-color: rgba(199,74,40,.2); }
.dream-card--art:hover { border-color: var(--aal-red); box-shadow: 0 16px 40px rgba(199,74,40,.2); }
.dream-card--art .dream-card__icon { background: #ffede8; }
.dream-card--art .dream-card__badge { background: #ffe0d6; color: #a33b1e; }

/* Story Culmination */
.story-culmination-card {
  background: linear-gradient(145deg, #ffffff 0%, #f4fbf6 100%);
  border-radius: 24px; padding: 36px;
  box-shadow: 0 12px 40px rgba(0,151,69,.1);
  border: 2px solid rgba(0,151,69,.2);
}
.culmination-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.culmination-tag {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--aal-green); background: #e6f5ec; padding: 4px 14px; border-radius: 20px; margin-bottom: 1rem;
}
.culmination-p { font-size: 1.05rem; line-height: 1.85; color: #222; margin-bottom: 1.25rem; }
.culmination-highlight {
  background: #fff; border-left: 4px solid var(--aal-green);
  padding: 16px 20px; border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
}
.culmination-highlight p { font-size: 1.1rem; color: var(--aal-black); margin: 0; line-height: 1.6; }

.culmination-image-wrap { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 16px 44px rgba(0,0,0,.15); }
.culmination-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.culmination-caption {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  background: rgba(0,0,0,.7); backdrop-filter: blur(8px);
  color: #fff; font-size: .8rem; font-weight: 600; text-align: center;
  padding: 6px 14px; border-radius: 20px;
}

/* ══ 11. TEAM SECTION — ROOTS ══════════════════════════════ */
.section-verkal { background: #fff; }
.team-cards-list { display: grid; grid-template-columns: 1fr; gap: 32px; }

.team-profile-card {
  background: #fff; border-radius: 22px; padding: 32px;
  box-shadow: 0 6px 28px rgba(0,0,0,.06);
  border: 1.5px solid var(--aal-grey-200);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .4s ease, border-color .4s ease;
}
.team-profile-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(0,151,69,.12);
  border-color: rgba(0,151,69,.3);
}
.team-profile-header { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.team-avatar-box {
  width: 64px; height: 64px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.6rem; font-weight: 800; flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
  transition: transform .35s ease;
}
.team-profile-card:hover .team-avatar-box { transform: scale(1.1) rotate(6deg); }

.team-member-name { font-size: 1.25rem; font-weight: 700; color: var(--aal-black); margin-bottom: 4px; }
.team-role-pill {
  display: inline-block; font-size: .8rem; font-weight: 600;
  color: var(--aal-green); background: #e6f5ec; padding: 2px 10px; border-radius: 14px; margin-right: 8px;
}
.team-location-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .8rem; font-weight: 600; color: var(--aal-grey-500); margin-top: 4px;
}

.team-bio-p { font-size: .95rem; line-height: 1.8; color: #444; margin-bottom: 16px; }

.team-card-footer { border-top: 1px solid var(--aal-grey-200); padding-top: 14px; }
.team-email-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .875rem; font-weight: 600; color: var(--aal-green);
  text-decoration: none; padding: 4px 10px; border-radius: 8px;
  transition: background .25s ease, transform .25s ease;
}
.team-email-btn:hover { background: #e6f5ec; transform: translateX(3px); text-decoration: none; }

/* ══ 12. CONTACT SECTION — BANYAN FRUIT ═════════════════════ */
.section-alampazham { background: #f8fdf9; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
.contact-form-card, .contact-info-card {
  background: #fff; border-radius: 20px; padding: 36px;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  transition: box-shadow .35s ease, transform .35s ease;
}
.contact-form-card:hover,
.contact-info-card:hover { box-shadow: 0 12px 44px rgba(0,0,0,.11); transform: translateY(-2px); }
.contact-subheading { font-size: 1.2rem; font-weight: 700; color: var(--aal-black); margin-bottom: 1.25rem; }

.contact-banyan-fruit-card {
  margin-top: 24px; display: flex; gap: 14px;
  background: linear-gradient(135deg, #f2faf5 0%, #fffbe6 100%);
  padding: 18px; border-radius: 16px; border: 1.5px solid rgba(0,151,69,.15);
}
.fruit-card-icon { font-size: 1.8rem; flex-shrink: 0; }
.fruit-card-title { font-size: .95rem; font-weight: 700; color: var(--aal-black); margin-bottom: 4px; }
.fruit-card-desc { font-size: .85rem; line-height: 1.6; color: var(--aal-grey-500); margin: 0; }

.address-line { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1rem; color: var(--aal-black); font-style: normal; }
.address-icon { flex-shrink: 0; color: var(--aal-green); margin-top: 2px; }
.address-line a { color: var(--aal-green); transition: color .25s; }
.address-line a:hover { color: var(--aal-green-dark); }

/* ══ 13. CF7 FORM ══════════════════════════════════════════ */
.wpcf7-form label { display:block; font-size:.875rem; font-weight:600; color:var(--aal-black); margin-bottom:6px; }
.wpcf7-form .wpcf7-form-control-wrap { display:block; margin-bottom:16px; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width:100%; padding:12px 16px;
  border:1.5px solid var(--aal-grey-200); border-radius:10px;
  font-family:var(--font-sans); font-size:.9375rem; color:var(--aal-black);
  background:#fff;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus { outline:none; border-color:var(--aal-green); box-shadow:0 0 0 4px rgba(0,151,69,.12); background:#fafffe; }
.wpcf7-form textarea { min-height:120px; resize:vertical; }
.wpcf7-form input[type="submit"] {
  width:100%; background:var(--aal-green); color:#fff;
  border:2px solid var(--aal-green); border-radius:30px;
  padding:14px 28px; font-size:.9375rem; font-weight:600;
  cursor:pointer;
  transition: background .35s ease, transform .3s ease, box-shadow .3s ease, border-color .35s ease;
}
.wpcf7-form input[type="submit"]:hover { background:var(--aal-green-dark); border-color:var(--aal-green-dark); transform:translateY(-2px); box-shadow:0 8px 28px rgba(0,151,69,.3); }
.wpcf7-not-valid-tip { color:var(--aal-red); font-size:.8rem; margin-top:4px; display:block; }
.wpcf7-response-output { border-radius:10px; padding:14px 18px; margin-top:12px; font-size:.9rem; }

/* ══ 14. FOOTER ════════════════════════════════════════════ */
.site-footer {
  background: linear-gradient(160deg, #111 0%, #1a1a1a 100%);
  color:rgba(255,255,255,.65);
  padding-block:64px 32px;
}
.footer-grid { display:grid; grid-template-columns:1fr; gap:36px; margin-bottom:48px; }
.footer-logo-wrap { display: flex; align-items: center; gap: .75rem; margin-bottom: 14px; }
.footer-logo {
  height: 44px;
  width: auto;
  border-radius: 6px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.footer-logo-text { font-size: 1.25rem; font-weight: 700; color: #fff; margin: 0; }
.footer-logo-text .lang-ta-content { font-family: var(--font-tamil); font-size: 1.35rem; }
.footer-tagline { font-size:.875rem; color:rgba(255,255,255,.45); line-height:1.7; }
.footer-col-title { font-size:.8rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:#fff; margin-bottom:16px; }
.footer-menu { display:flex; flex-direction:column; gap:10px; }
.footer-menu li a {
  color:rgba(255,255,255,.5); font-size:.875rem; text-decoration:none;
  transition: color .3s ease, padding-left .3s ease;
}
.footer-menu li a:hover { color:var(--aal-yellow); padding-left:5px; text-decoration:none; }
.footer-socials { display:flex; gap:10px; flex-wrap:wrap; margin-top:16px; }
.social-link {
  display:flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:50%;
  background:rgba(255,255,255,.08); color:rgba(255,255,255,.65);
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.social-link:hover { background:var(--aal-green); color:#fff; transform:translateY(-3px) scale(1.1); text-decoration:none; }
.footer-bottom {
  border-top:1px solid rgba(255,255,255,.07); padding-top:24px;
  display:flex; flex-direction:column; gap:12px; align-items:center; text-align:center;
}
.copyright { font-size:.8rem; color:rgba(255,255,255,.3); margin:0; }
.footer-lang .lang-toggle { border-color:rgba(255,255,255,.15); background:rgba(255,255,255,.05); }
.footer-lang .lang-toggle__option { color:rgba(255,255,255,.5); }
.footer-lang .lang-toggle__option--active { background:var(--aal-green); color:#fff; }
.footer-lang .lang-toggle__divider { background:rgba(255,255,255,.15); }

/* ══ 15. PLACEHOLDER IMAGES ════════════════════════════════ */
.img-placeholder { background:#f8fdf9; border-radius:20px; overflow:hidden; }
.placeholder-svg, .team-avatar-placeholder { width:100%; height:100%; display:block; }
.aal-rounded-img { border-radius:20px; width:100%; height:auto; object-fit:cover; }

/* ══ 16. SCROLL REVEAL ═════════════════════════════════════ */
.will-animate { opacity:0; transform:translateY(32px); transition: opacity .65s ease, transform .65s ease; }
.will-animate.is-visible { opacity:1; transform:none; }

/* Staggered children */
.will-animate:nth-child(2) { transition-delay:.1s; }
.will-animate:nth-child(3) { transition-delay:.2s; }
.will-animate:nth-child(4) { transition-delay:.3s; }

/* ══ 17. ACCESSIBILITY ═════════════════════════════════════ */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border-width:0; }

/* ══ 18. RESPONSIVE 640px ══════════════════════════════════ */
@media (min-width:640px) {
  .nav-toggle { display:none; }
  .primary-nav {
    display:flex !important; position:static;
    background:none; padding:0; box-shadow:none; border-top:none;
    flex-direction:row; align-items:center; gap:.5rem;
    animation:none;
  }
  .nav-menu { flex-direction:row; align-items:center; gap:.4rem; }
  .nav-menu li a, .nav-pill-btn {
    padding: .45rem 1.05rem;
  }
  .section-aal__grid { grid-template-columns:1.1fr 0.9fr; }
  .contact-grid { grid-template-columns:1.1fr 0.9fr; }
  .story-hero-grid { grid-template-columns:1fr 1.2fr; }
  .dreams-grid { grid-template-columns:repeat(2, 1fr); }
  .culmination-grid { grid-template-columns:1.2fr 1fr; }
  .footer-grid { grid-template-columns:2fr 1fr 1fr; }
  .footer-bottom { flex-direction:row; justify-content:space-between; text-align:left; }
}

/* ══ 19. RESPONSIVE 1024px ═════════════════════════════════ */
@media (min-width:1024px) {
  .hero-banner { min-height:88vh; }
  .section-aal__images { min-height:460px; }
  .footer-grid { grid-template-columns:2.5fr 1fr 1fr 1fr; }
}

/* ══ 20. PRINT ═════════════════════════════════════════════ */
@media print {
  .topbar,.site-header,.hero-banner,.site-footer { display:none; }
  body { font-size:12pt; color:#000; }
}

/* ══════════════════════════════════════════════════════════
   LANGUAGE CONTENT VISIBILITY
   Controlled by html.lang-en / html.lang-ta (set by JS).
   Default (before JS runs): English shown, Tamil hidden.
   ══════════════════════════════════════════════════════════ */

/* Default: English visible */
.lang-ta-content { display: none; }
.lang-en-content { display: block; }

/* Switch to Tamil */
html.lang-ta .lang-ta-content { display: block; }
html.lang-ta .lang-en-content { display: none; }

/* For inline / block elements (spans, links, images) */
a.lang-ta-content, span.lang-ta-content, button.lang-ta-content, img.lang-ta-content { display: none; }
a.lang-en-content, span.lang-en-content, button.lang-en-content { display: inline; }
img.lang-en-content { display: block; }

html.lang-ta a.lang-ta-content,
html.lang-ta span.lang-ta-content,
html.lang-ta button.lang-ta-content { display: inline; }
html.lang-ta img.lang-ta-content { display: block; }

html.lang-ta a.lang-en-content,
html.lang-ta span.lang-en-content,
html.lang-ta button.lang-en-content,
html.lang-ta img.lang-en-content { display: none; }

/* Flex items */
.flex-lang-en { display: flex; }
.flex-lang-ta { display: none; }
html.lang-ta .flex-lang-en { display: none; }
html.lang-ta .flex-lang-ta { display: flex; }


/* Sync lang-toggle active state with html class on load */
html.lang-en .js-lang-toggle .lang-toggle__option[data-lang="en"] { background: var(--aal-green); color: #fff; box-shadow: 0 2px 8px rgba(0,151,69,.35); }
html.lang-en .js-lang-toggle .lang-toggle__option[data-lang="ta"] { background: none; color: var(--aal-grey-500); }
html.lang-ta .js-lang-toggle .lang-toggle__option[data-lang="ta"] { background: var(--aal-green); color: #fff; box-shadow: 0 2px 8px rgba(0,151,69,.35); }
html.lang-ta .js-lang-toggle .lang-toggle__option[data-lang="en"] { background: none; color: var(--aal-grey-500); }

/* Make lang toggle buttons look like the pill */
.lang-toggle__option[type="button"] {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-sans); font-size: .775rem; font-weight: 600;
  padding: 4px 12px; border-radius: 22px;
  transition: background .3s ease, color .3s ease, transform .25s ease;
}
.lang-toggle__option[type="button"]:hover { transform: scale(1.05); }
/* Smooth fade & slide transition when switching languages */
.lang-en-content, .lang-ta-content {
  animation: langGlideIn .35s cubic-bezier(.25, 1, .5, 1) both;
}
@keyframes langGlideIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══ 21. BACK TO TOP BUTTON ═════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--aal-green);
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 8px 24px rgba(0,151,69,.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.8);
  transition: opacity .35s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1), background .25s, box-shadow .3s;
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.back-to-top:hover {
  background: var(--aal-green-dark);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 14px 32px rgba(0,151,69,.55);
}
.back-to-top svg {
  transition: transform .3s ease;
}
.back-to-top:hover svg {
  transform: translateY(-3px);
}

/* ══ 22. PAGE HERO BANNER (Contact, Articles, Archive) ═════ */
.page-hero-banner {
  position: relative;
  background: linear-gradient(135deg, #009745 0%, #007a37 50%, #005525 100%);
  padding-top: 100px; padding-bottom: 70px;
  color: #fff; overflow: hidden;
}
.page-hero-content {
  position: relative; z-index: 2; max-width: 800px;
}
.page-hero-eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--aal-yellow); background: rgba(255,255,255,.12);
  padding: 4px 14px; border-radius: 20px; margin-bottom: .875rem;
}
.page-hero-title {
  font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; color: #fff;
  line-height: 1.2; margin-bottom: 1rem;
}
.page-hero-desc {
  font-size: 1.05rem; line-height: 1.75; color: rgba(255,255,255,.9);
  max-width: 680px; margin: 0;
}

/* ══ 23. BOOKS SHOWCASE SECTION ════════════════════════════ */
.section-books { background: #fdfefd; }
.books-showcase-grid {
  display: grid; grid-template-columns: 1fr; gap: 36px; margin-bottom: 48px;
}
@media (min-width: 768px) {
  .books-showcase-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .books-showcase-grid { grid-template-columns: repeat(2, 1fr); gap: 44px; }
}

.book-card {
  background: #fff; border-radius: 24px; padding: 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,.06);
  border: 1.5px solid var(--aal-grey-200);
  display: flex; flex-direction: column; gap: 20px;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .4s ease, border-color .4s ease;
}
@media (min-width: 600px) {
  .book-card { flex-direction: row; align-items: center; }
}
.book-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0,151,69,.14);
  border-color: rgba(0,151,69,.3);
}

.book-card__cover-wrap {
  position: relative; width: 100%; max-width: 190px; margin-inline: auto; flex-shrink: 0;
  perspective: 1000px;
}
.book-3d-wrapper {
  position: relative; border-radius: 12px; overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.2), -6px 0 16px rgba(0,0,0,.15);
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform .5s cubic-bezier(.34,1.56,.64,1), box-shadow .5s ease;
}
.book-card:hover .book-3d-wrapper {
  transform: rotateY(0deg) rotateX(0deg) scale(1.05);
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.book-cover-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.book-spine-effect {
  position: absolute; left: 0; top: 0; bottom: 0; width: 12px;
  background: linear-gradient(to right, rgba(0,0,0,.35) 0%, rgba(255,255,255,.2) 40%, rgba(0,0,0,.15) 100%);
  pointer-events: none;
}

.book-price-tag {
  position: absolute; top: 10px; right: -8px;
  background: var(--aal-yellow); color: var(--aal-black);
  font-weight: 800; font-size: .85rem; padding: 4px 10px; border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.book-age-pill {
  position: absolute; bottom: 8px; left: 6px;
  background: rgba(0,0,0,.7); backdrop-filter: blur(6px); color: #fff;
  font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 12px;
}

.book-card__details { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.book-card__title { font-size: 1.25rem; font-weight: 700; line-height: 1.35; margin: 0; }
.book-card__title a { color: var(--aal-black); text-decoration: none; transition: color .25s; }
.book-card__title a:hover { color: var(--aal-green); }
.book-card__author { font-size: .875rem; color: var(--aal-grey-500); margin: 0; }
.book-card__desc { font-size: .9rem; line-height: 1.65; color: #444; margin: 0; flex: 1; }

.book-card__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.btn-buy { padding: .55rem 1.1rem; font-size: .825rem; }
.btn-details {
  padding: .55rem 1.1rem; font-size: .825rem;
  background: var(--aal-grey-100); color: var(--aal-black); border-color: var(--aal-grey-200);
}
.btn-details:hover { background: var(--aal-green); color: #fff; border-color: var(--aal-green); }

.books-footer-cta { margin-top: 20px; }
.cta-box {
  background: linear-gradient(135deg, #f2faf5 0%, #fffbe6 100%);
  border: 1.5px solid rgba(0,151,69,.2); border-radius: 20px; padding: 28px 32px;
  display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center;
}
@media (min-width: 768px) {
  .cta-box { flex-direction: row; text-align: left; justify-content: space-between; }
}
.cta-box__icon { font-size: 2.2rem; flex-shrink: 0; }
.cta-title { font-size: 1.15rem; font-weight: 700; color: var(--aal-black); margin-bottom: 4px; }
.cta-desc { font-size: .9rem; color: var(--aal-grey-500); margin: 0; }

/* ══ 24. ARTICLES / BLOG ARCHIVE ═══════════════════════════ */
.articles-grid {
  display: grid; grid-template-columns: 1fr; gap: 36px;
}
@media (min-width: 768px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

.article-card {
  background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
  border: 1.5px solid var(--aal-grey-200);
  display: flex; flex-direction: column;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .4s ease, border-color .4s ease;
}
.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 44px rgba(0,151,69,.12);
  border-color: rgba(0,151,69,.25);
}
.article-card__img-wrap {
  position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden; background: #f0f8f3;
}
.article-card__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.article-card:hover .article-card__img { transform: scale(1.08); }
.article-date-badge {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,.7); backdrop-filter: blur(6px); color: #fff;
  font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 12px;
}

.article-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.article-category-pill {
  display: inline-block; align-self: flex-start;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--aal-green); background: #e6f5ec; padding: 3px 10px; border-radius: 12px; margin-bottom: 10px;
}
.article-card__title { font-size: 1.15rem; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.article-card__title a { color: var(--aal-black); text-decoration: none; transition: color .25s; }
.article-card__title a:hover { color: var(--aal-green); }
.article-card__excerpt { font-size: .9rem; line-height: 1.65; color: #555; margin-bottom: 16px; flex: 1; }

.article-card__footer {
  border-top: 1px solid var(--aal-grey-200); padding-top: 14px;
  display: flex; align-items: center; justify-content: space-between; font-size: .825rem;
}
.article-author { color: var(--aal-grey-500); font-weight: 600; }
.article-read-btn { color: var(--aal-green); font-weight: 700; text-decoration: none; transition: transform .25s; }
.article-read-btn:hover { transform: translateX(3px); text-decoration: none; }

/* ══ 25. SINGLE ARTICLE VIEW ═══════════════════════════════ */
.single-article-header {
  background: linear-gradient(135deg, #009745 0%, #007a37 100%);
  color: #fff; padding-top: 110px; padding-bottom: 50px; text-align: center;
}
.article-meta-breadcrumbs {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: .85rem; color: var(--aal-yellow); margin-bottom: 12px; font-weight: 600;
}
.back-to-archive-link { color: #fff; text-decoration: none; transition: color .2s; }
.back-to-archive-link:hover { color: var(--aal-yellow); text-decoration: underline; }
.single-article-title {
  font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 800; color: #fff;
  line-height: 1.25; max-width: 840px; margin-inline: auto; margin-bottom: 16px;
}
.single-article-byline {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15); padding: 5px 16px; border-radius: 20px; font-size: .85rem;
}

.single-article-featured-img-wrap {
  margin-top: -30px; border-radius: 24px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.15); max-width: 860px; margin-inline: auto;
}
.single-article-featured-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }

.article-body-container { max-width: 780px; padding-top: 48px; padding-bottom: 80px; }
.single-article-footer {
  border-top: 1.5px solid var(--aal-grey-200); margin-top: 40px; padding-top: 24px;
  display: flex; flex-direction: column; gap: 16px; align-items: center; justify-content: space-between;
}
@media (min-width: 600px) {
  .single-article-footer { flex-direction: row; }
}
.share-box { display: flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 600; }
.share-btn {
  padding: 4px 12px; border-radius: 16px; background: #f0f4f2; color: var(--aal-green);
  text-decoration: none; font-size: .8rem; transition: background .25s, color .25s;
}
.share-btn:hover { background: var(--aal-green); color: #fff; text-decoration: none; }

/* ══ 26. SINGLE BOOK PURCHASE & DETAILS ════════════════════ */
.book-purchase-hero { padding-top: 100px; padding-bottom: 70px; background: #fff; }
.book-purchase-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
@media (min-width: 768px) {
  .book-purchase-grid { grid-template-columns: 0.9fr 1.1fr; }
}

.book-purchase-cover-col {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  position: sticky; top: 100px;
}
.book-3d-presentation {
  position: relative; width: 100%; max-width: 320px;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.22), -10px 0 24px rgba(0,0,0,.15);
  border: 4px solid #fff;
}
.book-presentation-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.book-presentation-spine {
  position: absolute; left: 0; top: 0; bottom: 0; width: 16px;
  background: linear-gradient(to right, rgba(0,0,0,.4) 0%, rgba(255,255,255,.25) 40%, rgba(0,0,0,.2) 100%);
  pointer-events: none;
}
.book-purchase-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.badge-age-pill, .badge-publisher-pill {
  font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 16px;
  background: #f0f8f3; color: var(--aal-green); border: 1px solid rgba(0,151,69,.2);
}

.back-to-books-link {
  display: inline-block; font-size: .85rem; font-weight: 600; color: var(--aal-green);
  text-decoration: none; margin-bottom: 12px; transition: transform .2s;
}
.back-to-books-link:hover { transform: translateX(-3px); }
.book-page-title { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; color: var(--aal-black); margin-bottom: 16px; line-height: 1.25; }

.book-credits-card {
  background: #f8fdf9; border-radius: 16px; padding: 18px 22px;
  border-left: 4px solid var(--aal-green); margin-bottom: 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.credit-row { display: flex; gap: 8px; font-size: .925rem; }
.credit-label { color: var(--aal-grey-500); }

.book-buy-action-card {
  background: linear-gradient(135deg, #f2faf5 0%, #fffbe6 100%);
  border: 2px solid var(--aal-yellow); border-radius: 20px; padding: 24px 28px;
  box-shadow: 0 8px 30px rgba(0,151,69,.08); margin-bottom: 32px;
  display: flex; flex-direction: column; gap: 18px;
}
@media (min-width: 600px) {
  .book-buy-action-card { flex-direction: row; align-items: center; justify-content: space-between; }
}
.price-currency-tag { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--aal-grey-500); }
.price-amount { font-size: 2.2rem; font-weight: 800; color: var(--aal-green); line-height: 1; margin-top: 2px; }
.buy-action-buttons { display: flex; flex-direction: column; gap: 10px; }
.btn-large-buy { font-size: 1rem; padding: .85rem 1.85rem; }

.book-synopsis-wrap .synopsis-heading { font-size: 1.25rem; font-weight: 700; color: var(--aal-black); margin-bottom: 12px; }

