/* ============================================================
   UYIR PUBLICATIONS — MAIN STYLESHEET
   Palette: Ivory #FDFAF4, Sage #4A7C59, Brown #6B4226,
   Gold #C8A84B, Cream #F0EAD6, Dark #1C2B1A
   Fonts: Hind Madurai, Playfair Display, Noto Sans Tamil
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Hind+Madurai:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Noto+Sans+Tamil:wght@300;400;500;600;700&display=swap');

/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ivory:      #FDFAF4;
  --ivory-dk:   #F0EAD6;
  --sage:       #4A7C59;
  --sage-dk:    #2E5C3A;
  --sage-lt:    #7BAF8A;
  --brown:      #6B4226;
  --brown-lt:   #9B6A45;
  --gold:       #C8A84B;
  --gold-lt:    #E8C96A;
  --dark:       #1C2B1A;
  --dark-mid:   #3A4A36;
  --text:       #2C3B28;
  --text-muted: #7A8C76;
  --border:     #D8CFBA;
  --white:      #FFFFFF;
  --shadow:     rgba(28,43,26,0.12);

  --font-tamil:   'Hind Madurai', 'Noto Sans Tamil', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Hind Madurai', system-ui, sans-serif;

  --max-w:    1200px;
  --pad-x:    clamp(1rem, 4vw, 2.5rem);
  --gap:      clamp(3rem, 6vw, 5rem);
  --radius:   8px;
  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --trans:    0.3s var(--ease);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── UTILITY ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

.section-pad { padding: var(--gap) 0; }
.section-pad-sm { padding: calc(var(--gap) * 0.6) 0; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600;
  padding: 0.7rem 1.8rem; border-radius: 50px;
  border: 2px solid transparent; transition: var(--trans);
  font-size: 0.92rem; white-space: nowrap; cursor: pointer;
}
.btn-primary { background: var(--sage); color: var(--white); border-color: var(--sage); }
.btn-primary:hover { background: var(--sage-dk); border-color: var(--sage-dk); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(74,124,89,0.3); }
.btn-outline { background: transparent; color: var(--sage); border-color: var(--sage); }
.btn-outline:hover { background: var(--sage); color: var(--white); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--dark); border-color: var(--gold); font-weight: 700; }
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,168,75,0.3); }
.btn-sm { padding: 0.45rem 1.2rem; font-size: 0.82rem; }

.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--sage);
  margin-bottom: 0.8rem;
}
.section-label::before {
  content: ''; display: block; width: 24px; height: 2px;
  background: var(--gold); border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  color: var(--dark); font-weight: 700; line-height: 1.2;
  margin-bottom: 1rem;
}
.section-title-ta {
  font-family: var(--font-tamil);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--dark); font-weight: 600; line-height: 1.3;
  margin-bottom: 1rem;
}
.section-sub { color: var(--text-muted); font-size: 1rem; max-width: 600px; }

/* ── SKIP LINK ── */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  background: var(--gold); color: var(--dark); font-weight: 700;
  padding: 0.5rem 1rem; border-radius: 4px; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ── TOP BAR ── */
.top-bar {
  background: var(--dark); color: rgba(255,255,255,0.75);
  padding: 0.4rem 0; font-size: 0.78rem;
}
.top-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.top-bar-left { display: flex; align-items: center; gap: 1.5rem; }
.top-bar-right { display: flex; align-items: center; gap: 1rem; }
.top-bar a { color: rgba(255,255,255,0.75); transition: color 0.2s; }
.top-bar a:hover { color: var(--gold); }
.top-bar-contact { display: flex; align-items: center; gap: 0.4rem; }
.top-bar-contact svg { width: 13px; height: 13px; fill: var(--gold); }

/* ── LANGUAGE TOGGLE ── */
.lang-toggle {
  display: flex; align-items: center; gap: 0;
  background: rgba(255,255,255,0.1); border-radius: 50px;
  padding: 3px; overflow: hidden;
}
.lang-btn {
  padding: 3px 12px; border-radius: 50px; font-size: 0.72rem;
  font-weight: 600; letter-spacing: 0.05em; border: none;
  background: transparent; color: rgba(255,255,255,0.7);
  cursor: pointer; transition: all 0.2s;
}
.lang-btn.active { background: var(--gold); color: var(--dark); }
.lang-btn:hover:not(.active) { color: var(--white); }

/* ── MARQUEE ── */
.marquee-strip {
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dk) 100%);
  padding: 0.55rem 0; overflow: hidden; position: relative;
}
.marquee-inner {
  display: flex; gap: 0; animation: marquee 30s linear infinite;
  white-space: nowrap; width: max-content;
}
.marquee-inner:hover { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0 2rem; font-size: 0.82rem; color: var(--white); font-weight: 500;
}
.marquee-item .sep { color: var(--gold); font-size: 1rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── HEADER ── */
.site-header {
  background: var(--white); position: sticky; top: 0; z-index: 200;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px var(--shadow);
  transition: var(--trans);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 0; gap: 1.5rem;
}
.logo-wrap { display: flex; align-items: center; gap: 0.8rem; flex-shrink: 0; }
.logo-img { height: 56px; width: auto; object-fit: contain; }
.logo-text-wrap { display: flex; flex-direction: column; }
.logo-name-en {
  font-family: var(--font-display); font-size: 0.75rem;
  color: var(--brown); letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600;
}
.logo-tagline {
  font-size: 0.65rem; color: var(--text-muted);
  font-family: var(--font-tamil); letter-spacing: 0.03em;
}

/* ── MAIN NAV ── */
.main-nav { display: flex; align-items: center; gap: 0; }
.nav-list { display: flex; align-items: center; gap: 0; }
.nav-item { position: relative; }

.nav-link {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 1rem 0.9rem; font-size: 0.88rem; font-weight: 500;
  color: var(--text); transition: color 0.2s; position: relative;
  white-space: nowrap;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0.9rem; right: 0.9rem;
  height: 2px; background: var(--sage); transform: scaleX(0);
  transition: transform 0.25s var(--ease); transform-origin: center;
}
.nav-link:hover, .nav-link.active { color: var(--sage); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link svg { width: 14px; height: 14px; transition: transform 0.2s; }
.nav-item:hover > .nav-link svg { transform: rotate(180deg); }

/* Events highlight */
.nav-link.nav-events {
  background: linear-gradient(135deg, var(--gold) 0%, #E8C96A 100%);
  color: var(--dark); border-radius: 50px; padding: 0.45rem 1.1rem;
  font-weight: 700; margin: 0 0.3rem; animation: pulse-gold 2s ease-in-out infinite;
}
.nav-link.nav-events::after { display: none; }
.nav-link.nav-events:hover { background: var(--gold-lt); color: var(--dark); transform: translateY(-1px); }
@keyframes pulse-gold {
  0%,100% { box-shadow: 0 0 0 0 rgba(200,168,75,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(200,168,75,0); }
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 4px); left: 0;
  min-width: 220px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 8px 32px var(--shadow); padding: 0.5rem;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.2s var(--ease); z-index: 300;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.9rem; border-radius: 6px; font-size: 0.85rem;
  color: var(--text); transition: all 0.15s;
}
.dropdown-item:hover { background: var(--ivory-dk); color: var(--sage); }
.dropdown-item svg { width: 16px; height: 16px; color: var(--sage); flex-shrink: 0; }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ivory-dk); border: none; color: var(--text);
  transition: var(--trans);
}
.icon-btn:hover { background: var(--sage); color: var(--white); transform: scale(1.05); }
.icon-btn svg { width: 18px; height: 18px; }

/* Search bar */
.search-bar-wrap { display: none; }
.search-bar-wrap.open { display: flex; }
.search-bar {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(28,43,26,0.92); z-index: 9000;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 8rem; backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.search-bar.open { opacity: 1; pointer-events: auto; }
.search-box {
  width: min(680px, 90vw); position: relative;
}
.search-input {
  width: 100%; padding: 1.1rem 3.5rem 1.1rem 1.4rem;
  font-size: 1.1rem; border: none; border-radius: 12px;
  background: var(--white); color: var(--dark);
  outline: none; font-family: var(--font-body);
}
.search-close {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer;
}

/* Mobile hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px; cursor: pointer;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px; transition: var(--trans);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── BREADCRUMB ── */
.breadcrumb-wrap {
  background: var(--ivory-dk); border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
}
.breadcrumb {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; color: var(--text-muted);
}
.breadcrumb a { color: var(--sage); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--brown); }
.breadcrumb svg { width: 12px; height: 12px; color: var(--border); }
.breadcrumb-icon { width: 14px; height: 14px; color: var(--sage); }

/* ── HERO ── */
.hero {
  position: relative; min-height: 90svh;
  background: linear-gradient(160deg, #F5F0E6 0%, #EAE0C8 40%, #D4C9A8 100%);
  overflow: hidden; display: flex; align-items: center;
}
.hero-leaves {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.leaf {
  position: absolute; width: var(--sz, 40px); height: var(--sz, 40px);
  opacity: 0; animation: leafFall var(--dur, 8s) var(--delay, 0s) linear infinite;
}
@keyframes leafFall {
  0% { transform: translateY(-60px) rotate(0deg) translateX(0); opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.4; }
  100% { transform: translateY(100vh) rotate(360deg) translateX(var(--dx, 40px)); opacity: 0; }
}
.hero-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center; padding: 4rem 0;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(74,124,89,0.12); color: var(--sage);
  border: 1px solid rgba(74,124,89,0.25);
  padding: 0.35rem 1rem; border-radius: 50px; font-size: 0.78rem;
  font-weight: 600; letter-spacing: 0.06em; margin-bottom: 1.2rem;
}
.hero-badge svg { width: 14px; height: 14px; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.8rem);
  color: var(--dark); line-height: 1.12; font-weight: 700;
  margin-bottom: 0.5rem;
}
.hero-title-ta {
  font-family: var(--font-tamil);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  color: var(--brown); line-height: 1.3; font-weight: 600;
  margin-bottom: 1.2rem;
}
.hero-sub {
  font-size: 1.05rem; color: var(--text-muted); line-height: 1.75;
  max-width: 480px; margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2rem; margin-top: 2.5rem; flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-num {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  color: var(--sage); line-height: 1;
}
.hero-stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.2rem; }
.hero-visual { position: relative; }
.hero-img-wrap {
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(28,43,26,0.2);
  aspect-ratio: 4/5; position: relative;
}
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-badge {
  position: absolute; bottom: 1.5rem; left: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,0.95); border-radius: 12px;
  padding: 1rem 1.2rem; backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 1rem;
}
.hero-img-badge-icon { font-size: 2rem; }
.hero-img-badge-text strong { display: block; font-size: 0.88rem; color: var(--dark); font-weight: 700; }
.hero-img-badge-text span { font-size: 0.75rem; color: var(--text-muted); }

/* ── FEATURES STRIP ── */
.features-strip {
  background: var(--dark); padding: 2rem 0;
}
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255,255,255,0.1);
}
.feature-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.2rem 1.5rem; background: var(--dark);
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(200,168,75,0.15); display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.feature-icon svg { width: 22px; height: 22px; color: var(--gold); }
.feature-text strong { display: block; font-size: 0.88rem; color: var(--white); font-weight: 600; }
.feature-text span { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

/* ── CATEGORY TABS ── */
.category-tabs {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.cat-tab {
  padding: 0.5rem 1.3rem; border-radius: 50px; font-size: 0.85rem;
  font-weight: 500; border: 2px solid var(--border); background: transparent;
  color: var(--text-muted); cursor: pointer; transition: var(--trans);
}
.cat-tab:hover, .cat-tab.active {
  background: var(--sage); color: var(--white); border-color: var(--sage);
}

/* ── BOOK CARDS ── */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}
.book-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  transition: var(--trans); cursor: pointer;
}
.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px var(--shadow);
  border-color: var(--sage-lt);
}
.book-cover {
  aspect-ratio: 2/3; background: var(--ivory-dk);
  overflow: hidden; position: relative;
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.book-card:hover .book-cover img { transform: scale(1.05); }
.book-badge {
  position: absolute; top: 0.6rem; left: 0.6rem;
  background: var(--sage); color: var(--white);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem; border-radius: 4px; text-transform: uppercase;
}
.book-badge.new { background: var(--gold); color: var(--dark); }
.book-badge.sale { background: #E05252; }
.book-info { padding: 1rem; }
.book-category { font-size: 0.7rem; color: var(--sage); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.3rem; }
.book-title { font-family: var(--font-tamil); font-size: 0.92rem; font-weight: 600; color: var(--dark); line-height: 1.4; margin-bottom: 0.3rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book-author { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.book-price { display: flex; align-items: center; gap: 0.6rem; }
.book-price-now { font-weight: 700; color: var(--sage-dk); font-size: 0.95rem; }
.book-price-old { font-size: 0.8rem; color: var(--text-muted); text-decoration: line-through; }
.book-price-off { font-size: 0.72rem; background: #FEF3C7; color: #92400E; padding: 0.1rem 0.4rem; border-radius: 4px; font-weight: 600; }
.book-buy-btn {
  width: 100%; margin-top: 0.8rem; padding: 0.6rem;
  background: var(--sage); border: 1px solid var(--sage);
  border-radius: 6px; font-size: 0.82rem; font-weight: 700;
  color: var(--white); transition: var(--trans); display: flex;
  align-items: center; justify-content: center; gap: 0.4rem;
}
.book-buy-btn:hover { background: var(--sage-dk); border-color: var(--sage-dk); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(74,124,89,0.3); }
.book-buy-btn svg { width: 15px; height: 15px; }
.book-buy-btn.disabled { background: var(--ivory-dk); border-color: var(--border); color: var(--text-muted); cursor: not-allowed; }
.book-buy-btn.disabled:hover { transform: none; box-shadow: none; }

/* ── EVENTS ── */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.event-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden; transition: var(--trans);
  display: flex; flex-direction: column;
}
.event-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px var(--shadow); }
.event-img { aspect-ratio: 16/9; overflow: hidden; background: var(--ivory-dk); }
.event-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.event-card:hover .event-img img { transform: scale(1.05); }
.event-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.event-date-row { display: flex; align-items: center; gap: 0.5rem; }
.event-date-badge {
  background: var(--gold); color: var(--dark);
  font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.7rem;
  border-radius: 4px; display: flex; align-items: center; gap: 0.3rem;
}
.event-date-badge svg { width: 12px; height: 12px; }
.event-type { font-size: 0.7rem; color: var(--sage); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.event-title { font-family: var(--font-tamil); font-size: 1rem; font-weight: 600; color: var(--dark); line-height: 1.4; }
.event-location { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--text-muted); }
.event-location svg { width: 13px; height: 13px; color: var(--sage); flex-shrink: 0; }
.event-footer { padding: 1rem 1.2rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }

/* ── MEMBERS ── */
.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.member-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: var(--trans); text-align: center;
}
.member-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px var(--shadow); }
.member-photo-wrap { position: relative; }
.member-photo {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  background: var(--ivory-dk);
}
.member-photo-placeholder {
  width: 100%; aspect-ratio: 1/1; background: linear-gradient(135deg, var(--ivory-dk), var(--sage-lt));
  display: flex; align-items: center; justify-content: center;
}
.member-photo-placeholder svg { width: 60px; height: 60px; color: rgba(255,255,255,0.6); }
.member-role-badge {
  position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
  background: var(--sage); color: var(--white);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.25rem 0.9rem; border-radius: 50px;
  white-space: nowrap;
}
.member-info { padding: 1.5rem 1rem 1rem; }
.member-name { font-family: var(--font-tamil); font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.2rem; }
.member-name-en { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.member-bio { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }
.member-socials { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.8rem; padding-bottom: 1rem; }
.social-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: var(--trans); background: transparent;
}
.social-btn:hover { background: var(--sage); color: var(--white); border-color: var(--sage); }
.social-btn svg { width: 14px; height: 14px; }

/* ── TESTIMONIALS ── */
.testimonials-track { display: flex; gap: 1.5rem; overflow: hidden; }
.testimonial-card {
  min-width: 340px; max-width: 340px; flex-shrink: 0;
  background: var(--white); border-radius: var(--radius);
  padding: 1.8rem; border: 1px solid var(--border);
  position: relative;
}
.quote-mark {
  font-family: var(--font-display); font-size: 4rem; line-height: 1;
  color: var(--gold); opacity: 0.4; position: absolute; top: 0.5rem; left: 1.2rem;
}
.testimonial-text {
  font-size: 0.92rem; color: var(--text); line-height: 1.7; margin: 1.5rem 0 1rem; font-style: italic;
  overflow-wrap: break-word; word-break: break-word; hyphens: auto;
}
.testimonial-author { display: flex; align-items: center; gap: 0.8rem; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  background: var(--ivory-dk); flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: 0.88rem; color: var(--dark); }
.testimonial-loc { font-size: 0.75rem; color: var(--text-muted); }
.stars { color: var(--gold); font-size: 0.85rem; margin-bottom: 0.3rem; }

/* ── NEWSLETTER ── */
.newsletter-section {
  background: linear-gradient(135deg, var(--sage-dk) 0%, var(--dark) 100%);
  padding: var(--gap) 0; position: relative; overflow: hidden;
}
.newsletter-section::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(200,168,75,0.08); pointer-events: none;
}
.newsletter-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}
.newsletter-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--white); margin-bottom: 0.8rem; }
.newsletter-sub { color: rgba(255,255,255,0.65); font-size: 0.95rem; line-height: 1.6; }
.newsletter-form { display: flex; flex-direction: column; gap: 0.8rem; }
.form-row { display: flex; gap: 0.6rem; }
.form-input {
  flex: 1; padding: 0.8rem 1.2rem; border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.1);
  color: var(--white); font-family: var(--font-body); font-size: 0.9rem;
  outline: none; transition: border-color 0.2s;
}
.form-input::placeholder { color: rgba(255,255,255,0.45); }
.form-input:focus { border-color: var(--gold); }
.form-note { font-size: 0.75rem; color: rgba(255,255,255,0.4); text-align: center; }

/* ── GENERIC SITE FORM FIELDS (contact, submission, event registration) ── */
.site-form-group { margin-bottom: 1rem; }
.site-form-label { display: block; font-size: 0.82rem; font-weight: 500; margin-bottom: 0.35rem; color: var(--dark); }
.site-form-label .req { color: #E05252; }
.site-form-control {
  width: 100%; padding: 0.65rem 0.9rem; border: 1px solid var(--border);
  border-radius: 6px; font-size: 0.88rem; font-family: var(--font-body);
  color: var(--text); background: var(--white); outline: none;
  transition: border-color 0.2s;
}
.site-form-control:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(74,124,89,0.1); }
.site-form-control[aria-invalid="true"] { border-color: #E05252; }
textarea.site-form-control { resize: vertical; min-height: 100px; }
.field-error { color: #E05252; font-size: 0.78rem; margin-top: 0.3rem; display: none; }

/* ── CAPTCHA WIDGET ── */
.captcha-wrap {
  display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
  background: var(--ivory-dk); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.8rem 1rem; margin-bottom: 1rem;
}
.captcha-question {
  font-family: var(--font-mono, monospace); font-weight: 700; font-size: 1.05rem;
  color: var(--dark); background: var(--white); border: 1px dashed var(--border);
  border-radius: 6px; padding: 0.4rem 0.9rem; min-width: 90px; text-align: center;
  user-select: none;
}
.captcha-refresh {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--sage); transition: var(--trans); flex-shrink: 0;
}
.captcha-refresh:hover { background: var(--sage); color: var(--white); border-color: var(--sage); }
.captcha-refresh svg { width: 16px; height: 16px; }
.captcha-input {
  flex: 1; min-width: 100px; padding: 0.5rem 0.8rem; border: 1px solid var(--border);
  border-radius: 6px; font-size: 0.9rem; outline: none; transition: border-color 0.2s;
}
.captcha-input:focus { border-color: var(--sage); }
.captcha-label { font-size: 0.72rem; color: var(--text-muted); width: 100%; margin-bottom: 0.2rem; }

/* ── BLOG SECTION ── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.blog-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden; transition: var(--trans);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px var(--shadow); }
.blog-img { aspect-ratio: 16/9; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.blog-card:hover .blog-img img { transform: scale(1.06); }
.blog-body { padding: 1.3rem; }
.blog-tag { display: inline-block; background: rgba(74,124,89,0.1); color: var(--sage); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.2rem 0.7rem; border-radius: 4px; margin-bottom: 0.6rem; }
.blog-title { font-family: var(--font-tamil); font-size: 1rem; font-weight: 600; color: var(--dark); line-height: 1.45; margin-bottom: 0.5rem; }
.blog-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.75rem; color: var(--text-muted); }
.blog-meta svg { width: 12px; height: 12px; }

/* ── FOOTER ── */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.75); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 3rem; }
.footer-brand .logo-img { height: 50px; filter: brightness(10); margin-bottom: 1rem; }
.footer-tagline { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.55); margin-bottom: 1.2rem; }
.footer-socials { display: flex; gap: 0.6rem; }
.footer-social {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55); transition: var(--trans);
}
.footer-social:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); }
.footer-social svg { width: 15px; height: 15px; }
.footer-heading { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.88rem; color: rgba(255,255,255,0.6); transition: color 0.2s; display: flex; align-items: center; gap: 0.4rem; }
.footer-links a:hover { color: var(--gold); }
.footer-links a svg { width: 12px; height: 12px; opacity: 0.5; }
.footer-contact-item { display: flex; gap: 0.8rem; margin-bottom: 0.8rem; align-items: flex-start; }
.footer-contact-item svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.footer-contact-item span { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.5; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 1.5rem 0;
  margin-top: 3rem; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.8rem; color: rgba(255,255,255,0.35); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--gold); }

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 100;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--sage); color: var(--white); border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(74,124,89,0.4);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: var(--trans); cursor: pointer;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--sage-dk); transform: translateY(-2px); }
.back-to-top svg { width: 18px; height: 18px; }

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 500;
  background: var(--dark); padding: 1rem var(--pad-x);
  transform: translateY(100%); transition: transform 0.4s var(--ease);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2); border-top: 2px solid var(--sage);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; max-width: var(--max-w); margin: 0 auto; }
.cookie-text { font-size: 0.85rem; color: rgba(255,255,255,0.75); flex: 1; }
.cookie-text a { color: var(--gold); text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }

/* ── SECTIONS ── */
.alt-section { background: var(--ivory-dk); }
.green-accent-section { background: linear-gradient(135deg, rgba(74,124,89,0.06), rgba(74,124,89,0.02)); }

/* ── PARTNER LOGOS ── */
.partners-strip { padding: 2rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.partners-inner { display: flex; align-items: center; gap: 3rem; justify-content: center; flex-wrap: wrap; }
.partner-logo { opacity: 0.45; transition: opacity 0.2s; filter: grayscale(100%); }
.partner-logo:hover { opacity: 0.8; filter: none; }

/* ── AWARDS / COUNTERS ── */
.counters-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.counter-item { background: var(--white); padding: 2rem; text-align: center; }
.counter-num { font-family: var(--font-display); font-size: 2.8rem; font-weight: 700; color: var(--sage); line-height: 1; }
.counter-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.4rem; }
.counter-sublabel { font-family: var(--font-tamil); font-size: 0.75rem; color: var(--text-muted); }

/* ── STICKY CTA BAR (mobile) ── */
.sticky-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 400;
  background: var(--white); padding: 0.8rem var(--pad-x);
  box-shadow: 0 -4px 16px var(--shadow); border-top: 1px solid var(--border);
  gap: 0.8rem;
}

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(160deg, var(--ivory-dk) 0%, var(--ivory) 100%);
  padding: 3rem 0; border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(74,124,89,0.08), transparent);
  pointer-events: none;
}
.page-hero-content { max-width: 680px; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem); color: var(--dark); margin-bottom: 0.6rem; }
.page-hero-ta { font-family: var(--font-tamil); font-size: clamp(1.3rem, 3vw, 2rem); color: var(--brown); margin-bottom: 0.8rem; }
.page-hero p { font-size: 1rem; color: var(--text-muted); line-height: 1.7; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .counters-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .main-nav {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white); flex-direction: column; justify-content: flex-start;
    padding: 5rem 2rem 2rem; overflow-y: auto; z-index: 199;
  }
  .main-nav.open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; width: 100%; }
  .nav-link { padding: 1rem 0; font-size: 1rem; border-bottom: 1px solid var(--border); width: 100%; }
  .nav-link::after { display: none; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 1rem; }
  .hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-stats { gap: 1.2rem; }
  .sticky-cta { display: flex; }
  .top-bar-left .top-bar-contact:not(:first-child) { display: none; }
  .counters-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .form-row { flex-direction: column; }
  .hero-cta .btn:nth-child(2) { display: none; }
  .counters-grid { grid-template-columns: 1fr; }
}

/* ── ANIMATIONS ── */
.fade-in { animation: fadeIn 0.6s var(--ease) both; }
.fade-up { animation: fadeUp 0.6s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── LANGUAGE-SPECIFIC ── */
[data-lang="ta"] .lang-en { display: none; }
[data-lang="en"] .lang-ta { display: none; }
[data-lang="ta"] .lang-ta { display: block; }
[data-lang="en"] .lang-en { display: block; }
.lang-en, .lang-ta { display: none; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ivory-dk); }
::-webkit-scrollbar-thumb { background: var(--sage-lt); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--sage); }

/* SELECTION */
::selection { background: rgba(74,124,89,0.2); color: var(--dark); }

/* FOCUS */
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 4px; }
