/* ==========================================================
   ROOT
========================================================== */

:root {
    --green: #063f31;
    --green2: #0a5945;
    --green3: #0d7259;
    --dark: #02251d;
    --gold: #d7ad45;
    --gold2: #efcf79;
    --cream: #f6f3e9;
    --cream2: #fbfaf5;
    --white: #fff;
    --black: #15221e;
    --gray: #69756f;
    --line: #e4e9e5;
    --shadow: 0 25px 70px rgba(0, 0, 0, .10);
    --transition: cubic-bezier(.2, .8, .2, 1);
}


/* ==========================================================
   RESET
========================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
}


body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: "DM Sans", sans-serif;
    color: var(--black);
    background: #fff;
    overflow-x: hidden;
}


a {
    text-decoration: none;
    color: inherit;
}


button,
input,
textarea,
select {
    font-family: inherit;
}


img {
    display: block;
    max-width: 100%;
    height: auto;
}


/* ==========================================================
   GLOBAL CONTAINER
========================================================== */

.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}


/* ==========================================================
   PRELOADER
========================================================== */

.loader {
    position: fixed;
    inset: 0;
    background: var(--dark);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .8s;
}


    .loader.done {
        opacity: 0;
        visibility: hidden;
    }


.loader-inner {
    text-align: center;
    color: white;
}


.loader-logo {
    width: 72px;
    height: 72px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold2);
    font-size: 26px;
    margin: auto auto 18px;
    animation: loader 1.7s infinite;
}


.loader-inner strong {
    display: block;
    font-family: "Playfair Display", serif;
    font-size: 25px;
}


.loader-inner span {
    font-size: 8px;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: .5;
}


@keyframes loader {

    50% {
        transform: scale(1.12);
        box-shadow: 0 0 0 15px rgba(215, 173, 69, .04);
    }
}


/* ==========================================================
   TOP BAR
========================================================== */

.topbar {
    height: 38px;
    background: var(--dark);
    color: #fff;
    font-size: 10px;
    width: 100%;
}


.topbar-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.top-left,
.top-right {
    display: flex;
    align-items: center;
    gap: 25px;
}


.topbar i {
    color: var(--gold);
    margin-right: 5px;
}


/* ==========================================================
   LEARNING
========================================================== */

.learning {
    background: var(--cream);
}


.learning-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 55px;
}


.learning-card {
    min-height: 350px;
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    border: 1px solid var(--line);
    position: relative;
    transition: .4s;
}


    .learning-card:hover {
        transform: translateY(-9px);
        box-shadow: var(--shadow);
    }


.learning-tag {
    color: var(--green3);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
}


.learning-card h3 {
    font-family: "Playfair Display", serif;
    font-size: 29px;
    margin: 14px 0;
}


.learning-card p {
    color: var(--gray);
    font-size: 11px;
    line-height: 1.8;
}


.learning-list {
    list-style: none;
    margin-top: 22px;
}


    .learning-list li {
        font-size: 10px;
        margin: 9px 0;
        display: flex;
        gap: 8px;
    }


    .learning-list i {
        color: var(--gold);
    }


/* ==========================================================
   RP EXCELLENCE
========================================================== */

.excellence {
    background: #fff;
}


.excellence-header {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    align-items: end;
}


    .excellence-header .lead {
        max-width: 460px;
        margin-bottom: 5px;
    }


.excellence-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 55px;
}


.excellence-card {
    min-height: 300px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--cream2);
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: .4s var(--transition);
}


    .excellence-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow);
    }


.excellence-number {
    position: absolute;
    right: 18px;
    top: 5px;
    font-family: "Playfair Display", serif;
    font-size: 70px;
    color: rgba(6, 63, 49, .055);
}


.excellence-icon {
    width: 52px;
    height: 52px;
    background: #e9f0eb;
    color: var(--green);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 50px;
}


.excellence-card h3 {
    font-family: "Playfair Display", serif;
    font-size: 27px;
    color: var(--dark);
}


.excellence-card p {
    color: var(--gray);
    font-size: 11px;
    line-height: 1.75;
    margin-top: 9px;
}


/* ==========================================================
   REVEAL
========================================================== */

/*
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity .8s var(--transition),
        transform .8s var(--transition);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
*/


/* ==========================================================
   GLOBAL RESPONSIVE
========================================================== */


/* ==========================================================
   LARGE TABLET / SMALL LAPTOP
========================================================== */

@media (max-width: 1100px) {

    .container {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }


    .excellence-grid,
    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 950px) {

    .learning-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .excellence-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .top-left,
    .top-right {
        gap: 15px;
    }


    .hero-note {
        display: none;
    }


    .welcome-grid,
    .history-grid,
    .mission-grid,
    .beyond-grid,
    .notification-layout,
    .contact-grid {
        grid-template-columns: 1fr;
    }


    .history-intro,
    .notification-intro {
        position: static;
    }


    .facility-layout {
        grid-template-columns: 1fr;
    }


    .cta-layout {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 850px) {

    /* ------------------------------------------------------
       TOP BAR
    ------------------------------------------------------ */

    .topbar {
        display: none;
    }


    /* ------------------------------------------------------
       HEADER
       
       IMPORTANT:
       Header component controls .nav-menu and .active.
       Therefore site.css does NOT style .nav-menu here.
    ------------------------------------------------------ */

    .header {
        top: 0;
    }


    /* ------------------------------------------------------
       GENERAL CONTENT
    ------------------------------------------------------ */

    .learning-grid,
    .excellence-grid,
    .program-grid {
        grid-template-columns: 1fr;
    }


    .footer-grid {
        grid-template-columns: 1fr;
    }


    /* ------------------------------------------------------
       HERO
    ------------------------------------------------------ */

    .hero-note {
        display: none;
    }


    /* ------------------------------------------------------
       TWO COLUMN LAYOUTS
    ------------------------------------------------------ */

    .welcome-grid,
    .history-grid,
    .mission-grid,
    .beyond-grid,
    .notification-layout,
    .contact-grid {
        grid-template-columns: 1fr;
    }


    .history-intro,
    .notification-intro {
        position: static;
    }


    .facility-layout {
        grid-template-columns: 1fr;
    }


    .cta-layout {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 600px) {

    /* ------------------------------------------------------
       CONTAINER
    ------------------------------------------------------ */

    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }


    /* ------------------------------------------------------
       LEARNING
    ------------------------------------------------------ */

    .learning-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 35px;
    }


    .learning-card {
        min-height: auto;
        padding: 25px;
    }


        .learning-card h3 {
            font-size: 26px;
        }


    /* ------------------------------------------------------
       BRAND
    ------------------------------------------------------ */

    .brand-name strong {
        font-size: 17px;
    }


    .brand-logo {
        width: 44px;
        height: 44px;
    }


    /* ------------------------------------------------------
       HERO
    ------------------------------------------------------ */

    .hero {
        min-height: 880px;
    }


    .hero-content {
        padding-top: 155px;
    }


    .hero h1 {
        font-size: 49px;
        letter-spacing: -2px;
        line-height: 1.05;
    }


    .hero-text {
        font-size: 13px;
    }


    /* ------------------------------------------------------
       HERO STATS
    ------------------------------------------------------ */

    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }


    .hero-stat {
        padding: 18px 5px;
    }


        .hero-stat:nth-child(2) {
            border-right: 0;
        }


        .hero-stat:nth-child(-n+2) {
            border-bottom: 1px solid var(--line);
        }


    /* ------------------------------------------------------
       SECTIONS
    ------------------------------------------------------ */

    .section {
        padding: 78px 0;
    }


    /* ------------------------------------------------------
       EXCELLENCE
    ------------------------------------------------------ */

    .excellence-header {
        display: block;
    }


    .excellence-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 35px;
    }


    .excellence-card {
        min-height: 270px;
        padding: 25px;
    }


    /* ------------------------------------------------------
       ALL ONE COLUMN GRIDS
    ------------------------------------------------------ */

    .program-grid,
    .leaders,
    .process-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }


    /* ------------------------------------------------------
       WELCOME
    ------------------------------------------------------ */

    .welcome-media {
        height: 450px;
    }


    .welcome-main {
        height: 390px;
    }


    .welcome-secondary {
        height: 185px;
    }


    /* ------------------------------------------------------
       QUICK FEATURES
    ------------------------------------------------------ */

    .quick-features {
        grid-template-columns: 1fr;
    }


    /* ------------------------------------------------------
       MISSION
    ------------------------------------------------------ */

    .mission-box {
        padding: 27px;
    }


        .mission-box p {
            font-size: 22px;
        }


    /* ------------------------------------------------------
       BEYOND
    ------------------------------------------------------ */

    .beyond-image {
        height: 430px;
    }


    /* ------------------------------------------------------
       FACILITIES
    ------------------------------------------------------ */

    .facility-list {
        grid-template-columns: 1fr;
    }


    /* ------------------------------------------------------
       NOTIFICATIONS
    ------------------------------------------------------ */

    .notification {
        grid-template-columns: 65px 1fr;
    }


        .notification > a {
            display: none;
        }


    /* ------------------------------------------------------
       EVENTS
    ------------------------------------------------------ */

    .event-grid {
        grid-template-columns: 1fr;
    }


    .event {
        align-items: flex-start;
    }


    /* ------------------------------------------------------
       GALLERY
    ------------------------------------------------------ */

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 190px 190px 190px;
    }


    .gallery-item:first-child {
        grid-row: span 2;
    }


    .gallery-item:last-child {
        grid-column: span 2;
    }


    /* ------------------------------------------------------
       CONTACT
    ------------------------------------------------------ */

    .contact-info,
    .contact-form {
        padding: 30px 23px;
    }


    .form-row {
        grid-template-columns: 1fr;
    }


    /* ------------------------------------------------------
       FOOTER
    ------------------------------------------------------ */

    .footer-grid {
        grid-template-columns: 1fr;
    }


    .footer-bottom {
        flex-direction: column;
    }


    /* ------------------------------------------------------
       FLOATING ADMISSION
    ------------------------------------------------------ */

    .floating-admission {
        right: 13px;
        bottom: 70px;
    }
}


/* ==========================================================
   VERY SMALL PHONES
========================================================== */

@media (max-width: 400px) {

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }


    .hero h1 {
        font-size: 42px;
        letter-spacing: -1.5px;
    }


    .section {
        padding: 65px 0;
    }


    .learning-card,
    .excellence-card {
        padding: 22px;
    }
}


/* ==========================================================
   EXTRA SMALL PHONES
========================================================== */

@media (max-width: 350px) {

    .brand-name strong {
        font-size: 16px;
    }


    .brand-name span {
        display: none;
    }


    .brand-logo {
        width: 32px;
        height: 32px;
    }
}
