*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{
    --purple-light:#9e44eb;
    --purple-main:#6A1B9A;
    --purple-dark:#4A148C;
    --purple-deep:#2D0A4E;
    --purple-soft:#c084fc;
    --black:#20242b;
    --white:#ffffff;
    --page-bg:#e9e9e9;
    --footer-bg:#202020;
}

body{
    font-family:Arial,sans-serif;
    background:var(--page-bg);
    color:#222;
}

.container{
    max-width:1180px;
    margin:0 auto;
    padding:0 24px;
}

/* HEADER */
.logo-area{
    min-height:105px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:18px 0;
    background:linear-gradient(135deg,#9e44eb 0%,#6A1B9A 38%,#4A148C 70%,#2D0A4E 100%);
}

.site-logo,
.site-logo a{
    color:white;
    text-decoration:none;
    font-size:34px;
    font-weight:900;
}

.custom-logo{
    max-height:90px;
    width:auto;
    display:block;
}

/* NAVBAR */
.main-navbar{
    background:linear-gradient(90deg,#2D0A4E 0%,#4A148C 35%,#6A1B9A 70%,#2D0A4E 100%);
    border-top:1px solid rgba(255,255,255,.16);
    border-bottom:1px solid rgba(0,0,0,.25);
    position:relative;
    z-index:100;
    transition:.3s ease;
}

.main-navbar.is-fixed{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:9999;
    box-shadow:0 8px 30px rgba(0,0,0,.25);
}

.navbar-placeholder{
    display:none;
}

.navbar-placeholder.active{
    display:block;
    height:64px;
}

.nav-container{
    height:64px;
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
}

.nav-socials{
    justify-self:start;
    display:flex;
    align-items:center;
    gap:12px;
    margin-left:-45px;
}

.nav-socials a{
    width:36px;
    height:36px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    color:white;
    background:rgba(255,255,255,.1);
    text-decoration:none;
    transition:.25s ease;
}

.nav-socials a:hover{
    background:white;
    color:var(--purple-dark);
    transform:translateY(-2px);
}

.main-menu{
    justify-self:center;
    display:flex;
    align-items:center;
    gap:16px;
    list-style:none;
}

.main-menu a{
    display:block;
    color:white;
    text-decoration:none;
    font-size:16px;
    font-weight:800;
    padding:12px 18px;
    border-radius:999px;
    transition:.25s ease;
}

.main-menu a:hover{
    background:rgba(255,255,255,.14);
    transform:translateY(-2px);
}

.nav-right{
    justify-self:end;
}

.nav-cta{
    background:#20242b;
    color:white;
    border:2px solid rgba(255,255,255,.22);
    padding:12px 24px;
    border-radius:999px;
    font-weight:800;
    text-decoration:none;
    white-space:nowrap;
    animation:pulseBtn 3s infinite;
    transition:.25s ease;
}

a.nav-cta:hover,
.nav-cta-item:hover .nav-cta{
    background:#F8FAFC;
    color:#2D0A4E;
    box-shadow:0 15px 40px rgba(255,255,255,.25),0 0 30px rgba(158,68,235,.25);
    transform:translateY(-3px) scale(1.02);
}

.nav-email{
    color:rgba(255,255,255,.9);
    text-decoration:none;
    font-size:14px;
    font-weight:700;
    white-space:nowrap;
}

@keyframes pulseBtn{
    0%{box-shadow:0 0 0 0 rgba(255,255,255,.85),0 0 15px rgba(158,68,235,.9);}
    70%{box-shadow:0 0 0 16px rgba(255,255,255,0),0 0 25px rgba(158,68,235,0);}
    100%{box-shadow:0 0 0 0 rgba(255,255,255,0),0 0 0 rgba(158,68,235,0);}
}

/* HOMEPAGE */
.site-shell{
    max-width:1160px;
    margin:34px auto 0;
    background:white;
    min-height:600px;
    padding:60px 90px 80px;
}

.home-intro{
    max-width:980px;
    margin:0 auto 90px;
    text-align:center;
}

.hero-title-box,
.hero-badge{
    display:none !important;
}

.hero-main-title{
    font-size:58px;
    line-height:1.08;
    font-weight:900;
    color:#111;
    max-width:980px;
    margin:0 auto 24px;
    letter-spacing:-1.4px;
    text-align:center;
}
.hero-subtitle{
    max-width:820px;
    margin:0 auto 22px;
    color:#6f6f6f;
    font-size:22px;
    line-height:1.55;
    text-align:center;
    font-weight:500;
}

.hero-description p{
    margin:0 0 22px;
}

.hero-description strong{
    color:#2D0A4E;
    font-weight:900;
}

.hero-description{
    max-width:820px;
    margin:0 auto 30px;
    color:#747474;
    font-size:20px;
    line-height:1.78;
    text-align:left;
}

.hero-description p{
    margin-bottom:22px;
}

.hero-extra-text{
    display:none;
}

.hero-text.is-open .hero-extra-text{
    display:block;
}

.dark-btn,
.read-btn{
    position:relative;
    overflow:hidden;
    border:none;
    cursor:pointer;
    background:#20242b;
    color:#fff;
    border-radius:30px;
    padding:13px 32px;
    text-decoration:none;
    font-weight:800;
    transition:.35s ease;
}

.dark-btn::before,
.read-btn::before{
    content:"";
    position:absolute;
    top:0;
    left:-120%;
    width:60%;
    height:100%;
    background:linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent);
    transform:skewX(-25deg);
    transition:.7s;
}

.dark-btn:hover,
.read-btn:hover,
.story-card:hover .read-btn{
    transform:translateY(-3px);
    background:#111827;
    color:#ffffff;
    box-shadow:0 15px 35px rgba(0,0,0,.35),0 0 20px rgba(255,255,255,.08);
}

.dark-btn:hover::before,
.read-btn:hover::before,
.story-card:hover .read-btn::before{
    left:150%;
}

.story-share{
    margin-top:40px;
    padding-top:24px;
    border-top:1px solid rgba(0,0,0,.08);

    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
}

.story-share-label{
    color:#555;
    font-weight:600;
    margin-right:6px;
}

.story-share a{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:10px 18px;
    border-radius:999px;

    background:linear-gradient(
        135deg,
        #6A1B9A,
        #7B2CBF
    );

    color:#fff;
    text-decoration:none;
    font-weight:700;
    font-size:14px;

    transition:all .25s ease;

    box-shadow:
        0 8px 20px rgba(106,27,154,.18);
}

.story-share a:hover{
    transform:translateY(-3px);
    background:linear-gradient(
        135deg,
        #7B2CBF,
        #9e44eb
    );

    box-shadow:
        0 14px 30px rgba(106,27,154,.35);

    color:#fff;
    text-decoration:none;
}


/* STORY CARDS */
.stories-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(280px,1fr));
    gap:30px;
    width:100%;
    max-width:1200px;
    margin:0 auto;
}

.story-card{
    display:flex;
    flex-direction:column;
}

.story-card-body{
    display:grid;
    grid-template-rows:
        auto    /* title */
        auto    /* purple line */
        1fr     /* description */
        auto    /* audio */
        auto;   /* button */

    height:0%;
}

.story-card{
    display:flex;
    flex-direction:column;
}

.story-card-body{
    display:flex;
    flex-direction:column;
    height:100%;
}

.story-card{
    display:flex !important;
    flex-direction:column !important;
    height:100% !important;
}

.story-card-body{
    display:flex !important;
    flex-direction:column !important;
    flex:1 !important;
}

.story-card-body p{
    min-height:120px;
    margin-bottom:18px;
}

.story-card audio{
    margin-top:auto !important;
    margin-bottom:14px !important;
}

.story-card:not(:has(audio)) .read-btn{
    margin-top:auto !important;
}

.read-btn{
    width:100%;
    max-width:220px;
    text-align:center;
}

.story-card p{
    flex-grow:1;
}

.story-card audio{
    margin-top:auto;
    margin-bottom:16px;
}

.read-btn{
    margin-top:0;
}

.stories-pagination{
    grid-column:1 / -1;
    display:flex;
    justify-content:center;
    gap:10px;
    margin-top:44px;
}

.stories-pagination .page-numbers{
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#f3f0f7;
    color:#4A148C;
    font-weight:800;
    text-decoration:none;
    transition:.25s;
}

.stories-pagination .page-numbers.current,
.stories-pagination .page-numbers:hover{
    background:#4A148C;
    color:white;
}
@media(max-width:800px){
    .stories-grid{
        grid-template-columns:1fr;
    }
}

.story-card{
    background:white;
    border-radius:14px;
    box-shadow:0 18px 45px rgba(0,0,0,.08);
    overflow:hidden;
    transition:.35s ease;
}

.story-card:hover{
    transform:translateY(-8px);
    box-shadow:0 30px 75px rgba(74,20,140,.18);
}

.story-image-link{
    display:block;
    height:230px;
    overflow:hidden;
    position:relative;
    background:#20242b;
}

.story-image-link img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.45s ease;
}

.story-card:hover img{
    transform:scale(1.08);
    filter:brightness(.62);
}

.image-hover{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    color:white;
    font-weight:900;
    opacity:0;
    transition:.3s ease;
}

.story-card:hover .image-hover{
    opacity:1;
}

.story-card-body{
    padding:24px 28px 28px;
}

.story-title-link{
    text-decoration:none;
    color:#111;
}

.story-card h2{
    font-size:25px;
    line-height:1.25;
    margin-bottom:12px;
    transition:.25s ease;
}

.story-card:hover h2{
    color:var(--purple-main);
}

.red-line{
    width:42px;
    height:4px;
    background:linear-gradient(90deg,var(--purple-main),var(--purple-light));
    border-radius:999px;
    margin:0 0 16px;
    transition:.35s ease;
}

.story-card:hover .red-line{
    width:96px;
    box-shadow:0 0 18px rgba(158,68,235,.45);
}

.story-card p{
    font-size:16px;
    line-height:1.65;
    color:#666;
    margin-bottom:20px;
}

.story-card audio{
    width:100%;
    margin:10px 0 18px;
}

/* SINGLE STORY */
.single-story-page{
    padding:80px 0;
    background:#f4f4f4;
}

.single-story{
    background:white;
    padding:60px;
    border-radius:20px;
    box-shadow:0 20px 60px rgba(0,0,0,.08);
    animation:fadeUp .5s ease;
}

.single-story h1{
    font-size:48px;
    line-height:1.15;
    margin-bottom:15px;
}

.story-subtitle{
    font-size:20px;
    color:#666;
    margin-bottom:30px;
}

.audio-box{
    background:#f6efff;
    padding:22px;
    border-radius:18px;
    margin:30px 0;
    box-shadow:0 15px 40px rgba(106,27,154,.12);
    border-top:4px solid var(--purple-main);
}

.audio-box audio{
    width:100%;
}

.single-image{
    margin:35px 0;
    border-radius:18px;
    overflow:hidden;
}

.single-image img{
    width:100%;
    height:auto;
    display:block;
}

.story-content{
    font-size:19px;
    line-height:1.8;
    color:#222;
}

.story-content p{
    margin-bottom:22px;
}

@keyframes fadeUp{
    from{opacity:0;transform:translateY(25px);}
    to{opacity:1;transform:translateY(0);}
}

/* FOOTER */
.site-footer{
    background:#202020;
    color:#fff;
    padding:64px 0 58px;
}

.footer-grid{
    max-width:1180px;
    margin:0 auto;
    padding:0 24px;
    display:grid;
    grid-template-columns:1.08fr .95fr 1.12fr;
    gap:66px;
    align-items:start;
}

.footer-column{
    min-width:0;
}

.footer-brand-logos{
    display:flex;
    align-items:center;
    gap:24px;
    margin-bottom:26px;
}

.footer-brand-logos img{
    max-width:280px;
    max-height:128px;
    width:auto;
    height:auto;
    object-fit:contain;
    display:block;
}

.footer-logo-text{
    border:2px solid var(--purple-light);
    padding:16px 26px;
    font-size:19px;
    font-weight:900;
    line-height:1.1;
}

.site-footer p{
    color:rgba(255,255,255,.88);
    font-size:16px;
    line-height:1.56;
    margin-bottom:18px;
}

.footer-about p{
    max-width:360px;
}

.footer-copy{
    margin-top:26px;
    color:rgba(255,255,255,.67) !important;
    font-size:14px !important;
}

.footer-popular h3{
    font-size:30px;
    line-height:1.14;
    margin-bottom:20px;
    padding-bottom:14px;
    border-bottom:1px solid rgba(255,255,255,.16);
}

.footer-story{
    display:grid;
    grid-template-columns:82px 1fr;
    gap:14px;
    align-items:center;
    color:white;
    text-decoration:none;
    padding:10px 12px;
    border-radius:14px;
    border-bottom:1px solid rgba(255,255,255,.08);
    transition:.25s ease;
}

.footer-story:hover{
    background:rgba(255,255,255,.06);
    transform:translateX(4px);
}

.footer-story-img{
    width:82px;
    height:58px;
    border-radius:10px;
    overflow:hidden;
    background:#333;
}

.footer-story-img img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.footer-story-title{
    font-size:16px;
    line-height:1.28;
    font-weight:900;
}

.footer-jff-logo{
    max-width:300px;
    max-height:120px;
    width:auto;
    height:auto;
    object-fit:contain;
    display:block;
    margin-bottom:26px;
}

.footer-jff-logo-text{
    font-size:28px;
    line-height:1.1;
    font-weight:900;
    margin-bottom:26px;
}

.footer-legal p{
    max-width:430px;
    font-size:16px;
    line-height:1.55;
}

/* MOBILE */
@media(max-width:900px){
    .nav-container{
        height:auto;
        padding:14px 18px;
        grid-template-columns:1fr;
        gap:14px;
    }

    .nav-socials{
        margin-left:0;
    }

    .nav-socials,
    .main-menu,
    .nav-right{
        justify-self:center;
    }

    .main-menu{
        flex-wrap:wrap;
        justify-content:center;
    }

    .nav-email{
        display:none;
    }

    .footer-grid{
        grid-template-columns:1fr;
        gap:38px;
    }
}

@media(max-width:800px){
    .logo-area{
        min-height:85px;
    }

    .custom-logo{
        max-height:70px;
    }

    .site-shell{
        padding:36px 18px 55px;
        margin-top:0;
    }

    .hero-main-title{
        font-size:36px;
        line-height:1.12;
    }

    .hero-description{
        font-size:17px;
        text-align:left;
    }

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

    .single-story{
        padding:32px 22px;
    }

    .single-story h1{
        font-size:34px;
    }
}


.back-link{
    display:inline-flex;
    align-items:center;
    gap:8px;

    margin-bottom:26px;

    color:#6A1B9A;
    background:transparent;

    text-decoration:none;
    font-size:16px;
    font-weight:800;

    transition:.25s ease;
}

.back-arrow{
    font-size:20px;
    line-height:1;
    transform:translateY(-1px);
    transition:.25s ease;
}

.back-link:hover{
    color:#2D0A4E;
    transform:translateX(-4px);
}

.back-link:hover .back-arrow{
    transform:translateX(-4px) translateY(-1px);
}

@media (max-width:768px){

    .nav-container{
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;

        gap:8px;
        height:auto;
        padding:10px 12px;
    }

    /* socials row */
    .nav-socials{
        display:flex;
        gap:8px;
        margin-bottom:2px;
    }

    .nav-socials a{
        width:32px;
        height:32px;
        font-size:13px;
    }

    /* menu row */
    .main-menu{
        display:flex;
        align-items:center;
        justify-content:center;
        gap:4px;
        flex-wrap:wrap;
    }

    .main-menu a{
        font-size:13px;
        padding:6px 10px;
    }

    /* button */
    .nav-cta{
        font-size:13px;
        padding:8px 16px;
        min-height:auto;
    }

    .nav-email{
        display:none;
    }

    .logo-area{
        min-height:70px;
        padding:10px 0;
    }

    .custom-logo{
        max-height:55px;
    }
}

/* FINAL SPACING FIXES — homepage hero/cards */
.site-shell{
    padding-top:42px;
    padding-bottom:68px;
}

.home-intro{
    margin-bottom:58px;
}

.hero-main-title{
    margin-bottom:18px;
}

.hero-description{
    margin-bottom:22px;
}

.hero-description p{
    margin-bottom:16px;
}

.hero-toggle-btn,
.home-intro .dark-btn{
    margin-top:4px;
}

/* Keep cards close to hero button, but not attached */
.stories-section{
    margin-top:0;
}

.stories-grid{
    margin-top:42px;
}

/* Remove forced card stretching and huge inner empty spaces */
.story-card{
    display:flex;
    flex-direction:column;
    height:100%;
}

.story-card-body{
    display:flex;
    flex-direction:column;
    height:auto;
    flex:1;
    padding:24px 28px 28px;
}

.story-card-body p{
    flex:none;
    min-height:96px;
    margin-bottom:14px;
}

.story-card audio{
    width:100%;
    margin:0 0 14px;
}

.read-btn{
    margin-top:0;
}

/* Single story top whitespace fix */
.single-story-page{
    padding:48px 0 72px;
}

.single-story{
    padding-top:42px;
}

/* Mobile spacing */
@media(max-width:800px){
    .site-shell{
        padding-top:28px;
        padding-bottom:48px;
    }

    .home-intro{
        margin-bottom:42px;
    }

    .stories-grid{
        margin-top:34px;
    }

    .story-card-body p{
        min-height:auto;
    }

    .single-story-page{
        padding:34px 0 52px;
    }

    .single-story{
        padding-top:28px;
    }
}