* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: "Quicksand", sans-serif;
    color: black;
    overflow-x: hidden;
    background: #FFF9F2;
}
.page {
    min-height: 100vh;
    background: #fff9f2;
    animation: pageReveal 1.2s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes pageReveal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 75px;

    display: flex;
    align-items: center;
    padding: 0 35px;
    gap: 35px;

    /* Plus opaque */
    background: rgba(255, 249, 242, 0.856);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(23, 50, 77, 0.09);

    box-shadow:
        0 8px 25px rgba(23, 50, 77, 0.08);

    z-index: 100000;

    animation:
        navReveal .9s
        cubic-bezier(.22, 1, .36, 1)
        .1s both;
}

@keyframes navReveal {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.brand {
    text-decoration: none;
}

.brand:link,
.brand:visited,
.brand:hover,
.brand:active {
    text-decoration: none;
}

.brand-name {
    text-decoration: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
    transition:
        transform .3s ease;
}
.brand:hover {
    transform:
        translateY(-2px);
}
.fox {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 28px;
    transition:
        transform .3s ease,
        box-shadow .3s ease;
}
.brand:hover .fox {
    transform:
        rotate(-4deg)
        scale(1.04);
}
.brand-name {
    font-size: 30px;
    font-weight: 600;
    color: #17324D;
    text-decoration: none;

}
.index-1,
.about-1,
.faq-1,
.story-1,
.involve-1,
.donate-1 {
    position: absolute;
    display: flex;
    align-items: center;
    border: none;
    background: transparent;
    color: #17324D;
    font-family:
        "Quicksand",
        sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition:
        transform .3s ease,
        color .25s ease,
        opacity .25s ease;
}
.index-1 {
    margin-left: 365px;
}
.about-1 {
    margin-left: 515px;
}
.faq-1 {
    margin-left: 565px;
}
.story-1 {
    margin-left: 610px;
}
.involve-1 {
    margin-left: 665px;
}
.donate-1 {
    margin-left: 790px;
}
.index-1,
.involve-1 {
    cursor: pointer;
}
.index-1.open .triangle,
.involve-1.open .triangle {
    transform:
        rotate(180deg);
}
.triangle {
    display: inline-block;
    margin-left: 5px;
    font-size: 19px;
    transform-origin: center;
    transition:
        transform .35s ease;
}
.index-1:hover,
.about-1:hover,
.faq-1:hover,
.story-1:hover,
.involve-1:hover,
.donate-1:hover {
    color: #39A6A3;
    transform:
        translateY(-2px);
}
.donate-1 {
    border:
        3px solid #17324D;
    border-radius: 35px;
    padding:
        9px 21px;
}
.donate-1:hover {
    color: #39A6A3;
    border-color:
        #39A6A3;
}
.explore-menu {
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    height: calc(100vh - 75px);
    background:
        rgba(255, 249, 242, 0.82);
    backdrop-filter:
        blur(123px);
    -webkit-backdrop-filter:
        blur(123px);
    border-top:
        1px solid rgba(23, 50, 77, 0.07);
    border-bottom:
        1px solid rgba(23, 50, 77, 0.07);
    box-shadow:
        0 15px 40px rgba(23, 50, 77, .08);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform:
        translateY(-100%);
    pointer-events: none;
    transition:
        transform .5s cubic-bezier(.22, 1, .36, 1),
        opacity .35s ease,
        visibility .5s ease;
}
.explore-menu.open {
    opacity: 1;
    visibility: visible;
    transform:
        translateY(0);
    pointer-events: auto;
}
.explore-menu-content {
    width: 100%;
    height: 100%;
    padding:
        45px 8%;
    overflow-y: auto;
}
.explore-menu-header {
    margin-bottom: 35px;
}
.explore-menu-header h2 {
    font-family:
        "Quicksand",
        sans-serif;
    font-size: 40px;
    font-weight: 600;
    color: #17324D;
    letter-spacing: -1.5px;
}
.explore-menu-header p {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #526A7A;
}
.explore-menu-grid {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}
.explore-item {
   display:block;
    background:transparent;
    border:none;
      
}
.explore-item:hover {
    transform:
        translateY(-5px);
    background:
       transparent;
    box-shadow:
        0 10px 30px rgba(23, 50, 77, .08);
}
.explore-item h3 {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #17324D;
}
.explore-item p {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: #526A7A;
}







.explore-menu {
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    height: calc(100vh - 75px);
    background:
        rgba(255, 249, 242, 0.82);
    backdrop-filter:
        blur(12px);
    -webkit-backdrop-filter:
        blur(12px);
    border-top:
        1px solid rgba(23, 50, 77, 0.07);
    border-bottom:
        1px solid rgba(23, 50, 77, 0.07);
    box-shadow:
        0 15px 40px rgba(23, 50, 77, .08);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform:
        translateY(-100%);
    pointer-events: none;
    transition:
        transform .5s cubic-bezier(.22, 1, .36, 1),
        opacity .35s ease,
        visibility .5s ease;
}
.explore-menu.open {
    opacity: 1;
    visibility: visible;
    transform:
        translateY(0);
    pointer-events: auto;
}
.explore-menu-content {
    width: 100%;
    height: 100%;
    padding:
        45px 8%;
    overflow-y: auto;
}
.explore-menu-header {
    margin-bottom: 35px;
}
.explore-menu-header h2 {
    font-family:
        "Quicksand",
        sans-serif;
    font-size: 40px;
    font-weight: 600;
    color: #17324D;
    letter-spacing: -1.5px;
}
.explore-menu-header p {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #526A7A;
}
.explore-menu-grid {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}
.explore-item {
    padding: 25px;
    background:none;
    display:block;
    border:none;
    border-radius: 16px;
    backdrop-filter:
        blur(10px);
    -webkit-backdrop-filter:
        blur(10px);
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}
.explore-item:hover {
    transform:
        translateY(-5px);
    background:
        rgba(255, 249, 242, .65);
    box-shadow:
        0 10px 30px rgba(23, 50, 77, .08);
}
.explore-item h3 {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #17324D;
}
.explore-item p {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: #526A7A;
}

.signin-button {
    border: none;
    border-radius: 20px;
    padding:
        12px 25px;
    background:
        transparent;
    color: #17324D;
    font-family:
        "Quicksand",
        sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition:
        transform .3s ease,
        color .25s ease,
        background .25s ease;
}
.signin-button:hover {
    transform:
        translateY(-2px);
    color:
        #39A6A3;
    background:
        rgba(57, 166, 163, .08);
}
.signup-button {
    border: none;
    height: 45px;
    min-width: 100px;
    padding:
        0 22px;
    border-radius: 35px;
    background:
        #17324D;
    color:
        #FFF9F2;
    font-family:
        "Quicksand",
        sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 18px rgba(23, 50, 77, .13);
    transition:
        transform .3s ease,
        background .25s ease,
        box-shadow .25s ease;
}
.signup-button:hover {
    transform:
        translateY(-3px);
    background:
        #39A6A3;
    box-shadow:
        0 12px 25px rgba(57, 166, 163, .22);
}

.hero-stories{
    position:relative;
    height:600px;
    width:1200px;
    margin-top:75px;
    margin-left:75px;
    border-radius:30px;
    overflow:hidden;
    isolation:isolate;
    background:
            #d83d83 
        
}

.hero-stories::before{
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(
            90deg,
            transparent 0 96%,
            rgba(190,70,120,.08) 96% 96.2%,
            transparent 96.2%
        );
    background-size:55px 100%;
    opacity:.6;
    z-index:-1;
}

.hero-stories::after{
    content:"";
    position:absolute;
    width:520px;
    height:520px;
    right:-180px;
    bottom:-260px;
    border-radius:50%;
    background:#f2b8d0;
    opacity:.35;
    z-index:-1;
}

.community-text{
    font-size: 18px;
    font-weight: 600;
    margin-left:80px;
    padding-top:75px;
     color:white;
    border-color: #080808;
border-width: solid;
}

.Learnivia-Stories-text{
    font-size: 50px;
    font-weight: 600;
    margin-left:75px;
    padding-top:10px;
  
border-color: #080808;
border-width: 1px solid;}

    .Learnivia-stories-world{
    font-size: 18px;
    font-weight: 200;
    margin-left:80px;
    width:600px; 
    }
.share-your-story-button{
    background-color:#17324D;
    width:200px;
    height:40px;
    border:2px solid #17324D;
    color:#FFF9F2;
    font-family:"Quicksand",sans-serif;
    font-size:15px;
    font-weight:600;
    border-radius:10px;
    margin-left:80px;
    cursor:pointer;
    transition:.25s ease;
}

.share-your-story-button:hover{
    background-color:#39A6A3;
    border-color:#39A6A3;
    transform:translateY(-2px);
}
    /* ================================= */
/* STORIES SECTION                   */
/* ================================= */

.stories-section {
    width: 100%;
    background: #ffffff;
    padding: 55px 0 70px;
    box-sizing: border-box;
}


/* GRID */

.stories-grid {
    width: 1180px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    column-gap: 32px;
    row-gap: 65px;
}


/* CARD */

.story-card {
    width: 100%;
}


/* BUBBLE */

.story-bubble {
    position: relative;

    min-height: 185px;

    padding: 24px 24px 28px;

    box-sizing: border-box;

    border: 2px solid #c5cfdf;
    border-radius: 8px;

    background: #ffffff;
}


/* PETIT TRIANGLE SOUS LA CARTE */

.story-bubble::after {
    content: "";

    position: absolute;

    bottom: -14px;
    left: 18px;

    width: 24px;
    height: 24px;

    background: #ffffff;

    border-right: 2px solid #c5cfdf;
    border-bottom: 2px solid #c5cfdf;

    transform: rotate(45deg);
}


/* YELLOW MARK */

.yellow-mark {
    position: absolute;

    top: 7px;
    left: 14px;

    font-size: 55px;
    line-height: 1;

    font-family: Georgia, serif;

    color: #ffe24b;

    z-index: 0;
}


/* TITLE */

.story-bubble h3 {
    position: relative;
    z-index: 1;

    margin: 0 0 8px;

    font-family: "Quicksand", sans-serif;

    font-size: 25px;
    line-height: 1.08;

    font-weight: 700;

    color: #080808;
}


/* DATE */

.story-date {
    display: block;

    margin-bottom: 17px;

    font-family: "Quicksand", sans-serif;

    font-size: 14px;
    font-weight: 600;

    color: #929daf;
}


/* TEXT */

.story-bubble p {
    margin: 0;

    font-family: "Quicksand", sans-serif;

    font-size: 16px;
    line-height: 1.5;

    font-weight: 500;

    color: #202020;
}


/* USER */

.story-user {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-top: 15px;
}


/* AVATAR */

.story-user img {
    width: 58px;
    height: 58px;

    object-fit: cover;

    border-radius: 50%;

    border: 5px solid #edf1f5;

    box-sizing: border-box;
}


/* NAME */

.story-user h4 {
    margin: 0 0 2px;

    font-family: "Quicksand", sans-serif;

    font-size: 19px;
    line-height: 1.1;

    font-weight: 700;

    color: #080808;
}


/* ROLE */

.story-user span {
    font-family: "Quicksand", sans-serif;

    font-size: 14px;
    font-weight: 600;

    color: #657083;
}


/* SEE MORE */

.see-more-button {
    display: block;

    margin: 55px auto 0;

    padding: 12px 38px;

    border: none;
    border-radius: 7px;

    background: #2f9b83;
    color: #ffffff;

    font-family: "Quicksand", sans-serif;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;
}

.see-more-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}


/* =========================================
   STORY POPUP / MODAL
========================================= */

.story-modal {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(23, 50, 77, 0.25);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    z-index: 200000;

    transition:
        opacity .25s ease,
        visibility .25s ease;
}


/* OPEN */

.story-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* =========================================
   WHITE POPUP
========================================= */

.story-modal-box {
    position: relative;

    width: 100%;
    max-width: 550px;

    max-height: 88vh;

    background: #ffffff;

    border-radius: 5px;

    padding: 18px 17px 28px;

    overflow-y: auto;

    box-shadow:
        0 20px 60px rgba(23, 50, 77, 0.20);

    transform: translateY(15px) scale(.98);

    transition:
        transform .3s cubic-bezier(.22, 1, .36, 1);
}

.story-modal.active .story-modal-box {
    transform: translateY(0) scale(1);
}


/* =========================================
   CLOSE BUTTON
========================================= */

.story-modal-close {
    position: absolute;

    top: 10px;
    right: 12px;

    width: 30px;
    height: 30px;

    border: none;
    background: transparent;

    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: 300;

    line-height: 30px;

    color: #111;

    cursor: pointer;

    padding: 0;

    transition:
        transform .2s ease,
        color .2s ease;
}

.story-modal-close:hover {
    transform: scale(1.15);
    color: #39A6A3;
}


/* =========================================
   TITLE
========================================= */
.sessions-title{
    margin-left:380px;
    margin-top:40px;
    margin-bottom:30px;
}
.story-modal-box h2 {
    margin: 0 40px 25px 0;

    font-family: "Quicksand", sans-serif;

    font-size: 22px;
    line-height: 1.2;

    font-weight: 700;

    color: #111;
}


/* =========================================
   USER
========================================= */

.modal-user {
    display: flex;
    align-items: center;

    margin-bottom: 30px;
}

.modal-user > img {
    width: 38px;
    height: 38px;

    object-fit: cover;

    border-radius: 50%;

    margin-right: 10px;
}


/* User information */

.modal-user-info {
    width: calc(100% - 48px);

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-user-info > div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.modal-user-info strong {
    font-family: "Quicksand", sans-serif;

    font-size: 16px;
    font-weight: 700;

    color: #111;
}


/* Learner / Tutor badge */

.modal-role {
    display: inline-flex;

    align-items: center;

    padding: 4px 9px;

    border-radius: 5px;

    background: #e7efff;

    color: #3d72d8;

    font-family: "Quicksand", sans-serif;

    font-size: 13px;
    font-weight: 700;
}


/* Date */

.modal-date {
    font-family: "Quicksand", sans-serif;

    font-size: 15px;
    font-weight: 700;

    color: #9aa4b5;
}


/* =========================================
   FULL STORY
========================================= */

.modal-story-text {
    font-family: "Quicksand", sans-serif;

    font-size: 16px;

    line-height: 1.5;

    font-weight: 500;

    color: #171717;
}


/* Chaque paragraphe */

.modal-story-text p {
    margin: 0 0 14px;
}

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


/* =========================================
   SCROLLBAR
========================================= */

.story-modal-box::-webkit-scrollbar {
    width: 6px;
}

.story-modal-box::-webkit-scrollbar-track {
    background: transparent;
}

.story-modal-box::-webkit-scrollbar-thumb {
    background: #cbd3df;
    border-radius: 10px;
}
@media (max-width: 1200px) {
    .index-1 {
        margin-left: 300px;
    }
    .about-1 {
        margin-left: 440px;
    }
    .faq-1 {
        margin-left: 490px;
    }
    .story-1 {
        margin-left: 540px;
    }
    .involve-1 {
        margin-left: 590px;
    }
    .donate-1 {
        margin-left: 705px;
    }
    .stories-container {
        grid-template-columns:
            repeat(3, 1fr);
        gap: 20px;
    }
}
@media (max-width: 900px) {
    .top {
        padding:
            0 20px;
        gap: 15px;
    }
    .brand-name {
        font-size: 24px;
    }
    .fox {
        width: 45px;
        height: 45px;
    }
    .index-1,
    .about-1,
    .faq-1,
    .story-1,
    .involve-1,
    .donate-1 {
        position: static;
        margin-left: 0;
    }
    .stories-container {
        grid-template-columns:
            1fr;
        max-width: 500px;
    }
    .space {
        padding:
            100px 8%;
    }
    .creator {
        margin-left: 8%;
        margin-right: 8%;
    }
}
@media (max-width: 768px) {
    .space .bga-05__terrain,
    .space .bga-05__ridge {
        inset:
            -100%;
    }
    .front_text {
        font-size: 65px;
        word-spacing: 100px;
    }
    .front_text2 {
        font-size: 38px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior:
            auto;
    }
    *,
    *::before,
    *::after {
        animation-duration:
            .01ms !important;
        animation-iteration-count:
            1 !important;
        transition-duration:
            .01ms !important;
    }
    .space .bga-05__terrain,
    .space .bga-05__ridge {
        filter:
            none;
        opacity:
            .4;
    }
}
@media (max-width: 650px) {
    .top {
        height: 65px;
        padding:
            0 15px;
        gap: 8px;
    }
    .fox {
        width: 40px;
        height: 40px;
    }
    .brand-name {
        font-size: 20px;
    }
    .index-1,
    .about-1,
    .faq-1,
    .story-1,
    .involve-1,
    .donate-1 {
        display:
            none;
    }
    .signin-button {
        padding:
            8px 12px;
        font-size:
            13px;
    }
    .signup-button {
        height:
            38px;
        min-width:
            75px;
        padding:
            0 12px;
        font-size:
            12px;
    }
    .space {
        min-height:
            500px;
        margin-top:
            65px;
        padding:
            80px 7%;
        border-radius:
            0 0 20px 20px;
    }
    .front {
        width:
            100%;
        margin-top:
            80px;
    }
    .front_text {
        font-size:
            52px;
        word-spacing:
            normal;
        letter-spacing:
            -2px;
    }
    .front_text2 {
        font-size:
            32px;
        margin-top:
            30px;
    }
    .front2 {
        width:
            100%;
        margin-left:
            0;
        margin-top:
            20px;
    }
    .start-learning-button {
        width:
            calc(100% - 20px);
    }
    .for-parents,
    .for-educator {
        width:
            42%;
        font-size:
            11px;
    }
    .for-parents {
        margin-left:
            0;
    }
    .for-educator {
        margin-left:
            46%;
    }
    .creator {
        height:
            650px;
        margin:
            80px 20px;
        padding:
            35px;
    }
    .testimonial-line {
        display:
            none;
    }
    .testimonial-text {
        position:
            relative;
        top:
            auto;
        left:
            auto;
        margin:
            50px 20px;
    }
    .testimonial-author {
        position:
            relative;
        top:
            auto;
        left:
            auto;
        margin-left:
            20px;
    }
    .How-text {
        font-size:
            32px;
    }
    .How-text2 {
        font-size:
            17px;
        padding:
            0 25px;
    }
    .stories-container {
        margin:
            50px 20px 200px;
        padding:
            0;
        grid-template-columns:
            1fr;
    }
}

/* =====================================================
   DROPDOWN PANELS
   ===================================================== */

.explore-menu-content {
    display: block;
}

.dropdown-panel {
    display: none;
    width: 100%;
}

.dropdown-panel.active {
    display: block;
}

.get-involved-menu {
    display: contents;
}

.explore-menu-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.get-involved-panel .explore-item {
    min-height: 150px;
}

/* =====================================================
   DROPDOWN ITEMS — VERTICAL, NO BACKGROUND, PAGE LINKS
   ===================================================== */

.explore-menu-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
}

.explore-item {
    display: block;
    width: 100%;
    padding: 18px 0;
    margin: 0;
    background: transparent !important;
    border: none;
    border-radius: 0;
    box-shadow: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: #17324D;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform .25s ease,
        color .25s ease;
}

.explore-item:hover {
    background: transparent !important;
    box-shadow: none !important;
    transform: translateX(8px);
}

.explore-item h3 {
    margin: 0 0 7px;
    color: #17324D;
    font-size: 20px;
    font-weight: 600;
}

.explore-item p {
    margin: 0;
    max-width: 650px;
    color: #526A7A;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.explore-item:focus-visible {
    outline: 3px solid rgba(57, 166, 163, .35);
    outline-offset: 6px;
    border-radius: 4px;
}

.get-involved-panel .explore-item {
    min-height: 0;
}

@media (max-width: 650px) {
    .explore-menu {
        top: 65px;
        height: calc(100vh - 65px);
    }

    .explore-menu-content {
        padding: 35px 7%;
    }

    .explore-menu-list {
        gap: 0;
    }

    .explore-item {
        padding: 15px 0;
    }
}
