/* ============================================================
   Bihar Mandir Yatra — v5 Phase 3: Circuits + Festivals + Stories
   Scope: Homepage lower editorial experience only
   Mobile-first, layered after Phase 1 + Phase 2 styles.
   ============================================================ */

.v5p3-section{padding:62px 0;background:#fffaf0;position:relative;overflow:hidden}
.v5p3-section + .v5p3-section{padding-top:20px}
.v5p3-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:24px}
.v5p3-section-head>div{max-width:760px}
.v5p3-kicker{display:inline-flex;align-items:center;gap:8px;color:#b76124;text-transform:uppercase;letter-spacing:.16em;font-size:11px;font-weight:900;margin-bottom:8px}
.v5p3-kicker::before{content:"";width:30px;height:1px;background:#d89b3d}
.v5p3-section-head h2{margin:0;color:#7d1428;font:800 clamp(34px,5.7vw,62px)/1.02 Georgia,"Times New Roman",serif;letter-spacing:-.025em}
.v5p3-section-head p{margin:10px 0 0;color:#6d5a50;font-size:15px;line-height:1.7;max-width:700px}
.v5p3-link{display:inline-flex;align-items:center;gap:9px;color:#8b1428;font-size:13px;font-weight:900;white-space:nowrap}
.v5p3-link b{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;border:1px solid #d8b177;transition:.25s ease}
.v5p3-link:hover b{background:#8b1428;border-color:#8b1428;color:#fff;transform:translateX(2px)}

/* Sacred calendar */
.v5p3-calendar{padding:68px 0;background:
  radial-gradient(circle at 8% 7%,rgba(228,156,51,.13),transparent 26%),
  linear-gradient(180deg,#fff8eb 0%,#fffdf8 100%)}
.v5p3-calendar-grid{display:grid;grid-template-columns:1fr;gap:16px}
.v5p3-calendar-feature{min-height:470px;border-radius:24px;overflow:hidden;position:relative;color:#fff;background:#391613;box-shadow:0 24px 60px rgba(75,39,19,.18)}
.v5p3-calendar-feature img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(1.05) contrast(1.06)}
.v5p3-calendar-feature::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(39,6,11,.08),rgba(49,8,13,.28) 38%,rgba(54,10,14,.94) 100%)}
.v5p3-calendar-copy{position:absolute;inset:auto 22px 22px;z-index:2}
.v5p3-calendar-copy .v5p3-eyebrow{display:inline-flex;padding:7px 11px;border-radius:999px;background:rgba(255,244,218,.94);color:#7a1627;font-size:11px;font-weight:900;margin-bottom:14px}
.v5p3-calendar-copy h3{margin:0 0 8px;font:800 32px/1.08 Georgia,serif;max-width:620px}
.v5p3-calendar-copy p{margin:0 0 16px;color:#faead8;font-size:14px;line-height:1.6;max-width:590px}
.v5p3-calendar-copy a{display:inline-flex;align-items:center;gap:8px;color:#fff;font-size:13px;font-weight:900}
.v5p3-calendar-copy a span{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#e4a13d;color:#5a1b14}
.v5p3-event-grid{display:grid;grid-template-columns:1fr;gap:12px}
.v5p3-event-card{display:grid;grid-template-columns:64px 1fr 32px;gap:14px;align-items:center;padding:16px;background:#fff;border:1px solid #ead9c1;border-radius:18px;min-height:106px;box-shadow:0 8px 24px rgba(76,46,28,.05);transition:.25s ease}
.v5p3-event-card:hover{transform:translateY(-2px);box-shadow:0 13px 30px rgba(76,46,28,.10);border-color:#dfbc7e}
.v5p3-event-date{width:58px;height:58px;border-radius:16px;display:grid;place-items:center;text-align:center;background:linear-gradient(145deg,#fff4d8,#f1d39b);color:#8d3420;border:1px solid #edd5aa}
.v5p3-event-date b{display:block;font:800 17px/1 Georgia,serif}.v5p3-event-date small{display:block;margin-top:3px;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.v5p3-event-card h4{margin:0;color:#7f1727;font:800 18px/1.1 Georgia,serif}
.v5p3-event-card p{margin:5px 0 0;color:#7d695e;font-size:12px;line-height:1.45}
.v5p3-event-card>em{font-style:normal;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;border:1px solid #ddb875;color:#8b1428;font-weight:900}
.v5p3-calendar-note{margin-top:14px;display:flex;align-items:flex-start;gap:10px;color:#79665b;font-size:12px;line-height:1.55}.v5p3-calendar-note svg{width:18px;height:18px;flex:0 0 auto;color:#b66d2b;margin-top:1px}

/* Curated circuits */
.v5p3-circuits{background:#f8efe1;padding:70px 0 78px}
.v5p3-circuit-grid{display:grid;grid-template-columns:1fr;gap:16px}
.v5p3-circuit-card{position:relative;min-height:390px;border-radius:24px;overflow:hidden;color:#fff;background:#63222b;box-shadow:0 18px 42px rgba(69,35,23,.14);isolation:isolate}
.v5p3-circuit-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-3;transition:transform .65s ease;filter:saturate(1.06) contrast(1.03)}
.v5p3-circuit-card:hover img{transform:scale(1.035)}
.v5p3-circuit-card::before{content:"";position:absolute;inset:0;z-index:-2;background:linear-gradient(180deg,rgba(65,13,20,.04) 5%,rgba(70,17,21,.25) 42%,rgba(58,13,19,.94) 100%)}
.v5p3-circuit-card.buddhist{background:
 radial-gradient(circle at 78% 18%,rgba(255,222,124,.28),transparent 26%),
 linear-gradient(145deg,#6a3f16 0%,#a96518 46%,#4b2710 100%)}
.v5p3-circuit-card.buddhist::before{background:radial-gradient(circle at 70% 30%,rgba(255,231,157,.16),transparent 28%),linear-gradient(180deg,transparent 18%,rgba(49,27,11,.86) 100%)}
.v5p3-dharma-wheel{position:absolute;right:-12px;top:22px;width:190px;height:190px;opacity:.18;color:#fff2ca;z-index:-1}
.v5p3-circuit-top{position:absolute;left:20px;right:20px;top:20px;display:flex;justify-content:space-between;align-items:center;z-index:2}
.v5p3-circuit-no{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:50%;background:rgba(255,247,226,.94);color:#7f1726;font:800 12px/1 system-ui}
.v5p3-circuit-meta{display:inline-flex;padding:7px 10px;border-radius:999px;background:rgba(25,10,8,.42);backdrop-filter:blur(8px);font-size:10px;font-weight:850;border:1px solid rgba(255,255,255,.18)}
.v5p3-circuit-copy{position:absolute;left:20px;right:20px;bottom:20px;z-index:2}
.v5p3-circuit-copy h3{margin:0 0 8px;font:800 28px/1.08 Georgia,serif}
.v5p3-circuit-copy p{margin:0 0 16px;color:#f7e8dc;font-size:13px;line-height:1.55;max-width:520px}
.v5p3-route{display:flex;align-items:center;gap:7px;overflow:hidden;margin-bottom:16px;color:#ffe6b0;font-size:10px;font-weight:850;white-space:nowrap}
.v5p3-route i{width:5px;height:5px;border-radius:50%;background:#f3ba58;flex:0 0 auto}.v5p3-route b{opacity:.55;font-weight:600}
.v5p3-circuit-copy a{display:inline-flex;align-items:center;gap:9px;color:#fff;font-size:12px;font-weight:900}.v5p3-circuit-copy a span{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#f0b64f;color:#611725}

/* Editorial stories */
.v5p3-stories{padding:76px 0 86px;background:#fffdf8}
.v5p3-story-grid{display:grid;grid-template-columns:1fr;gap:16px}
.v5p3-story-card{display:block;background:#fff;border:1px solid #eadcc9;border-radius:22px;overflow:hidden;box-shadow:0 10px 30px rgba(73,42,21,.06);transition:.28s ease}
.v5p3-story-card:hover{transform:translateY(-3px);box-shadow:0 18px 38px rgba(73,42,21,.11)}
.v5p3-story-image{height:240px;overflow:hidden;position:relative}.v5p3-story-image img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease}.v5p3-story-card:hover img{transform:scale(1.035)}
.v5p3-story-image::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 54%,rgba(37,11,9,.28))}
.v5p3-story-body{padding:20px 20px 22px}
.v5p3-story-type{display:flex;align-items:center;gap:7px;color:#b76527;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.12em}.v5p3-story-type::before{content:"";width:18px;height:1px;background:#d49a4b}
.v5p3-story-body h3{margin:8px 0 8px;color:#7c1528;font:800 24px/1.12 Georgia,serif}
.v5p3-story-body p{margin:0;color:#6d5d55;font-size:13px;line-height:1.6}
.v5p3-story-cta{margin-top:14px;display:inline-flex;align-items:center;gap:7px;color:#8a1527;font-size:12px;font-weight:900}

/* In-view polish */
.v5p3-reveal{opacity:0;transform:translateY(18px);transition:opacity .65s ease,transform .65s cubic-bezier(.2,.7,.2,1)}
.v5p3-reveal.is-visible{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.v5p3-reveal{opacity:1;transform:none;transition:none}.v5p3-circuit-card img,.v5p3-story-card img{transition:none}}

@media(min-width:700px){
 .v5p3-calendar-grid{grid-template-columns:1.08fr .92fr;gap:20px}.v5p3-event-grid{grid-template-columns:1fr 1fr;align-content:start}.v5p3-event-card{grid-template-columns:58px 1fr 28px;padding:14px;min-height:132px}
 .v5p3-circuit-grid{grid-template-columns:repeat(3,1fr);gap:18px}.v5p3-circuit-card{min-height:430px}
 .v5p3-story-grid{grid-template-columns:1.25fr .875fr .875fr}.v5p3-story-grid .v5p3-story-card:first-child .v5p3-story-image{height:320px}.v5p3-story-image{height:250px}
}
@media(min-width:1024px){
 .v5p3-section{padding:82px 0}.v5p3-calendar{padding:86px 0}.v5p3-circuits{padding:88px 0 96px}.v5p3-stories{padding:88px 0 98px}
 .v5p3-calendar-feature{min-height:520px}.v5p3-calendar-copy{inset:auto 36px 34px}.v5p3-calendar-copy h3{font-size:42px}.v5p3-calendar-copy p{font-size:15px}
 .v5p3-event-card{min-height:148px}.v5p3-event-card h4{font-size:20px}.v5p3-event-card p{font-size:13px}
 .v5p3-circuit-card{min-height:510px}.v5p3-circuit-copy{left:28px;right:28px;bottom:28px}.v5p3-circuit-top{left:28px;right:28px;top:28px}.v5p3-circuit-copy h3{font-size:34px}.v5p3-circuit-copy p{font-size:14px}
 .v5p3-story-body{padding:24px 24px 26px}.v5p3-story-body h3{font-size:28px}.v5p3-story-body p{font-size:14px}
}
