/* ============================================================
   देववाणी — Sanatan Dharma portal home page
   Theme: warm saffron / cream devotional palette
   NOTE on images:
     - Hero uses provided header.png
     - Content image areas use .placeholder-img boxes (replace later)
     - Background-image slots are left BLANK (commented) — add images later
   ============================================================ */

:root {
  --bg:          #fceee2;   /* warm cream page bg (sampled from design) */
  --bg-2:        #fdf4e9;
  --card:        #fdf6ee;   /* warm off-white cards — NOT pure white */
  --card-soft:   #fbeede;
  --primary:     #ef5a00;   /* vivid saffron (sampled from buttons) */
  --primary-dark:#d44800;
  --primary-light:#f7842e;
  --maroon:      #cc3000;   /* deep vermilion title (sampled) */
  --gold:        #d6a23a;
  --text:        #4a3526;
  --text-muted:  #927a63;
  --border:      #f0e0c8;
  --border-soft: #f7ecdb;
  --shadow:      0 12px 30px rgba(190, 130, 60, .14);
  --shadow-sm:   0 6px 16px rgba(190, 130, 60, .10);
  --radius:      28px;
  --radius-sm:   12px;
  --texture:     url('data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%2796%27%20height=%2796%27%20viewBox=%270%200%2096%2096%27%3E%3Ctext%20x=%276%27%20y=%2740%27%20font-family=%27serif%27%20font-size=%2730%27%20fill=%27%23c8924a%27%20fill-opacity=%270.09%27%3E%E0%A5%90%3C/text%3E%3Cg%20fill=%27none%27%20stroke=%27%23c8924a%27%20stroke-opacity=%270.11%27%20stroke-width=%272.4%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M70%2062%20L70%2082%20M60%2072%20L80%2072%20M70%2062%20L80%2062%20M80%2072%20L80%2082%20M70%2082%20L60%2082%20M60%2072%20L60%2062%27/%3E%3C/g%3E%3C/svg%3E');
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Mukta", system-ui, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  /* devotional jali texture across the whole page + warm glow washes */
  background-image:
    var(--texture),
    radial-gradient(1200px 500px at 80% -5%, #ffe9cf 0%, transparent 60%),
    radial-gradient(900px 400px at -5% 5%, #ffeede 0%, transparent 55%);
  background-size: 80px 80px, auto, auto;
  background-repeat: repeat, no-repeat, no-repeat;
  background-attachment: scroll, fixed, fixed;
  line-height: 1.55;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: clamp(16px, 3vw, 44px); }

/* ---------- buttons ---------- */
.btn {
  font-family: inherit; font-weight: 600; cursor: pointer;
  border: none; border-radius: 999px; padding: 10px 20px;
  font-size: .95rem; transition: transform .15s ease, box-shadow .15s ease, background .15s;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-light), var(--primary) 55%, var(--primary-dark));
  box-shadow: 0 8px 18px rgba(224, 110, 30, .35);
}
.btn-ghost {
  background: #fff; color: var(--primary-dark);
  border: 1.5px solid var(--primary-light);
}
.btn-lg { padding: 13px 26px; font-size: 1.02rem; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border);
  color: var(--primary-dark); cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform .15s, background .15s;
}
.icon-btn:hover { transform: translateY(-2px); background: var(--card-soft); }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-fill { width: 14px; height: 14px; fill: currentColor; }

/* ---------- placeholder boxes ---------- */
/* Generic image placeholder — replace with a real <img> later.
   Defined early so the specific .ph-* size modifiers below always win.
   These are visible boxes (NOT background images) so the layout reads clearly. */
.placeholder-img {
  background: repeating-linear-gradient(45deg, #f7ead6 0 10px, #fdf4e6 10px 20px);
  border: 1px dashed #e2c9a3;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  color: #b89368; font-size: .72rem; font-weight: 600; letter-spacing: .3px;
  width: 100%; aspect-ratio: 1/1; text-align: center;
}
.ph-icon { width: 52px; height: 52px; aspect-ratio: auto; border-radius: 12px; }

/* ============================ NAVBAR ============================ */
/* LEFT-column image header — menu + headline overlaid on top.
   Bleeds to the top + left viewport edges so the banner is full-width. */
.header-main {
  position: relative; min-width: 0;
  display: flex; flex-direction: column;
  min-height: 560px;
  margin-left: calc(-1 * clamp(16px, 3vw, 44px));
  background-image: url('../img/home/header-2.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 16px clamp(24px, 4vw, 60px) 70px;
}
/* cream washes over the image:
   - bottom fade so the image melts into the page/cream (same colour as the right column)
   - left wash keeps the menu + headline legible
   rgb(251,238,218) == --bg, so it matches the right side exactly */
/* .header-main::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(251,238,218,0) 66%, rgba(251,238,218,.60) 88%, rgba(251,238,218,1) 100%),
    linear-gradient(90deg,
      rgba(251,238,218,.80) 0%, rgba(251,238,218,.34) 32%,
      rgba(251,238,218,.05) 56%, rgba(251,238,218,0) 72%);
} */
.header-main > * { position: relative; z-index: 2; }

/* menu overlaid on the image (logo + links) */
.navbar {
  position: relative; z-index: 5;
  display: flex; align-items: center; gap: 12px; padding: 6px 0 0;
}

/* RIGHT column: actions (search / theme / login) at the top */
.side-col .nav-actions { justify-content: flex-end; align-items: center; min-height: 54px; padding-top: 8px; }

/* search bar pulled up to overlap the bottom of the image */
.search-card.overlap { margin-top: -52px; position: relative; z-index: 6; }

/* lotus-1.png inside the सुविचार box (bottom-right corner) */
.suvichar-card { overflow: visible; }
.lotus-corner {
      position: absolute;
    left: -12px;
    bottom: -68px;
    width: 194px;
    pointer-events: none;
    z-index: 1;
 }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 68px; width: auto; display: block; }
.brand.small .brand-logo, .foot-logo { height: 84px; }
.brand-mark {
  font-size: 1.6rem; color: var(--primary);
  width: 42px; height: 42px; display: grid; place-items: center;
  background: radial-gradient(circle, #fff 40%, #ffe6c8);
  border-radius: 50%; box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: "Yatra One", "Mukta", serif; color: var(--maroon); font-size: 1.45rem; white-space: nowrap; }
.brand-tag { font-size: .66rem; color: var(--text-muted); letter-spacing: .2px; white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: 6px; margin-inline: auto; flex-wrap: nowrap; }
.nav-links a {
  position: relative; padding: 6px 8px 9px; font-weight: 500; font-size: .98rem; white-space: nowrap;
  color: var(--text); transition: color .15s;
}
/* animated red underline on hover / active */
.nav-links a::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 2px; height: 2.5px;
  background: var(--maroon); border-radius: 2px;
  transform: scaleX(0); transform-origin: center; transition: transform .22s ease;
}
.nav-links a:hover { color: var(--maroon); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--maroon); font-weight: 700; }
.nav-links a.has-caret { color: var(--text-muted); }
/* WordPress wp_nav_menu output (ul > li > a) */
.nav-links li { display: flex; }
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a,
.nav-links .current-menu-ancestor > a { color: var(--maroon); font-weight: 700; }
.nav-links .current-menu-item > a::after,
.nav-links .current_page_item > a::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

/* ============================ PAGE LAYOUT (unified 2-col) ============================ */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 24%, 360px);
  gap: 0 28px;
  padding-bottom: 40px;   /* horizontal padding comes from .container */
  align-items: start;
}
.main-col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.side-col { display: flex; flex-direction: column; gap: 18px; }

/* ============================ HEADER BODY ============================ */
/* headline sits over the image, vertically centred in the left area */
.hero-text { position: relative; z-index: 2; max-width: 560px; margin: auto 0; padding: 24px 0; }
.hero-title {
  font-family: "Yatra One", serif; color: var(--maroon);
  font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 0 0 4px;
  text-shadow: 0 2px 8px rgba(255,255,255,.65);
}
.hero-sub { font-size: 1.3rem; font-weight: 700; color: var(--primary-dark); margin: 0 0 14px; }
.hero-desc { color: #6e4a2c; font-weight: 600; margin: 0 0 22px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.play-dot {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: #fff;
}

/* आज का पंचांग card — fills the cream column, all theme colour */
.header-box {
  position: relative; overflow: hidden;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px 18px 20px;
}
.header-box > *:not(.panchang-lotus) { position: relative; z-index: 2; }

/* header: orange icon + title */
.panchang-top { display: flex; align-items: center; gap: 14px; }
.panchang-icon {
  width: 52px; height: 52px; flex: 0 0 auto; border-radius: 15px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--primary-light), var(--primary) 55%, var(--primary-dark));
  box-shadow: 0 6px 14px rgba(224,110,30,.35), 0 0 0 4px rgba(234,124,42,.14);
}
.panchang-icon .pi { width: 24px; height: 24px; }
.panchang-top h3 { flex: 1; margin: 0; text-align: center; color: var(--maroon); font-size: 1.35rem; font-weight: 800; }

/* decorative divider */
.panchang-divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 4px; }
.panchang-divider span { color: var(--gold); font-size: .8rem; }
.panchang-divider::before, .panchang-divider::after { content: ""; height: 1px; width: 70px; }
.panchang-divider::before { background: linear-gradient(90deg, transparent, #e2b878); }
.panchang-divider::after  { background: linear-gradient(90deg, #e2b878, transparent); }

/* shared icon glyph style */
.pi { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* lotus in the bottom-right corner of the card */
.panchang-lotus {
  position: absolute; right: 0px; bottom: 0px;
  z-index: 2; pointer-events: none;
}
.header-box .btn-block { margin-top: 12px; }

/* ============================ SEARCH ============================ */
.search-card {
  background: #fdf5ec; border-radius: 34px;
  padding: 20px 22px; box-shadow: 0 12px 28px rgba(190,130,60,.14); border: 1px solid var(--border-soft);
}
.search-row {
  display: flex; align-items: center; gap: 12px;
  background: #ffffff; border: 1px solid var(--border-soft);
  border-radius: 999px; padding: 7px 8px 7px 24px;
  box-shadow: 0 2px 8px rgba(160,110,50,.06);
}
.search-ico { color: var(--text-muted); display: grid; place-items: center; }
.search-ico .ico { width: 24px; height: 24px; stroke-width: 2.2; }
.search-row input {
  flex: 1; border: none; background: transparent; outline: none;
  font-family: inherit; font-size: 1.12rem; color: var(--text); padding: 12px 0;
}
.search-row input::placeholder { color: #9a886f; }
/* mic = plain icon, no circle */
.search-row .mic {
  width: 44px; height: 44px; background: transparent; border: none;
  box-shadow: none; color: #6e5c48;
}
.search-row .mic:hover { background: transparent; color: var(--primary-dark); transform: none; }
.search-row .mic .ico { width: 22px; height: 22px; }
/* orange circular search button */
.search-go {
  width: 54px; height: 54px; padding: 0; border-radius: 50%; flex: 0 0 auto;
  box-shadow: 0 8px 18px rgba(224,110,30,.40);
}
.search-go .ico { width: 23px; height: 23px; stroke-width: 2.4; }
.search-tags { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.tags-label { color: #7d5d45; font-size: .92rem; font-weight: 600; white-space: nowrap; }
.tag {
  font-size: .92rem; padding: 10px 20px; border-radius: 999px;
  background: #fff9f0; border: 1px solid #eddfcb; color: #6f4f3a; font-weight: 500;
  transition: background .15s, color .15s;
}
.tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.tag-next { width: 34px; height: 34px; font-size: 1.2rem; flex: 0 0 auto; }

/* ============================ SECTION TITLES ============================ */
.section-title {
  text-align: center; color: var(--maroon); font-weight: 800;
  font-size: 1.5rem; margin: 4px 0 18px; letter-spacing: .3px;
}
.block { }

/* ============================ CAROUSEL ============================ */
.carousel { position: relative; }
.car-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--primary); color: #fff; font-size: 1.4rem; line-height: 1;
  box-shadow: 0 6px 14px rgba(224,110,30,.4);
}
.car-arrow.left { left: -10px; }
.car-arrow.right { right: -10px; }

/* explore cards */
.explore-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px;
}
.explore-card {
  position: relative; display: block; overflow: hidden;
  background-color: #fbe7cf;
  background-image: var(--texture), radial-gradient(circle at 50% 40%, #fff6e8, rgba(255,246,232,0) 70%);
  background-repeat: repeat, no-repeat;
  background-size: 64px 64px, 100% 100%;
  border-radius: var(--radius-sm); border: 1.5px solid #eccfa0;
  box-shadow: 0 10px 22px rgba(190,120,50,.18), 0 2px 4px rgba(190,120,50,.10);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.explore-card:hover {
  transform: translateY(-4px); border-color: var(--primary-light);
  box-shadow: 0 16px 30px rgba(200,110,30,.28), 0 3px 6px rgba(190,120,50,.14);
}
.explore-img, .explore-ph {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center;
  display: block; border-radius: 0;
}
/* title shown BELOW the image (warm devotional colours, no overlay) */
.explore-name {
  display: block; text-align: center; padding: 8px 6px 12px;
  color: var(--maroon); font-weight: 700; font-size: .95rem; line-height: 1.2;
}
.explore-name b { display: block; font-weight: 600; font-size: .78rem; color: var(--primary-dark); margin-top: 2px; }

/* deity cards */
.deity-grid {
  display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: none;
}
.deity-grid::-webkit-scrollbar { display: none; }
.deity-card {
  flex: 0 0 calc((100% - 6 * 12px) / 7); scroll-snap-align: start;
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-soft);
  transition: transform .15s, box-shadow .15s;
}
.deity-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.deity-card .ph-deity { border-radius: 0; aspect-ratio: 3/4; }
.deity-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: center top; display: block; }
.deity-name {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 6px 8px;
  color: #fff; font-weight: 600; font-size: .82rem; text-align: center;
  background: linear-gradient(transparent, rgba(120,50,10,.85));
}

/* dots */
.dots { display: flex; gap: 7px; justify-content: center; margin-top: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.dot.active { background: var(--primary); width: 22px; border-radius: 999px; }

/* ============================ CARDS ============================ */
.card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border-soft); box-shadow: var(--shadow-sm);
  padding: 20px; position: relative; overflow: hidden;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.card-mini-title { color: var(--maroon); font-size: 1.05rem; margin: 0 0 14px; font-weight: 700; }
.card-mini-title.center { text-align: center; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-head .card-mini-title { margin: 0; }
.see-all { color: var(--primary-dark); font-size: .82rem; font-weight: 600; }

/* quote card */
.quote-card { text-align: center; background: linear-gradient(160deg, #fffdf8, #fff6e9); }
.quote-diya {     position: absolute;
    left: -12px;
    bottom: -37px;
    width: 239px;
    pointer-events: none;}
.quote-mark { font-family: "Yatra One", serif; color: var(--gold); font-size: 2.6rem; line-height: .4; display: block; opacity: .5; }
.quote-mark.big { font-size: 3.4rem; }
.quote-text { font-family: "Tiro Devanagari Hindi", serif; font-size: 1.15rem; color: var(--maroon); margin: 10px 0; }
.quote-by { color: var(--text-muted); font-weight: 600; font-size: .85rem; margin: 6px 0 14px; }
.tiro { font-family: "Tiro Devanagari Hindi", serif; }

/* aarti grid */
.aarti-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.aarti-item { text-align: center; }
.aarti-item .ph-thumb { aspect-ratio: 1/1; border-radius: var(--radius-sm); position: relative; }
.aarti-name { display: block; font-size: .78rem; margin-top: 6px; font-weight: 600; color: var(--text); }

/* mantra list */
.mantra-list li {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}
.mantra-list li:last-child { border-bottom: none; }
.ph-avatar { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; font-size: .6rem; }
.mantra-meta { flex: 1; display: flex; flex-direction: column; }
.mantra-meta strong { color: var(--maroon); font-size: .95rem; }
.mantra-meta span { font-size: .76rem; color: var(--text-muted); }
.wave { color: var(--primary-light); letter-spacing: -2px; font-size: 1.1rem; }
.play-circle {
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #fff; font-size: .8rem; flex: 0 0 auto;
}
.play-circle.sm { width: 30px; height: 30px; font-size: .7rem; }

/* gita card */
/* gita card — gold mandala background, left-aligned 2-column layout */
.gita-card {
  text-align: left; position: relative; overflow: hidden; min-height: 320px;
  background-image: url('../img/home/gita-bg.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.card-title-center { color: var(--maroon); font-size: 1.3rem; margin: 0 0 4px; font-weight: 800; }
.gita-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.gita-title { color: var(--maroon); font-size: 1.3rem; font-weight: 800; margin: 0; }
.gita-cols { display: flex; gap: 16px; align-items: flex-start; }
.gita-left { flex: 0 0 42%; display: flex; flex-direction: column; min-width: 0; }
.gita-lead { margin: 0; color: var(--text); }
.gita-sub { margin: 2px 0 12px; font-size: .82rem; color: var(--text-muted); }
.gita-body { display: flex; gap: 14px; align-items: stretch; }
.ph-book { width: 120px; flex: 0 0 120px; border-radius: var(--radius-sm); }
.gita-img {
  width: 337px;
  height: auto;
  display: block;
  margin-bottom: 14px;
  object-fit: cover;

  position: absolute;
    bottom: -19px;
  left: -20px;
}
.gita-chapters { flex: 1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; align-content: start; }
.gita-chapters a {
  display: grid; place-items: center; aspect-ratio: 1/1; border-radius: 10px;
  background: rgba(255,251,244,.85); border: 1px solid var(--border); color: var(--primary-dark);
  font-weight: 700; font-size: .9rem; transition: background .15s, color .15s;
}
.gita-chapters a:hover, .gita-chapters a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.gita-btn { align-self: flex-start; margin-top: 14px; position: relative; z-index: 2; }

/* ============================ SIDEBAR CARDS ============================ */
/* panchang */
.panchang-card { padding: 0; overflow: hidden; }
.panchang-head {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff;
}
.panchang-head h3 { margin: 0; font-size: 1.05rem; }
.panchang-date { font-size: .76rem; opacity: .9; }
.ph-mini { width: 34px; height: 34px; display: grid; place-items: center; background: rgba(255,255,255,.2); border-radius: 9px; }
.panchang-list { padding: 6px 0 0; }
.panchang-list li { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px dashed #ecdcc4; }
.panchang-list li:last-child { border-bottom: none; }
.p-ico {
  width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center;
  background: #fdeede; border-radius: 12px; border: 1px solid #f6e1c9; color: var(--primary);
}
.p-ico .pi { width: 21px; height: 21px; }
.p-meta { display: flex; flex-direction: column; line-height: 1.25; }
.p-label { display: block; font-size: .82rem; font-weight: 600; color: var(--primary-dark); }
.panchang-list strong { color: var(--text); font-size: 1.02rem; font-weight: 700; }
.panchang-card .btn-block { margin: 6px 18px 18px; width: calc(100% - 36px); }

/* suvichar */
.suvichar-card { text-align: center; background: linear-gradient(160deg, #fffdf8, #fff3e2); }
.suvichar-text { font-size: 1.2rem; color: var(--maroon); margin: 4px 0 8px; }
.ph-corner { position: absolute; right: -14px; bottom: -14px; width: 80px; height: 80px; border-radius: 50%; opacity: .8; font-size: .6rem; }

/* quick explore */
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick-grid a {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px;
  border-radius: var(--radius-sm); background: var(--card-soft); border: 1px solid var(--border);
  font-size: .8rem; font-weight: 600; color: var(--text); transition: transform .15s, background .15s, color .15s;
}
.quick-grid a:hover { transform: translateY(-3px); background: var(--primary); color: #fff; }
.q-ico { font-size: 1.3rem; }

/* videos */
.ph-video { aspect-ratio: 16/9; border-radius: var(--radius-sm); position: relative; margin-bottom: 14px; }
.video-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
.video-list li:last-child { border-bottom: none; }
.ph-vthumb { width: 56px; height: 40px; flex: 0 0 auto; border-radius: 8px; position: relative; }
.v-meta { flex: 1; display: flex; flex-direction: column; }
.v-meta strong { font-size: .85rem; color: var(--maroon); }
.v-meta span { font-size: .74rem; color: var(--text-muted); }

/* play badges on thumbnails */
.play-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.9);
  color: var(--primary-dark); display: grid; place-items: center; font-size: .8rem;
  box-shadow: 0 3px 8px rgba(0,0,0,.2);
}
.play-badge.big { width: 52px; height: 52px; font-size: 1.2rem; }
.dur {
  position: absolute; bottom: 6px; right: 6px; background: rgba(60,30,10,.78);
  color: #fff; font-size: .66rem; padding: 2px 6px; border-radius: 6px; font-weight: 600;
}

/* ============================ STATS ============================ */
.stats-wrap { background: linear-gradient(180deg, transparent, #fbe6cd); padding: 8px 0 26px; }
.stats {
  width: 90%; margin-inline: auto;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft); padding: 20px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.stat { display: flex; align-items: center; gap: 12px; justify-content: center; }
.stat:not(:last-child) { border-right: 1px solid var(--border-soft); }
.stat-ico {
  width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.4rem;
  background: var(--card-soft); border-radius: 12px; border: 1px solid var(--border); color: var(--primary-dark);
}
.stat strong { display: block; color: var(--maroon); font-size: 1.3rem; line-height: 1; }
.stat span { font-size: .8rem; color: var(--text-muted); }

/* ============================ FOOTER ============================ */
.footer {
  position: relative; overflow: hidden;
  background-color: #f4d6ab;
  background-image:
    linear-gradient(180deg, rgba(255,243,225,.55), rgba(243,210,162,.85)),
    url('../img/home/gita-bg.png');
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
  background-position: center, center bottom;
  padding-top: 34px; margin-top: 10px;
  border-top: 1px solid #e9c79a;
}
/* large decorative diya in the footer's bottom-left corner */
.footer-diya {
  position: absolute; left: clamp(8px, 2vw, 36px); bottom: 46px;
  width: 176px; z-index: 0; pointer-events: none;
}

/* newsletter block (first footer column) — sits to the right of the diya */
.foot-news { padding-left: 150px; }
.news-body { min-width: 0; }
.news-body h3 { color: var(--maroon); margin: 0 0 4px; font-size: 1.2rem; }
.news-body p { margin: 0; color: var(--text-muted); font-size: .85rem; }
.news-form { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.news-form input {
  flex: 1 1 150px; min-width: 0; border: 1.5px solid var(--border); border-radius: 999px;
  padding: 10px 16px; font-family: inherit; outline: none; background: var(--card-soft);
}
.news-form .btn { flex: 0 0 auto; }

.footer-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.9fr 1.1fr .9fr .9fr 1fr 1.1fr; gap: 22px;
  padding-bottom: 26px; align-items: start;
}
.foot-brand .brand.small .brand-name { font-size: 1.3rem; }
.foot-brand p { color: var(--text-muted); font-size: .88rem; margin: 12px 0 14px; }
.socials { display: flex; gap: 8px; }
.soc {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--border); color: var(--primary-dark);
  transition: background .15s, color .15s;
}
.soc:hover { background: var(--primary); color: #fff; }
.foot-col h4 { color: var(--maroon); font-size: 1rem; margin: 0 0 12px; }
.foot-col a { display: block; color: var(--text-muted); font-size: .88rem; padding: 4px 0; transition: color .15s; }
.foot-col a:hover { color: var(--primary-dark); }
.app-col .ph-store {
  height: 46px; border-radius: 10px; margin-bottom: 10px; color: var(--text-muted);
  font-size: .8rem; display: grid; place-items: center;
}
.footer-bottom {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; border-top: 1px solid #e9c79a; color: var(--text-muted); font-size: .85rem;
}
.jsr { color: var(--maroon); font-weight: 700; }

/* ============================ DARK MODE ============================ */
body.dark {
  --bg: #20160e; --bg-2: #2a1d12; --card: #2c2017; --card-soft: #33271c;
  --text: #f1e4d4; --text-muted: #bda584; --border: #4a382a; --border-soft: #3a2c20;
  background-image:
    radial-gradient(1200px 500px at 80% -5%, #3a2410 0%, transparent 60%),
    radial-gradient(900px 400px at -5% 5%, #311f10 0%, transparent 55%);
}
body.dark .navbar { background: rgba(32, 22, 14, .9); }
body.dark .placeholder-img { background: repeating-linear-gradient(45deg, #3a2c1f 0 10px, #332619 10px 20px); border-color: #5a4530; color: #b89368; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1024px) {
  .page-layout { grid-template-columns: 1fr; }
  /* image bleeds to both edges when stacked */
  .header-main { margin-right: calc(-1 * clamp(16px, 3vw, 44px)); }
  .explore-grid { grid-template-columns: repeat(4, 1fr); }
  .deity-card { flex-basis: calc((100% - 3 * 12px) / 4); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-news { grid-column: 1 / -1; padding-left: 0; }
  .footer-diya { width: 130px; bottom: 12px; opacity: .9; }
}
@media (max-width: 720px) {
  .nav-links {
    display: none; position: absolute; top: 60px; left: 0; right: 0; z-index: 20;
    flex-direction: column; align-items: stretch; background: var(--card);
    padding: 12px; gap: 2px; box-shadow: var(--shadow); border: 1px solid var(--border); border-radius: 12px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-grid; margin-left: auto; }
  /* On narrow screens the image header sits on top, body + sidebar stack below */
  /* show the WHOLE banner (all deities) by fitting it to the full width */
  .header-main {
    min-height: auto; padding: 14px 18px 24px;
    background-size: 100% auto; background-position: center top; background-repeat: no-repeat;
  }
  .header-main::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 58vw; pointer-events: none; z-index: 1;
    background: linear-gradient(180deg, transparent 60%, var(--bg) 100%);
  }
  .navbar { padding: 0; }
  /* push the headline below the fitted image */
  .hero-text { max-width: 100%; text-align: center; margin: 0; padding: calc(56vw + 8px) 0 0; }
  .hero-cta { justify-content: center; }
  .search-card.overlap { margin-top: -34px; }
  .side-col .nav-actions { justify-content: center; }
  .two-col { grid-template-columns: 1fr; }
  .explore-grid { grid-template-columns: repeat(3, 1fr); }
  .deity-card { flex-basis: calc((100% - 2 * 12px) / 3); }
  .aarti-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:not(:last-child) { border-right: none; }
  .gita-body { flex-direction: column; }
  .ph-book { width: 100%; flex: none; aspect-ratio: 16/9; }
  .gita-cols { flex-direction: column; }
  .gita-left { flex-basis: auto; }
  .gita-img { width: 100%; aspect-ratio: 16/9; margin-bottom: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}
@media (max-width: 460px) {
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
  .deity-card { flex-basis: calc((100% - 12px) / 2); }
  .footer-grid { grid-template-columns: 1fr; }
}


/* ============================ CARD TEXTURE ============================ */
/* subtle 8-petal motif layered over the card colours (replace --texture later) */
.list-card, .quick-card, .video-card, .header-box, .search-card {
  background-image: var(--texture);
  background-repeat: repeat;
  background-size: 72px 72px;
}
.quote-card, .suvichar-card {
  background-image: var(--texture), linear-gradient(160deg, #fffdf8, #fff4e4);
  background-repeat: repeat, no-repeat;
  background-size: 72px 72px, cover;
}

/* ============================ MOBILE APP TAB BAR ============================ */
.app-tabbar { display: none; }
@media (max-width: 720px) {
  /* app-like: hide the desktop footer, show a fixed bottom tab bar */
  .footer { display: none; }
  body { padding-bottom: 78px; }

  .app-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    align-items: center; justify-content: space-around;
    background: var(--card); border-top: 1px solid var(--border);
    box-shadow: 0 -6px 22px rgba(190,130,60,.20);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  }
  .app-tabbar .tab {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: var(--text-muted); font-size: .66rem; font-weight: 600;
  }
  .app-tabbar .tab .ico { width: 23px; height: 23px; }
  .app-tabbar .tab.active { color: var(--primary-dark); }
  .app-tabbar .tab-fab {
    flex: 0 0 auto; width: 58px; height: 58px; margin-top: -30px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary) 55%, var(--primary-dark));
    color: #fff; display: grid; place-items: center;
    box-shadow: 0 10px 20px rgba(224,110,30,.5); border: 4px solid var(--card);
  }
  .app-tabbar .tab-fab .ico { width: 25px; height: 25px; }
}
