/* =========================================================
   GENERAL
========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: #202124;
    background: #ffffff;
    line-height: 1.7;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}



/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    padding: 12px 0;
}

.navbar-brand {
    color: #171717;
    line-height: 1.2;
}

.navbar-brand:hover {
    color: #0d6efd;
}

.nav-link {
    font-weight: 500;
    margin-left: 8px;
    color: #444;
}

.nav-link:hover,
.nav-link.active {
    color: #0d6efd;
}

.school-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 10px;
}

.school-logo-placeholder {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    color: #0d6efd;
    border-radius: 10px;
    font-size: 22px;
}



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

.hero-section {
    background:
        linear-gradient(
            90deg,
            #f5f7e9 0%,
            #f5f7e9 45%,
            #eef4e7 100%
        );
    padding: 70px 0;
    overflow: hidden;
}

.hero-content {
    padding: 30px 45px 30px 0;
}

.hero-eyebrow {
    color: #4d765c;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.hero-content h1 {
    color: #244d3b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.05;
    font-weight: 700;
    margin-bottom: 22px;
}

.hero-content h1 span {
    display: block;
    color: #327052;
}

.hero-content p {
    color: #5d7068;
    font-size: 17px;
    line-height: 1.8;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-school {
    background: #39795a;
    color: #fff;
    border-radius: 10px;
    padding: 12px 22px;
    font-weight: 600;
    border: 1px solid #39795a;
}

.btn-school:hover {
    background: #2d6249;
    color: #fff;
}

.btn-outline-school {
    color: #39795a;
    border: 1px solid #39795a;
    border-radius: 10px;
    padding: 12px 22px;
    font-weight: 600;
}

.btn-outline-school:hover {
    background: #39795a;
    color: #fff;
}

.hero-image-wrapper {
    position: relative;
    padding-left: 20px;
}

.hero-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(43, 75, 55, 0.16);
}

.hero-image-badge {
    position: absolute;
    left: 0;
    bottom: 30px;
    background: rgba(255, 255, 255, 0.96);
    padding: 14px 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
}

.hero-image-badge i {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e7f1e7;
    color: #39795a;
    border-radius: 50%;
    font-size: 19px;
}

.hero-image-badge strong,
.hero-image-badge small {
    display: block;
}

.hero-image-badge strong {
    color: #294c3d;
    font-size: 14px;
}

.hero-image-badge small {
    color: #7b8982;
    margin-top: 3px;
}


/* ================================
   PRINCIPAL
================================ */

.principal-section {
    background: #fbfaf5;
}

.section-padding {
    padding: 80px 0;
}

.section-heading span {
    color: #39795a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.section-heading h2 {
    color: #294c3d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 36px;
    margin: 8px 0;
}

.section-heading p {
    color: #718078;
}

.principal-card {
    background: #fff;
    border: 1px solid #e8e8dc;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(47, 72, 57, 0.07);
}

.principal-photo {
    height: 100%;
    min-height: 390px;
}

.principal-photo img {
    width: 100%;
    height: 100%;
    min-height: 390px;
    object-fit: cover;
}

.principal-content {
    padding: 45px 50px;
    position: relative;
}

.quote-icon {
    color: #a8c69f;
    font-size: 50px;
    line-height: 1;
    margin-bottom: 10px;
}

.principal-content h3 {
    color: #294c3d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    margin-bottom: 4px;
}

.principal-designation {
    color: #4f8565;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
}

.principal-content p {
    color: #64746c;
    font-size: 16px;
    line-height: 1.9;
}

.principal-signature {
    margin-top: 25px;
    color: #68766f;
    font-size: 14px;
}

.principal-signature strong {
    color: #39795a;
}


/* Mobile */

@media (max-width: 991px) {

    .hero-section {
        padding: 45px 0;
    }

    .hero-content {
        padding: 10px 0 35px;
    }

    .hero-image-wrapper {
        padding-left: 0;
    }

    .hero-image {
        height: 330px;
    }

    .principal-content {
        padding: 35px 25px;
    }

    .principal-photo,
    .principal-photo img {
        min-height: 320px;
    }
}


/* =========================================================
   SECTIONS
========================================================= */

.section-light {
    background: #f8f9fa;
}

.section-label {
    display: inline-block;
    color: #0d6efd;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.section-title {
    font-weight: 750;
    letter-spacing: -0.5px;
}



/* =========================================================
   INFO CARDS
========================================================= */

.info-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    padding: 30px;
    transition: all 0.2s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.06);
}

.info-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #eef4ff;
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    margin-bottom: 20px;
}

.info-card h4 {
    font-size: 19px;
    font-weight: 700;
}

.info-card p {
    margin: 0;
    color: #70757a;
}



/* =========================================================
   ABOUT
========================================================= */

.about-box {
    padding: 40px;
    border-radius: 22px;
    background: #f1f6ff;
    border: 1px solid #dfeaff;
}

.about-box > i {
    font-size: 42px;
    color: #0d6efd;
    margin-bottom: 15px;
    display: block;
}

.about-box h3 {
    font-weight: 700;
}

.about-detail {
    padding: 12px 0;
    border-bottom: 1px solid #dce5f5;
}

.about-detail:last-child {
    border-bottom: 0;
}



/* =========================================================
   CLASS CARDS
========================================================= */

.class-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    padding: 28px 20px;
    text-align: center;
    height: 100%;
    transition: 0.2s ease;
}

.class-card:hover {
    border-color: #bcd3ff;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.06);
}

.class-number {
    width: 62px;
    height: 62px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #eef4ff;
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 750;
}

.class-card h5 {
    font-weight: 700;
    margin-bottom: 5px;
}

.class-card span {
    color: #858585;
    font-size: 13px;
}



/* =========================================================
   DOCUMENT CARDS
========================================================= */

.document-card {
    background: white;
    border: 1px solid #e6e8eb;
    border-radius: 18px;
    padding: 24px;
    display: flex;
    gap: 18px;
    transition: all 0.2s ease;
}

.document-card:hover {
    border-color: #c8d9fa;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.06);
}

.document-card-large {
    display: block;
}

.document-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.document-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 13px;
    background: #fff1f1;
    color: #dc3545;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
}

.document-type {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #777;
    background: #f3f4f5;
    padding: 5px 9px;
    border-radius: 20px;
}

.document-card h5,
.document-title {
    font-weight: 700;
    line-height: 1.4;
}

.document-description {
    color: #70757a;
    font-size: 14px;
    margin-bottom: 18px;
}

.document-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-heading {
    font-size: 28px;
    font-weight: 750;
}



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

.page-header {
    background: #f6f8fb;
    padding: 65px 0;
    border-bottom: 1px solid #e9ecef;
}

.page-header h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 750;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.page-header p {
    margin: 0;
    color: #6c757d;
    font-size: 17px;
}



/* =========================================================
   CLASS DETAIL
========================================================= */

.class-detail-card {
    height: 100%;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 30px;
    transition: 0.2s ease;
}

.class-detail-card:hover {
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.07);
    transform: translateY(-3px);
}

.class-detail-card .class-number {
    margin: 0 0 20px;
}



/* =========================================================
   CONTACT
========================================================= */

.contact-card {
    background: white;
    border: 1px solid #e6e8eb;
    border-radius: 20px;
    padding: 32px;
    height: 100%;
}

.contact-icon {
    width: 55px;
    height: 55px;
    background: #eef4ff;
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 24px;
    margin-bottom: 18px;
}

.contact-card h3 {
    font-size: 20px;
    font-weight: 700;
}

.contact-card p {
    color: #666;
}

.contact-link {
    color: #0d6efd;
}



/* =========================================================
   EMPTY STATE
========================================================= */

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #f8f9fa;
    border-radius: 20px;
}

.empty-state i {
    font-size: 50px;
    color: #adb5bd;
}

.empty-state h3 {
    margin-top: 15px;
}



/* =========================================================
   CTA
========================================================= */

.cta-section {
    padding: 70px 0;
    background: #0d6efd;
    color: white;
}

.cta-section h2 {
    font-weight: 750;
}

.cta-section p {
    opacity: 0.9;
}



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

.footer {
    background: #16181b;
    color: #d5d7da;
    padding: 50px 0 20px;
}

.footer h5 {
    color: white;
    font-weight: 700;
}

.footer h6 {
    color: white;
    margin-bottom: 15px;
}

.footer a,
.footer span {
    display: block;
    color: #b8bcc1;
    margin-bottom: 8px;
    font-size: 14px;
}

.footer a:hover {
    color: white;
}

.footer hr {
    border-color: #33363a;
    margin-top: 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    color: #969ba1;
    font-size: 13px;
}



/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .hero-section {
        padding: 60px 0;
    }

    .hero-section h1 {
        font-size: 40px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-card {
        padding: 30px 20px;
    }

    .page-header {
        padding: 45px 0;
    }

    .document-card {
        padding: 20px;
    }

    .category-heading {
        font-size: 23px;
    }

    .footer-bottom {
        flex-direction: column;
    }

}

/* =========================================================
   DOCUMENT SEARCH
========================================================= */

.document-search-section {
    background: #ffffff;
    padding: 35px 0 0;
}

.document-search-box {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
}

.document-search-box .form-control {
    height: 58px;
    padding-left: 52px;
    padding-right: 50px;
    border-radius: 15px;
    border: 1px solid #dfe3e8;
    font-size: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.document-search-box .form-control:focus {
    border-color: #86b7fe;
    box-shadow:
        0 0 0 4px rgba(13, 110, 253, 0.08);
}

.search-icon {
    position: absolute;
    left: 19px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    color: #73787d;
    font-size: 19px;
}

.search-clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #8b9298;
    font-size: 18px;
    padding: 5px;
}

.search-clear:hover {
    color: #dc3545;
}

.search-info {
    max-width: 850px;
    margin: 12px auto 0;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    color: #6c757d;
    font-size: 13px;
}

.search-hint {
    color: #9a9fa4;
}


/* =========================================================
   DOCUMENT CARD IMPROVEMENTS
========================================================= */

.document-card-large {
    display: flex;
    flex-direction: column;
}

.document-card-large .document-actions {
    margin-top: auto;
}

.document-title {
    font-size: 19px;
}

.document-description {
    min-height: 48px;
}


/* =========================================================
   SEARCH ANIMATION
========================================================= */

.document-item {
    transition:
        opacity 0.15s ease,
        transform 0.15s ease;
}


/* =========================================================
   MOBILE SEARCH
========================================================= */

@media (max-width: 767px) {

    .document-search-section {
        padding-top: 25px;
    }

    .document-search-box .form-control {
        height: 54px;
    }

    .search-info {
        flex-direction: column;
    }

}