/* ===========================================================================
   HinduInfo.com — PREMIUM HYBRID IDENTITY LAYER  (public pages only)
   ---------------------------------------------------------------------------
   Loaded ONLY by includes/header.php (public document head). The admin console
   loads style.css + admin.css + admin-layout-compat.css and never this file, so
   nothing here can affect admin screens.

   Strategy: re-map the existing design tokens declared in style.css to the
   approved premium palette, then restyle public components. No PHP pages are
   functionally changed by this file — it is presentation only.
   =========================================================================== */

:root {
  /* ---- Approved premium palette ------------------------------------------ */
  --pm-maroon: #410909;
  --pm-burgundy: #240606;
  --pm-saffron: #E85D04;
  --pm-saffron-deep: #C94E03;
  --pm-gold: #DDAA32;
  --pm-gold-soft: #F0CE72;
  --pm-ivory: #FFF9EF;
  --pm-white: #FFFFFF;
  --pm-ink: #202433;
  --pm-ink-soft: #4A4F5E;
  --pm-ink-muted: #6E7382;
  --pm-line: #EADFD2;
  --pm-line-soft: #F4ECE1;

  /* ---- Re-map existing public tokens ------------------------------------ */
  /* Saffron replaces the old orange accent. */
  --orange-50: #FFF6EC;
  --orange-100: #FFEAD5;
  --orange-200: #F7D9B4;
  --orange-300: #F0C089;
  --orange-400: #EC9A4D;
  --orange-500: #E85D04;
  --orange-600: #D95403;
  --orange-700: #C94E03;
  --orange-800: #A33F02;
  --orange-900: #7A2F01;
  --orange-primary: var(--pm-saffron);
  --orange-hover: var(--pm-saffron-deep);
  --orange-light: #FFF3E4;
  --orange-surface: var(--pm-ivory);

  /* Burgundy replaces the old structural blue. */
  --blue-primary: var(--pm-maroon);
  --blue-hover: #2E0505;
  --blue-nav: var(--pm-burgundy);
  --blue-light: var(--pm-ivory);

  /* Semantic surfaces. */
  --surface: var(--pm-white);
  --surface-raised: var(--pm-white);
  --bg: var(--pm-ivory);
  --text-primary: var(--pm-ink);
  --text-secondary: var(--pm-ink-soft);
  --text-muted: var(--pm-ink-muted);
  --border: var(--pm-line);
  --border-light: var(--pm-line-soft);

  --shadow-sm: 0 1px 2px rgba(36, 6, 6, .05), 0 1px 3px rgba(36, 6, 6, .05);
  --shadow-md: 0 6px 18px rgba(36, 6, 6, .08), 0 2px 6px rgba(36, 6, 6, .05);
  --shadow-lg: 0 16px 40px rgba(36, 6, 6, .12), 0 6px 14px rgba(36, 6, 6, .06);

  /* Typography — a restrained display serif for headings, Inter + Telugu for body. */
  --font-display: 'Playfair Display', 'Noto Serif Telugu', Georgia, 'Times New Roman', serif;
  --maxw: 1240px;
  --pm-radius: 18px;
  --pm-radius-sm: 12px;
}

/* ---------------------------------------------------------------- Base --- */
body {
  background: var(--pm-ivory);
  color: var(--pm-ink);
}
a { color: inherit; }
a:hover { color: var(--pm-saffron-deep); }
:focus-visible { outline: 3px solid var(--pm-gold); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(232, 93, 4, .16); }

/* Preserve Telugu readability with generous wrapping. */
html[lang="te"] body,
body[lang="te"] { font-family: var(--font-telugu); }
[lang="te"] { overflow-wrap: anywhere; }

/* ======================================================== Logo masthead === */
/* Official logo is never distorted or replaced — only its stage is refined. */
.logo-masthead {
  background: linear-gradient(180deg, var(--pm-burgundy) 0%, var(--pm-maroon) 100%);
  background-color: var(--pm-burgundy) !important;
  border-bottom: 1px solid rgba(221, 170, 50, .5);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .35);
}
.logo-masthead-link { text-decoration: none; }
.logo-masthead-image {
  object-position: center;
  filter: brightness(1.16) contrast(1.05) drop-shadow(0 1px 3px rgba(0, 0, 0, .5));
}
.logo-masthead-tagline {
  display: block;
  margin-top: 8px;
  text-align: center;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(240, 206, 114, .92);
  font-weight: 600;
}
.logo-social-link,
.mobile-social-links a {
  border-color: rgba(221, 170, 50, .45);
  color: var(--pm-gold-soft);
  background: rgba(255, 255, 255, .05);
}
.logo-social-link:hover,
.logo-social-link:focus-visible,
.mobile-social-links a:hover,
.mobile-social-links a:focus-visible {
  color: #fff;
  border-color: var(--pm-gold);
  background: rgba(221, 170, 50, .2);
  box-shadow: 0 0 0 3px rgba(221, 170, 50, .22);
}

/* ================================================================ Header == */
.site-header {
  background: linear-gradient(90deg, var(--pm-burgundy) 0%, var(--pm-maroon) 55%, #4d0b0b 100%);
  border-bottom: 1px solid rgba(221, 170, 50, .4);
}
.hi-js .site-header.is-scrolled {
  background: linear-gradient(90deg, rgba(36, 6, 6, .96) 0%, rgba(65, 9, 9, .96) 100%);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 10px 30px rgba(36, 6, 6, .35);
}
.header-inner { height: 74px; gap: 14px; }

/* Search */
.search-form { max-width: 460px; }
.search-input {
  border: 1.5px solid rgba(240, 206, 114, .35);
  background: rgba(255, 255, 255, .1);
  color: #fff;
}
.search-input::placeholder { color: rgba(255, 255, 255, .72); }
.search-input:focus {
  background: var(--pm-white);
  color: var(--pm-ink);
  border-color: var(--pm-gold);
  box-shadow: 0 0 0 3px rgba(221, 170, 50, .28);
}
.search-input:focus::placeholder { color: var(--pm-ink-muted); }
/* Search glyph turns dark while focused on a white field. */
.search-input:focus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23202433' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E"); }

/* Nav links */
.nav-link {
  color: rgba(255, 255, 255, .9);
  font-weight: 600;
  letter-spacing: .01em;
}
.nav-link:hover,
.nav-link:focus-visible { color: var(--pm-gold-soft); }
.nav-link[aria-current="page"] {
  color: var(--pm-gold-soft);
  background: rgba(221, 170, 50, .14);
}

/* Language switcher + account (now visible on desktop too) */
.language-switcher { border-color: rgba(240, 206, 114, .45); }
.lang-btn { color: rgba(255, 255, 255, .92); }
.lang-btn:hover { color: var(--pm-gold-soft); }
.lang-btn[aria-pressed="true"] { background: var(--pm-saffron); color: #fff; }
.account-link { color: rgba(255, 255, 255, .92); }
.account-link:hover { color: var(--pm-gold-soft); }
.pm-header-tools { display: flex; align-items: center; gap: 8px; }
.menu-button { border-color: rgba(240, 206, 114, .5); }
.menu-button:hover { border-color: var(--pm-gold); color: var(--pm-gold-soft); }

/* "More" dropdown uses <details> — keyboard support is native, zero JS needed. */
.nav-more { position: relative; }
.nav-more > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}
.nav-more[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.nav-more-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 230px;
  max-width: min(90vw, 300px);
  background: var(--pm-white);
  border: 1px solid var(--pm-line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: grid;
  gap: 2px;
  z-index: 120;
}
.nav-more-menu::before {
  content: "";
  position: absolute;
  top: -6px; right: 22px;
  width: 12px; height: 12px;
  background: var(--pm-white);
  border-left: 1px solid var(--pm-line);
  border-top: 1px solid var(--pm-line);
  transform: rotate(45deg);
}
.nav-more-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--pm-ink);
  font-size: .9rem;
  font-weight: 600;
}
.nav-more-menu a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pm-gold);
  opacity: .7;
  flex: 0 0 auto;
}
.nav-more-menu a:hover::before,
.nav-more-menu a:focus-visible::before { background: var(--pm-saffron); opacity: 1; }
.nav-more-menu a:hover,
.nav-more-menu a:focus-visible {
  background: var(--orange-light);
  color: var(--pm-maroon);
}
.nav-more-menu a[aria-current="page"] { background: var(--orange-light); color: var(--pm-maroon); }

/* ================================================================ Footer == */
.site-footer {
  background: linear-gradient(180deg, var(--pm-maroon) 0%, var(--pm-burgundy) 100%);
  border-top: 1px solid rgba(221, 170, 50, .35);
  color: rgba(255, 255, 255, .86);
}
.footer-inner { gap: 32px; }
.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--pm-white);
}
.footer-brand small { color: var(--pm-gold-soft); }
.site-footer nav a { color: rgba(255, 255, 255, .78); }
.site-footer nav a:hover { color: var(--pm-gold-soft); }
.footer-bottom {
  border-top: 1px solid rgba(221, 170, 50, .28);
  color: rgba(255, 255, 255, .62);
}
.footer-credit a { color: var(--pm-gold-soft); }
.footer-credit a:hover { color: #fff; }

/* ================================================================= Hero === */
.home-hero {
  position: relative;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(32px, 5vw, 64px) 20px;
}
.home-hero-image {
  border-radius: 24px;
  border: 1px solid rgba(221, 170, 50, .35);
  box-shadow: 0 24px 60px rgba(36, 6, 6, .18);
}
.home-hero-image[aria-hidden="true"] {
  background: linear-gradient(135deg, var(--pm-maroon) 0%, var(--pm-saffron-deep) 100%);
}
.home-hero-image[aria-hidden="true"]::after { content: "\0950"; color: rgba(255, 255, 255, .28); }
.home-hero-copy .section-kicker { color: var(--pm-saffron-deep); }
.home-hero-copy h1 {
  font-family: var(--font-display);
  color: var(--pm-maroon);
}
.home-hero-copy blockquote {
  border-left: 4px solid var(--pm-gold);
  background: linear-gradient(180deg, #FFFDF8 0%, var(--pm-ivory) 100%);
  color: #3a2a24;
  border-radius: 0 14px 14px 0;
}
.home-hero-copy h2 { color: var(--pm-maroon); }

/* Premium CTA buttons */
.text-action {
  border-radius: 999px;
  padding: 12px 22px;
  box-shadow: 0 6px 16px rgba(232, 93, 4, .22);
}
.text-action-secondary {
  background: transparent;
  color: var(--pm-maroon);
  border: 1.5px solid var(--pm-maroon);
  box-shadow: none;
}
.text-action-secondary:hover {
  background: var(--pm-maroon);
  color: #fff;
}
.hero-ctas .text-action { margin-top: 8px; }

/* ============================================================= Sections === */
.section-kicker {
  color: var(--pm-saffron-deep);
  letter-spacing: .14em;
}
.home-search, .home-section { padding: clamp(30px, 4vw, 52px) 20px; }

/* Shared premium section head */
.pm-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.pm-head-copy { min-width: 0; }
.pm-head .pm-kicker {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--pm-saffron-deep);
  margin: 0 0 6px;
}
.pm-head .pm-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--pm-maroon);
  margin: 0;
}
.pm-head .pm-sub {
  margin: 6px 0 0;
  color: var(--pm-ink-soft);
  font-size: .95rem;
  max-width: 62ch;
}
.pm-head-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: .88rem;
  color: var(--pm-saffron-deep);
  white-space: nowrap;
  padding: 8px 14px;
  border: 1.5px solid rgba(232, 93, 4, .3);
  border-radius: 999px;
  transition: background .2s, color .2s, border-color .2s;
}
.pm-head-link:hover {
  background: var(--pm-saffron);
  border-color: var(--pm-saffron);
  color: #fff;
}

/* Gold hairline divider used between feature bands */
.pm-rule {
  height: 1px;
  max-width: var(--maxw);
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(221, 170, 50, .55), transparent);
}

/* ======================================================= Daily Panchangam = */
.pm-pancha {
  border: 1px solid rgba(221, 170, 50, .4);
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(1000px 300px at 100% 0%, rgba(232, 93, 4, .06), transparent 60%),
    var(--pm-white);
  box-shadow: var(--shadow-md);
}
.pm-pancha-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 20px 24px;
  background: linear-gradient(90deg, var(--pm-maroon) 0%, #571010 100%);
  color: #fff;
}
.pm-pancha-date { min-width: 0; }
.pm-pancha-date .pm-pancha-tithi {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  color: #fff;
}
.pm-pancha-date .pm-pancha-sub {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, .85);
  font-size: .9rem;
}
.pm-pancha-loc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(240, 206, 114, .5);
  border-radius: 999px;
  color: var(--pm-gold-soft);
  font-size: .84rem;
  font-weight: 600;
  white-space: nowrap;
}
.pm-pancha-cells {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--pm-line-soft);
}
.pm-cell {
  background: var(--pm-white);
  padding: 16px 18px;
  min-width: 0;
}
.pm-cell-label {
  display: block;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pm-saffron-deep);
  font-weight: 700;
  margin-bottom: 6px;
}
.pm-cell-value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--pm-ink);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.pm-cell-detail {
  display: block;
  margin-top: 3px;
  font-size: .78rem;
  color: var(--pm-ink-muted);
}
.pm-pancha-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 24px;
  background: var(--orange-light);
  border-top: 1px solid var(--pm-line-soft);
}
.pm-pancha-festivals {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: .9rem;
  min-width: 0;
}
.pm-pancha-festival {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pm-white);
  border: 1px solid rgba(221, 170, 50, .5);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--pm-maroon);
  font-weight: 600;
}

/* ==================================================== Quick category grid = */
.quick-links { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.quick-links a {
  border-radius: var(--pm-radius);
  border-color: var(--pm-line);
  padding: 22px 20px;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.quick-links a::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--pm-saffron), var(--pm-gold));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}
.quick-links a:hover { border-color: rgba(232, 93, 4, .5); }
.quick-links a:hover::after { transform: scaleX(1); }
.quick-links a span {
  width: 44px; height: 44px;
  border-radius: 12px;
  font-size: 1.15rem;
  background: linear-gradient(135deg, var(--orange-light), #FFE7CC);
  color: var(--pm-saffron-deep);
}
.quick-links h3 { font-family: var(--font-display); color: var(--pm-maroon); }

/* ============================================================ Card grids == */
.pm-grid {
  display: grid;
  gap: 20px;
  margin-top: 4px;
}
.pm-grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.pm-grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pm-grid--4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.pm-card {
  display: flex;
  flex-direction: column;
  background: var(--pm-white);
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  min-width: 0;
  transition: transform .24s cubic-bezier(.22, 1, .36, 1), box-shadow .24s, border-color .24s;
}
.pm-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(221, 170, 50, .6);
  color: inherit;
}
.pm-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pm-maroon), var(--pm-saffron-deep));
}
.pm-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}
.pm-card:hover .pm-card-media img { transform: scale(1.05); }
.pm-card-media--tile {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .9);
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  text-align: center;
  padding: 14px;
}
.pm-card-media--tile small {
  display: block;
  font-family: var(--font-telugu);
  font-size: .9rem;
  font-weight: 500;
  margin-top: 6px;
  color: rgba(255, 255, 255, .82);
}
.pm-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(36, 6, 6, .82);
  color: var(--pm-gold-soft);
  border: 1px solid rgba(221, 170, 50, .5);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.pm-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
  flex: 1;
  min-width: 0;
}
.pm-card-kicker {
  margin: 0;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--pm-saffron-deep);
}
.pm-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--pm-maroon);
  overflow-wrap: anywhere;
}
.pm-card-text {
  margin: 0;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--pm-ink-soft);
  flex: 1;
}
.pm-card-meta {
  display: flex;
  align-items: center;
  gap: 8px 14px;
  flex-wrap: wrap;
  margin-top: 2px;
  font-size: .8rem;
  color: var(--pm-ink-muted);
}
.pm-card-meta .pm-tag {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--orange-light);
  color: var(--pm-saffron-deep);
  font-weight: 600;
}
.pm-card-cta {
  margin-top: 6px;
  font-weight: 700;
  font-size: .85rem;
  color: var(--pm-saffron-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pm-card:hover .pm-card-cta { gap: 10px; }

/* Video card */
.pm-video .pm-card-media { aspect-ratio: 16 / 9; }
.pm-video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
}
.pm-video-play span {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(36, 6, 6, .55);
  border: 1.5px solid rgba(240, 206, 114, .8);
  backdrop-filter: blur(2px);
  transition: transform .24s, background .24s;
}
.pm-card:hover .pm-video-play span { transform: scale(1.08); background: var(--pm-saffron); }
.pm-video-play svg { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }

/* Quote card */
.pm-quote {
  position: relative;
  background: linear-gradient(135deg, #FFFDF8 0%, var(--pm-ivory) 100%);
  border: 1px solid rgba(221, 170, 50, .45);
  border-radius: 24px;
  padding: clamp(26px, 4vw, 48px);
  text-align: center;
  overflow: hidden;
}
.pm-quote::before {
  content: "\201C";
  position: absolute;
  top: -18px; left: 18px;
  font-family: var(--font-display);
  font-size: 8rem;
  line-height: 1;
  color: rgba(221, 170, 50, .28);
}
.pm-quote blockquote {
  margin: 0 auto;
  max-width: 60ch;
  font-family: var(--font-telugu);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.7;
  color: var(--pm-maroon);
  position: relative;
}
.pm-quote cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-weight: 700;
  color: var(--pm-saffron-deep);
  font-size: .92rem;
}

/* ========================================================= CTA / banner == */
.volunteer-callout {
  background:
    radial-gradient(700px 220px at 50% -40%, rgba(221, 170, 50, .18), transparent 70%),
    linear-gradient(135deg, var(--pm-maroon) 0%, var(--pm-burgundy) 100%);
  border: 1px solid rgba(221, 170, 50, .4);
  border-radius: 24px;
  color: #fff;
}
.volunteer-callout .section-kicker { color: var(--pm-gold-soft); }
.volunteer-callout h2 {
  font-family: var(--font-display);
  color: #fff;
}
.volunteer-callout p { color: rgba(255, 255, 255, .82); }
.volunteer-callout .text-action-secondary {
  color: var(--pm-gold-soft);
  border-color: rgba(240, 206, 114, .7);
}
.volunteer-callout .text-action-secondary:hover { background: var(--pm-gold); color: var(--pm-burgundy); }

/* ============================================== Wishes / festival cards == */
.wish-card { border-radius: var(--pm-radius); border-color: var(--pm-line); }
.wish-card-kicker { color: var(--pm-saffron-deep); }
.wish-card-copy h3 { font-family: var(--font-display); color: var(--pm-maroon); }

/* ========================================================= Panchangam ==== */
/* Align the existing premium Panchangam surface with the new gold. */
.panchangam-premium { --pa-gold: #DDAA32; --pa-line: #EADFD2; }
.panchangam-hero { background: linear-gradient(160deg, var(--pm-maroon), var(--pm-burgundy)); }
.panchangam-hero-title { font-family: var(--font-display); }
.panchangam-detail-title { font-family: var(--font-display); }
.panchangam-detail h1, .panchangam-detail-title { color: var(--pm-maroon); }

/* =========================================== Content shells / reading ==== */
.reading-header h1, .panchangam-detail h1 { font-family: var(--font-display); color: var(--pm-maroon); }
.card { border-radius: var(--pm-radius); }
.card-body h3 { font-family: var(--font-display); color: var(--pm-maroon); }
.breadcrumbs a { color: var(--pm-saffron-deep); }
.empty-state, .data-notice { background: var(--orange-light); border-color: var(--orange-200); }

/* =================================================== Generic buttons ===== */
.btn-primary, .home-search button { background: var(--pm-saffron); border-radius: 999px; }
.btn-primary:hover, .home-search button:hover { background: var(--pm-saffron-deep); }
.home-search input:focus { border-color: var(--pm-gold); box-shadow: 0 0 0 3px rgba(221, 170, 50, .22); }

/* ======================================================== Quote band ===== */
/* A standalone kicker (used outside .pm-head, e.g. the quote card). */
.pm-kicker {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--pm-saffron-deep);
  margin: 0 0 8px;
}
.pm-quote .pm-kicker { position: relative; z-index: 1; }
.pm-quote blockquote { margin-top: 6px; }

/* Meta line reused as a paragraph inside article/video cards. */
p.pm-card-meta { margin: 0; }

/* =========================================== Panchangam banner extras ==== */
.pm-pancha-festivals strong { color: var(--pm-maroon); font-weight: 700; }
.pm-pancha-foot .pm-head-link { flex: 0 0 auto; }
.pm-pancha-loc { line-height: 1; }

/* ================================================== Tile glyph + callout == */
.pm-card-media--tile span { line-height: 1; }
/* The volunteer banner is rendered inside a .home-section wrapper now, so it
   is already inset to the content width and needs no extra vertical margin. */
.home-section .volunteer-callout { margin: 0; }

/* =============================== Motion polish for the new card classes === */
.hi-js .pm-card,
.hi-js .pm-cell { opacity: 1; }
.pm-card, .pm-cat { will-change: auto; }
@media (hover: hover) and (pointer: fine) {
  .pm-card:hover .pm-card-title { color: var(--pm-saffron-deep); }
}

/* ======================================================== Responsive ===== */
@media (max-width: 1024px) {
  .header-inner { gap: 12px; }
  .search-form { max-width: 320px; }
}

@media (max-width: 860px) {
  .logo-masthead-tagline { display: none; }
  .header-inner { height: 58px; }
  /* Desktop-only tools fold into the mobile off-canvas menu. */
  .pm-header-tools { display: none; }
  .nav-links {
    background: var(--pm-white);
    border-bottom: 1px solid var(--pm-line);
    max-height: calc(100vh - 58px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-link { color: var(--pm-ink); }
  .nav-link:hover { background: var(--orange-light); color: var(--pm-maroon); }
  .nav-link[aria-current="page"] { color: var(--pm-maroon); background: var(--orange-light); }
  /* Dropdown becomes an inline, non-floating group on touch. */
  .nav-more { width: 100%; }
  .nav-more > summary { width: 100%; padding: 14px; color: var(--pm-ink); border-radius: 10px; }
  .nav-more > summary:hover { background: var(--orange-light); }
  .nav-more-menu {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 10px;
    max-width: none;
    min-width: 0;
    background: transparent;
  }
  .nav-more-menu::before { display: none; }
  .nav-more-menu a { color: var(--pm-ink-soft); }
  .home-hero { grid-template-columns: 1fr; gap: 26px; }
  .home-hero-image { max-height: 320px; }
  .pm-grid--2, .pm-grid--3, .pm-grid--4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .pm-grid--2, .pm-grid--3, .pm-grid--4 { grid-template-columns: 1fr; }
  .pm-pancha-top { padding: 18px 18px; }
  .pm-cell { padding: 14px 16px; }
  .pm-pancha-foot { padding: 14px 18px; }
  .quick-links { grid-template-columns: 1fr 1fr; }
  .pm-head { align-items: flex-start; }
  .home-hero-copy h1 { font-size: 1.9rem; }
}

@media (max-width: 480px) {
  .quick-links { grid-template-columns: 1fr; }
  .pm-head-link { width: 100%; justify-content: center; }
  .pm-cell-value { font-size: .96rem; }
}

@media (max-width: 375px) {
  .pm-pancha-date .pm-pancha-tithi { font-size: 1.15rem; }
  .pm-card-body { padding: 16px; }
}

@media (max-width: 320px) {
  .home-hero, .home-section, .pm-pancha { border-radius: 16px; }
  .pm-cell { padding: 12px; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .pm-card,
  .pm-card-media img,
  .quick-links a::after,
  .pm-card-cta {
    transition: none !important;
  }
  .pm-card:hover { transform: none !important; }
  .pm-card:hover .pm-card-media img { transform: none !important; }
}

/* ---- Print ---- */
@media print {
  .logo-masthead, .site-header, .pm-head-link { display: none !important; }
  .pm-card, .pm-pancha { box-shadow: none; border-color: #ccc; }
}

/* ========================================================================
   Temple portal composition — matches the approved Hindu Info direction:
   one practical brand/search row, a compact route bar, then an image-led
   temple hero.  These rules deliberately sit last so older generic chrome
   cannot dilute the established maroon-and-gold portal identity.
   ======================================================================== */
.logo-masthead { display: none; }
.site-header {
  position: relative;
  z-index: 100;
  background: linear-gradient(105deg, #260405, #570e0c 58%, #280406);
  border-bottom: 1px solid rgba(232, 179, 71, .55);
}
.header-inner {
  max-width: 1440px;
  min-height: 78px;
  height: auto;
  padding: 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}
.portal-brand { display: inline-flex; align-items: center; flex: 0 0 270px; }
.portal-brand img { display: block; width: 258px; height: 74px; object-fit: contain; object-position: left center; }
.header-inner > .search-form { order: 2; flex: 1 1 330px; max-width: 470px; margin: 0; }
.header-inner > .header-actions { order: 3; margin-left: auto; }
.header-inner > .nav-links {
  order: 4;
  flex: 1 0 100%;
  margin: 0 -28px;
  padding: 0 28px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: rgba(28, 2, 2, .82);
  border-top: 1px solid rgba(232, 179, 71, .25);
}
.header-inner > .nav-links .nav-link { padding: 10px 14px; font-size: .84rem; }
.portal-hero {
  position: relative;
  isolation: isolate;
  min-height: min(57vw, 620px);
  overflow: hidden;
  background: #210706;
}
.portal-hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; }
.portal-hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(18,2,2,.68) 0%, rgba(18,2,2,.32) 43%, rgba(18,2,2,.04) 72%), linear-gradient(0deg, rgba(20,2,2,.72), transparent 44%);
}
.portal-hero-content { max-width: 1440px; min-height: inherit; margin: auto; padding: clamp(50px, 8vw, 126px) clamp(24px, 9vw, 150px) 34px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; color: #fff; }
.portal-hero-logo { width: min(380px, 52vw); height: auto; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.6)); }
.portal-hero-content h1 { margin: 20px 0 5px; color: #ffe08a; font-family: var(--font-telugu); font-size: clamp(1.25rem, 2.2vw, 2rem); }
.portal-hero-content > p { margin: 0; max-width: 39ch; color: #fff5d8; font-size: clamp(.92rem, 1.4vw, 1.15rem); font-weight: 600; }
.portal-hero-actions { width: min(100%, 760px); margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: 1px solid rgba(255,222,130,.55); background: rgba(44,4,2,.62); }
.portal-hero-actions a { padding: 14px 12px; color: #fff; text-align: center; font-weight: 700; text-decoration: none; background: rgba(40,3,2,.62); transition: background .2s ease, color .2s ease; }
.portal-hero-actions a:hover, .portal-hero-actions a:focus-visible { color: #3c1106; background: #f3bd35; }

/* Compact service rail, closer to the approved icon-led portal navigation. */
.portal-hero + .home-section { padding-top: 26px; }
.portal-hero + .home-section .pm-head { margin-bottom: 14px; }
.portal-hero + .home-section .pm-pancha { border-radius: 15px; box-shadow: 0 13px 30px rgba(62,15,4,.14); }
.portal-service-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.portal-service-grid a { min-height: 132px; padding: 14px 10px; align-items: center; text-align: center; gap: 7px; }
.portal-service-grid a span { width: 46px; height: 46px; }
.portal-service-grid a h3 { font-size: .92rem; }
.portal-service-grid a p { display: none; }
.portal-service-grid a:nth-child(1) span, .portal-service-grid a:nth-child(1) span::before { font-size: 0; }
.portal-service-grid a:nth-child(1) span::before { content: '☸'; font-size: 28px; }
.portal-service-grid a:nth-child(2) span, .portal-service-grid a:nth-child(2) span::before { font-size: 0; }
.portal-service-grid a:nth-child(2) span::before { content: '▣'; font-size: 25px; }
.portal-service-grid a:nth-child(3) span, .portal-service-grid a:nth-child(3) span::before { font-size: 0; }
.portal-service-grid a:nth-child(3) span::before { content: '⌂'; font-size: 29px; }
.portal-service-grid a:nth-child(4) span, .portal-service-grid a:nth-child(4) span::before { font-size: 0; }
.portal-service-grid a:nth-child(4) span::before { content: '✦'; font-size: 28px; }
.portal-service-grid a:nth-child(5) span, .portal-service-grid a:nth-child(5) span::before { font-size: 0; }
.portal-service-grid a:nth-child(5) span::before { content: 'ॐ'; font-size: 27px; }
.portal-service-grid a:nth-child(6) span, .portal-service-grid a:nth-child(6) span::before { font-size: 0; }
.portal-service-grid a:nth-child(6) span::before { content: '▤'; font-size: 27px; }
.portal-service-grid a:nth-child(7) span, .portal-service-grid a:nth-child(7) span::before { font-size: 0; }
.portal-service-grid a:nth-child(7) span::before { content: '▶'; font-size: 23px; }
.portal-service-grid a:nth-child(8) span, .portal-service-grid a:nth-child(8) span::before { font-size: 0; }
.portal-service-grid a:nth-child(8) span::before { content: '✧'; font-size: 26px; }

@media (max-width: 1024px) {
  .header-inner > .nav-links .nav-link { padding-inline: 9px; font-size: .78rem; }
  .portal-brand { flex-basis: 176px; }
  .portal-brand img { width: 170px; }
  .portal-service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .header-inner { min-height: 68px; padding-inline: 16px; }
  .portal-brand { flex-basis: 145px; }
  .portal-brand img { width: 142px; height: 55px; }
  .header-inner > .search-form { order: 3; flex-basis: 100%; max-width: none; margin: -5px 0 12px; }
  .header-inner > .header-actions { order: 2; }
  .header-inner > .nav-links { margin: 0 -16px; padding: 0 16px; }
  .portal-hero { min-height: 530px; }
  .portal-hero-content { padding: 56px 24px 24px; }
}
@media (max-width: 640px) {
  /* Keep the mobile header to one useful row: search plus the menu trigger.
     The full wordmark stays prominent in the hero instead of consuming a
     separate, mostly empty masthead row. */
  .portal-brand { display: none; }
  .header-inner { min-height: 0; height: auto; padding: 10px 16px; gap: 10px; }
  .header-inner > .search-form { order: 1; flex: 1 1 0; margin: 0; }
  .header-inner > .header-actions { order: 2; margin-left: 0; }
  .header-inner > .nav-links { order: 3; }

  /* A 1024px poster must use the complete phone width.  The previous nested
     padding reduced the rendered calendar to 281px, making its Telugu values
     effectively unreadable. */
  .panchangam-social { padding: 10px; gap: 12px; }
  .panchangam-preview--fixed { padding: 0; }
  .panchangam-template { max-width: none; }
  .panchangam-template-value { font-size: .62rem; padding: 2px 2px; }
  .panchangam-template-rahu,
  .panchangam-template-yama,
  .panchangam-template-gulika,
  .panchangam-template-abhijit { font-size: .45rem; }
  .panchangam-template-list-value { font-size: .42rem; }

  /* The global primary-button skin was making these transparent with white
     text on phone screens. Panchangam actions must remain obvious and tappable. */
  .panchangam-social-actions .panchangam-btn.is-primary {
    background: #aa2e08 !important;
    border-color: #7d1d05 !important;
    color: #fff !important;
    box-shadow: 0 5px 12px rgba(91, 22, 4, .22);
  }
  .panchangam-social-actions .panchangam-btn.is-primary:disabled {
    background: #b7642f !important;
    border-color: #8e4218 !important;
    color: #fff8e7 !important;
    opacity: .82;
  }
  .panchangam-social-actions .panchangam-btn.is-quiet {
    background: #fff7e9 !important;
    border-color: #d99a46 !important;
    color: #6b2407 !important;
  }
  .panchangam-share.is-whatsapp {
    background: #168a49 !important;
    border-color: #0e6936 !important;
    color: #fff !important;
  }

  .portal-brand { flex-basis: 126px; }
  .portal-brand img { width: 125px; height: 50px; }
  .portal-hero { min-height: 470px; }
  .portal-hero-content { padding: 42px 20px 18px; }
  .portal-hero-logo { width: min(280px, 80vw); }
  .portal-hero-actions { grid-template-columns: repeat(2, 1fr); margin-top: 20px; }
  .portal-hero-actions a { padding: 11px 8px; font-size: .88rem; }
  .portal-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .portal-service-grid a { min-height: 118px; }
}
