/* =========================================================
   1. SETTINGS — edit these to restyle the whole site
   ========================================================= */
:root {
  /* ---- Colours ---- */
  --green: #103f2e;
  --maroon: #84291d;
  --maroon-dark: #6d2016;
  --saffron: #c4521f;
  --gold: #c18a35;
  --gold-light: #e5b65c;
  --gold-ring: #d4b26e;
  --cream: #fff0cf;
  --paper: #fff2d9;
  --ink: #3f2b1c;
  --ink-dark: #2a1d12;
  --muted: #6a4d35;
  --line: #e4c891;

  /* ---- Fonts ---- */
  --font-kannada: 'Noto Serif Kannada', serif;
  --font-ui: Inter, 'Noto Serif Kannada', sans-serif;
  --font-display: 'Cinzel', 'Noto Serif Kannada', serif;

  /* ---- MASTER TEXT SIZE ----
     1    = default
     1.1  = 10% bigger everywhere
     0.95 = slightly smaller        */
  --font-scale: 1;

  /* ---- Individual text sizes ---- */
  --fs-body: 1.0625rem;
  --fs-brand: clamp(1.35rem, 0.9rem + 1.3vw, 2.125rem);
  --fs-brand-sub: 0.8125rem;
  --fs-head-right: 1rem;
  --fs-donate: 1.0625rem;
  --fs-nav: 1.0625rem;
  --fs-submenu: 1rem;
  --fs-kicker: 0.9375rem;
  --fs-section-title: clamp(2rem, 1.4rem + 2vw, 3.25rem);
  --fs-section-lead: 1.1875rem;
  --fs-card-title: 1.375rem;
  --fs-card-text: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-btn: 1.0625rem;
  --fs-footer: 1rem;
  --fs-ticker: 1rem;

  /* ---- Line heights ---- */
  --lh-heading: 1.35;
  --lh-text: 1.85;

  /* ---- Layout ---- */
  --max-width: 1380px;
  --section-pad-y: 96px;
  --section-pad-x: max(6%, calc((100% - var(--max-width)) / 2));
  --radius: 12px;
  --ticker-height: 48px;

  /* ---- Header (sits inside the carved temple frame) ---- */
  --header-width: min(1760px, 94%);
  --header-margin-top: 54px;
  --header-pad-top: 60px;
  --header-pad-x: clamp(24px, 13vw, 249px);
  --logo-size: 78px;

  /* ---- Hero portrait ---- */
  --portrait-width: min(32vw, 440px);
  --portrait-height: min(64vh, 620px);
  --portrait-pad-top: 75px;
  --portrait-pad-bottom: 176px;
}


/* =========================================================
   2. BASE
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: calc(16px * var(--font-scale));
  scroll-behavior: smooth;
  scroll-padding-top: 25px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: 1.6;
}

body.ticker-on {
  padding-bottom: var(--ticker-height);
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}


/* =========================================================
   3. HERO (video background + temple frame)
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  background: #b58b4b url('../assets/matha-building.jpeg') center / cover no-repeat;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #705333;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 239, 204, .08) 0%, rgba(255, 239, 204, .03) 30%, rgba(255, 239, 204, 0) 60%),
    linear-gradient(0deg, rgba(30, 16, 6, .08), transparent 38%);
}

.temple-frame-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}


/* =========================================================
   4. HEADER
   ========================================================= */
.header {
  position: relative;
  width: var(--header-width);
  margin: var(--header-margin-top) auto 0;
  padding: var(--header-pad-top) var(--header-pad-x) 0;
  background: #fff2d5;
  border: 1px solid #b98139;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 129px;
  min-height: 80px;
}

.logo {
  flex: none;
  display: block;
  width: var(--logo-size);
  height: var(--logo-size);
  object-fit: contain;
}

.brand h2 {
  margin: 0;
  color: var(--maroon);
  font-family: var(--font-kannada);
  font-size: var(--fs-brand);
  font-weight: 800;
  line-height: var(--lh-heading);
}

.brand p {
  margin: 4px 0 0;
  color: #74331f;
  font-size: var(--fs-brand-sub);
  font-weight: 800;
  letter-spacing: .4px;
}

.head-right {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: -56px;
  font-size: var(--fs-head-right);
  font-weight: 600;
  white-space: nowrap;
}

.head-right .fa-search {
  font-size: 1.15em;
}

.donate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border: 0;
  border-radius: 4px;
  background: var(--maroon);
  color: #fff3d6;
  font-family: var(--font-kannada);
  font-size: var(--fs-donate);
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}

.donate:hover {
  background: var(--maroon-dark);
}

.menu-toggle {
  display: none;
  padding: 8px 10px;
  border: 1px solid #c9a066;
  border-radius: 4px;
  background: transparent;
  color: var(--maroon);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}


/* =========================================================
   5. NAVIGATION + DROPDOWNS
   ========================================================= */
.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px clamp(14px, 2.2vw, 38px);
  margin-top: 10px;
  padding: 12px 0 13px;
  border-top: 1px solid #d8bd8b;
  color: #60351f;
  font-family: var(--font-kannada);
  font-size: var(--fs-nav);
  font-weight: 700;
}

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

.nav-link {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}

.nav-item:hover > .nav-link,
.nav-link:hover {
  color: var(--maroon);
  border-bottom-color: var(--gold);
}

.sub-toggle {
  margin-left: 4px;
  padding: 4px;
  border: 0;
  background: none;
  color: inherit;
  font-size: .95em;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s;
}

/* ---- Mega menu (desktop) ----
   Panels span the full header width. */
.nav-item.has-mega {
  position: static;
}

.mega {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 30;
  padding: 34px max(3%, calc((100% - 1240px) / 2)) 36px;
  background: #fff8e8;
  border-top: 3px solid var(--maroon);
  border-bottom: 1px solid #d8bd8b;
  box-shadow: 0 26px 48px rgba(50, 25, 8, .22);
  font-family: var(--font-kannada);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s, transform .22s, visibility .22s;
}

/* invisible bridge so the pointer can travel from the link to the panel */
.mega::before {
  content: "";
  position: absolute;
  top: -40px;
  right: 0;
  left: 0;
  height: 40px;
}

.nav-item:hover > .mega,
.nav-item:focus-within > .mega,
.nav-item.open > .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-item:hover > .sub-toggle,
.nav-item.open > .sub-toggle {
  transform: rotate(180deg);
}

.mega-inner {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)) minmax(280px, 1.15fr);
  gap: 40px;
}

.mega-col h5 {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ecd9b4;
  color: var(--saffron);
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.mega-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mega-col li + li {
  margin-top: 4px;
}

.mega-link {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 12px;
  margin: 0 -12px;
  border-radius: 8px;
  transition: background .15s;
}

.mega-link:hover {
  background: #f6e3bd;
}

.mega-link .fa {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f3dfb8;
  color: var(--maroon);
  font-size: 1rem;
  transition: background .15s, color .15s;
}

.mega-link:hover .fa {
  background: var(--maroon);
  color: #fff3d6;
}

.mega-link b {
  display: block;
  color: #4a2a16;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
}

.mega-link small {
  display: block;
  margin-top: 2px;
  color: #866d58;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.5;
}

/* mini event list inside a mega panel */
.mega-event {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
}

.mega-event .event-date {
  width: 58px;
  padding: 6px 0;
}

.mega-event .event-date strong {
  font-size: 1.375rem;
}

.mega-event b {
  display: block;
  color: #4a2a16;
  font-size: 1rem;
}

.mega-event small {
  color: #866d58;
  font-size: .8125rem;
}

/* featured card on the right of each panel */
.mega-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 250px;
  padding: 24px;
  overflow: hidden;
  border-radius: 12px;
  background: #5a3a22;
  color: #fff3d6;
}

.mega-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.mega-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 14, 4, .05) 20%, rgba(30, 14, 4, .85) 100%);
}

.mega-feature:hover img {
  transform: scale(1.05);
}

.mega-feature > *:not(img) {
  position: relative;
  z-index: 1;
}

.mega-feature .seva-tag {
  position: absolute;
  top: 16px;
  left: 16px;
}

.mega-feature strong {
  font-size: 1.3125rem;
  line-height: 1.4;
}

.mega-feature p {
  margin: 6px 0 14px;
  color: #f1dfbd;
  font-size: .9375rem;
  line-height: 1.6;
}

.mega-feature .progress {
  margin: 0 0 14px;
}

.mega-feature .progress-row {
  color: #f1dfbd;
}

.mega-feature .progress-row strong {
  color: var(--gold-light);
  font-size: inherit;
}

.mega-feature .progress-bar {
  background: rgba(255, 243, 214, .25);
}

.mega-feature em {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 9px 16px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--saffron), var(--maroon));
  font-style: normal;
  font-weight: 700;
}

.mega-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.mega-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
}

.mega-social a:hover {
  filter: brightness(1.1);
}



/* =========================================================
   6. HERO PORTRAIT
   ========================================================= */
.hero-inner {
  position: relative;
  z-index: 4;
  width: min(1680px, 88%);
  margin: 0 auto;
}

.hero-portrait-only {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  min-height: calc(100svh - 225px);
  padding-top: var(--portrait-pad-top);
  padding-bottom: var(--portrait-pad-bottom);
}

.portrait-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: var(--portrait-width);
  height: var(--portrait-height);
  min-height: 448px;
  margin-top: 47px;
  margin-right: -1.5%;
}

.portrait {
  position: relative;
  width: 100%;
  height: 121%;
  margin-top: -12px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 15px 23px #21130838);
  /* soft fade at the bottom so the photo edge isn't a hard cut */
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}

/* ---- Swamiji name box (sits over the bottom of the photo) ---- */
.portrait-name {
  position: absolute;
  right: 4%;
  bottom: -6px;
  left: 4%;
  z-index: 2;
  padding: 14px 18px 15px;
  text-align: center;
  background: rgba(255, 242, 213, .86);
  border: 1px solid rgba(193, 138, 53, .7);
  border-top: 3px solid var(--maroon);
  border-radius: 6px;
  box-shadow: 0 10px 26px rgba(40, 20, 6, .28);
}

.portrait-name strong {
  display: block;
  color: var(--maroon);
  font-family: var(--font-kannada);
  font-size: clamp(1.15rem, .8rem + .9vw, 1.6rem);
  font-weight: 800;
  line-height: 1.4;
}

.portrait-name span {
  display: block;
  margin-top: 2px;
  color: #5a3a22;
  font-family: var(--font-kannada);
  font-size: .9375rem;
  font-weight: 600;
}

/* ---- Video sound (mute / unmute) button ---- */
.video-sound {
  position: absolute;
  bottom: var(--sound-bottom, 7%);
  left: var(--sound-left, 12%);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 12px;
  border: 1px solid rgba(255, 230, 180, .55);
  border-radius: 40px;
  background: rgba(40, 20, 8, .62);
  color: #fff3d6;
  font-family: var(--font-kannada);
  font-size: .9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}

.video-sound:hover {
  background: rgba(132, 41, 29, .85);
}

.video-sound .fa {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 243, 214, .18);
  font-size: 1.15rem;
}


/* =========================================================
   7. SECTIONS (shared)
   ========================================================= */
.section {
  padding: var(--section-pad-y) var(--section-pad-x);
}

.kicker {
  display: inline-block;
  color: var(--saffron);
  font-family: var(--font-display);
  font-size: var(--fs-kicker);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.section-title {
  max-width: 860px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-title h2 {
  margin: 10px 0 0;
  color: var(--ink-dark);
  font-family: var(--font-kannada);
  font-size: var(--fs-section-title);
  font-weight: 800;
  line-height: var(--lh-heading);
}

.section-title .divider {
  display: block;
  width: 90px;
  height: 3px;
  margin: 22px auto 0;
  background: var(--gold);
}

.section-title p {
  margin: 22px 0 0;
  color: #72533a;
  font-size: var(--fs-section-lead);
  line-height: var(--lh-text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--saffron), var(--maroon));
  color: #fff4dc;
  font-family: var(--font-kannada);
  font-size: var(--fs-btn);
  font-weight: 700;
  cursor: pointer;
  transition: filter .2s, transform .2s;
}

.btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

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

.btn-outline:hover {
  background: var(--maroon);
  color: #fff4dc;
}


/* =========================================================
   8. GURU PARAMPARA — THE SACRED LINEAGE
   ========================================================= */
.lineage {
  background: #e9dfcf;
}

.lineage-head {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 460px);
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}

.lineage-head h2 {
  margin: 14px 0 0;
  color: var(--ink-dark);
  font-family: var(--font-kannada);
  font-size: clamp(2.4rem, 1.4rem + 3.2vw, 4.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.lineage-head p {
  margin: 0 0 12px;
  color: #6b5543;
  font-size: var(--fs-section-lead);
  line-height: var(--lh-text);
}

.lineage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.lineage-card {
  display: block;
  padding: 22px 22px 34px;
  text-align: center;
  background: #f3ece2;
  border: 1px solid #e0d2bc;
  transition: transform .25s, box-shadow .25s;
}

.lineage-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(80, 50, 20, .12);
}

.lineage-ring {
  aspect-ratio: 1;
  margin-bottom: 26px;
  padding: 7px;
  border: 4px solid var(--gold-ring);
  border-radius: 50%;
}

.lineage-ring img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  background: #d9c6a4;
  transition: transform .5s;
}

.lineage-card:hover .lineage-ring img {
  transform: scale(1.04);
}

.lineage-card h3 {
  margin: 0 0 8px;
  color: var(--ink-dark);
  font-family: var(--font-kannada);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: var(--lh-heading);
}

.lineage-card p {
  margin: 0;
  color: #6b5543;
  font-size: var(--fs-card-text);
}


/* =========================================================
   9. SEVA — ONGOING PROJECTS
   ========================================================= */
.seva {
  background: #f4efe8;
}

.seva-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.seva-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f8f3ec;
  border: 1px solid #e3d8c8;
  border-radius: var(--radius);
  transition: box-shadow .25s, transform .25s;
}

.seva-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(80, 40, 15, .12);
}

.seva-media {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #d9c6a4;
}

.seva-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.seva-card:hover .seva-media img {
  transform: scale(1.05);
}

.seva-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 30px;
  background: var(--maroon);
  color: #fff4dc;
  font-family: var(--font-kannada);
  font-size: .8125rem;
  font-weight: 700;
}

.seva-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px 26px 26px;
}

.seva-body h3 {
  margin: 0 0 10px;
  color: var(--ink-dark);
  font-family: var(--font-kannada);
  font-size: var(--fs-card-title);
  font-weight: 700;
  line-height: var(--lh-heading);
}

.seva-body p {
  margin: 0 0 24px;
  color: #6b5543;
  font-size: var(--fs-card-text);
  line-height: 1.75;
}

.progress {
  margin-top: auto;
  margin-bottom: 22px;
}

.progress-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #7b6553;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .5px;
}

.progress-row strong {
  color: var(--saffron);
}

.progress-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 10px;
  background: #ebdfcd;
}

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--saffron), var(--maroon));
  transition: width 1.4s ease;
}

.progress-note {
  margin-top: 8px;
  color: #8a7562;
  font-size: .8125rem;
}


/* =========================================================
   10. CONNECT WITH US + SOCIAL FEEDS
   ========================================================= */
.connect {
  background: linear-gradient(180deg, #fffdf9 0%, #fdf1e3 100%);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-bottom: 64px;
}

.social-card {
  padding: 40px 24px 32px;
  text-align: center;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(120, 70, 20, .08);
  transition: transform .25s, box-shadow .25s;
}

.social-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(120, 70, 20, .14);
}

.social-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto 20px;
  border-radius: 50%;
  color: #fff;
  font-size: 2.2rem;
}

.si-facebook  { background: #1877f2; }
.si-instagram { background: linear-gradient(45deg, #f9a825, #e1306c 55%, #833ab4); }
.si-youtube   { background: #e00000; }
.si-whatsapp  { background: #1fbe5a; }

.social-card h3 {
  margin: 0 0 6px;
  color: var(--ink-dark);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
}

.social-card p {
  margin: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0e6da;
  color: var(--saffron);
  font-family: var(--font-kannada);
  font-size: var(--fs-card-text);
}

.social-card .follow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--maroon);
  font-family: var(--font-kannada);
  font-weight: 700;
}

.social-card .follow:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.feeds-title {
  margin: 0 0 26px;
  color: var(--ink-dark);
  font-family: var(--font-kannada);
  font-size: 1.75rem;
  text-align: center;
}

.feeds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
}

.footer-social a[hidden],
.mega-social a[hidden] {
  display: none;
}

.feed {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #efe2d0;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(120, 70, 20, .07);
}

.feed-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #f0e6da;
  color: var(--ink-dark);
  font-family: var(--font-kannada);
  font-size: 1.0625rem;
  font-weight: 700;
}

.feed-head .social-icon {
  width: 38px;
  height: 38px;
  margin: 0;
  font-size: 1.1rem;
}

.feed-head a {
  margin-left: auto;
  color: var(--saffron);
  font-size: .9375rem;
}

.feed-body {
  position: relative;
  height: 600px;
  background: #faf6f0;
}

.feed-body iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.feed-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 30px;
  color: #8a7562;
  text-align: center;
  font-family: var(--font-kannada);
  font-size: var(--fs-small);
  line-height: 1.8;
}

.feed-placeholder .fa {
  margin-bottom: 14px;
  color: #d9c6a4;
  font-size: 3rem;
}


/* =========================================================
   11. NEWS & EVENTS
   ========================================================= */
.news {
  background: #eee0d0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f4efe9;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(110, 60, 20, .08);
  transition: transform .25s, box-shadow .25s;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(110, 60, 20, .14);
}

.news-media {
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #efd5c0, #ddd2c6);
}

.news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 24px 26px;
}

.news-date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #7f6a59;
  font-size: var(--fs-small);
}

.news-body h3 {
  display: -webkit-box;
  margin: 0 0 18px;
  overflow: hidden;
  color: var(--ink-dark);
  font-family: var(--font-kannada);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--saffron);
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.read-more .fa {
  transition: transform .2s;
}

.read-more:hover .fa {
  transform: translateX(4px);
}

.events-wrap {
  margin-top: 72px;
}

.events-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 26px;
}

.events-head h3 {
  margin: 6px 0 0;
  color: var(--ink-dark);
  font-family: var(--font-kannada);
  font-size: 1.875rem;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.event {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px;
  background: #fbf6ef;
  border-left: 4px solid var(--maroon);
  border-radius: 8px;
}

.event-date {
  flex: none;
  width: 78px;
  padding: 10px 0;
  text-align: center;
  background: var(--maroon);
  border-radius: 8px;
  color: #fff4dc;
}

.event-date strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 1.1;
}

.event-date span {
  font-family: var(--font-kannada);
  font-size: .8125rem;
}

.event h4 {
  margin: 0 0 4px;
  color: var(--ink-dark);
  font-family: var(--font-kannada);
  font-size: 1.125rem;
  line-height: 1.5;
}

.event p {
  margin: 0;
  color: #7f6a59;
  font-size: var(--fs-small);
}


/* =========================================================
   12. FOOTER
   ========================================================= */
.footer {
  background: #2d2118;
  color: #e9d6b3;
  font-family: var(--font-kannada);
  font-size: var(--fs-footer);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 40px;
  padding: 80px var(--section-pad-x) 56px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.footer-brand img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.footer-brand strong {
  color: #f0c878;
  font-size: 1.25rem;
  line-height: 1.4;
}

.footer-about p {
  margin: 0 0 18px;
  line-height: 1.9;
}

.footer-contact {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.footer-contact .fa {
  width: 18px;
  margin-top: 6px;
  color: var(--gold-light);
}

.footer-col h4 {
  position: relative;
  margin: 0 0 22px;
  padding-bottom: 12px;
  color: #f0c878;
  font-size: 1.1875rem;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  transition: color .2s, padding-left .2s;
}

.footer-col a:hover {
  color: #f0c878;
  padding-left: 5px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #5c4532;
  border-radius: 50%;
  transition: background .2s, border-color .2s;
}

.footer-social a:hover {
  background: var(--maroon);
  border-color: var(--maroon);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px var(--section-pad-x);
  border-top: 1px solid #45342a;
  color: #b89f7d;
  font-family: var(--font-ui);
  font-size: .9375rem;
}


/* =========================================================
   13. STICKY TICKER (bottom)
   ========================================================= */
.ticker {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  height: var(--ticker-height);
  background: var(--maroon);
  color: #fff3d6;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, .18);
}

.ticker[hidden] {
  display: none;
}

.ticker-label {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 20px;
  background: var(--gold);
  color: #2d1608;
  font-family: var(--font-kannada);
  font-weight: 800;
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.ticker-move {
  display: flex;
  width: max-content;
  animation: ticker 40s linear infinite;
}

.ticker-track:hover .ticker-move {
  animation-play-state: paused;
}

.ticker-move span {
  padding: 0 34px;
  font-family: var(--font-kannada);
  font-size: var(--fs-ticker);
  white-space: nowrap;
}

.ticker-move span::before {
  content: "✦";
  margin-right: 14px;
  color: var(--gold-light);
}

.ticker-close {
  flex: none;
  width: var(--ticker-height);
  height: 100%;
  border: 0;
  background: var(--maroon-dark);
  color: #fff3d6;
  font-size: 1.1rem;
  cursor: pointer;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* =========================================================
   14. CONTRIBUTE POPUP (Matha construction)
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 20px;
}

.modal.is-open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 16, 6, .62);
  backdrop-filter: blur(3px);
  animation: fade .3s ease;
}

.modal-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  width: min(880px, 100%);
  max-height: calc(100svh - 40px);
  overflow: auto;
  background: #fff8ec;
  border: 1px solid var(--gold);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  animation: pop .35s ease;
}

.modal-media {
  position: relative;
  min-height: 320px;
  background: #d9c6a4;
}

.modal-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-media .seva-tag {
  top: 18px;
  left: 18px;
}

.modal-body {
  padding: 40px 36px 34px;
}

.modal-body h3 {
  margin: 10px 0 14px;
  color: var(--ink-dark);
  font-family: var(--font-kannada);
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.125rem);
  line-height: 1.35;
}

.modal-body > p {
  margin: 0 0 24px;
  color: #6b5543;
  line-height: 1.85;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-actions .btn {
  flex: 1;
  min-width: 170px;
  padding: 16px 24px;
  font-size: 1.125rem;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--maroon);
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pop {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: none; }
}


/* =========================================================
   15. LARGE LAPTOP  (≤ 1280px)
   ========================================================= */
@media (max-width: 1280px) {
  :root {
    --header-pad-x: clamp(24px, 8vw, 140px);
  }

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

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


/* =========================================================
   16. MOBILE & TABLET  (≤ 900px)
   Simple version: fixed top bar + menu, video only.
   No temple frame, no pillars, no Swamiji portrait.
   ========================================================= */
@media (max-width: 900px) {
  :root {
    --section-pad-y: 72px;
    --logo-size: 46px;
    --fs-brand: 1.1875rem;
    --fs-brand-sub: 0.625rem;
    --fs-nav: 1.0625rem;
    --m-header-h: 70px;          /* mobile top-bar height */
  }

  html {
    scroll-padding-top: calc(var(--m-header-h) + 12px);
  }

  /* ---- Hero: video only ---- */
  .hero {
    min-height: 0;
    padding-top: var(--m-header-h);
    overflow: visible;
    isolation: auto;
    background: #1b120a;
  }

  .hero::before,
  .temple-frame-overlay,
  .hero-inner {
    display: none;
  }

  .video-sound {
    right: 12px;
    bottom: 12px;
    left: auto;
    padding: 6px 12px 6px 6px;
    font-size: .875rem;
  }

  .video-sound .fa {
    width: 28px;
    height: 28px;
  }

  .hero-video-bg {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: auto 16 / 9;   /* keeps the video's own shape */
    object-fit: contain;
    background: #1b120a;
  }

  /* ---- Simple fixed top bar ---- */
  .header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 95;
    width: 100%;
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-bottom: 1px solid #d8bd8b;
    box-shadow: 0 4px 16px rgba(60, 30, 10, .12);
  }

  .brand-row {
    gap: 10px;
    min-height: var(--m-header-h);
  }

  .brand {
    min-width: 0;
  }

  .brand h2,
  .brand p {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .brand p {
    letter-spacing: 0;
  }

  .head-right {
    gap: 10px;
    margin-left: auto;
  }

  .head-right .language,
  .head-right .fa-search {
    display: none;
  }

  .donate {
    padding: 9px 13px;
  }

  .menu-toggle {
    display: inline-block;
  }

  /* ---- Collapsible menu ---- */
  .nav {
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    max-height: calc(100svh - var(--m-header-h));
    margin: 0 -16px;
    padding: 4px 16px 14px;
    overflow-y: auto;
  }

  .nav.open {
    display: flex;
  }

  .nav-item {
    flex-wrap: wrap;
    justify-content: space-between;
    border-bottom: 1px solid #ead3a8;
  }

  .nav-item:last-child {
    border-bottom: 0;
  }

  .nav-link {
    flex: 1;
    padding: 13px 4px;
    border-bottom: 0;
  }

  .sub-toggle {
    padding: 13px 14px;
  }

  .mega {
    position: static;
    display: none;
    width: 100%;
    margin-bottom: 10px;
    padding: 6px 14px 12px;
    border: 1px solid #ead3a8;
    border-top: 3px solid var(--maroon);
    border-radius: 6px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .mega::before,
  .mega-feature,
  .mega-col.events-col {
    display: none;
  }

  .nav-item:hover > .mega,
  .nav-item:focus-within > .mega {
    transform: none;
  }

  .nav-item.open > .mega {
    display: block;
  }

  .mega-inner {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .mega-col h5 {
    margin: 10px 0 4px;
    padding-bottom: 6px;
  }

  .mega-link {
    padding: 8px 10px;
    margin: 0 -10px;
  }

  .mega-link .fa {
    width: 32px;
    height: 32px;
  }

  .mega-link small {
    display: none;
  }

  .nav-item:hover > .sub-toggle {
    transform: none;
  }

  .nav-item.open > .sub-toggle {
    transform: rotate(180deg);
  }

  /* ---- Sections ---- */
  .lineage-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .seva-grid,
  .feeds-grid,
  .events-grid {
    grid-template-columns: 1fr;
  }

  .seva-grid,
  .feeds-grid {
    max-width: 560px;
    margin: 0 auto;
  }

  .modal-card {
    grid-template-columns: 1fr;
    width: min(520px, 100%);
  }

  .modal-media {
    min-height: 220px;
  }
}


/* =========================================================
   17. SMALL MOBILE  (≤ 600px)
   ========================================================= */
@media (max-width: 600px) {
  :root {
    --section-pad-y: 60px;
    --section-pad-x: 5%;
    --logo-size: 40px;
    --fs-brand: 1rem;
    --fs-brand-sub: 0.5625rem;
    --fs-donate: 0.9375rem;
    --fs-card-title: 1.1875rem;
    --fs-card-text: 1rem;
    --fs-section-lead: 1.0625rem;
    --fs-ticker: .9375rem;
    --ticker-height: 44px;
    --m-header-h: 62px;
  }

  .header {
    padding: 0 12px;
  }

  .nav {
    margin: 0 -12px;
    padding: 4px 12px 14px;
  }

  .donate {
    padding: 8px 10px;
  }

  .lineage-grid {
    gap: 14px;
  }

  .lineage-card {
    padding: 14px 12px 22px;
  }

  .lineage-card h3 {
    font-size: 1.125rem;
  }

  .lineage-card p {
    font-size: .875rem;
  }

  .social-grid {
    gap: 14px;
  }

  .social-card {
    padding: 28px 14px 22px;
  }

  .social-icon {
    width: 64px;
    height: 64px;
    font-size: 1.7rem;
  }

  .social-card h3 {
    font-size: 1.0625rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .events-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
    padding-top: 60px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .ticker-label span {
    display: none;
  }

  .modal-body {
    padding: 28px 22px 24px;
  }
}


/* =========================================================
   18. VERY SMALL PHONE  (≤ 400px)
   ========================================================= */
@media (max-width: 400px) {
  .brand p {
    display: none;
  }

  .lineage-grid,
  .social-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   19. STICKY HEADER ON SCROLL (desktop, ≥ 901px)
   JS adds body.header-stuck once the big header scrolls away.
   Mobile already has a fixed top bar (section 16).
   ========================================================= */
@media (min-width: 901px) {
  html {
    scroll-padding-top: 96px;
  }

  body.header-stuck .hero {
    z-index: 80;
    padding-top: var(--header-space, 0px);   /* keeps the page from jumping */
  }

  body.header-stuck .header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 28px;
    width: 100%;
    margin: 0;
    padding: 0 max(3%, calc((100% - 1500px) / 2));
    border: 0;
    border-bottom: 1px solid #d8bd8b;
    background: #fff2d5;
    box-shadow: 0 6px 24px rgba(60, 30, 10, .15);
    animation: header-in .35s ease;
  }

  /* logo, name, menu and donate in one row */
  body.header-stuck .brand-row {
    display: contents;
  }

  body.header-stuck .logo {
    order: 1;
    width: 52px;
    height: 52px;
  }

  body.header-stuck .brand {
    order: 2;
  }

  body.header-stuck .brand h2 {
    font-size: 1.3rem;
    white-space: nowrap;
  }

  body.header-stuck .brand p {
    display: none;
  }

  body.header-stuck .nav {
    order: 3;
    flex: 1;
    flex-wrap: nowrap;
    gap: 0 clamp(12px, 1.6vw, 28px);
    margin: 0;
    padding: 0;
    border-top: 0;
    font-size: 1rem;
  }

  body.header-stuck .nav-link {
    padding: 24px 0;
  }

  body.header-stuck .head-right {
    order: 4;
    margin-left: 0;
  }

  body.header-stuck .head-right .language,
  body.header-stuck .head-right .fa-search {
    display: none;
  }

  body.header-stuck .donate {
    padding: 10px 18px;
  }
}

/* narrower laptops: drop the name so the menu fits */
@media (min-width: 901px) and (max-width: 1200px) {
  body.header-stuck .brand {
    display: none;
  }
}

@keyframes header-in {
  from { transform: translateY(-100%); }
  to   { transform: none; }
}


/* =========================================================
   20. REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .ticker-track {
    overflow-x: auto;
  }
}
