@font-face {
  font-family: "TSCComic";
  src: url("assets/fonts/TSCComic.ttf") format("truetype");
  font-display: swap;
}

/*
 * Murugan Thiruvarut Sangam — Homepage
 * Clean production stylesheet
 *
 * Visual language:
 *   saffron-orange fixed navigation
 *   elegant lemon-yellow sectional gradients
 *   warm brown typography
 *   gold / vermilion accents
 *   image-based kolam dividers
 *   restrained Vel + natural-colour Mayil Peeli ornaments
 *
 * Colour roles are defined centrally in :root and reused throughout
 * the stylesheet so the visual system remains easy to refine.
 *
 * This stylesheet is intentionally self-contained. The legacy site's
 * style.css is not required by the homepage.
 */

/* =========================================================
   1. FOUNDATION
   ========================================================= */
:root {

  /* =========================================================
     MTS COLOUR PALETTE
     Warm devotional palette — saffron, lemon, gold and brown
     ========================================================= */

  /* ---------------------------------------------------------
     TEXT — warm browns
     --------------------------------------------------------- */

  /* General text colour */
  --ink: #30291f;

  /* Strong warm brown for headings and prominent text */
  --text-dark: #4a3420;

  /* Secondary body text */
  --ink-soft: rgba(48, 41, 31, .78);

  /* Subtle / supporting text */
  --ink-faint: rgba(48, 41, 31, .58);


  /* ---------------------------------------------------------
     LIGHT SURFACES — ivory, cream and lemon
     --------------------------------------------------------- */

  /* Warm ivory — light text and gentle surfaces */
  --ivory: #fff8df;

  /* Very light warm surface */
  --cream: #fffaf0;

  /* Main lemon family */
  --lemon: #fff1a8;

  /* Softer lemon for subtle variation */
  --lemon-soft: #fff6c9;


  /* ---------------------------------------------------------
     SAFFRON / ORANGE — primary MTS identity
     --------------------------------------------------------- */

  /* Main saffron-orange */
  --saffron: #d98525;

  /* Light saffron used in gradients */
  --saffron-light: #efc06f;

  /* Deeper saffron for stronger emphasis */
  --saffron-deep: #c56d1d;


  /* ---------------------------------------------------------
     GOLD — devotional and ornamental accent
     --------------------------------------------------------- */

  /* Main gold — kolam, borders, dividers and accents */
  --gold: #b88918;

  /* Softer gold for secondary accents */
  --gold-soft: rgba(184, 137, 24, .72);

  /* Faint gold for delicate borders */
  --gold-faint: rgba(184, 137, 24, .25);


  /* ---------------------------------------------------------
     VERMILION / TERRACOTTA — action colour
     --------------------------------------------------------- */

  /* Primary CTA / button colour */
  --vermilion: #d96b45;

  /* Deeper terracotta for hover and emphasis */
  --vermilion-deep: #b95132;

  /* Soft terracotta for subtle backgrounds */
  --vermilion-soft: rgba(217, 107, 69, .16);


  /* ---------------------------------------------------------
     NAVIGATION
     --------------------------------------------------------- */

  /* Active navigation item */
  --active-nav: #8f3f2b;

  /* Navigation text on the saffron header */
  --header-text: #fff8e7;

  /* Secondary navigation / brand text */
  --header-text-soft: rgba(63, 38, 11, .68);


  /* ---------------------------------------------------------
     DARK SUPPORTING SURFACES
     Retained for footer and archive material
     --------------------------------------------------------- */

  /* Deep blue retained as a supporting devotional colour */
  --teal-deep: #082f4a;

  /* Darker blue for deep surfaces */
  --teal-dark: #061f34;

  /* Mid blue for archive gradients */
  --teal-mid: #0d4667;

  /* Light text on dark surfaces */
  --text-on-dark: var(--header-text);

  /* Softer light text on dark surfaces */
  --text-on-dark-soft: rgba(247, 240, 223, .84);

  /* Highlight text on dark surfaces */
  --text-highlight: var(--gold);

  /* ---------------------------------------------------------
     Warm Page Background
     For page BG
     --------------------------------------------------------- */
  --page-bg-top: #f2e4a1;
  --page-bg-mid: #e9d68a;
  --page-bg-bottom: #ddc66f;

  /* ---------------------------------------------------------
     LAYOUT / EFFECTS
     --------------------------------------------------------- */

  /* Maximum content width */
  --content-width: 1340px;

  /* Warmed common shadow */
  --shadow: 0 18px 40px rgba(48, 41, 31, .20);

  /* Tamil display typography */
  --font-tamil-display: "Noto Serif Tamil", serif;
}


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);

  background: linear-gradient(
    to bottom,
    var(--page-bg-top) 0%,
    var(--page-bg-mid) 52%,
    var(--page-bg-bottom) 100%
  );
 
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  padding-top: 96px;
}

a {
  color: inherit;
}

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

.container {
  width: min(var(--content-width), calc(100% - 5rem));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 1000;
  padding: .55rem .8rem;
  color: #fff;
  background: #063b43;
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* =========================================================
   2. HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  /* Warm saffron-orange inspired by the temple curtain reference:
     darker at the bottom, lighter toward the top. */
  background: linear-gradient(
    to top,
    var(--saffron-light) 0%,
    #e29a42 52%,
    var(--saffron) 100%
  );
  border-bottom: 1px solid rgba(122, 70, 14, .42);
  box-shadow:
    0 2px 0 rgba(255, 247, 218, .20) inset,
    0 8px 22px rgba(75, 38, 8, .34),
    0 1px 0 rgba(80, 40, 5, .42);
  backdrop-filter: blur(8px);
}

.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(255, 255, 255, .045);
  font-size: 1.35rem;
  line-height: 1;
}

.brand-text {
  display: grid;
  gap: .05rem;
}

.brand-text strong {
  font-family: TSCComic, "Noto Sans Tamil", "Segoe UI", sans-serif;
  font-size: 1.02rem;
  line-height: 1.15;
  letter-spacing: .01em;
  white-space: nowrap;
  color: var(--text-dark);
}

.brand-text span {
  color: var(--header-text-soft);
  font-size: .68rem;
  line-height: 1.15;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: clamp(.35rem, .75vw, .8rem);
  min-width: 0;
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: .32rem .28rem;
  color: var(--header-text);
  font-size: .79rem;
  font-weight: 650;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 10px rgba(76, 39, 7, .28);
  white-space: nowrap;
  border-radius: 999px;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.primary-nav .nav-ta {
  display: block;
  font-family: TSCComic, "Noto Sans Tamil", "Segoe UI", sans-serif;
  font-size: .80rem;
  line-height: 1.15;
  white-space: nowrap;
}

.primary-nav .nav-en {
  display: block;
  color: var(--header-text-soft);
  font-size: .56rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: .01em;
  white-space: nowrap;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: .55rem;
  right: .55rem;
  bottom: .12rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  background: rgba(255, 255, 255, .055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 7px rgba(0,0,0,.12);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.primary-nav a[aria-current="page"] {
  color: var(--active-nav);
}

.primary-nav a[aria-current="page"] .nav-en {
  color: var(--active-nav);
}

.primary-nav .nav-donate {
  margin-left: .15rem;
  padding: .42rem .72rem;
  color: #fff;
  background: linear-gradient(to bottom, var(--vermilion), var(--vermilion-deep));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    0 7px 16px rgba(92, 38, 27, .28),
    0 1px 0 rgba(0,0,0,.18);
}

.primary-nav .nav-donate::after {
  display: none;
}

/* =========================================================
   3. GLOBAL TYPOGRAPHY + CONTROLS
   ========================================================= */
h1,
h2,
h3,
strong {
  font-family: Georgia, "Times New Roman", serif;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: .7rem;
  color: var(--text-dark);
  font-size: clamp(1.65rem, 2.2vw, 2.15rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -.015em;
}

h3 {
  margin-bottom: .42rem;
  color: var(--text-dark);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.3;
}

.section {
  position: relative;
  padding: 5.2rem 0 6.4rem;
  overflow: hidden;
}

.section-kicker {
  margin: 0 0 .45rem;
  color: var(--vermilion-deep);
  font-size: 1rem;
  font-weight: 1000;
  line-height: 1.4;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.eyebrow,
.date {
  margin: 0 0 .45rem;
  color: var(--vermilion-deep);
  font-size: 1rem;
  font-weight: 1000;
  line-height: 1.4;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 430px;
}

.section-heading > p:last-child {
  max-width: 390px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: .94rem;
  line-height: 1.78;
}

.section-heading::after {
  content: "";
  display: block;
  width: 58px;
  height: 1px;
  margin-top: 1rem;
  background: linear-gradient(90deg, var(--vermilion), var(--gold));
}

.explore-heading::after {
  display: none;
}

.news-heading::after {
  display: none;
}

.text-link,
.explore-item em,
.resource-item em {
  display: inline-block;
  color: var(--gold);
  font-size: .79rem;
  font-style: normal;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: var(--gold-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: .18rem;
}

.text-link:hover,
.text-link:focus-visible,
.explore-item:hover em,
.resource-item:hover em {
  color: #fff0b5;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .55rem 1rem;
  border: 1px solid rgba(184, 137, 24, .68);
  border-radius: 999px;
  font-size: .77rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--vermilion);
  border-color: var(--vermilion);
}

.button-secondary {
  color: var(--text-dark);
  background: rgba(255, 248, 223, .42);
  border-color: var(--gold-soft);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(184, 137, 24, .12);
  border-color: var(--gold);
}

/* =========================================================
   TAMIL TYPOGRAPHY
   ========================================================= */

/* ---------- Display / Hero ---------- */

.type-ta-display {
  font-family: var(--font-tamil-display);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: normal;
}


/* ---------- Title ---------- */

.type-ta-title {
  font-family: var(--font-tamil-display);
  font-size: clamp(1.75rem, 2.35vw, 2.3rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: normal;
}


/* ---------- Subtitle ---------- */

.type-ta-subtitle {
  font-family: var(--font-tamil-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: normal;
}


/* ---------- Kicker / Eyebrow ---------- */

.type-ta-kicker {
  font-family: var(--font-tamil-display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: normal;
  color: var(--vermilion-deep);
}


/* ---------- Body / Text ---------- */

.type-ta-text {
  font-family: var(--font-tamil-display);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: normal;
}


/* ---------- Attribute / Caption ---------- */

.type-ta-attribute {
  font-family: var(--font-tamil-display);
  font-size: .82rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: normal;
}


/* ---------- Verse ---------- */

.type-ta-verse {
  font-family: var(--font-tamil-display);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: normal;
}


/* ---------- Link ---------- */

.type-ta-link {
  font-family: var(--font-tamil-display);
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: normal;
}

/* =========================================================
   4. SECTION BACKGROUNDS
   Elegant lemon-yellow theme

   Warm, muted lemon tones are deliberately used instead of
   bright pure yellow. Each section has its own subtle shift
   while remaining part of one coherent palette.
   ========================================================= */
.hero,
.about-section,
.explore-section,
.news-section,
.tradition-section,
.donation-section,
.resources-section {
  background-image: linear-gradient(
    to bottom,
    var(--section-top) 0%,
    var(--section-mid) 52%,
    var(--section-bottom) 100%
  );
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* HERO — warm elegant lemon */
.hero {
  --section-top: #f4e9ad;
  --section-mid: #eee09a;
  --section-bottom: #e5d27e;
}

/* ABOUT — slightly creamy lemon */
.about-section {
  --section-top: #f2e6aa;
  --section-mid: #eadb92;
  --section-bottom: #dfcd78;
}

/* EXPLORE — gentle golden-lemon */
.explore-section {
  --section-top: #f0e3a3;
  --section-mid: #e7d78b;
  --section-bottom: #dcc86f;
}

/* PROGRAMMES — clean muted lemon */
.news-section {
  --section-top: #f3e7aa;
  --section-mid: #eadd96;
  --section-bottom: #e1cf7b;
}

/* TRADITION — warmer temple lemon */
.tradition-section {
  --section-top: #efe1a0;
  --section-mid: #e5d384;
  --section-bottom: #d9c66d;
}

/* DONATION — slightly richer lemon-gold */
.donation-section {
  --section-top: #f2e4a1;
  --section-mid: #e9d68a;
  --section-bottom: #ddc66f;
}

/* RESOURCES — cooler creamy lemon */
.resources-section {
  --section-top: #f1e6ad;
  --section-mid: #e8da96;
  --section-bottom: #ddcd7d;
}

/* Keep section content above decorative layers. */
.hero-inner,
.section > .container,
.section .container {
  position: relative;
  z-index: 2;
}

/* =========================================================
   5. TITLE SYSTEM — VEL + MAYIL PEELI
   ========================================================= */
.title-block {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, auto);
  column-gap: .85rem;
  align-items: start;
  width: fit-content;
  max-width: 100%;
  isolation: isolate;
}

.title-content {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.title-block .title-vel {
  position: relative;
  z-index: 1;
  display: flex;
  width: 32px;
  height: 108px;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: .56;
}

.explore-heading .title-block .title-vel::after {
  content: "";

  position: absolute;

  left: 50%;
  bottom: -0.8rem;

  width: 48px;
  height: 1px;

  transform: translateX(-50%);

  background: var(--gold);
  opacity: .7;
}


.title-block .title-vel img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  filter: saturate(.78) brightness(.94);
}

/*
 * The feather is centred on the actual title block — not on the whole
 * section. This prevents the previous "floating below the title" effect.
 * The natural-colour feather is deliberately transparent enough that the
 * title remains the primary visual element.
 */
.title-block::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 58%;
  width: clamp(300px, 32vw, 480px);
  aspect-ratio: 1487 / 981;
  transform: translate(-50%, -50%) rotate(-4deg);
  background: url("assets/images/mayil-peeli.webp?v=39") no-repeat center / contain;
  opacity: .18;
  pointer-events: none;
  z-index: 0;
}

/* Hero title block is slightly larger, while remaining restrained. */
.hero-title-block {
  grid-template-columns: 32px minmax(0, 1fr);
}

.hero-title-block .title-vel {
  width: 32px;
  height: 126px;
  opacity: .54;
}

.hero-title-block::before {
  width: clamp(360px, 38vw, 540px);
  opacity: .18;
}

/* The title text itself always sits above both ornaments. */
.title-block .section-kicker,
.title-block .eyebrow,
.title-block h1,
.title-block h2,
.title-block .hero-tamil {
  position: relative;
  z-index: 2;
}

/* =========================================================
   6. HERO
   ========================================================= */
.hero {
  min-height: 0;
  padding: 4.2rem 0 5.4rem;
  position: relative;
}

.hero-inner {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 625px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.hero-copy {
  max-width: 625px;
  padding-left: 1.5vw;
  align-self: start;
}

.hero h1 {
  max-width: none;
  margin-bottom: .2rem;
  color: var(--text-dark);
  font-size: clamp(2rem, 2.6vw, 2.6rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.018em;
  white-space: nowrap;
}

.hero-tamil {
  margin: .1rem 0 .8rem;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2.05vw, 1.72rem);
  line-height: 1.25;
}

.hero-verse {
  margin: 1.05rem 0 1.1rem;
  color: var(--text-dark);
  font-family: Georgia, "Times New Roman", serif;
}

.hero-verse p {
  margin: 0;
}

.hero-verse-attribution {
  margin-top: 0;
  color: var(--gold);
  font-size: .9rem;
  text-align: right;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 1.35rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.82;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.hero-aside {
  align-self: start;
  display: flex;
  justify-content: center;
}

.hero-figure {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: min(680px, 100%);
  height: auto;
  min-height: 0;
  margin: 0 -3vw 0 auto;
  transform: rotate(-.6deg);
}

.hero-photo {
  display: block;
  flex: none;
  width: min(640px, 100%);
  max-width: 640px;
  height: auto;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

/*.hero-figure figcaption {
  position: relative;
  right: auto;
  bottom: auto;
  width: min(400px, 78%);
  margin: 1.15rem auto 0;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(184, 137, 24, .25);
  border-radius: 22px;
  color: var(--ivory);
  background: #6a5327;
  box-shadow: 0 14px 30px rgba(48, 41, 31, .22);
  backdrop-filter: none;
  z-index: 3;
}

.hero-figure figcaption strong {
  display: block;
  margin-bottom: .3rem;
  color: var(--ivory);
  font-family: TSCComic, "Noto Sans Tamil", Georgia, serif;
  font-size: 1rem;
  line-height: 1.35;
}

.hero-figure figcaption span {
  display: block;
  color: var(--ivory);
  font-size: .72rem;
  line-height: 1.55;
}*/

/* Verse card beneath the hero image. */
/* Verse card beneath the hero image. */
.hero-verse-card {
  position: relative;
  width: min(640px, 100%);
  max-width: 640px;
  box-sizing: border-box;
  margin: 1.15rem auto 0;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(232, 217, 181, 0.251);
  border-radius: 22px;
  color: var(--ink);
  background: #e9d68a;
  box-shadow: 0 14px 30px rgba(48, 41, 31, .18);
  z-index: 3;
}

.hero-verse-card .type-ta-verse {
  width: 100%;
  margin: 0;
  color: var(--ink);
  white-space: pre-wrap;
}

.hero-verse-secondary {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gold-faint);
}

.hero-verse-secondary p {
  margin: 0;
}


/* Keep the kolam at the actual bottom edge of the hero section,
   rather than letting it sit in the content area. */
.hero .section-divider {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
}

/* =========================================================
   7. KOLAM DIVIDERS
   Thin artwork-based divider
   ========================================================= */
.header-divider,
.section-divider,
.footer-thread {
  position: relative;
  width: 100%;
  height: 14px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
  background: transparent;
}

.kolam-divider-image {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 14px;
  transform: translateY(-50%);
  background-image: url("assets/images/kolam-divider.webp?v=43");
  background-repeat: repeat-x;
  background-position: center center;
  background-size: 382px 14px;
}

.hero .section-divider,
.section .section-divider {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 8;
}

/* =========================================================
   8. ABOUT
   ========================================================= */
.about-section {
  padding-top: 4.3rem;
  padding-bottom: 6.8rem;
  overflow: visible;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(240px, .82fr) minmax(0, 1.18fr);
  column-gap: 3rem;
  align-items: start;
}

.about-copy {
  max-width: 545px;
}

.about-copy p:not(.section-kicker) {
  margin-bottom: 1rem;
  color: var(--ink-soft);
  font-size: .94rem;
  line-height: 1.82;
  text-align: justify;
}




/* =========================================================
   ABOUT — RELATED LINKS & OBJECTIVE POPOVER
   ========================================================= */
.about-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .7rem;
  margin-top: 1.35rem;
}

.about-actions .text-link {
  margin: 0;
}

.about-objective {
  position: relative;
  flex: none;
}

.about-objective-trigger {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--active-nav);
  cursor: pointer;
}

.about-objective-trigger:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.about-objective-popover {
  position: absolute;
  left: 0;
  top: auto;
  bottom: calc(100% + .7rem);
  z-index: 20;
  width: min(500px, calc(100vw - 2rem));
  padding: 1rem 1.15rem;
  border: 1px solid rgba(184, 137, 24, .38);
  border-radius: 16px;
  background: rgba(255, 248, 223, .97);
  box-shadow: 0 14px 30px rgba(48, 41, 31, .18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-5px);
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.about-objective:hover .about-objective-popover,
.about-objective:focus-within .about-objective-popover,
.about-objective.is-open .about-objective-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.about-objective-popover p {
  margin: 0;
  color: var(--text-dark);
  text-align: left;
}

/* =========================================================
   ABOUT — HISTORICAL PHOTOGRAPHS
   ========================================================= */

.history-figures {
  width: min(820px, 100%);
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.5rem;
  align-items: start;
}

.history-figure {
  width: min(820px, 100%);
  margin: 0;
}

.history-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.history-figure figcaption {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  margin-top: .65rem;
  padding: 0 .35rem;
  color: var(--text-dark);
  text-align: left;
}

.history-figure figcaption strong {
  font-size: .9rem;
  line-height: 1.4;
}

.history-figure figcaption span {
  font-size: .78rem;
  line-height: 1.45;
  color: var(--ink-soft);
}


/* ---------------------------------------------------------
   HISTORICAL STAGGER
   --------------------------------------------------------- */

/* 1955 — top-left */
.history-figure-1955 {
  align-self: start;
}

/* 1978 — bottom-right */
.history-figure-1978 {
  justify-self: end;
  transform: translateY(165px);
}

/* =========================================================
   9. SHARED SECTION SPLIT
   ========================================================= */
.section-split {
  display: grid;
  grid-template-columns: minmax(240px, .72fr) minmax(0, 1.48fr);
  column-gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.section-split > .section-heading {
  margin-left: 0;
  max-width: 430px;
  padding-top: .15rem;
}

.section-split > .section-heading h2 {
  max-width: 420px;
}

.section-split > .section-heading > p:last-child {
  max-width: 390px;
}

.explore-section .section-split {
  column-gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

/* =========================================================
   10. EXPLORE — ARUTCHUVADUGAL
   ========================================================= */
.explore-section {
  padding-top: 5.4rem;
  padding-bottom: 6.4rem;
}

.explore-links {
  min-height: 0;
  margin-top: .1rem;

  width: 90%;
  margin-left: auto;
  margin-right: auto;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
  column-gap: clamp(2rem, 5vw, 4.5rem);
  row-gap: 3rem;
  align-items: start;
}

.explore-arut-card {
  position: relative;

  display: block;

  min-height: 0;
  margin: 0 !important;
  padding: 0;

  overflow: hidden;

  color: var(--ink);
  text-decoration: none;

  border: 1px solid rgba(184, 137, 24, .30);
  border-radius: 12px;

  background: linear-gradient(
    135deg,
    rgba(255, 249, 225, .78),
    rgba(255, 244, 207, .56)
  );

  box-shadow: 0 5px 16px rgba(72, 57, 25, .07);

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}


/* Image */

.explore-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;

  background: rgba(230, 218, 170, .45);
}


.explore-card-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition: transform .35s ease;
}


/* Text */

.explore-arut-card .item-copy {
  min-width: 0;

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

  gap: 1rem;

  padding: .45rem .8rem;
  font-size: .85rem;
}


.explore-arut-card .item-copy strong {
  color: var(--text-dark);

  font-family: var(--font-tamil-display);
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: normal;
}


.explore-arut-card .item-copy em {
  flex: 0 0 auto;

  margin: 0;

  color: var(--gold);

  font-size: 1rem;
  font-style: normal;
  font-weight: 500;

  text-decoration: none;
  opacity: .72;

  transition:
    transform .2s ease,
    opacity .2s ease;
}


/* Remove the old icon/left stripe */

.explore-arut-card::before {
  display: none;
}


/* Hover */

.explore-arut-card:hover,
.explore-arut-card:focus-visible {
  transform: translateY(-2px);

  border-color: rgba(184, 137, 24, .52);

  box-shadow: 0 10px 24px rgba(72, 57, 25, .11);
}


.explore-arut-card:hover .explore-card-image img,
.explore-arut-card:focus-visible .explore-card-image img {
  transform: scale(1.035);
}


.explore-arut-card:hover .item-copy em,
.explore-arut-card:focus-visible .item-copy em {
  transform: translateX(3px);
  opacity: 1;
}


/* =========================================================
   ARUTCHUVADUGAL — INTRODUCTION
   ========================================================= */

.explore-intro {
  max-width: 430px;
  margin-top: 1.8rem;
}

.explore-intro p {
  margin: 0;

  color: var(--text-dark);

  font-family: var(--font-tamil-display);
  font-size: clamp(1rem, 1.25vw, 1.08rem);
  font-weight: 400;
  line-height: 1.85;

  text-align: justify;
}

.explore-intro-hand {
  margin-top: 1rem;
  text-align: right;
  font-size: 1.55rem;
  line-height: 1;
  opacity: .72;
}


/* ---------- Mobile ---------- */

@media (max-width: 820px) {

  .explore-intro {
    max-width: 100%;
    margin-top: 1.5rem;
  }

  .explore-intro p {
    font-size: 1rem;
    line-height: 1.8;
  }

  .explore-intro-hand {
    margin-top: .9rem;
    padding-right: .5rem;
  }

}



/* =========================================================
   11. NEWS
   ========================================================= */

.news-section {
  padding-top: 5.25rem;
  padding-bottom: 6.5rem;
}

/* ---------------------------------------------------------
   News title separator
   Keep the gold line directly below the title / Vel area.
   --------------------------------------------------------- */

.news-heading .title-block {
  position: relative;
  padding-bottom: 1.25rem;
}

.news-heading .title-block::after {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  margin-top: .9rem;
  background: var(--gold);
}

/* ---------------------------------------------------------
   Right side of the News section

   The outer .section-split already provides:
     left  = title + current programme card
     right = this .news-links

   Within the right side:
     1/3 = current month's programme poster
     2/3 = Past Events
   --------------------------------------------------------- */


/* ---------------------------------------------------------
   News right panel
   40% = Upcoming Bhajanai
   60% = Past Events
   --------------------------------------------------------- */

.news-links {
  min-width: 0;
  min-height: 0;
  margin-top: .1rem;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  column-gap: clamp(1.5rem, 3vw, 3rem);
  align-items: stretch;
}

/* Stretch the two outer News panels to a shared row height. */
.news-section .section-split {
  align-items: stretch;
}

/* Keep the printed-programme preview at its existing height. */
.news-section .news-programme-poster {
  align-self: start;
  min-width: 0;
}

.news-programme-location {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-top: .9rem;
}

.news-programme-field {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  min-width: 0;
}


/* News image for today's or upcoming Bhajanai */


.news-current-programme-image-wrap {
  width: fit-content;
  max-width: 100%;
  margin: .25rem 0 1rem;
  overflow: hidden;
  border: 1px solid rgba(184, 137, 24, .3);
  border-radius: .75rem;
  box-shadow: 0 8px 20px rgba(48, 41, 31, .12);
  background: rgba(184, 137, 24, .04);
}

.news-current-programme-image {
  display: block;
  max-width: 100%;
  max-height: 230px;
  width: auto;
  height: auto;
  margin: 0;
}


/* Bhajanai Ubhayadhaar line */

.news-programme-ubhayadhaar {
  margin: .4rem 0 0;
  color: var(--ink);
  line-height: 1.6;
}

.news-programme-ubhayadhaar strong {
  font-weight: 600;
  display: block;
}

.news-programme-icon {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin-top: .18rem;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.news-programme-venue {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.6;
}

.news-programme-address {
  display: block;
  color: var(--ink);
  line-height: 1.7;
}

.news-programme-mobile {
  display: block;
  color: var(--ink);
  line-height: 1.6;
}

.news-programme-map-link {
  margin-top: .2rem;
  color: var(--gold);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.news-programme-map-link:hover,
.news-programme-map-link:focus-visible {
  color: var(--ink);
}


/* ---------------------------------------------------------
   Current month's programme
   --------------------------------------------------------- */

.news-programme-poster {
  min-width: 0;
}

.news-programme-poster-link {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.news-programme-poster-link img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(184, 137, 24, .25);
  border-radius: .55rem;
  box-shadow: 0 10px 24px rgba(48, 41, 31, .12);
}

.news-programme-poster-title {
  display: block;
  margin-top: .55rem;
  color: var(--ink);
  font-size: .82rem;
  line-height: 1.5;
  text-align: center;
}

.news-programme-poster-link:hover .news-programme-poster-title,
.news-programme-poster-link:focus-visible .news-programme-poster-title {
  color: var(--gold);
}

.news-programme-poster-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 1rem;
  border: 1px solid rgba(184, 137, 24, .24);
  border-radius: .75rem;
  color: var(--ink-soft);
  text-align: center;
  font-family: var(--font-tamil-display);
}

/* ---------------------------------------------------------
   Past Events
   --------------------------------------------------------- */

.news-gallery-preview {
  min-width: 0;
}

.news-gallery-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .65rem;
}

.news-gallery-heading h3 {
  margin: 0;
  font-size: 1.05rem;
}

.news-gallery-grid {
  display: grid;
  gap: .8rem;
  min-width: 0;
}

/* The PHP supplies this class according to the number
   of events actually available. */

.news-gallery-grid-count-1 {
  grid-template-columns: minmax(0, 1fr);
}

.news-gallery-grid-count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-gallery-grid-count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-gallery-grid-count-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-gallery-item {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: .65rem;
  border: 1px solid rgba(229, 193, 92, .25);
  background: rgba(184, 137, 24, .05);
  text-decoration: none;
}

.news-gallery-item img,
.news-gallery-item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: .35rem .5rem;
  background: linear-gradient(
    transparent,
    rgba(0, 0, 0, .72)
  );
  color: #fff;
  font-size: .72rem;
  line-height: 1.35;
}

.news-gallery-caption small {
  display: block;
  margin-top: .08rem;
  font-size: .64rem;
  opacity: .9;
}

.news-gallery-caption .news-gallery-venue {
  margin-top: .12rem;
}

.news-gallery-audio {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 2rem;
}

.news-gallery-no-media {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: .5rem;
  color: var(--ink-soft);
  font-size: .72rem;
  line-height: 1.4;
  text-align: center;
}

.news-gallery-empty {
  margin: .5rem 0 0;
  color: var(--ink-soft);
  font-size: .82rem;
  line-height: 1.7;
}


/* =========================================================
   NEWS — VERTICAL PAST BHAJANAI LIST
   Desktop and tablet layouts only.
   Preserve the existing printed-programme preview size.
   ========================================================= */

@media (min-width: 821px) {

  /* Make the News columns share the same overall height. */
  
@media (min-width: 821px) {

  /* Slightly slimmer left panel, wider right panel */
  .news-section .section-split {
    grid-template-columns:
      minmax(220px, .62fr)
      minmax(0, 1.58fr);
    column-gap: clamp(2rem, 5vw, 5rem);
    align-items: stretch;
  }

  /* Give the upcoming Bhajanai more width */
  .news-section .news-links {
    grid-template-columns:
      minmax(0, .9fr)
      minmax(0, 1.1fr);
    align-items: stretch;
  }

  /* Keep the printed programme aligned at the top */
  .news-section .news-programme-poster {
    align-self: start;
    min-width: 0;
  }

}


  /* Keep the printed programme at its natural height. */
  .news-section .news-programme-poster {
    align-self: start;
  }

  /* Let the gallery heading sit above the vertically stacked cards. */
  .news-section .news-gallery-preview {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
  }

  /* One full-width card per row; use the available gallery height. */
  .news-section .news-gallery-grid {
    flex: 1 1 0;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  /* Divide the available height according to the number of cards. */
  .news-section .news-gallery-grid-count-1 {
    grid-template-rows: repeat(1, minmax(0, 1fr));
  }

  .news-section .news-gallery-grid-count-2 {
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .news-section .news-gallery-grid-count-3 {
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }

  .news-section .news-gallery-grid-count-4 {
    grid-template-rows: repeat(4, minmax(0, 1fr));
  }

  /* Let each card fill its row while preserving its existing styling. */
  .news-section .news-gallery-item {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }

}

/* =========================================================
   12. TIRUPPUGAZH
   ========================================================= */
.tradition-section {
  padding-top: 5.1rem;
  padding-bottom: 6.7rem;
}

.tradition-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(400px, 1.08fr);
  column-gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.tradition-copy {
  max-width: 650px;
}

.tradition-copy > p:not(.section-kicker) {
  max-width: 610px;
  color: var(--ink-soft);
  font-size: .94rem;
  line-height: 1.82;
}

.tradition-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.1rem;
}

.tradition-figure {
  margin: 1rem -3vw 0 auto;
  transform: rotate(1.1deg);
}

.tradition-figure img {
  width: min(620px, 100%);
  border-radius: 26px 90px 30px 75px;
  box-shadow: var(--shadow);
}

/* =========================================================
   13. DONATION
   ========================================================= */
.donation-section {
  padding-top: 4.9rem;
  padding-bottom: 6.3rem;
}

.donation-layout {
  display: grid;
  grid-template-columns: minmax(240px, .9fr) minmax(360px, 1.1fr);
  column-gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.donation-copy {
  max-width: 660px;
}

.donation-copy > p:not(.section-kicker):not(.donation-note) {
  color: var(--ink-soft);
  font-size: .94rem;
  line-height: 1.82;
}

.donation-note {
  max-width: 560px;
  margin-top: 1.2rem;
  padding-left: .9rem;
  border-left: 1px solid var(--vermilion);
  color: var(--ink-faint);
  font-size: .73rem;
  line-height: 1.65;
}

.donation-action-wrap {
  min-height: 150px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.4rem;
  align-items: center;
  padding: 1.1rem 0 1.1rem 1.5rem;
  border-top: 1px solid rgba(184, 137, 24, .34);
  border-bottom: 1px solid rgba(184, 137, 24, .34);
  background: rgba(255, 248, 223, .30);
}

.donation-action-copy {
  display: grid;
  gap: .28rem;
  max-width: 270px;
}

.donation-action-label {
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.donation-action-text {
  color: var(--ink-soft);
  font-size: .73rem;
  line-height: 1.65;
}

.donation-page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .55rem 1.15rem;
  border: 1px solid var(--vermilion-deep);
  border-radius: .55rem;
  color: #fff;
  background: linear-gradient(to bottom, var(--vermilion), var(--vermilion-deep));
  box-shadow: 0 7px 16px rgba(92, 38, 27, .18);
  font-size: .86rem;
  font-weight: 600;
  text-decoration: none;
}

/* =========================================================
   14. RESOURCES
   ========================================================= */
.resources-section {
  padding-top: 5rem;
  padding-bottom: 6.35rem;
}

.resources-layout {
  display: grid;
}

.resources-layout > .resource-links {
  min-height: 0;
  margin-top: .1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
  column-gap: clamp(2rem, 4vw, 4rem);
  row-gap: 2rem;
  align-items: start;
}

.resource-item {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  width: auto;
  margin: 0 !important;
  padding-bottom: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 137, 24, .22);
  background: rgba(255, 248, 223, .34);
}

.resource-item > span:last-child {
  display: grid;
  gap: .28rem;
}

.resource-item strong {
  font-size: 1.05rem;
  line-height: 1.3;
}

.resource-item small {
  color: var(--ink-soft);
  font-size: .72rem;
  line-height: 1.6;
}

.resource-item em {
  margin-top: .15rem;
}

.resource-item:hover {
  background: rgba(255, 248, 223, .52);
}

/* =========================================================
   15. FOOTER
   ========================================================= */
.site-footer {
  position: relative;
  min-height: 300px;
  padding: 5.5rem 0 1.2rem;
  color: rgba(247, 240, 223, .84);
  background: linear-gradient(
    to bottom,
    var(--teal-deep) 0%,
    var(--teal-dark) 100%
  );
}

.footer-thread {
  position: absolute;
  left: 0;
  top: -12px;
  height: 24px;
}

.footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.3fr .8fr .8fr;
  gap: 3rem;
  padding: 3rem 0 2.4rem;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 .5rem;
  color: var(--ivory);
  font-weight: 500;
}

.site-footer h2 {
  font-size: 1.22rem;
}

.site-footer h3 {
  font-size: .95rem;
}

.site-footer p,
.footer-nav a {
  color: var(--ink-soft);
  font-size: .72rem;
}

.site-footer p {
  margin-bottom: .2rem;
}

.footer-nav {
  display: grid;
  gap: .3rem;
}

.footer-nav a {
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #fff;
}

.footer-bottom {
  position: relative;
  z-index: 2;
  margin-top: 2.5rem;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid rgba(184, 137, 24, .18);
  color: var(--ink-faint);
  font-size: .78rem;
}

/* =========================================================
   16. ACTIVITIES / PROGRAMME ARCHIVE
   ========================================================= */
.archive-page { background: var(--teal-deep); }
.archive-hero { padding: 5rem 0 4rem; background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid)); }
.archive-hero h1 { margin: .2rem 0 .25rem; font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.08; }
.archive-lead { margin: 0; color: var(--ink-soft); }
.archive-intro { background: linear-gradient(180deg, var(--teal-mid), var(--teal-deep)); }
.archive-intro .narrow { max-width: 920px; }
.archive-intro p { margin: 0; font-size: 1.08rem; color: var(--ink-soft); }
.archive-categories, .archive-section, .archive-viewer { background: linear-gradient(180deg, var(--teal-deep), var(--teal-dark)); }
.archive-category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.archive-category { padding: 1.7rem; border: 1px solid rgba(229,193,92,.25); border-radius: 1.1rem; background: rgba(255,255,255,.045); box-shadow: var(--shadow); }
.archive-category h2, .archive-section-heading h2, .viewer-heading h2 { margin: .25rem 0 .6rem; }
.archive-category p { color: var(--ink-soft); }
.category-cta, .period-card, .back-link { text-decoration: none; }
.category-cta { display: inline-block; margin-top: .8rem; color: var(--gold); font-weight: 700; }
.period-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.4rem; }
.period-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(229,193,92,.22); border-radius: .9rem; background: rgba(0,0,0,.14); transition: transform .18s ease, border-color .18s ease; }
.period-card:hover { transform: translateY(-3px); border-color: var(--gold-soft); }
.period-card .date, .period-year { padding-inline: 1rem; }
.period-card .date { padding-top: .9rem; color: var(--gold); }
.period-year { color: var(--ink-faint); font-size: .9rem; }
.period-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; margin-top: .8rem; }
.period-card strong { padding: .85rem 1rem 1rem; color: var(--ivory); }
.period-card.is-latest { border-color: rgba(229,193,92,.55); }
.year-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2rem; }
.archive-card { overflow: hidden; border: 1px solid rgba(229,193,92,.22); border-radius: 1rem; background: rgba(255,255,255,.045); }
.archive-thumb-wrap { background: rgba(0,0,0,.14); }
.archive-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.archive-card-body { padding: 1rem; }
.archive-card-body h3 { margin: .2rem 0 .7rem; font-size: 1.1rem; }
.back-link { display: inline-block; margin-bottom: 1.4rem; color: var(--gold); font-weight: 700; }
.viewer-heading { text-align: center; max-width: 800px; margin: 0 auto 2rem; }
.programme-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.programme-sheet { display: block; overflow: hidden; border-radius: .75rem; border: 1px solid rgba(229,193,92,.25); background: rgba(0,0,0,.15); }
.programme-sheet img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .2s ease; }
.programme-sheet:hover img { transform: scale(1.025); }
.news-thumb-link { display: block; overflow: hidden; border-radius: .8rem; border: 1px solid rgba(229,193,92,.25); margin: .7rem 0 .9rem; }
.news-thumb-link img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .2s ease; }
.news-thumb-link:hover img { transform: scale(1.02); }


/* =========================================================
   17. SHARED INNER-PAGE SHELL
   ========================================================= */
.page-shell {
  min-height: calc(100vh - 96px);
  padding: 4.6rem 0 6rem;
  background: linear-gradient(
    180deg,
    #f3e7aa 0%,
    #e8da96 52%,
    #dccb78 100%
  );
}

.page-intro {
  position: relative;
  max-width: 850px;
  margin: 0 auto 2.2rem;
  text-align: center;
}

.page-intro h1 {
  margin: 0;
  color: var(--ivory);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 500;
  line-height: 1.08;
}

.page-intro .section-kicker {
  margin-bottom: .55rem;
}

.page-intro > p:last-child {
  max-width: 700px;
  margin: 1rem auto 0;
  color: var(--ink-soft);
}

.legacy-card {
  width: min(1040px, 100%);
  margin-inline: auto;
  padding: clamp(1.1rem, 3vw, 2.2rem);
  border: 1px solid var(--gold-faint);
  border-radius: 28px;
  background: rgba(4, 48, 56, .48);
  box-shadow: 0 22px 55px rgba(0, 15, 25, .18);
  overflow-x: auto;
}

.legacy-content {
  color: var(--ink);
  font-family: TSCComic, "Noto Sans Tamil", "Segoe UI", Arial, sans-serif;
  text-align: left;
}

.legacy-content-table {
  width: 100%;
  border-collapse: collapse;
}

.legacy-content table {
  max-width: 100%;
}

.legacy-content img {
  max-width: 100%;
  height: auto;
}

.legacy-content [bgcolor="#FFFFCC"],
.legacy-content [bgcolor="#ffffcc"],
.legacy-content [bgcolor="#FFFFFF"],
.legacy-content [bgcolor="#ffffff"] {
  background: transparent !important;
}

.legacy-content td,
.legacy-content th {
  color: inherit;
  padding: .35rem;
}

.legacy-content p {
  color: inherit;
}

.legacy-content a {
  color: var(--gold);
}

.legacy-content .caption,
.legacy-content .style5,
.legacy-content .style11,
.legacy-content .style12 {
  font-family: TSCComic, "Noto Sans Tamil", sans-serif;
}

.legacy-content .style7 {
  color: var(--vermilion-deep);
}

.legacy-content .style10 {
  font-size: 1rem;
}

.slideshow-frame {
  overflow: hidden;
}

.slideshow-frame #show {
  max-width: 100%;
  margin-inline: auto;
}

.legacy-content table[width],
.legacy-content img[width] {
  max-width: 100%;
}

.legacy-content input,
.legacy-content textarea,
.legacy-content select {
  max-width: 100%;
  padding: .65rem .75rem;
  border: 1px solid rgba(229, 193, 92, .35);
  border-radius: 8px;
  font: inherit;
}

.legacy-content button,
.legacy-content input[type="submit"] {
  padding: .65rem 1rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--vermilion);
  cursor: pointer;
}

/* =========================================================
   18. RESPONSIVE LAYOUT
   All breakpoint-specific rules are kept together at the end
   of the stylesheet.
   ========================================================= */

/* ---------------------------------------------------------
   WIDER DESKTOP
   --------------------------------------------------------- */
@media (min-width: 1061px) {
  .header-inner {
    gap: 1.1rem;
  }

  .brand {
    flex: 0 0 auto;
  }

  .primary-nav {
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 625px) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }

  .hero-figure {
    width: min(680px, 100%);
  }
}

/* ---------------------------------------------------------
   TABLET — 821px to 1060px
   --------------------------------------------------------- */
@media (max-width: 1060px) and (min-width: 821px) {
  .primary-nav {
    gap: .18rem;
  }

  .primary-nav a {
    padding-inline: .18rem;
  }

  .primary-nav .nav-ta {
    font-size: .72rem;
  }

  .primary-nav .nav-en {
    font-size: .52rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 1.05fr);
    gap: 2.4rem;
  }

  .hero-figure {
    width: min(620px, 100%);
    margin-right: -2vw;
  }
}

/* ---------------------------------------------------------
   NARROW TABLET — 821px to 900px
   --------------------------------------------------------- */
@media (max-width: 900px) and (min-width: 821px) {
  .section-split,
  .about-layout,
  .tradition-layout,
  .donation-layout {
    column-gap: 3rem;
  }

  .explore-links {
    column-gap: 1.5rem;
  }

  .news-links {
    column-gap: 1.2rem;
  }

  .razorpay-button-wrap {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
   MOBILE — up to 820px
   --------------------------------------------------------- */
@media (max-width: 820px) {
  .site-header {
    position: fixed;
    background: linear-gradient(
      to top,
      var(--saffron-light) 0%,
      #e29a42 52%,
      var(--saffron) 100%
    );
    backdrop-filter: blur(8px);
  }

  .header-inner {
    display: block;
    min-height: 0;
    padding-block: .8rem;
  }

  .primary-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: .55rem;
  }

  .primary-nav a {
    padding: .3rem .4rem;
    font-size: .7rem;
  }

  .primary-nav .nav-donate {
    margin-left: 0;
  }

  body {
    padding-top: 118px;
  }

  .archive-category-grid,
  .year-grid,
  .programme-gallery,
  .period-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 5.5rem 0 7rem;
  }

  .hero-inner,
  .about-layout,
  .tradition-layout,
  .donation-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: 0;
    gap: 3rem;
  }

  .hero-copy,
  .about-copy,
  .tradition-copy,
  .donation-copy {
    padding-left: 0;
  }

  .hero-figure,
  .history-figure,
  .tradition-figure {
    width: min(720px, 100%);
    margin: 1rem auto 0;
    transform: none;
  }

  .hero-figure {
    width: min(700px, 100%);
  }

  .section-split {
    display: block;
  }

  .section-split > .section-heading {
    max-width: 620px;
    margin: 0 0 2rem;
    padding-top: 0;
  }

  .section-split > .section-heading > p:last-child {
    max-width: 560px;
  }

  .explore-links,
  .news-links,
  .resources-layout > .resource-links {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    row-gap: 1.6rem;
    min-height: 0;
    margin-top: 0;
  }

  .news-gallery-grid-count-3,
.news-gallery-grid-count-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
  .explore-item,
  .news-item,
  .resource-item {
    width: 100%;
    max-width: 620px;
  }

  .news-item {
    padding-left: 1rem;
  }

  .history-figure,
  .tradition-figure {
    margin-right: auto;
  }

  .razorpay-button-wrap {
    grid-template-columns: 1fr;
    gap: 1rem;
    min-height: 0;
    padding: 1.2rem 0;
  }

  .donation-action-copy {
    max-width: 480px;
  }

  .footer-grid {
    grid-template-columns: 1.2fr .8fr;
  }

  .title-block {
    grid-template-columns: 23px minmax(0, 1fr);
    column-gap: .6rem;
  }

  .title-block .title-vel {
    width: 23px;
    height: 82px;
    opacity: .50;
  }

  
  .hero-title-block {
    grid-template-columns: 25px minmax(0, 1fr);
  }

  .hero-title-block .title-vel {
    width: 25px;
    height: 100px;
  }

  .title-block::before {
    width: 300px;
    opacity: .14;
  }

  .hero-title-block::before {
    width: 340px;
    opacity: .14;
  }
}

/* ---------------------------------------------------------
   SMALL MOBILE — up to 760px
   --------------------------------------------------------- */
@media (max-width: 760px) {
  .header-inner {
    min-height: auto;
    padding: .8rem 0;
    align-items: flex-start;
    flex-direction: column;
    gap: .65rem;
  }

  .primary-nav {
    width: 100%;
    justify-content: flex-start;
    gap: .15rem;
  }

  .primary-nav .nav-donate {
    margin-left: auto;
  }

  .hero {
    padding-top: 3.2rem;
  }

  .page-shell {
    padding-top: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ---------------------------------------------------------
   VERY SMALL MOBILE — up to 560px
   --------------------------------------------------------- */
@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(var(--content-width), calc(100% - 1.4rem));
  }

  .brand-text strong {
    font-size: .92rem;
  }

  .brand-text span {
    font-size: .66rem;
  }

  .primary-nav {
    gap: .02rem;
  }

  .primary-nav a {
    padding: .27rem .28rem;
    font-size: .63rem;
  }

  .primary-nav .nav-ta {
    font-size: .63rem;
  }

  .primary-nav .nav-en {
    font-size: .50rem;
  }

  .primary-nav .nav-donate {
    padding-inline: .65rem;
  }

  .hero {
    padding: 4rem 0 5.8rem;
  }

  .hero h1 {
    font-size: clamp(1.45rem, 5.8vw, 2rem);
    white-space: nowrap;
  }

  .hero-tamil {
    font-size: 1.15rem;
  }

  .hero-lead {
    font-size: .88rem;
  }

  .hero-figure .hero-photo {
    width: min(640px, 100%);
  }

  .section {
    padding-top: 4.8rem;
    padding-bottom: 5.8rem;
  }

  h2 {
    font-size: clamp(1.85rem, 9vw, 2.35rem);
  }

  .history-figure figcaption {
    margin-left: .2rem;
  }

  .feature-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .explore-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .explore-arut-card {
    min-height: 68px;
    padding: .75rem .9rem .75rem 1rem;
  }

  .explore-arut-card .feature-icon {
    width: 34px;
    height: 34px;
  }

  .explore-arut-card .item-copy strong {
    font-size: .95rem;
  }

  .tradition-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .donation-note {
    font-size: .7rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .header-divider,
  .section-divider,
  .footer-thread {
    height: 14px;
  }

  .kolam-divider-image {
    height: 14px;
    background-size: 382px 14px;
  }

  .title-block {
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: .5rem;
  }

  .title-block .title-vel {
    width: 20px;
    height: 72px;
    opacity: .44;
  }

  .hero-title-block {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .hero-title-block .title-vel {
    width: 22px;
    height: 88px;
  }

  .title-block::before {
    width: 240px;
    opacity: .11;
  }

  .hero-title-block::before {
    width: 280px;
    opacity: .11;
  }
}

/* ---------------------------------------------------------
   ACCESSIBILITY
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .explore-item,
  .primary-nav a::after {
    transition: none;
  }

  .button:hover,
  .explore-item:hover {
    transform: none;
  }
}


/* ---------------------------------------------------------
   TABLET / MOBILE
   --------------------------------------------------------- */

@media (max-width: 1060px) {
  .history-figure-1978 {
    transform: none;
  }
}

@media (max-width: 1060px) {
  .history-figure-1978 {
    transform: none;
  }
}

/* ==========================================================
   NEWS — PRINTED PROGRAMME PREVIEW
   ========================================================== */

.news-programme-poster {
    width: 100%;
    max-width: 320px;
    min-width: 0;
}

.news-programme-heading {
    margin-bottom: 0.7rem;
}

.news-programme-kicker {
    margin: 0 0 0.2rem;
    color: var(--vermilion-deep);
    font-family: var(--font-tamil-display);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
}

.news-programme-heading h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.15rem;
    line-height: 1.4;
}

/* Keep image previews tall without cropping the programme. */
.news-programme-poster-link img {
    display: block;
    width: 100%;
    height: 450px;
    object-fit: contain;
    object-position: top center;
    background: rgba(255, 250, 240, 0.65);
}

/* Allow the preview to use the same taller dimensions for PDFs. */
.news-programme-pdf-preview {
    display: block;
    width: 100%;
}

.news-programme-pdf-frame {
    display: block;
    width: 100%;
    height: 450px;
    border: 0;
    pointer-events: none;
}

@media (max-width: 900px) {
    .news-programme-poster {
        max-width: 420px;
    }

    .news-programme-poster-link img,
    .news-programme-pdf-frame {
        height: 450px;
    }
}

@media (max-width: 600px) {
    .news-programme-poster {
        max-width: 100%;
    }

    .news-programme-poster-link img,
    .news-programme-pdf-frame {
        height: 420px;
    }
}

/* ==========================================================
   NEWS — PRINTED PROGRAMME HEADING AND PDF PREVIEW
   ========================================================== */

.news-programme-heading {
    margin-bottom: .7rem;
}

.news-programme-kicker {
    margin: 0 0 .2rem;
    color: var(--vermilion-deep);
    font-family: var(--font-tamil-display);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
}

.news-programme-heading h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.15rem;
    line-height: 1.4;
}

/* Narrower programme panel */
.news-programme-poster {
    width: 100%;
    max-width: 320px;
    min-width: 0;
    justify-self: start;
}

/* Tall preview for image-based programmes, without cropping */
.news-programme-poster-link img {
    display: block;
    width: 100%;
    height: 450px;
    object-fit: contain;
    object-position: top center;
    background: rgba(255, 250, 240, .65);
}

/* PDF preview and its floating icon */
.news-programme-pdf-preview {
    width: 100%;
    min-width: 0;
}

.news-programme-pdf-frame-wrap {
    position: relative;
    width: 100%;
    min-width: 0;
}

.news-programme-pdf-frame {
    display: block;
    width: 100%;
    height: 450px;
    border: 1px solid rgba(184, 137, 24, .3);
    border-radius: .55rem;
    background: #fffaf0;
    pointer-events: auto;
}

/* Expand icon positioned ON the top-right corner of the PDF */
.news-programme-expand-button {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 5;

    display: grid;
    place-items: center;

    width: 36px;
    height: 36px;
    padding: 0;

    border: 1px solid rgba(184, 137, 24, .45);
    border-radius: 7px;

    color: var(--text-dark);
    background: rgba(255, 250, 240, .96);
    box-shadow: 0 2px 8px rgba(48, 41, 31, .18);

    cursor: pointer;
    transition:
        background-color .15s ease,
        transform .15s ease;
}

.news-programme-expand-button:hover {
    background: #ffffff;
    transform: scale(1.05);
}

.news-programme-expand-button:focus-visible,
.news-pdf-modal-close:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

/* ==========================================================
   EXPANDED PDF OVERLAY
   ========================================================== */

.news-pdf-modal[hidden] {
    display: none !important;
}

.news-pdf-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;

    display: grid;
    place-items: center;

    padding: 2vh 2vw;
    background: rgba(35, 26, 17, .76);
}

.news-pdf-modal-panel {
    display: flex;
    flex-direction: column;

    width: min(1100px, 96vw);
    height: 92vh;
    min-height: 0;

    overflow: hidden;

    border: 1px solid rgba(184, 137, 24, .45);
    border-radius: 12px;
    background: #fffaf0;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .35);
}

.news-pdf-modal-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    padding: 10px 15px;

    border-bottom: 1px solid #e7dbc4;
    background: linear-gradient(to bottom, #f6e8bd, #efdb9e);
}

.news-pdf-modal-header h2 {
    margin: 0;
    font-family: var(--font-tamil-display);
    font-size: 1.1rem;
    line-height: 1.4;
}

.news-pdf-modal-close {
    display: grid;
    flex: 0 0 38px;
    place-items: center;

    width: 38px;
    height: 38px;
    padding: 0;

    border: 1px solid #d7c5a5;
    border-radius: 7px;

    color: var(--text-dark);
    background: #fffaf0;
    cursor: pointer;
}

.news-pdf-modal-close:hover {
    background: #ffffff;
}

/* The expanded PDF has its own scrolling and browser PDF controls */
#news-pdf-modal-frame {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    border: 0;
    background: #ffffff;
}

/* Prevent background page scrolling while the overlay is open */
body.news-pdf-modal-open {
    overflow: hidden;
}

/* Responsive layout */
@media (max-width: 900px) {
    .news-programme-poster {
        max-width: 420px;
    }
}

@media (max-width: 600px) {
    .news-programme-poster {
        max-width: 100%;
    }

    .news-programme-poster-link img {
        height: 420px;
    }

    .news-programme-pdf-frame {
        height: 420px;
    }

    .news-pdf-modal {
        padding: 0;
    }

    .news-pdf-modal-panel {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .news-pdf-modal-header {
        padding: 9px 12px;
    }
}

/* =========================================================
   NEWS — FEATURED NEXT PROGRAMME
   ========================================================= */

.news-current-programme.news-next-programme {
    position: relative;
    min-width: 0;
    padding: 1.25rem;
    background: linear-gradient(
        145deg,
        var(--cream) 0%,
        var(--lemon-soft) 100%
    );
    border: 1px solid var(--gold-faint);
    /*border-left: 5px solid var(--vermilion);*/
    border-radius: 1rem;
    box-shadow: 0 10px 24px rgba(48, 41, 31, 0.10);
}

/* Heading badge */

.news-next-programme .news-current-programme-heading {
    display: inline-flex;
    align-items: center;
    margin: 0 0 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: var(--vermilion-soft);
    color: var(--vermilion-deep);
    font-family: var(--font-tamil-display);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
}

/* Event title */

.news-next-programme .news-programme-entry h3 {
    margin-top: 0;
    margin-bottom: 0.9rem;
    color: var(--text-dark);
    font-size: 1.2rem;
    line-height: 1.65;
}

/* Date and time */

.news-next-programme .news-programme-date {
    width: fit-content;
    max-width: 100%;
    margin-top: 0.4rem;
    padding: 0.45rem 0.65rem;
    border-radius: 0.55rem;
    background: rgba(184, 137, 24, 0.12);
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.6;
}

/* Smaller screens */

@media (max-width: 600px) {
    .news-current-programme.news-next-programme {
        padding: 1rem;
        border-radius: 0.8rem;
    }

    .news-next-programme .news-programme-entry h3 {
        font-size: 1.1rem;
    }
}

/* Programme heading overlay on PDF and image previews */

.news-programme-poster-link,
.news-programme-pdf-frame-wrap {
    position: relative;
}

.news-programme-preview-label {
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 5;

    display: flex;
    flex-direction: column;
    gap: 2px;

    max-width: calc(100% - 65px);
    padding: 0.45rem 0.7rem;

    background: rgba(255, 248, 223, 0.96);
    color: var(--text-dark);

    border: 1px solid var(--gold-faint);
    border-radius: 0.55rem;
    box-shadow: 0 3px 12px rgba(48, 41, 31, 0.18);

    line-height: 1.4;
    pointer-events: none;
}

.news-programme-preview-kicker {
    font-family: var(--font-tamil-display);
    font-size: 0.88rem;
    font-weight: 700;
}

.news-programme-preview-period {
    font-size: 0.82rem;
    font-weight: 600;
}

/* =========================================================
   NEWS — SOFTER UPCOMING PROGRAMME
   ========================================================= */

.news-current-programme.news-next-programme {
    background: rgba(255, 250, 240, 0.38);
    border: 1px solid rgba(184, 137, 24, 0.18);
    box-shadow: none;
}

/* Match the quieter heading style of Recent Bhajanai Events */

.news-next-programme .news-current-programme-heading {
    display: block;
    margin: 0 0 1rem;
    padding: 0;

    background: transparent;
    border-radius: 0;

    color: var(--text-dark);
    font-family: var(--font-tamil-display);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.5;
}

/* =========================================================
   PRINTED PROGRAMME — NON-OVERLAPPING PDF HEADER
   ========================================================= */

.news-programme-preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;

    padding: 0.4rem 0.6rem;

    background: rgba(255, 248, 223, 0.78);
    border: 1px solid rgba(184, 137, 24, 0.22);
    border-bottom: 0;
    border-radius: 0.65rem 0.65rem 0 0;
}

.news-programme-preview-toolbar .news-programme-preview-label {
    position: static;
    z-index: auto;

    display: flex;
    flex-direction: column;
    gap: 0.05rem;

    flex: 1;
    max-width: none;
    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.news-programme-preview-toolbar .news-programme-expand-button {
    position: static;
    top: auto;
    right: auto;
    z-index: auto;
    flex: 0 0 auto;
}

.news-programme-pdf-frame-wrap {
    position: relative;
    width: 100%;
    min-width: 0;
    overflow: hidden;

    border: 1px solid rgba(184, 137, 24, 0.22);
    border-top: 0;
    border-radius: 0 0 0.65rem 0.65rem;
}

.news-programme-pdf-frame {
    display: block;
    width: 100%;
    height: 450px;
    border: 0;
}

/* Keep the title translucent on image previews only */

.news-programme-poster-link .news-programme-preview-label {
    background: rgba(255, 248, 223, 0.70);
    backdrop-filter: blur(3px);
}

/* Image preview — shared header, no text over the image */

.news-programme-image-preview {
    width: 100%;
    min-width: 0;
}

.news-programme-image-preview .news-programme-poster-link img {
    border-top: 0;
    border-radius: 0 0 0.65rem 0.65rem;
}

.news-programme-entry-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: .75rem;
}

.news-programme-entry-actions .news-programme-detail-link:hover,
.news-programme-entry-actions .news-programme-detail-link:focus-visible {
  color: #000;
}


/* =========================================================
   MAHASKANDA SHASHTI HOMEPAGE SECTION
   Uses the shared MTS palette and keeps expansion in normal flow.
   ========================================================= */
.sashti-section {
  padding-top: 4.75rem;
  padding-bottom: 5rem;
}

.sashti-section .sashti-split {
  display: grid;
  grid-template-columns: minmax(220px, .62fr) minmax(0, 1.38fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.sashti-heading {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: auto;
  min-height: 0;
}

.sashti-heading .sashti-title-block {
  position: relative;
  padding-bottom: 1.25rem;
}

.sashti-heading .sashti-title-block::after {
  content: none;
  display: none;
}

.sashti-heading .sashti-title-block .title-vel::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -.8rem;
  width: 48px;
  height: 1px;
  transform: translateX(-50%);
  background: var(--gold);
  opacity: .7;
}

.sashti-invitation-card,
.sashti-invitation-empty,
.sashti-fallback-card {
  min-width: 0;
  margin-top: 1.25rem;
  padding: 1.15rem;
  border: 1px solid var(--gold-faint);
  border-radius: 14px;
  background: rgba(255, 250, 240, .78);
  box-shadow: 0 8px 22px rgba(48, 41, 31, .08);
}

.sashti-heading > .sashti-invitation-card,
.sashti-heading > .sashti-invitation-empty {
  flex: 1 1 auto;
}

.sashti-invitation-card .news-programme-pdf-preview {
  margin: 0;
}

.sashti-invitation-empty {
  color: var(--ink-soft);
  line-height: 1.7;
}

.sashti-days {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 1rem;
  min-width: 0;
}

/* Event overview is an independently expandable, full-width card. */
.sashti-event-overview {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0 0 .25rem;
  overflow: hidden;
  border: 1px solid var(--gold-soft);
  border-radius: 16px;
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--ivory), var(--lemon-soft));
  box-shadow: 0 10px 26px rgba(48, 41, 31, .09);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.sashti-event-overview:hover,
.sashti-event-overview[open] {
  border-color: var(--gold);
  box-shadow: 0 12px 28px rgba(48, 41, 31, .12);
}

.sashti-event-overview-summary {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: clamp(1.15rem, 2.5vw, 1.7rem);
  text-align: center;
  cursor: pointer;
  list-style: none;
}

.sashti-event-overview-summary::-webkit-details-marker {
  display: none;
}

.sashti-event-overview-summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -4px;
}

.sashti-event-hero-thumbnail {
  width: 76px;
  height: 48px;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--gold-faint);
  border-radius: 8px;
  box-shadow: 0 3px 9px rgba(48, 41, 31, .08);
}

.sashti-event-overview-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .22rem;
  min-width: 0;
}

.sashti-event-overview-title {
  color: var(--text-dark);
  font-family: var(--font-tamil-display);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 600;
  line-height: 1.5;
}

.sashti-event-overview-dates,
.sashti-event-overview-venue {
  display: block;
  margin: 0;
  color: var(--ink-soft);
  font-size: .88rem;
  line-height: 1.65;
}

.sashti-event-overview-venue {
  color: var(--text-dark);
  font-weight: 600;
}

.sashti-event-toggle,
.sashti-day-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--vermilion-deep);
  background: var(--vermilion-soft);
}

.sashti-event-toggle {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
}

.sashti-event-toggle svg,
.sashti-day-toggle svg {
  display: block;
  transition: transform .22s ease;
}

.sashti-event-overview[open] .sashti-event-toggle svg,
.sashti-day-card[open] .sashti-day-toggle svg {
  transform: rotate(180deg);
}

.sashti-event-overview-details {
  padding: .15rem clamp(1.15rem, 2.5vw, 1.7rem) 1.1rem;
  border-top: 1px solid var(--gold-faint);
  text-align: center;
}

.sashti-event-description,
.sashti-event-remarks {
  margin-top: .85rem;
}

.sashti-event-description h4,
.sashti-event-remarks h4 {
  margin: 0 0 .25rem;
  color: var(--vermilion-deep);
  font-family: var(--font-tamil-display);
  font-size: .95rem;
  font-weight: 600;
}

.sashti-event-rich-text {
  margin: 0;
  color: var(--ink-soft);
  font-size: .88rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
  text-align: center;
}

.sashti-event-rich-text p {
  margin: 0 0 .7rem;
}

.sashti-event-rich-text p:last-child,
.sashti-event-rich-text ul:last-child,
.sashti-event-rich-text ol:last-child {
  margin-bottom: 0;
}

.sashti-event-rich-text ul,
.sashti-event-rich-text ol {
  display: inline-block;
  margin: .25rem auto .7rem;
  padding-left: 1.4rem;
  text-align: left;
}

/* Native details/summary keeps the other day cards anchored when one opens. */
.sashti-day-card {
  align-self: start;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--gold-faint);
  border-radius: 13px;
  background: rgba(255, 250, 240, .88);
  box-shadow: 0 5px 16px rgba(48, 41, 31, .07);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.sashti-day-card:hover,
.sashti-day-card[open] {
  border-color: var(--gold-soft);
  box-shadow: 0 9px 22px rgba(48, 41, 31, .1);
}

.sashti-day-card-wide {
  grid-column: 1 / -1;
}

.sashti-day-summary {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 26px;
  align-items: center;
  gap: .85rem;
  padding: 1rem;
  cursor: pointer;
  list-style: none;
}

.sashti-day-summary::-webkit-details-marker {
  display: none;
}

.sashti-day-summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -3px;
}

.sashti-day-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: .45rem .2rem;
  border: 1px solid var(--gold-faint);
  border-radius: 9px;
  background: linear-gradient(180deg, var(--lemon-soft), var(--ivory));
}

.sashti-day-number {
  color: var(--text-dark);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.15;
}

.sashti-day-month {
  margin-top: .2rem;
  color: var(--vermilion-deep);
  font-family: var(--font-tamil-display);
  font-size: .7rem;
  line-height: 1.3;
}

.sashti-day-heading {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}

.sashti-day-weekday {
  color: var(--text-dark);
  font-family: var(--font-tamil-display);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.45;
}

.sashti-full-date {
  margin: 0;
  color: var(--ink-faint);
  font-size: .75rem;
  line-height: 1.5;
}

.sashti-day-details {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--gold-faint);
}

.sashti-programme-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sashti-programme-item {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  margin-top: .65rem;
  padding-top: .65rem;
  border-top: 1px solid var(--gold-faint);
}

.sashti-programme-item:first-child {
  margin-top: 0;
  border-top: 0;
}

.sashti-programme-item strong {
  color: var(--text-dark);
  font-family: var(--font-tamil-display);
  font-size: .91rem;
  font-weight: 600;
  line-height: 1.55;
}

.sashti-programme-time {
  color: var(--vermilion-deep);
  font-size: .8rem;
  font-weight: 650;
  line-height: 1.5;
}

.sashti-programme-organisation {
  color: var(--ink-soft);
  font-size: .8rem;
  line-height: 1.5;
}

.sashti-day-empty,
.sashti-fallback-card p:last-of-type {
  margin: .7rem 0 0;
  color: var(--ink-soft);
  font-family: var(--font-tamil-display);
  font-size: .88rem;
  line-height: 1.7;
}

.sashti-fallback-card {
  grid-column: 1 / -1;
  margin-top: 0;
}

.sashti-card-kicker {
  margin: 0 0 .45rem;
  color: var(--vermilion-deep);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.sashti-fallback-card h3 {
  margin: 0 0 .5rem;
  font-family: var(--font-tamil-display);
  line-height: 1.5;
}

.sashti-day-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: .9rem;
  padding-top: .7rem;
  border-top: 1px solid var(--gold-faint);
}

.sashti-full-details-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--vermilion-deep);
  font-family: var(--font-tamil-display);
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: .2rem;
}

.sashti-full-details-link:hover,
.sashti-full-details-link:focus-visible {
  color: var(--text-dark);
  text-decoration: underline;
}

@media (max-width: 820px) {
  .sashti-section .sashti-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }
}

@media (max-width: 600px) {
  .sashti-section {
    padding-top: 3.5rem;
    padding-bottom: 3.75rem;
  }

  .sashti-days {
    grid-template-columns: minmax(0, 1fr);
  }

  .sashti-day-summary {
    grid-template-columns: 54px minmax(0, 1fr) 26px;
    gap: .7rem;
    padding: .85rem;
  }

  .sashti-day-details {
    padding: 0 .85rem .85rem;
  }

  .sashti-event-toggle {
    right: .7rem;
    bottom: .7rem;
  }

  .sashti-event-overview-summary {
    padding-bottom: 2.6rem;
  }
}


/* =========================================================
   RESPONSIVE HEADER NAVIGATION — hamburger below 1180px
   Keeps the existing desktop navigation and MTS colour theme.
   ========================================================= */
.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(122, 70, 14, .35);
  border-radius: 10px;
  color: var(--text-dark);
  background: rgba(255, 248, 223, .32);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--vermilion-deep);
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  body {
    padding-top: 78px;
  }

  .header-inner {
    position: relative;
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding-block: .65rem;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand-text {
    min-width: 0;
  }

  .brand-text strong,
  .brand-text span {
    white-space: normal;
  }

  .brand-text strong {
    font-size: clamp(.84rem, 2vw, 1rem);
  }

  .brand-text span {
    font-size: .64rem;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: calc(100% + .35rem);
    left: 0;
    right: 0;
    z-index: 1001;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: .2rem;
    margin: 0;
    padding: .65rem;
    border: 1px solid rgba(122, 70, 14, .28);
    border-radius: 14px;
    background: linear-gradient(to bottom, var(--saffron-light), #f4d18c);
    box-shadow: 0 12px 28px rgba(48, 41, 31, .24);
  }

  .site-header.nav-open .primary-nav {
    display: flex;
  }

  .primary-nav a,
  .primary-nav .nav-donate {
    width: 100%;
    min-height: 44px;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: center;
    gap: .12rem;
    margin: 0;
    padding: .55rem .75rem;
    border-radius: 9px;
    text-align: left;
    white-space: normal;
  }

  .primary-nav .nav-ta,
  .primary-nav .nav-en {
    white-space: normal;
    text-align: left;
  }

  .primary-nav .nav-ta {
    font-size: .92rem;
    line-height: 1.4;
  }

  .primary-nav .nav-en {
    font-size: .65rem;
  }

  .primary-nav .nav-donate {
    width: 100%;
    align-items: flex-start;
    margin-top: .2rem;
  }

  .site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle span {
    transition: none;
  }
}
