@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ===============================
   GLOBAL RESET
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* ===============================
   BODY (BACKGROUND UNCHANGED)
================================ */
body {
    margin: 0;
    padding: 0;
    background-image: url(../images/back3.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    background-attachment: fixed;
    color: #1f2937;
    line-height: 1.6;

}

.relative {
    margin-bottom: 15px;
}

/* ===============================
   NAVBAR
================================ */
.nav {
    margin: 0;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Desktop navigation buttons */
.destop_btn {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    position: relative;
    letter-spacing: 0.4px;
}

.destop_btn::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

.destop_btn:hover::after {
    width: 100%;
}

/* Icon buttons */
.nav-btn {
    transition: all 0.25s ease;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* ===============================
   HEADINGS
================================ */
#about {
    margin-top: 48px;
}

.heading_sm,
.heading_welcome,
.our_missiona,
.section-title {
    font-weight: 900;
    font-size: 2.5rem;
    text-align: center;
    color: #0f172a;
    letter-spacing: 1px;
    margin-bottom: 20px;
    position: relative;
    text-shadow: #0f172a 0px 5px 20px;
}

.heading_sm::after,
.section-title::after {
    content: "";
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #1e40af, #3b82f6);
    display: block;
    margin: 12px auto 0;
    border-radius: 3px;
}


@media (max-width:400px) {
    .heading_sm {
        font-size: 25px;
    }
}

@media (max-width:300px) {
    .heading_sm {
        font-size: 20px;
    }
}

/* Subtitles */
.section-subtitle,
.p_welcome,
.our_missionb {
    font-size: 1.15rem;
    font-weight: 500;
    text-align: center;
    color: #334155;
    max-width: 900px;
    margin: 0 auto 25px;
}

/* ===============================
   CARD / CONTENT SECTIONS
================================ */
.class-section {
    background: rgba(255, 255, 255, 0.95);
    max-width: 900px;
    margin: 40px auto;
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

/* Result header */
.term_class-header {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: #ffffff;
    padding: 18px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.6px;
}

/* Content padding */
.class-content {
    padding: 20px;
    background-color: #f8fafc;
}

/* ===============================
   TABLE STYLING
================================ */
table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

th {
    background-color: #e5e7eb;
    color: #111827;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
}

td {
    font-size: 14px;
    color: #1f2937;
}

th,
td {
    border: 1px solid #d1d5db;
    padding: 10px;
    text-align: center;
}

tr:nth-child(even) {
    background-color: #f9fafb;
}

tr:hover {
    background-color: #eef2ff;
}

/* Table links */
table a {
    color: #2563eb;
    font-weight: 600;
}

table a:hover {
    text-decoration: underline;
}

/* ===============================
   MOBILE MENU
================================ */
#mobileMenu a {
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s ease, transform 0.3s ease;
}

#mobileMenu a:hover {
    transform: scale(1.08);
}

/* ===============================
   FOOTER
================================ */
footer {
    margin-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6px);
}

footer p {
    color: #374151;
    letter-spacing: 0.4px;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {

    .heading_sm,
    .heading_welcome,
    .our_missiona,
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle,
    .p_welcome,
    .our_missionb {
        font-size: 1rem;
        padding: 0 10px;
    }

    .class-section {
        margin: 20px 10px;
    }

    th,
    td {
        font-size: 13px;
        padding: 8px;
    }
}

.see-profile-btn {
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay-content {
    color: white;
    font-size: 50px;
}

@media (max-width: 400px) {
    .overlay-content {
        font-size: 19px;
        font-weight: 700;
    }
}

.best-teacher {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.best-teacher-icon {
    width: 100px;
    height: auto;
}

.best-teacher-text {
    font-size: 15px;
    font-weight: 700;
    color: #1e40af;
    letter-spacing: 0.5px;
    text-shadow: #0f172a 0px 5px 20px;
}