/*==================================================
LITTLE EXPLORERS LEARNING HUB
PORTFOLIO DOCUMENTATION

portfolio-documentation.css
==================================================*/

/*==================================================
ROOT VARIABLES
==================================================*/

:root{

    --primary:#2c6e49;
    --primary-light:#4f9d69;
    --secondary:#f4b942;
    --accent:#4a90e2;

    --success:#43a047;
    --warning:#fb8c00;
    --danger:#e53935;

    --blue:#4a90e2;
    --green:#43a047;
    --orange:#fb8c00;
    --purple:#8e44ad;

    --text:#253046;
    --text-light:#667085;

    --heading:#1c2536;

    --white:#ffffff;
    --background:#f7f9fc;
    --surface:#ffffff;

    --border:#e5e7eb;

    --shadow-sm:0 4px 12px rgba(0,0,0,.05);
    --shadow:0 10px 30px rgba(0,0,0,.08);
    --shadow-lg:0 20px 45px rgba(0,0,0,.12);

    --radius:18px;
    --radius-lg:28px;

    --transition:.35s ease;

    --container:1280px;

}

/*==================================================
RESET
==================================================*/

*,
*::before,
*::after{

    margin:0;

    padding:0;

    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

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

    color:var(--text);

    background:var(--background);

    line-height:1.75;

    overflow-x:hidden;

}

/*==================================================
TYPOGRAPHY
==================================================*/

h1,
h2,
h3,
h4{

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

    color:var(--heading);

    font-weight:800;

    line-height:1.2;

}

h1{

    font-size:clamp(2.5rem,5vw,4.2rem);

}

h2{

    font-size:clamp(2rem,4vw,3rem);

}

h3{

    font-size:1.35rem;

}

h4{

    font-size:1.1rem;

}

p{

    color:var(--text-light);

    margin-top:1rem;

}

a{

    text-decoration:none;

    color:inherit;

    transition:var(--transition);

}

img{

    display:block;

    width:100%;

    height:auto;

}

ul{

    list-style:none;

}

/*==================================================
LAYOUT
==================================================*/

.container{

    width:min(92%,var(--container));

    margin-inline:auto;

}

section{

    padding:6rem 0;

}

.section-title{

    text-align:center;

    max-width:850px;

    margin:0 auto 4rem;

}

.section-title h2{

    margin-top:1rem;

    margin-bottom:1rem;

}

.section-tag{

    display:inline-flex;

    align-items:center;

    gap:.5rem;

    padding:.45rem 1rem;

    border-radius:999px;

    background:#e8f5ec;

    color:var(--primary);

    font-weight:700;

    font-size:.9rem;

    letter-spacing:.4px;

}

/*==================================================
HEADER
==================================================*/

.site-header{

    position:sticky;

    top:0;

    z-index:1000;

    background:rgba(255,255,255,.96);

    backdrop-filter:blur(16px);

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

    border-bottom:1px solid rgba(0,0,0,.05);

    box-shadow:0 5px 20px rgba(0,0,0,.05);

    transition:var(--transition);

}

.site-header.scrolled{

    box-shadow:0 12px 30px rgba(25,40,70,.10);

}

.nav-container{

    display:flex;

    align-items:center;

    justify-content:space-between;

    min-height:82px;

    gap:2rem;

}

.logo{

    display:flex;

    align-items:center;

}

.logo-text h1{

    font-size:1.35rem;

    color:var(--primary);

    margin:0;

}

.logo-text span{

    display:block;

    color:var(--text-light);

    font-size:.9rem;

    font-weight:600;

}

.main-nav ul{

    display:flex;

    align-items:center;

    gap:2rem;

}

.main-nav a{

    font-weight:600;

    color:var(--text);

    position:relative;

}

.main-nav a:hover,

.main-nav a.active{

    color:var(--primary);

}

.main-nav a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-6px;

    width:0;

    height:3px;

    background:var(--secondary);

    transition:var(--transition);

    border-radius:50px;

}

.main-nav a:hover::after,

.main-nav a.active::after{

    width:100%;

}

.header-actions{

    display:flex;

    align-items:center;

    gap:1rem;

}

.search-toggle{

    width:42px;

    height:42px;

    border-radius:50%;

    display:grid;

    place-items:center;

    background:#eef5ef;

    color:var(--primary);

    transition:var(--transition);

}

.search-toggle:hover{

    background:var(--primary);

    color:#fff;

}

.mobile-menu{

    display:none;

    border:none;

    background:none;

    font-size:1.8rem;

    cursor:pointer;

    color:var(--primary);

}

/*==================================================
HERO SECTION
==================================================*/

.study-hero{

    position:relative;

    overflow:hidden;

    background:linear-gradient(135deg,#eef8f1 0%,#ffffff 45%,#f4f9ff 100%);

    padding:7rem 0;

}

.study-hero::before{

    content:"";

    position:absolute;

    width:520px;

    height:520px;

    border-radius:50%;

    background:rgba(44,110,73,.08);

    top:-220px;

    right:-180px;

}

.study-hero::after{

    content:"";

    position:absolute;

    width:320px;

    height:320px;

    border-radius:50%;

    background:rgba(244,185,66,.12);

    bottom:-150px;

    left:-100px;

}

.study-hero .container{

    position:relative;

    z-index:2;

    max-width:900px;

}

/*==================================================
BREADCRUMB
==================================================*/

.breadcrumb{

    display:flex;

    align-items:center;

    flex-wrap:wrap;

    gap:.6rem;

    margin-bottom:2rem;

    font-size:.95rem;

    color:var(--text-light);

}

.breadcrumb a{

    color:var(--primary);

    font-weight:600;

}

.breadcrumb a:hover{

    color:var(--secondary);

}

.breadcrumb span{

    color:#98a2b3;

}

/*==================================================
FEATURED LABEL
==================================================*/

.featured-label{

    display:inline-flex;

    align-items:center;

    gap:.5rem;

    background:#eaf6ed;

    color:var(--primary);

    padding:.65rem 1.25rem;

    border-radius:999px;

    font-size:.9rem;

    font-weight:700;

    letter-spacing:.5px;

    margin-bottom:1.5rem;

}

.featured-label::before{

    content:"★";

    color:var(--secondary);

}

/*==================================================
HERO CONTENT
==================================================*/

.study-hero h1{

    margin-bottom:1.5rem;

    max-width:850px;

}

.study-hero p{

    font-size:1.08rem;

    max-width:820px;

    margin-bottom:1.25rem;

}

.study-hero p:last-of-type{

    margin-bottom:2.5rem;

}

/*==================================================
HERO BADGES
==================================================*/

.hero-badges{

    display:flex;

    flex-wrap:wrap;

    gap:1rem;

    margin-bottom:3rem;

}

.hero-badges div{

    display:flex;

    align-items:center;

    gap:.65rem;

    padding:.9rem 1.3rem;

    background:#ffffff;

    border-radius:999px;

    border:1px solid var(--border);

    box-shadow:var(--shadow-sm);

    font-weight:600;

    transition:var(--transition);

}

.hero-badges div:hover{

    transform:translateY(-4px);

    box-shadow:var(--shadow);

}

.hero-badges i{

    color:var(--primary);

    font-size:1.1rem;

}

/*==================================================
BUTTONS
==================================================*/

.btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:.6rem;

    padding:1rem 2rem;

    border-radius:999px;

    background:var(--primary);

    color:#ffffff;

    font-weight:700;

    border:none;

    cursor:pointer;

    transition:var(--transition);

    box-shadow:var(--shadow);

}

.btn:hover{

    transform:translateY(-4px);

    background:#23593c;

}

.btn-secondary{

    background:#ffffff;

    color:var(--primary);

    border:2px solid var(--primary);

    box-shadow:none;

}

.btn-secondary:hover{

    background:var(--primary);

    color:#ffffff;

}

/*==================================================
HERO ACTIONS
==================================================*/

.hero-actions{

    display:flex;

    flex-wrap:wrap;

    gap:1rem;

}

/*==================================================
SECTION BACKGROUNDS
==================================================*/

.featured-study{

    background:#ffffff;

}

.why-section{

    background:#f8fbfd;

}

.featured-studies{

    background:#ffffff;

}

.interest-areas{

    background:#f8fbfd;

}

.site-stats{

    background:linear-gradient(135deg,#2c6e49,#3b8d5d);

    color:#ffffff;

}

.teacher-favorites{

    background:#ffffff;

}

.newsletter{

    background:#f8fbfd;

}

/*==================================================
FEATURED STUDY
==================================================*/

.featured-study-card{

    display:grid;

    grid-template-columns:1.1fr .9fr;

    gap:4rem;

    align-items:center;

}

.featured-study-card.reverse{

    grid-template-columns:.9fr 1.1fr;

}

.featured-text h2{

    margin:1rem 0 1.5rem;

}

.featured-text p{

    margin-bottom:1.5rem;

    font-size:1.05rem;

}

/*==================================================
FEATURED HIGHLIGHTS
==================================================*/

.featured-highlights{

    display:grid;

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

    gap:1rem;

    margin-top:2rem;

}

.featured-highlights div{

    display:flex;

    align-items:center;

    gap:.75rem;

    padding:1rem 1.25rem;

    background:#f7faf8;

    border:1px solid var(--border);

    border-radius:14px;

    font-weight:600;

    transition:var(--transition);

}

.featured-highlights div:hover{

    transform:translateY(-5px);

    border-color:var(--primary);

    box-shadow:var(--shadow-sm);

}

/*==================================================
FEATURED IMAGE
==================================================*/

.featured-image{

    position:relative;

}

.featured-image img{

    width:100%;

    border-radius:24px;

    object-fit:cover;

    box-shadow:var(--shadow-lg);

    transition:var(--transition);

}

.featured-image:hover img{

    transform:scale(1.02);

}

/*==================================================
SECTION TITLE
==================================================*/

.section-title{

    margin-bottom:4rem;

}

.section-title p{

    max-width:760px;

    margin:1rem auto 0;

}

/*==================================================
WHY GRID
==================================================*/

.why-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:2rem;

}

.why-card{

    background:#ffffff;

    padding:2rem;

    border-radius:22px;

    border:1px solid var(--border);

    transition:var(--transition);

    box-shadow:var(--shadow-sm);

    height:100%;

}

.why-card:hover{

    transform:translateY(-8px);

    box-shadow:var(--shadow);

    border-color:rgba(44,110,73,.25);

}

/*==================================================
WHY ICON
==================================================*/

.why-icon{

    width:72px;

    height:72px;

    border-radius:18px;

    display:flex;

    align-items:center;

    justify-content:center;

    background:linear-gradient(135deg,var(--primary),var(--primary-light));

    color:#ffffff;

    font-size:2rem;

    margin-bottom:1.5rem;

}

.why-card h3{

    margin-bottom:1rem;

}

.why-card p{

    margin:0;

}

/*==================================================
FADE ANIMATION SUPPORT
==================================================*/

.fade-up{

    opacity:0;

    transform:translateY(40px);

    transition:all .7s ease;

}

.fade-up.active{

    opacity:1;

    transform:translateY(0);

}

/*==================================================
IMAGE HOVER EFFECT
==================================================*/

.study-card img,
.featured-image img{

    overflow:hidden;

}

.study-card:hover img{

    transform:scale(1.05);

}

/*==================================================
SUBTLE CARD ANIMATION
==================================================*/

.why-card,
.study-card,
.interest-card,
.favorite-card{

    transition:
    transform .35s ease,
    box-shadow .35s ease,
    border-color .35s ease;

}

/*==================================================
STUDY GRID
==================================================*/

.study-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(340px,1fr));

    gap:2rem;

}

.study-card{

    background:#ffffff;

    border-radius:24px;

    overflow:hidden;

    border:1px solid var(--border);

    box-shadow:var(--shadow-sm);

    transition:var(--transition);

    display:flex;

    flex-direction:column;

    height:100%;

}

.study-card:hover{

    transform:translateY(-10px);

    box-shadow:var(--shadow-lg);

}

/*==================================================
STUDY CARD IMAGE
==================================================*/

.study-card img{

    display:block;

    width:100%;

    aspect-ratio:1 / 1;

    object-fit:cover;

    object-position:center;

    transition:transform .5s ease;

}

.study-card:hover img{

    transform:scale(1.05);

}

.study-content{

    display:flex;

    flex-direction:column;

    flex:1;

    padding:2rem;

}

.study-content h3{

    margin:.75rem 0 1rem;

}

.study-content p{

    margin-bottom:1.75rem;

    flex:1;

}

.study-content a{

    font-weight:700;

    color:var(--primary);

    transition:var(--transition);

}

.study-content a:hover{

    color:var(--secondary);

}

/*==================================================
STUDY TAGS
==================================================*/

.study-tag{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    width:max-content;

    padding:.45rem 1rem;

    border-radius:999px;

    color:#ffffff;

    font-size:.82rem;

    font-weight:700;

    letter-spacing:.3px;

}

.study-tag.blue{

    background:var(--blue);

}

.study-tag.green{

    background:var(--green);

}

.study-tag.orange{

    background:var(--orange);

}

.study-tag.purple{

    background:var(--purple);

}

/*==================================================
INTEREST GRID
==================================================*/

.interest-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));

    gap:2rem;

}

.interest-card{

    background:#ffffff;

    border-radius:22px;

    padding:2rem;

    border:1px solid var(--border);

    box-shadow:var(--shadow-sm);

    transition:var(--transition);

    height:100%;

}

.interest-card:hover{

    transform:translateY(-8px);

    box-shadow:var(--shadow);

}

.interest-icon{

    width:72px;

    height:72px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:18px;

    font-size:2rem;

    color:#ffffff;

    margin-bottom:1.5rem;

}

.interest-card.blue .interest-icon{

    background:var(--blue);

}

.interest-card.green .interest-icon{

    background:var(--green);

}

.interest-card.orange .interest-icon{

    background:var(--orange);

}

.interest-card.purple .interest-icon{

    background:var(--purple);

}

.interest-card h3{

    margin-bottom:1rem;

}

.interest-card p{

    margin:0;

}

/*==================================================
STATISTICS
==================================================*/

.stats-grid{

    display:grid;

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

    gap:2rem;

}

.stat-card{

    background:rgba(255,255,255,.12);

    border:1px solid rgba(255,255,255,.18);

    backdrop-filter:blur(12px);

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

    padding:2.5rem 2rem;

    border-radius:22px;

    text-align:center;

    transition:var(--transition);

}

.stat-card:hover{

    transform:translateY(-6px);

    background:rgba(255,255,255,.18);

}

.stat-card h2{

    color:#ffffff;

    font-size:3rem;

    margin-bottom:.75rem;

}

.stat-card p{

    color:rgba(255,255,255,.92);

    margin:0;

    font-weight:600;

    font-size:1rem;

}

/*==================================================
TEACHER FAVORITES
==================================================*/

.favorite-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:2rem;

}

.favorite-card{

    background:#ffffff;

    border:1px solid var(--border);

    border-radius:22px;

    padding:2rem;

    box-shadow:var(--shadow-sm);

    transition:var(--transition);

    display:flex;

    flex-direction:column;

    height:100%;

}

.favorite-card:hover{

    transform:translateY(-8px);

    box-shadow:var(--shadow);

}

.favorite-icon{

    width:70px;

    height:70px;

    border-radius:18px;

    display:flex;

    align-items:center;

    justify-content:center;

    background:linear-gradient(135deg,var(--primary),var(--primary-light));

    color:#ffffff;

    font-size:2rem;

    margin-bottom:1.5rem;

}

.favorite-card h3{

    margin-bottom:1rem;

}

.favorite-card p{

    flex:1;

    margin-bottom:2rem;

}

.favorite-card .btn{

    align-self:flex-start;

}

/*==================================================
NEWSLETTER
==================================================*/

.newsletter-box{

    background:#ffffff;

    border-radius:30px;

    padding:4rem;

    display:grid;

    grid-template-columns:2fr 1fr;

    gap:3rem;

    box-shadow:var(--shadow);

}

.newsletter-tag{

    display:inline-block;

    padding:.5rem 1rem;

    background:#e8f5ec;

    color:var(--primary);

    border-radius:999px;

    font-weight:700;

    margin-bottom:1.5rem;

}

.newsletter-content h2{

    margin-bottom:1rem;

}

.newsletter-benefits{

    display:grid;

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

    gap:1rem;

    margin-top:2rem;

}

.newsletter-benefits div{

    padding:1rem;

    border-radius:14px;

    background:#f8fafb;

    border:1px solid var(--border);

    font-weight:600;

}

.newsletter-card{

    background:linear-gradient(135deg,var(--primary),var(--primary-light));

    color:#ffffff;

    border-radius:24px;

    padding:2.5rem;

}

.newsletter-card h3{

    color:#ffffff;

    margin-bottom:1rem;

}

.newsletter-card p{

    color:rgba(255,255,255,.9);

    margin-bottom:2rem;

}

.newsletter-form{

    display:flex;

    flex-direction:column;

    gap:1rem;

}

.input-group input{

    width:100%;

    padding:1rem 1.25rem;

    border:none;

    border-radius:12px;

    font-size:1rem;

    outline:none;

}

.newsletter-form button{

    padding:1rem;

    border:none;

    border-radius:12px;

    background:var(--secondary);

    color:#222;

    font-weight:700;

    cursor:pointer;

    transition:var(--transition);

}

.newsletter-form button:hover{

    background:#ffd166;

}

/*==================================================
FOOTER
==================================================*/

.site-footer{

    background:#1e293b;

    color:#d1d5db;

    padding-top:5rem;

}

.footer-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:3rem;

}

.footer-column h3,

.footer-column h4{

    color:#ffffff;

    margin-bottom:1.25rem;

}

.footer-column p{

    color:#cbd5e1;

}

.footer-column ul{

    display:flex;

    flex-direction:column;

    gap:.8rem;

}

.footer-column a{

    color:#d1d5db;

    transition:var(--transition);

}

.footer-column a:hover{

    color:#ffffff;

    padding-left:5px;

}

.footer-button{

    display:inline-block;

    margin-top:1.5rem;

    padding:.85rem 1.5rem;

    background:var(--primary);

    color:#ffffff !important;

    border-radius:999px;

    font-weight:700;

}

.footer-button:hover{

    background:var(--secondary);

    color:#222 !important;

}

.footer-bottom{

    border-top:1px solid rgba(255,255,255,.08);

    margin-top:4rem;

    padding:2rem 0;

    display:flex;

    justify-content:space-between;

    align-items:center;

    flex-wrap:wrap;

    gap:1rem;

}

.footer-bottom p{

    color:#cbd5e1;

    margin:0;

}

.footer-links{

    display:flex;

    flex-wrap:wrap;

    gap:1.5rem;

}

.footer-links a{

    color:#cbd5e1;

}

.footer-links a:hover{

    color:#ffffff;

}

/*==================================================
RESPONSIVE
==================================================*/

@media (max-width:1100px){

    .featured-study-card{

        grid-template-columns:1fr;

        gap:2.5rem;

    }

    .newsletter-box{

        grid-template-columns:1fr;

    }

    .stats-grid{

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

    }

    .main-nav{

        position:absolute;

        top:100%;

        left:0;

        width:100%;

        background:#ffffff;

        display:none;

        box-shadow:var(--shadow);

        padding:2rem;

    }

    .main-nav.active{

        display:block;

    }

    .main-nav ul{

        flex-direction:column;

        align-items:flex-start;

        gap:1.5rem;

    }

    .mobile-menu{

        display:block;

    }

}

@media (max-width:768px){

    section{

        padding:4rem 0;

    }

    .hero-badges{

        flex-direction:column;

    }

    .hero-actions{

        flex-direction:column;

    }

    .btn{

        width:100%;

    }

    .featured-highlights{

        grid-template-columns:1fr;

    }

    .study-grid,

    .interest-grid,

    .favorite-grid{

        grid-template-columns:1fr;

    }

    .stats-grid{

        grid-template-columns:1fr;

    }

    .newsletter-benefits{

        grid-template-columns:1fr;

    }

    .footer-bottom{

        flex-direction:column;

        text-align:center;

    }

}

@media (max-width:480px){

    h1{

        font-size:2.3rem;

    }

    h2{

        font-size:1.9rem;

    }

    .newsletter-box{

        padding:2rem;

    }

}
