/* =========================================================
   RAUDHAH ADNI PRESCHOOL - CSS
   UI BASED ON HADHONAH ADNI
   Theme: Navy / Blue / Yellow
========================================================= */


/* =========================================================
   SECTION 00 : GLOBAL / VARIABLES / TYPOGRAPHY
========================================================= */

:root{
    --navy:#07386f;
    --blue:#0d55a5;
    --yellow:#f5c518;
    --soft:#eef6ff;
    --cream:#fff9e7;
    --ink:#172033;
    --muted:#68778a;
    --line:#dce7f2;
    --white:#fff;
    --shadow:0 18px 48px rgba(7,56,111,.12);
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    font-family:Arial,Helvetica,sans-serif;
    color:var(--ink);
    line-height:1.65;
    background:#fff;
}

button{
    font:inherit;
}

.wrap{
    width:min(1160px,calc(100% - 36px));
    margin:auto;
}

section{
    padding:84px 0;
}

.center{
    text-align:center;
}

.kicker{
    display:inline-flex;
    align-items:center;
    gap:9px;
    color:var(--navy);
    font-size:.76rem;
    font-weight:900;
    letter-spacing:.1em;
    text-transform:uppercase;
}

.kicker:before,
.kicker:after{
    content:"";
    width:28px;
    height:3px;
    background:var(--yellow);
    border-radius:5px;
}

.kicker.light{
    color:white;
}

h1,
h2,
h3{
    line-height:1.12;
}

h1{
    font-size:clamp(3rem,7vw,6rem);
    margin:12px 0 20px;
}

h2{
    font-size:clamp(2rem,4vw,3.15rem);
    color:var(--navy);
    margin:12px 0 16px;
}

h3{
    color:var(--navy);
}

p{
    margin-top:0;
}

.intro{
    max-width:790px;
    margin:0 auto;
    color:var(--muted);
    font-size:1.06rem;
}

.light-text{
    color:#dbeaff;
}


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

.btn{
    display:inline-block;
    border:0;
    border-radius:999px;
    padding:13px 22px;
    font-weight:900;
    text-decoration:none;
    cursor:pointer;
    transition:.25s ease;
}

.btn:hover{
    transform:translateY(-3px);
}

.yellow{
    background:var(--yellow);
    color:#14345c;
}

.yellow:hover{
    background:#ffd43b;
    color:#14345c;
}

.glass{
    border:1px solid rgba(255,255,255,.3);
    background:rgba(255,255,255,.08);
    color:white;
}

.glass:hover{
    background:rgba(255,255,255,.16);
    color:white;
}


/* =========================================================
   SECTION 01 : HERO
========================================================= */

.hero{
    min-height:680px;
    display:grid;
    place-items:center;
    text-align:center;
    color:white;
    position:relative;
    overflow:hidden;

    background:
        radial-gradient(
            circle at 50% 115%,
            rgba(245,197,24,.32),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #052b57,
            #07386f 55%,
            #1161b3
        );
}

.hero:before{
    content:"";
    position:absolute;
    width:620px;
    height:620px;
    border:90px solid rgba(255,255,255,.045);
    border-radius:50%;
    right:-280px;
    top:-260px;
}

.hero:after{
    content:"";
    position:absolute;
    width:300px;
    height:300px;
    border:45px solid rgba(245,197,24,.08);
    border-radius:50%;
    left:-170px;
    bottom:-170px;
}

.hero-inner{
    position:relative;
    z-index:2;
}

.hero .kicker{
    color:white;
}

.hero h1{
    color:white;
}

.hero h1 span{
    color:var(--yellow);
}

.hero p{
    max-width:760px;
    margin:auto;
    color:#dcecff;
    font-size:1.16rem;
}

.hero-buttons{
    display:flex;
    justify-content:center;
    gap:11px;
    flex-wrap:wrap;
    margin-top:29px;
}


/* =========================================================
   SECTION 02 : QUICK NAVIGATION
========================================================= */

.quicknav{
    position:relative;
    margin-top:-31px;
    z-index:5;
}

.quicknav-inner{
    background:white;
    border-radius:20px;
    box-shadow:var(--shadow);
    padding:11px;
    display:flex;
    justify-content:center;
    gap:7px;
    flex-wrap:wrap;
}

.quicknav a{
    text-decoration:none;
    color:var(--navy);
    font-weight:850;
    font-size:.85rem;
    padding:10px 13px;
    border-radius:11px;
    transition:.25s ease;
}

.quicknav a:hover{
    background:var(--soft);
}


/* =========================================================
   SECTION 03 : ABOUT RAUDHAH
========================================================= */

.about-grid{
    display:grid;
    grid-template-columns:1.05fr .95fr;
    gap:30px;
    align-items:stretch;
    margin-top:38px;
    text-align:left;
}

.photo{
    background:
        linear-gradient(
            135deg,
            #d6eaff,
            #fff0aa
        );
    min-height:390px;
    display:grid;
    place-items:center;
    overflow:hidden;
}

.large-photo{
    border-radius:26px;
}

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

.about-copy{
    display:grid;
    gap:13px;
}

.year-card{
    padding:24px;
    border:1px solid var(--line);
    border-radius:19px;
    background:white;
    transition:.25s ease;
}

.year-card:hover{
    transform:translateY(-4px);
    box-shadow:var(--shadow);
}

.year-card strong{
    display:block;
    color:var(--blue);
    font-size:2rem;
}

.year-card span{
    color:var(--muted);
}


/* =========================================================
   SECTION 04 : CURRICULUM / TABS
========================================================= */

.soft{
    background:var(--soft);
}

.tabs{
    display:flex;
    justify-content:center;
    gap:9px;
    flex-wrap:wrap;
    margin:34px 0 21px;
}

.tab{
    border:1px solid var(--line);
    background:white;
    color:var(--navy);
    font-weight:850;
    padding:11px 16px;
    border-radius:999px;
    cursor:pointer;
    transition:.25s ease;
}

.tab:hover{
    background:#f7fbff;
    transform:translateY(-2px);
}

.tab.active{
    background:var(--navy);
    color:white;
    border-color:var(--navy);
}

.learning-panel{
    display:none;
    grid-template-columns:1.05fr .95fr;
    min-height:410px;
    background:white;
    border-radius:26px;
    overflow:hidden;
    box-shadow:var(--shadow);
    text-align:left;
}

.learning-panel.active{
    display:grid;
}

.learning-panel .photo{
    min-height:410px;
}

.panel-copy{
    padding:42px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.panel-copy p{
    color:var(--muted);
}

.tags{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:8px;
}

.tags span{
    background:var(--soft);
    color:var(--navy);
    font-size:.8rem;
    font-weight:800;
    padding:7px 10px;
    border-radius:999px;
}

/* =========================================================
   SECTION 04A : CURRICULUM ALTERNATING LAYOUT
   Image alternates left / right for each curriculum panel
========================================================= */

/* Odd panels
   Image LEFT | Content RIGHT
*/

.learning-panel:nth-of-type(1),
.learning-panel:nth-of-type(3),
.learning-panel:nth-of-type(5),
.learning-panel:nth-of-type(7){

    grid-template-columns:1.05fr .95fr;

}


/* Even panels
   Content LEFT | Image RIGHT
*/

.learning-panel:nth-of-type(2),
.learning-panel:nth-of-type(4),
.learning-panel:nth-of-type(6),
.learning-panel:nth-of-type(8){

    grid-template-columns:.95fr 1.05fr;

}


/* =========================================================
   EVEN PANEL : MOVE IMAGE TO RIGHT
========================================================= */

.learning-panel:nth-of-type(2) .photo,
.learning-panel:nth-of-type(4) .photo,
.learning-panel:nth-of-type(6) .photo,
.learning-panel:nth-of-type(8) .photo{

    order:2;

}


.learning-panel:nth-of-type(2) .panel-copy,
.learning-panel:nth-of-type(4) .panel-copy,
.learning-panel:nth-of-type(6) .panel-copy,
.learning-panel:nth-of-type(8) .panel-copy{

    order:1;

}

/* =========================================================
   SECTION 05 : WHY CHOOSE RAUDHAH
========================================================= */

.why-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
    margin-top:36px;
}

.why-card{
    border:1px solid var(--line);
    border-radius:18px;
    padding:22px;
    background:white;
    display:flex;
    align-items:center;
    gap:12px;
    text-align:left;
    transition:.25s ease;
}

.why-card:hover{
    transform:translateY(-4px);
    box-shadow:var(--shadow);
    background:var(--soft);
}

.why-card span{
    font-size:1.6rem;
    flex-shrink:0;
}

.why-card b{
    color:var(--navy);
    font-size:.92rem;
}


/* =========================================================
   SECTION 06 : AFTERNOON ENRICHMENT
========================================================= */

.blue{
    background:var(--navy);
    color:white;
}

.blue h2{
    color:white;
}

.blue .objective-grid{
    margin-top:37px;
}

.objective-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:17px;
    margin-top:37px;
}

.objective-card{
    background:white;
    border:1px solid var(--line);
    border-radius:21px;
    padding:25px;
    box-shadow:0 8px 25px rgba(7,56,111,.05);
    transition:.25s ease;
}

.objective-card:hover{
    transform:translateY(-5px);
    box-shadow:var(--shadow);
}

.objective-card>span{
    width:44px;
    height:44px;
    border-radius:14px;
    background:var(--yellow);
    display:grid;
    place-items:center;
    margin:0 auto 16px;
    color:var(--navy);
    font-weight:900;
}

.objective-card h3{
    margin-bottom:10px;
}

.objective-card p{
    color:var(--muted);
    font-size:.92rem;
}


/* =========================================================
   SECTION 07 : CO-CURRICULAR ACTIVITIES
========================================================= */

.areas-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:17px;
    margin-top:37px;
}

.area-card{
    border:1px solid var(--line);
    border-radius:21px;
    padding:30px;
    background:white;
    transition:.25s ease;
}

.area-card:hover{
    background:var(--soft);
    transform:translateY(-5px);
    box-shadow:var(--shadow);
}

.area-card>div{
    font-size:2.5rem;
    margin-bottom:12px;
}

.area-card h3{
    font-size:1.15rem;
    margin-bottom:10px;
}

.area-card p{
    color:var(--muted);
    margin-bottom:0;
}


/* =========================================================
   SECTION 08 : ACTIVITIES & EVENTS
========================================================= */

#events{
    background:#fff;
}


/* =========================================================
   SECTION 09 : CTA
========================================================= */

.cta{
    background:
        linear-gradient(
            135deg,
            #fff5bc,
            #fff
        );
}

.cta-box{
    background:var(--navy);
    color:white;
    border-radius:28px;
    padding:56px 25px;
    box-shadow:var(--shadow);
}

.cta-box h2{
    color:white;
}

.cta-box p{
    max-width:670px;
    margin:0 auto 24px;
    color:#dcecff;
}


/* =========================================================
   SECTION 10 : FOOTER
========================================================= */

footer{
    background:#04264d;
    color:#b9cee7;
    text-align:center;
    padding:22px;
    font-size:.9rem;
}


/* =========================================================
   IMAGE HANDLING
========================================================= */

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


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

.about-grid .photo img,
.learning-panel .photo img{
    transition:transform .5s ease;
}

.about-grid .photo:hover img,
.learning-panel .photo:hover img{
    transform:scale(1.04);
}


/* =========================================================
   SECTION TRANSITIONS
========================================================= */

.learning-panel{
    animation:panelFade .35s ease;
}

@keyframes panelFade{

    from{
        opacity:0;
        transform:translateY(8px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}


/* =========================================================
   RESPONSIVE : TABLET
========================================================= */

@media(max-width:900px){

    .about-grid,
    .learning-panel.active{
        grid-template-columns:1fr;
    }

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

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

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

    .learning-panel .photo{
        min-height:330px;
    }

}


/* =========================================================
   RESPONSIVE : MOBILE
========================================================= */

@media(max-width:600px){

    section{
        padding:64px 0;
    }

    .wrap{
        width:min(100% - 28px,1160px);
    }

    h1{
        font-size:clamp(2.5rem,12vw,4rem);
    }

    h2{
        font-size:2rem;
    }

    .hero{
        min-height:620px;
    }

    .hero p{
        font-size:1rem;
    }

    .hero-buttons{
        flex-direction:column;
        align-items:stretch;
    }

    .hero-buttons .btn{
        width:100%;
    }

    .quicknav-inner{
        justify-content:flex-start;
        flex-wrap:nowrap;
        overflow:auto;
    }

    .quicknav a{
        white-space:nowrap;
    }

    .about-grid,
    .objective-grid,
    .why-grid,
    .areas-grid{
        grid-template-columns:1fr;
    }

    .photo,
    .learning-panel .photo{
        min-height:280px;
    }

    .panel-copy{
        padding:28px;
    }

    .tabs{
        justify-content:flex-start;
        flex-wrap:nowrap;
        overflow-x:auto;
        padding-bottom:8px;
    }

    .tab{
        white-space:nowrap;
    }

    .cta-box{
        padding:42px 22px;
    }

}
