/* =========================================================
   DIBYA JYOTI SECONDARY SCHOOL
   Main Website Styles
   ========================================================= */

/* -------------------------
   RESET
------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    color: #172033;
    background: #ffffff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
}

.container {
    width: min(1180px, 92%);
    margin: auto;
}


/* =========================================================
   TOP BAR
   ========================================================= */

.top-bar {
    background: #062c63;
    color: #ffffff;
    font-size: 13px;
}

.top-content {
    min-height: 42px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}


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

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #e8edf4;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.nav-wrapper {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.school-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #062c63;
    color: #ffffff;
    border: 3px solid #d7a928;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    font-weight: 800;
}

.brand h1 {
    color: #062c63;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 800;
}

.brand small {
    display: block;
    color: #d19f1d;
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-top: 4px;
}

#mainNav {
    display: flex;
    align-items: center;
    gap: 4px;
}

#mainNav > a {
    padding: 10px 11px;
    color: #26364d;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    transition: 0.25s ease;
}

#mainNav > a:hover,
#mainNav > a.active {
    color: #062c63;
    background: #eef4fb;
}

#mainNav .admin-button {
    margin-left: 8px;
    background: #062c63;
    color: #ffffff;
    padding: 10px 15px;
}

#mainNav .admin-button:hover {
    background: #d19f1d;
    color: #ffffff;
}

.menu-toggle {
    display: none;
    border: none;
    background: #062c63;
    color: white;
    font-size: 24px;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    cursor: pointer;
}


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

.hero {
    position: relative;
    min-height: 650px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(4, 30, 70, 0.96),
            rgba(6, 44, 99, 0.80),
            rgba(6, 44, 99, 0.35)
        ),
        url("images/school.jpg");

    background-size: cover;
    background-position: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(3, 28, 64, 0.25),
        transparent
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0;
}

.hero-badge {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 30px;
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(5px);

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
}

.hero h2 {
    max-width: 750px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.12;
    font-weight: 700;
}

.hero h2 span {
    display: block;
    color: #e2b52c;
}

.hero p {
    margin-top: 22px;
    font-size: 17px;
    color: #eef4ff;
}

.hero-buttons {
    margin-top: 35px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 13px 23px;
    border-radius: 7px;

    font-size: 14px;
    font-weight: 600;

    transition: 0.3s ease;
}

.btn.primary {
    background: #d5a51e;
    color: #ffffff;
}

.btn.primary:hover {
    background: #b8890e;
    transform: translateY(-2px);
}

.btn.secondary {
    border: 1px solid rgba(255,255,255,0.6);
    color: white;
    background: rgba(255,255,255,0.08);
}

.btn.secondary:hover {
    background: white;
    color: #062c63;
}

.scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);

    font-size: 12px;
    color: #ffffff;
    opacity: 0.8;
}


/* =========================================================
   QUICK INFORMATION
   ========================================================= */

.quick-section {
    position: relative;
    margin-top: -55px;
    z-index: 10;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.quick-card {
    background: #ffffff;
    padding: 25px 18px;
    text-align: center;

    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(12, 37, 70, 0.12);

    border-bottom: 3px solid #d5a51e;

    transition: 0.3s ease;
}

.quick-card:hover {
    transform: translateY(-6px);
}

.quick-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.quick-card h3 {
    color: #062c63;
    font-size: 17px;
}

.quick-card p {
    color: #697586;
    font-size: 12px;
    margin-top: 3px;
}


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

.section {
    padding: 100px 0;
}

.section-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-label {
    display: inline-block;
    color: #c18d0e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
    margin-bottom: 12px;
}

.section-heading h2 {
    color: #062c63;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.2;
}

.section-heading h2 span,
.about-content h2 span,
.contact-section h2 span {
    color: #d1a01c;
}

.section-heading p {
    color: #6d7888;
    margin-top: 14px;
}


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

.about-section {
    background: #f7f9fc;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.image-placeholder {
    min-height: 430px;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #dce8f6,
            #f4f7fb
        );

    border: 1px solid #dce5ef;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    color: #68778a;
}

.image-placeholder span {
    font-size: 65px;
}

.image-placeholder h3 {
    color: #062c63;
    margin-top: 10px;
    font-size: 24px;
}

.image-placeholder p {
    max-width: 280px;
    margin: 8px auto 0;
    font-size: 13px;
}

.about-content h2 {
    color: #062c63;
    font-size: clamp(32px, 4vw, 45px);
    line-height: 1.2;
    margin-bottom: 20px;
}

.about-content p {
    color: #657286;
    font-size: 15px;
    margin-bottom: 15px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 30px 0;
}

.about-stats div {
    padding: 17px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5eaf1;
}

.about-stats strong {
    display: block;
    color: #062c63;
    font-size: 18px;
}

.about-stats span {
    display: block;
    color: #7b8796;
    font-size: 11px;
    margin-top: 3px;
}

.read-more {
    display: inline-block;
    color: #062c63;
    font-size: 14px;
    font-weight: 700;
    transition: 0.2s;
}

.read-more:hover {
    color: #d1a01c;
}


/* =========================================================
   PROGRAMS
   ========================================================= */

.programs-section {
    background: #ffffff;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.program-card {
    padding: 30px;
    background: #ffffff;

    border: 1px solid #e5eaf1;
    border-radius: 12px;

    box-shadow: 0 8px 25px rgba(0,0,0,0.04);

    transition: 0.3s ease;
}

.program-card:hover {
    transform: translateY(-7px);
    border-color: #d5a51e;
    box-shadow: 0 15px 35px rgba(6,44,99,0.10);
}

.program-icon {
    width: 60px;
    height: 60px;

    border-radius: 10px;
    background: #eef4fb;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 28px;
    margin-bottom: 20px;
}

.program-card h3 {
    color: #062c63;
    font-size: 19px;
    margin-bottom: 10px;
}

.program-card p {
    color: #707d8d;
    font-size: 13px;
    margin-bottom: 20px;
}

.program-card a {
    color: #bd8d13;
    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   FACILITIES
   ========================================================= */

.facilities-section {
    background: #f7f9fc;
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.facility-card {
    padding: 28px;
    background: #ffffff;

    border-radius: 10px;
    border: 1px solid #e6ebf2;

    transition: 0.3s ease;
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(6,44,99,0.08);
}

.facility-card > span {
    font-size: 35px;
}

.facility-card h3 {
    color: #062c63;
    font-size: 18px;
    margin-top: 12px;
}

.facility-card p {
    color: #738091;
    font-size: 13px;
    margin-top: 5px;
}


/* =========================================================
   NOTICE BOARD
   ========================================================= */

.notices-section {
    background: #ffffff;
}

.notice-list {
    max-width: 900px;
    margin: auto;
}

.notice-loading {
    text-align: center;
    padding: 35px;
    border: 1px dashed #ccd6e2;
    border-radius: 10px;
    color: #7b8795;
    background: #f9fbfd;
}

.center-button {
    text-align: center;
    margin-top: 35px;
}


/* =========================================================
   GALLERY
   ========================================================= */

.gallery-section {
    background: #f7f9fc;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.gallery-placeholder {
    min-height: 220px;

    border-radius: 10px;
    background: #ffffff;

    border: 1px dashed #cbd6e3;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color: #7a8797;
    font-size: 45px;
}

.gallery-placeholder p {
    font-size: 13px;
    margin-top: 10px;
}


/* =========================================================
   VIDEO
   ========================================================= */

.video-section {
    background: #ffffff;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.video-placeholder {
    grid-column: 1 / -1;

    min-height: 300px;

    background: #f5f8fc;
    border: 1px dashed #cbd6e3;
    border-radius: 12px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    padding: 30px;
}

.play-button {
    width: 65px;
    height: 65px;
    border-radius: 50%;

    background: #062c63;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;
}

.video-placeholder h3 {
    color: #062c63;
    font-size: 20px;
}

.video-placeholder p {
    max-width: 550px;
    color: #738091;
    font-size: 13px;
    margin-top: 8px;
}


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

.contact-section {
    padding: 90px 0;
    background: #062c63;
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-section .section-label {
    color: #e1b52c;
}

.contact-section h2 {
    font-size: clamp(32px, 4vw, 45px);
    line-height: 1.2;
}

.contact-section h2 span {
    color: #e1b52c;
}

.contact-section > .container > div:first-child p {
    color: #cbd8e8;
    max-width: 550px;
    margin-top: 20px;
}

.contact-items {
    display: grid;
    gap: 18px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;

    padding: 17px;

    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 8px;

    background: rgba(255,255,255,0.05);
}

.contact-item > span {
    font-size: 23px;
}

.contact-item strong {
    font-size: 14px;
}

.contact-item p {
    color: #c7d4e4;
    font-size: 12px;
    margin-top: 2px;
}


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

.footer {
    background: #041f46;
    color: #d5dfeb;
    padding-top: 65px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 50px;
}

.footer h3 {
    color: white;
    font-size: 19px;
    margin-bottom: 15px;
}

.footer h4 {
    color: white;
    font-size: 15px;
    margin-bottom: 17px;
}

.footer p {
    color: #aebed0;
    font-size: 12px;
    max-width: 420px;
    margin-bottom: 10px;
}

.footer-grid > div:not(:first-child) a {
    display: block;
    color: #aebed0;
    font-size: 12px;
    margin-bottom: 9px;
    transition: 0.2s;
}

.footer-grid > div:not(:first-child) a:hover {
    color: #e0b52b;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.10);

    min-height: 65px;
    padding: 15px 4%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-bottom p {
    margin: 0;
    font-size: 11px;
}


/* =========================================================
   BACK TO TOP
   ========================================================= */

#backToTop {
    position: fixed;
    right: 25px;
    bottom: 25px;

    width: 45px;
    height: 45px;

    border: none;
    border-radius: 50%;

    background: #d2a21d;
    color: white;

    font-size: 22px;
    cursor: pointer;

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

    display: none;
    z-index: 999;
}

#backToTop:hover {
    background: #062c63;
}


/* =========================================================
   REMOVE LOADER
   ========================================================= */

/* The loading screen is not used */
#loader {
    display: none !important;
}


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

@media (max-width: 1050px) {

    #mainNav {
        gap: 0;
    }

    #mainNav > a {
        padding: 9px 7px;
        font-size: 12px;
    }

    .brand h1 {
        font-size: 17px;
    }

}


/* -------------------------
   TABLET
------------------------- */

@media (max-width: 850px) {

    .top-content {
        justify-content: center;
        flex-wrap: wrap;
        padding: 8px 0;
    }

    .nav-wrapper {
        min-height: 70px;
    }

    .menu-toggle {
        display: block;
    }

    #mainNav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;

        display: none;
        flex-direction: column;
        align-items: stretch;

        background: white;
        padding: 12px;

        border-top: 1px solid #e5eaf0;
        box-shadow: 0 12px 25px rgba(0,0,0,0.08);
    }

    #mainNav.show {
        display: flex;
    }

    #mainNav > a {
        padding: 13px 15px;
        font-size: 14px;
    }

    #mainNav .admin-button {
        margin-left: 0;
        text-align: center;
        margin-top: 5px;
    }

    .hero {
        min-height: 580px;
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .two-column {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .facility-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

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

}


/* -------------------------
   MOBILE
------------------------- */

@media (max-width: 600px) {

    .top-bar {
        font-size: 11px;
    }

    .top-content {
        gap: 4px 15px;
        text-align: center;
    }

    .brand h1 {
        font-size: 15px;
    }

    .brand small {
        font-size: 8px;
    }

    .school-logo {
        width: 43px;
        height: 43px;
        font-size: 15px;
    }

    .hero {
        min-height: 560px;
    }

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

    .hero-badge {
        font-size: 10px;
    }

    .hero h2 {
        font-size: 40px;
    }

    .hero p {
        font-size: 14px;
    }

    .scroll-indicator {
        display: none;
    }

    .quick-section {
        margin-top: -30px;
    }

    .quick-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .quick-card {
        padding: 18px 10px;
    }

    .quick-card h3 {
        font-size: 14px;
    }

    .quick-card p {
        font-size: 10px;
    }

    .section {
        padding: 70px 0;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .two-column {
        gap: 30px;
    }

    .image-placeholder {
        min-height: 300px;
    }

    .about-content h2 {
        font-size: 32px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

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

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

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

    .video-placeholder {
        min-height: 250px;
    }

    .contact-section {
        padding: 70px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 18px;
    }

    #backToTop {
        width: 40px;
        height: 40px;
        right: 15px;
        bottom: 15px;
    }

}
