/*==================================================
    New Vision High School Theme
==================================================*/

:root {
    --primary: #56657C;
    --secondary: #A86C72;
    --dark: #3E4B61;
    --green: #4F8B4A;
    --white: #FFFFFF;
    --background: #F7F7F5;
    --text: #444;
    --shadow: 0 8px 24px rgba(0,0,0,.08);
    --transition: .3s ease;
}


/*==================================================
    Global
==================================================*/

html {
    font-size: 14px;
    min-height: 100%;
    position: relative;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    background: var(--background);
    color: var(--text);
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    margin-bottom: 60px;
}


/*==================================================
    Focus
==================================================*/

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 .18rem rgba(168,108,114,.35);
}

.form-control {
    border-radius: 10px;
    transition: var(--transition);
}

    .form-control:focus {
        border-color: var(--secondary);
    }


/*==================================================
    Placeholder
==================================================*/

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: #999;
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}


/*==================================================
    Navbar
==================================================*/

.school-navbar {
    background: var(--primary);
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
    z-index: 1050;
}

.logo {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #fff;
    padding: 5px;
}

.navbar-brand {
    color: #fff !important;
    font-weight: 700;
    cursor: pointer;
}

.navbar-nav {
    align-items: center;
}

.nav-link {
    color: #fff !important;
    font-weight: 500;
    margin-left: 10px;
    padding: 10px 16px !important;
    border-radius: 8px;
    transition: all .25s ease;
    cursor: pointer;
}

    .nav-link:hover {
        background: var(--secondary);
        color: #fff !important;
    }

    .nav-link.active {
        background: var(--secondary);
        color: #fff !important;
    }

.navbar-toggler {
    border: none;
}

    .navbar-toggler:focus {
        box-shadow: none;
    }


/*==================================================
    Admission Button
==================================================*/

.btn-admission {
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all .25s ease;
    cursor: pointer;
}

    .btn-admission:hover {
        background: var(--dark);
        color: white;
        transform: translateY(-2px);
    }


/*==================================================
    HERO
==================================================*/

.hero {
    background: linear-gradient(135deg, #56657C, #3E4B61);
    color: white;
    border-top: 5px solid #A86C72;
    border-radius: 16px;
    min-height: 135px;
    padding: 22px 28px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    position: relative;
    overflow: hidden;
}


/*==================================================
    HOME HERO LAYOUT
==================================================*/

.home-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}


/*==================================================
    HERO CONTENT
==================================================*/

.hero-content {
    flex: 1;
    padding-right: 15px;
    z-index: 2;
}

    .hero-content h1 {
        font-size: 2.3rem;
        font-weight: 700;
        color: white;
        margin: 0 0 6px;
        line-height: 1.1;
    }

    .hero-content p {
        font-size: 1.05rem;
        color: #F8F8F6;
        margin: 0 0 8px;
    }


/*==================================================
    HERO ACHIEVEMENT IMAGE
==================================================*/

.hero-achievement {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    z-index: 2;
}

    .hero-achievement .achievement-image {
        width: 140px;
        height: 140px;
        object-fit: contain;
        border-radius: 8px;
        display: block;
        box-shadow: 0 5px 15px rgba(0,0,0,.20);
    }


/*==================================================
    STANDARD CARDS
==================================================*/

.card {
    background: white;
    border: none;
    border-left: 5px solid var(--secondary);
    border-radius: 18px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

    .card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 35px rgba(0,0,0,.12);
    }

.card-title {
    color: var(--primary);
    font-weight: 700;
}


/*==================================================
    Buttons
==================================================*/

.btn {
    transition: var(--transition);
}

.btn-primary {
    background: var(--secondary);
    border: none;
}

    .btn-primary:hover {
        background: var(--dark);
    }


/*==================================================
    Dropdown
==================================================*/

.dropdown-menu {
    border: none;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0,0,0,.12);
}

.dropdown-item {
    transition: var(--transition);
}

    .dropdown-item:hover {
        background: var(--secondary);
        color: white;
    }


/*==================================================
    Headings
==================================================*/

.section-title {
    color: var(--primary);
    border-left: 6px solid var(--secondary);
    padding-left: 12px;
    margin-bottom: 20px;
}

h1,
h2,
h3,
h4,
h5 {
    color: var(--primary);
    font-weight: 700;
}


/*==================================================
    Links
==================================================*/

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

    a:hover {
        color: var(--secondary);
    }


/*==================================================
    Images
==================================================*/

img {
    max-width: 100%;
    height: auto;
}

.rounded-img {
    border-radius: 18px;
    overflow: hidden;
}


/*==================================================
    Footer
==================================================*/

footer {
    background: var(--dark);
    color: white;
    padding: 40px 0;
}

    footer a {
        color: white;
    }

        footer a:hover {
            color: #F8E7D4;
        }


/*==================================================
    Scroll Button
==================================================*/

#topBtn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--secondary);
    color: white;
    display: none;
    z-index: 999;
    transition: var(--transition);
}

    #topBtn:hover {
        background: var(--green);
        transform: translateY(-3px);
    }


/*==================================================
    Utilities
==================================================*/

.shadow-soft {
    box-shadow: var(--shadow);
}

.bg-school {
    background: var(--primary);
}

.bg-maroon {
    background: var(--secondary);
}

.bg-green {
    background: var(--green);
}

.text-school {
    color: var(--primary);
}

.text-maroon {
    color: var(--secondary);
}

.text-green {
    color: var(--green);
}


/*==================================================
    Gallery
==================================================*/

.gallery-card {
    overflow: hidden;
    border-radius: 12px;
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.card-body {
    min-height: 50px;
}


/*==================================================
    SCHOOL HIGHLIGHTS
==================================================*/

.school-highlights {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 25px;
}


/*==================================================
    HIGHLIGHT CARD
==================================================*/

.highlight-card {
    background: #ffffff;
    border: 1.5px solid #a85f66;
    border-radius: 14px;
    min-height: 125px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
    transition: all .25s ease;
    overflow: hidden;
}


    /*==================================================
    HIGHLIGHT CARD HOVER
==================================================*/

    .highlight-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 22px rgba(0,0,0,.12);
    }


/*==================================================
    HIGHLIGHT ICON
==================================================*/

.highlight-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #f5eeee;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

    .highlight-icon i {
        font-size: 20px;
        color: #8f3038;
    }


/*==================================================
    HIGHLIGHT HEADING
==================================================*/

.highlight-card h2 {
    color: #8f3038;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    white-space: nowrap;
}


/*==================================================
    HIGHLIGHT SEPARATOR
==================================================*/

.highlight-line {
    width: 60%;
    height: 1px;
    background: #c99599;
    margin: 5px 0;
}


/*==================================================
    HIGHLIGHT DESCRIPTION
==================================================*/

.highlight-card p {
    color: #222;
    font-size: 14px;
    line-height: 1.1;
    margin: 0;
    opacity: 1;
}


/*==================================================
    DESKTOP
==================================================*/

@media (min-width: 1101px) {

    .school-highlights {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .highlight-card {
        min-height: 125px;
    }
}


/*==================================================
    TABLETS
==================================================*/

@media (max-width: 1100px) {

    .school-highlights {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 15px;
    }

    .highlight-card {
        min-height: 125px;
    }
}


/*==================================================
    SMALL TABLETS / LARGE MOBILE
==================================================*/

@media (max-width: 700px) {

    .home-hero {
        padding: 20px;
        gap: 10px;
    }

    .hero-content {
        padding-right: 10px;
    }

        .hero-content h1 {
            font-size: 1.7rem;
        }

        .hero-content p {
            font-size: .95rem;
        }

    .hero-achievement {
        width: 100px;
        height: 100px;
    }

        .hero-achievement .achievement-image {
            width: 90px;
            height: 90px;
        }


    .school-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .highlight-card {
        min-height: 125px;
        padding: 10px 8px;
    }

    .highlight-icon {
        width: 42px;
        height: 42px;
        margin-bottom: 6px;
    }

        .highlight-icon i {
            font-size: 19px;
        }

    .highlight-card h2 {
        font-size: 20px;
    }

    .highlight-card p {
        font-size: 14px;
    }
}


/*==================================================
    SMALL MOBILE
==================================================*/

@media (max-width: 450px) {

    .home-hero {
        padding: 18px 15px;
    }

    .hero-content h1 {
        font-size: 1.45rem;
    }

    .hero-content p {
        font-size: .85rem;
    }

    .hero-achievement {
        width: 75px;
        height: 75px;
    }

        .hero-achievement .achievement-image {
            width: 70px;
            height: 70px;
        }


    .school-highlights {
        grid-template-columns: 1fr;
    }

    .highlight-card {
        min-height: 120px;
    }
}


/*==================================================
    GENERAL RESPONSIVE
==================================================*/

@media (max-width: 991px) {

    .hero {
        padding: 22px;
    }

    .navbar-brand h4 {
        font-size: 1.1rem;
    }

    .nav-link {
        margin-left: 0;
    }
}


@media (max-width: 576px) {

    .hero {
        padding: 18px;
    }

    .section-title {
        font-size: 1.5rem;
    }
}


/*==================================================
    CURSOR
==================================================*/

a,
button,
.btn,
.nav-link,
.navbar-brand,
.dropdown-item {
    cursor: pointer;
}


/*==================================================
    ACHIEVEMENT POPUP
==================================================*/

.achievement-popup {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity .25s ease, visibility .25s ease;
}


    /*==================================================
    POPUP HIDDEN
==================================================*/

    .achievement-popup.hide {
        opacity: 0;
        visibility: hidden;
    }


/*==================================================
    POPUP CONTENT
==================================================*/

.achievement-popup-content {
    position: relative;
    max-width: 600px;
    max-height: 94vh;
    padding: 5px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    line-height: 0;
    animation: achievementPopupShow .3s ease;
}


/*==================================================
    POPUP IMAGE
==================================================*/

.achievement-popup-image {
    display: block;
    max-width: 100%;
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}


/*==================================================
    POPUP CLOSE BUTTON
==================================================*/

.achievement-popup-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--secondary);
    color: white;
    font-size: 25px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    transition: all .2s ease;
}


    /*==================================================
    POPUP CLOSE HOVER
==================================================*/

    .achievement-popup-close:hover {
        background: var(--dark);
        transform: scale(1.08);
    }


/*==================================================
    POPUP OPEN ANIMATION
==================================================*/

@keyframes achievementPopupShow {

    from {
        opacity: 0;
        transform: scale(.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/*==================================================
    POPUP MOBILE
==================================================*/

@media (max-width: 600px) {

    .achievement-popup {
        padding: 8px;
    }

    .achievement-popup-content {
        max-width: 95vw;
        max-height: 92vh;
        padding: 4px;
    }

    .achievement-popup-image {
        max-width: 95vw;
        max-height: 88vh;
    }

    .achievement-popup-close {
        width: 34px;
        height: 34px;
        top: -9px;
        right: -9px;
        font-size: 23px;
    }
}
