body.story-page{
    background:#fbf8f1;
    color:#2f3933;
    font-family:'Poppins',sans-serif;
}

.story-header{
    position:absolute;
    inset:0 0 auto;
    z-index:10;
    padding:24px 0;
}

.story-header .container{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.story-header .header-logo{
    width:85px;
    height:auto;
    display:block;
    filter:drop-shadow(0 4px 12px rgba(0,0,0,0.25));
}

.back-home{
    color:#ffffff;
    font-size:.9rem;
    font-weight:600;
    text-decoration:none;
    padding:10px 20px;
    border:1px solid rgba(255,255,255,.65);
    border-radius:999px;
    background:rgba(20,57,49,.35);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
    transition:all .3s ease;
}

.back-home:hover,.back-home:focus-visible{
    background:#ffffff;
    color:#1f453f;
    border-color:#ffffff;
    box-shadow:0 6px 18px rgba(0,0,0,.15);
}

/* Hero Section */
.story-hero{
    position:relative;
    display:grid;
    min-height:720px;
    place-items:center;
    overflow:hidden;
    color:#ffffff;
    text-align:center;
}

.story-hero::before{
    position:absolute;
    inset:0;
    content:'';
    background:linear-gradient(135deg,rgba(18,48,41,.85) 0%,rgba(31,69,63,.55) 100%),url('../images/Diwali1.png') center/cover no-repeat;
    transform:scale(1.02);
    animation:story-hero-zoom 16s ease-out both;
}

.story-hero-content{
    position:relative;
    z-index:2;
    max-width:900px;
    padding:140px 24px 80px;
}

.story-kicker{
    display:inline-block;
    font-size:.82rem;
    font-weight:700;
    letter-spacing:.25em;
    text-transform:uppercase;
    color:#f6d49d;
    background:rgba(246,212,157,.15);
    padding:6px 18px;
    border-radius:999px;
    border:1px solid rgba(246,212,157,.35);
    margin-bottom:20px;
    backdrop-filter:blur(4px);
}

.story-hero h1,.story-page h2,.story-page h3{
    font-family:'Cormorant Garamond',Georgia,serif;
}

.story-hero h1{
    font-size:clamp(3rem,6.5vw,5.5rem);
    line-height:1.05;
    letter-spacing:-.03em;
    font-weight:700;
    text-shadow:0 4px 30px rgba(0,0,0,.35);
    color:#ffffff;
}

.story-quote{
    max-width:680px;
    margin:32px auto 0;
    font-family:'Cormorant Garamond',serif;
    font-size:clamp(1.3rem,2.5vw,1.85rem);
    font-style:italic;
    line-height:1.35;
    color:#fff9ec;
    text-shadow:0 2px 10px rgba(0,0,0,.3);
}

/* Sections & Cards */
.story-page .section{
    padding:70px 0;
}

.story-page .section.alt-section{
    background:linear-gradient(180deg,#f8f3ea 0%,#f3ece0 100%);
    border-top:1px solid rgba(216,161,95,.15);
    border-bottom:1px solid rgba(216,161,95,.15);
}

/* Story Intro Card */
.story-intro{
    max-width:900px;
    margin:auto;
    background:#ffffff;
    padding:48px;
    border-radius:24px;
    box-shadow:0 16px 40px rgba(31,69,63,.06);
    border:1px solid rgba(216,161,95,.25);
    display:grid;
    grid-template-columns:1.2fr 0.8fr;
    gap:40px;
    align-items:center;
}

.story-intro-copy h2{
    font-size:clamp(2.1rem,3.5vw,3rem);
    color:#1f453f;
    line-height:1.15;
    margin-bottom:20px;
    font-weight:700;
}

.story-intro-copy p{
    font-size:1.05rem;
    color:#4a5a52;
    line-height:1.75;
    margin-bottom:14px;
}

.story-intro-copy p:last-child{
    margin-bottom:0;
}

.story-intro-image{
    width:100%;
    max-height:360px;
    border-radius:20px;
    overflow:hidden;
    border:1px solid rgba(216,161,95,.3);
    box-shadow:0 14px 35px rgba(31,69,63,.12);
    background:#f8f4ec;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:6px;
}

.story-intro-image img{
    width:100%;
    height:100%;
    max-height:348px;
    object-fit:contain;
    display:block;
    border-radius:14px;
}

/* Timeline Grid */
.timeline-section-wrapper {
    margin-top: 20px;
}

.timeline-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 40px;
}

.timeline-header h2 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: #1f453f;
    margin-bottom: 12px;
    font-weight: 700;
}

.timeline-header p {
    color: #6c7d75;
    font-size: 1.08rem;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.timeline-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(216, 161, 95, 0.25);
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 14px 35px rgba(31, 69, 63, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.timeline-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(31, 69, 63, 0.12);
    border-color: #d8a15f;
}

.timeline-card .badge {
    align-self: flex-start;
    padding: 5px 14px;
    background: rgba(216, 161, 95, 0.14);
    color: #b28346;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 999px;
    margin-bottom: 14px;
    border: 1px solid rgba(216, 161, 95, 0.3);
}

.timeline-card h3 {
    font-size: 1.3rem;
    color: #1f453f;
    margin-bottom: 10px;
    font-weight: 700;
}

.timeline-card p {
    font-size: 0.96rem;
    color: #4a5a52;
    line-height: 1.65;
    margin-bottom: 16px;
}

.timeline-card .card-img {
    margin-top: auto;
    width: 100%;
    height: 250px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(216, 161, 95, 0.25);
    background: #f8f4ec;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.timeline-card .card-img img {
    width: 100%;
    height: 100%;
    max-height: 234px;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 8px;
    transition: transform 0.5s ease;
}

.timeline-card:hover .card-img img {
    transform: scale(1.03);
}

/* Featured Card with 4-Image Grid */
.timeline-card.featured-card {
    grid-column: span 2;
}

.timeline-card.featured-card .card-img {
    height: 320px;
}

.timeline-card.featured-card .card-img img {
    max-height: 304px;
}

.milestone-img-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 18px;
}

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

.milestone-img-grid.dual-grid .grid-img {
    height: 280px;
}

.milestone-img-grid .grid-img {
    width: 100%;
    height: 190px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(216, 161, 95, 0.25);
    background: #f8f4ec;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.milestone-img-grid .grid-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    transition: transform 0.4s ease;
}

.milestone-img-grid .grid-img:hover img {
    transform: scale(1.05);
}

/* Brand Logos Section */
.brand-logos-card {
    max-width: 960px;
    margin: 0 auto;
    background: #ffffff;
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(31, 69, 63, 0.06);
    border: 1px solid rgba(216, 161, 95, 0.25);
    text-align: center;
}

.brand-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
}

.brand-row:last-child {
    margin-bottom: 0;
}

.brand-row-single .brand-logo-box {
    width: 100%;
    max-width: 520px;
    height: 180px;
}

.brand-row-triple {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.brand-logo-box {
    background: #f8f4ec;
    border: 1px solid rgba(216, 161, 95, 0.25);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.brand-logo-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(31, 69, 63, 0.1);
    border-color: #d8a15f;
}

.brand-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Chapter Reading Card (Text Only) */
.story-chapters.text-only {
    display: block;
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(31, 69, 63, 0.06);
    border: 1px solid rgba(216, 161, 95, 0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-chapters.text-only:hover {
    box-shadow: 0 22px 50px rgba(31, 69, 63, 0.1);
}

.story-chapters.text-only .story-copy {
    max-width: 100%;
}

/* Chapter Badge Pill */
.chapter-badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:5px 14px;
    background:rgba(216,161,95,.12);
    color:#b28346;
    font-size:.8rem;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
    border-radius:999px;
    border:1px solid rgba(216,161,95,.3);
    margin-bottom:16px;
    width:fit-content;
}

/* Text Copy Styling */
.story-copy{
    display:flex;
    flex-direction:column;
    justify-content:center;
    min-width:0;
}

.story-copy h2{
    color:#1f453f;
    font-size:clamp(1.9rem,3vw,2.5rem);
    line-height:1.2;
    margin-bottom:20px;
    font-weight:700;
}

.story-copy h3{
    color:#b28346;
    font-size:1.35rem;
    margin-top:20px;
    margin-bottom:8px;
    font-weight:600;
    border-bottom:1px dashed rgba(216,161,95,.3);
    padding-bottom:4px;
}

.story-copy p{
    color:#3b4c44;
    font-size:1.04rem;
    line-height:1.8;
    margin-bottom:16px;
}

.story-copy p:last-child{
    margin-bottom:0;
}

/* Read More Button */
.read-more-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    width:fit-content;
    margin-top:18px;
    color:#1f453f;
    font-weight:700;
    font-size:.95rem;
    text-decoration:none;
    padding:10px 22px;
    background:linear-gradient(135deg,rgba(216,161,95,.18),rgba(216,161,95,.05));
    border:1px solid rgba(216,161,95,.45);
    border-radius:999px;
    transition:all .3s ease;
}

.read-more-btn:hover{
    background:#1f453f;
    color:#ffffff;
    border-color:#1f453f;
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(31,69,63,.2);
}

/* Blessing Section */
.blessing-card{
    text-align:center;
    max-width:850px;
    margin:auto;
    background:#ffffff;
    padding:48px;
    border-radius:24px;
    box-shadow:0 16px 40px rgba(31,69,63,.08);
    border:1px solid rgba(216,161,95,.3);
}

.blessing-card h2{
    font-size:2.5rem;
    color:#1f453f;
    margin-bottom:20px;
}

.blessing-card p{
    font-size:1.1rem;
    color:#4a5a52;
    line-height:1.8;
    margin-bottom:12px;
}

/* Reveal Animations */
[data-reveal]{
    opacity:0;
    transform:translateY(28px);
    transition:opacity .7s cubic-bezier(.16,1,.3,1),transform .7s cubic-bezier(.16,1,.3,1);
}

[data-reveal].show{
    opacity:1;
    transform:translateY(0);
}

@keyframes story-hero-zoom{
    from{transform:scale(1.1)}
    to{transform:scale(1.02)}
}

/* Mobile & Tablet Responsiveness */
@media (max-width:900px){
    .story-hero{
        min-height:580px;
    }

    .story-hero-content{
        padding:120px 20px 60px;
    }

    .story-intro{
        grid-template-columns:1fr;
        padding:32px 22px;
        gap:24px;
    }

    .story-intro-image{
        max-height:280px;
    }

    .story-chapters.text-only{
        padding:32px 22px;
    }

    .story-copy h2{
        font-size:2rem;
    }

    .blessing-card{
        padding:32px 20px;
    }

    .timeline-card.featured-card {
        grid-column: span 1;
    }

    .timeline-card.featured-card .card-img {
        height: 220px;
    }

    .milestone-img-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .milestone-img-grid .grid-img {
        height: 140px;
    }

    .milestone-img-grid.dual-grid .grid-img {
        height: 180px;
    }

    .brand-logos-card {
        padding: 32px 20px;
    }

    .brand-row-triple {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .brand-row-single .brand-logo-box {
        height: 140px;
    }

    .brand-logo-box {
        height: 130px;
    }
}
