/* =========================================
   RESET
========================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #f7f8fb;
    color: #182230;
    line-height: 1.6;
}

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

button {
    font-family: inherit;
}



/* =========================================
   VARIABLES
========================================= */

:root {

    --primary: #8b1538;
    --primary-dark: #641029;
    --primary-light: #f7e8ed;

    --text: #182230;
    --muted: #687386;

    --white: #ffffff;
    --background: #f7f8fb;
    --border: #e5e8ee;

    --shadow:
        0 15px 45px rgba(20, 25, 35, 0.08);

    --radius: 18px;
}



/* =========================================
   CONTAINER
========================================= */

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

.section {
    padding: 100px 0;
}



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

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.94);

    backdrop-filter: blur(18px);

    border-bottom: 1px solid var(--border);
}

.nav-container {

    height: 78px;

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



/* BRAND */

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

.brand-mark {

    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 11px;

    background: var(--primary);

    color: white;

    font-size: 21px;
    font-weight: 800;

    box-shadow:
        0 8px 20px rgba(139, 21, 56, 0.2);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-college {

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

    letter-spacing: 0.05em;
}

.brand-class {

    font-size: 10px;

    color: var(--muted);

    letter-spacing: 0.04em;
}



/* DESKTOP NAV */

.desktop-nav {

    display: flex;
    align-items: center;
    gap: 5px;
}

.desktop-nav a {

    padding: 10px 13px;

    border-radius: 9px;

    color: #4d5767;

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

    transition: 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {

    background: var(--primary-light);

    color: var(--primary);
}



/* MOBILE BUTTON */

.menu-button {

    display: none;

    width: 42px;
    height: 42px;

    border: 0;

    background: var(--primary-light);

    border-radius: 10px;

    cursor: pointer;
}

.menu-button span {

    display: block;

    width: 19px;
    height: 2px;

    margin: 4px auto;

    background: var(--primary);

    transition: 0.25s;
}



/* MOBILE NAV */

.mobile-nav {

    display: none;

    padding: 12px 5% 20px;

    background: white;

    border-top: 1px solid var(--border);
}

.mobile-nav.open {
    display: flex;
    flex-direction: column;
}

.mobile-nav a {

    padding: 14px 10px;

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

    border-bottom: 1px solid #f0f1f4;
}



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

.hero {

    position: relative;

    min-height: 650px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #5f0d28,
            #8b1538 55%,
            #a92850
        );

    color: white;
}

.hero-background {

    position: absolute;

    width: 650px;
    height: 650px;

    right: -180px;
    top: -200px;

    border-radius: 50%;

    background: rgba(255,255,255,0.06);

    box-shadow:
        -120px 200px 0 rgba(255,255,255,0.03);
}

.hero-content {

    position: relative;

    max-width: 800px;

    padding: 80px 0;
}

.hero-badge {

    display: inline-flex;

    padding: 8px 14px;

    margin-bottom: 22px;

    border: 1px solid rgba(255,255,255,0.25);

    border-radius: 100px;

    background: rgba(255,255,255,0.08);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.08em;
}

.hero h1 {

    font-size: clamp(50px, 8vw, 92px);

    line-height: 0.98;

    letter-spacing: -0.055em;

    margin-bottom: 20px;
}

.hero h1 span {
    display: block;
}

.hero-subtitle {

    font-size: clamp(20px, 3vw, 30px);

    font-weight: 600;

    margin-bottom: 16px;
}

.hero-description {

    max-width: 620px;

    color: rgba(255,255,255,0.78);

    font-size: 16px;
}



/* BUTTONS */

.hero-buttons {

    display: flex;

    gap: 12px;

    margin-top: 35px;
}

.btn {

    display: inline-flex;

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

    gap: 10px;

    padding: 14px 21px;

    border-radius: 11px;

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

    transition: 0.25s ease;
}

.btn-primary {

    background: white;

    color: var(--primary);
}

.btn-primary:hover {

    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(0,0,0,0.18);
}

.btn-secondary {

    border: 1px solid rgba(255,255,255,0.3);

    color: white;

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

.btn-secondary:hover {

    background: rgba(255,255,255,0.13);

    transform: translateY(-3px);
}



/* =========================================
   SECTION HEADINGS
========================================= */

.section-heading {

    max-width: 650px;

    margin-bottom: 45px;
}

.eyebrow {

    display: block;

    margin-bottom: 10px;

    color: var(--primary);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.14em;
}

.section-heading h2 {

    font-size: clamp(32px, 5vw, 48px);

    line-height: 1.1;

    letter-spacing: -0.04em;

    margin-bottom: 14px;
}

.section-heading p {

    color: var(--muted);

    font-size: 15px;
}



/* =========================================
   STATS
========================================= */

.overview {
    background: white;
}

.stats-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}

.stat-card {

    display: flex;

    align-items: center;

    gap: 16px;

    padding: 23px;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    background: white;

    transition: 0.25s ease;
}

.stat-card:hover {

    transform: translateY(-5px);

    box-shadow: var(--shadow);
}

.stat-icon {

    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background: var(--primary-light);

    font-size: 22px;
}

.stat-card strong {

    display: block;

    font-size: 15px;
}

.stat-card span {

    display: block;

    color: var(--muted);

    font-size: 12px;
}



/* =========================================
   FEATURE CARDS
========================================= */

.explore {
    background: var(--background);
}

.feature-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;
}

.feature-card {

    position: relative;

    display: flex;

    align-items: center;

    gap: 20px;

    padding: 27px;

    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    transition: 0.3s ease;

    overflow: hidden;
}

.feature-card::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 3px;

    background: var(--primary);

    transition: 0.3s ease;
}

.feature-card:hover {

    transform: translateY(-6px);

    box-shadow: var(--shadow);
}

.feature-card:hover::after {
    width: 100%;
}

.feature-icon {

    min-width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    border-radius: 15px;

    background: var(--primary-light);

    font-size: 25px;
}

.feature-content {
    padding-right: 25px;
}

.feature-content h3 {

    margin-bottom: 5px;

    font-size: 17px;
}

.feature-content p {

    color: var(--muted);

    font-size: 13px;
}

.card-arrow {

    position: absolute;

    right: 23px;

    color: var(--primary);

    font-size: 20px;

    transition: 0.25s ease;
}

.feature-card:hover .card-arrow {
    transform: translateX(5px);
}



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

.about-preview {
    background: white;
}

.about-preview-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 70px;

    align-items: center;
}

.about-image {

    min-height: 400px;
}

.image-placeholder {

    width: 100%;
    height: 400px;

    display: flex;

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

    flex-direction: column;

    border-radius: 24px;

    background:
        linear-gradient(
            135deg,
            var(--primary-light),
            #f3f4f7
        );

    color: var(--primary);

    border: 1px dashed #d9a7b6;
}

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

.image-placeholder p {

    margin-top: 10px;

    font-weight: 700;
}

.image-placeholder small {

    color: var(--muted);

    font-size: 12px;
}

.about-text h2 {

    max-width: 500px;

    font-size: clamp(35px, 5vw, 55px);

    line-height: 1.05;

    letter-spacing: -0.045em;

    margin-bottom: 20px;
}

.about-text p {

    max-width: 540px;

    color: var(--muted);

    font-size: 15px;

    margin-bottom: 25px;
}

.text-link {

    color: var(--primary);

    font-size: 14px;

    font-weight: 700;
}



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

.footer {

    background: #171a21;

    color: white;

    padding-top: 45px;
}

.footer-content {

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding-bottom: 35px;
}

.footer-brand {

    display: flex;

    align-items: center;

    gap: 12px;
}

.footer-brand strong {

    display: block;

    font-size: 15px;
}

.footer-brand span {

    display: block;

    color: #9ba2ae;

    font-size: 11px;
}

.footer-links {

    display: flex;

    flex-wrap: wrap;

    gap: 18px;
}

.footer-links a {

    color: #b6bdc8;

    font-size: 12px;

    transition: 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {

    border-top: 1px solid rgba(255,255,255,0.08);

    padding: 20px 5%;

    text-align: center;
}

.footer-bottom p {

    color: #8d95a1;

    font-size: 11px;
}



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

@media (max-width: 950px) {

    .desktop-nav {
        display: none;
    }

    .menu-button {
        display: block;
    }

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

    .about-preview-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

}



@media (max-width: 650px) {

    .section {
        padding: 70px 0;
    }

    .nav-container {
        height: 68px;
    }

    .brand-class {
        display: none;
    }

    .hero {
        min-height: 600px;
    }

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

    .hero h1 {
        font-size: 58px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

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

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

    .feature-card {
        padding: 22px;
    }

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

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        gap: 13px;
    }

}

/* =========================================
   TEACHERS
========================================= */

.teachers-section {
    background: var(--background);
}

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

.teacher-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.teacher-icon {
    width: 58px;
    height: 58px;

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

    margin-bottom: 22px;

    border-radius: 50%;

    background: var(--primary-light);

    font-size: 27px;
}

.teacher-info {
    padding: 0;
}

.teacher-label {
    color: var(--primary);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.15em;
}

.teacher-info h3 {
    margin: 7px 0 18px;

    font-size: 19px;
}

.teacher-info p {
    margin: 9px 0;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.5;
}

.teacher-info strong {
    color: var(--text);
}


/* =========================================
   TEACHER RESPONSIVE
========================================= */

@media (max-width: 1000px) {

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

}

@media (max-width: 550px) {

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

}

/* =========================================
   STUDENTS
========================================= */

.students-section {
    background: var(--background);
}


/* CONTROLS */

.student-controls {
    display: flex;
    gap: 12px;
    align-items: center;

    margin-bottom: 18px;
}

.student-search {
    flex: 1;

    display: flex;
    align-items: center;
    gap: 10px;

    height: 50px;

    padding: 0 16px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 12px;

    transition: 0.2s ease;
}

.student-search:focus-within {
    border-color: var(--primary);

    box-shadow: 0 0 0 3px var(--primary-light);
}

.student-search span {
    color: var(--muted);

    font-size: 24px;
}

.student-search input {
    width: 100%;

    border: none;
    outline: none;

    background: transparent;

    color: var(--text);

    font-family: inherit;
    font-size: 13px;
}

.student-search input::placeholder {
    color: #9a9a9a;
}


/* SORT BUTTON */

.sort-button {
    height: 50px;

    padding: 0 18px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: white;

    color: var(--text);

    font-family: inherit;

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

    cursor: pointer;

    transition: 0.2s ease;
}

.sort-button:hover {
    border-color: var(--primary);

    color: var(--primary);
}


/* COUNT */

.student-count {
    margin: 15px 0;

    color: var(--muted);

    font-size: 12px;
}

.student-count strong {
    color: var(--primary);
}


/* STUDENT GRID */

.students-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 14px;
}


/* STUDENT CARD */

.student-card {
    display: flex;

    align-items: center;

    gap: 16px;

    padding: 18px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 14px;

    transition: 0.25s ease;
}

.student-card:hover {
    transform: translateY(-3px);

    box-shadow: var(--shadow);
}


/* ROLL NUMBER */

.student-roll {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: flex;

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

    border-radius: 12px;

    background: var(--primary-light);

    color: var(--primary);

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


/* INFO */

.student-info {
    min-width: 0;
}

.student-info h3 {
    margin: 0;

    font-size: 14px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.student-info span {
    display: block;

    margin-top: 4px;

    color: var(--muted);

    font-size: 11px;
}


/* NO RESULTS */

.no-students {
    padding: 70px 20px;

    text-align: center;

    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius);
}

.no-students > div {
    font-size: 38px;

    margin-bottom: 12px;
}

.no-students h3 {
    margin-bottom: 6px;
}

.no-students p {
    color: var(--muted);

    font-size: 13px;
}



/* =========================================
   STUDENT RESPONSIVE
========================================= */

@media (max-width: 900px) {

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

}


@media (max-width: 600px) {

    .student-controls {
        flex-direction: column;

        align-items: stretch;
    }

    .sort-button {
        width: 100%;
    }

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

}

/* =========================================
   TIMETABLE
========================================= */

.timetable-section {
    background: var(--background);
}

.timetable-card {
    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 14px;

    box-shadow: var(--shadow);
}

.timetable-image-wrapper {
    width: 100%;

    overflow: auto;

    border-radius: 10px;

    background: #f5f5f5;
}

.timetable-image {
    display: block;

    width: 100%;

    height: auto;

    min-width: 700px;
}

.timetable-note {
    margin-top: 16px;

    text-align: center;

    color: var(--muted);

    font-size: 12px;
}


/* MOBILE */

@media (max-width: 600px) {

    .timetable-card {
        padding: 8px;
    }

    .timetable-image {
        min-width: 850px;
    }

    .timetable-image-wrapper {
        overflow-x: auto;

        -webkit-overflow-scrolling: touch;
    }

}

/* =========================================
   FESTIVALS
========================================= */

.festivals-section {
    background: var(--background);
}

.festivals-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.festival-card {
    display: block;

    overflow: hidden;

    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    text-decoration: none;

    transition: 0.3s ease;
}

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

    box-shadow: var(--shadow);
}


/* FESTIVAL IMAGE */

.festival-image {
    padding: 10px;
}

.festival-placeholder {
    height: 230px;

    display: flex;

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

    flex-direction: column;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            var(--primary-light),
            #f3f3f5
        );

    border: 1px dashed #d9a7b6;

    color: var(--primary);
}

.festival-placeholder span {
    font-size: 48px;

    margin-bottom: 10px;
}

.festival-placeholder small {
    color: var(--muted);

    font-size: 11px;

    font-weight: 600;
}


/* FESTIVAL INFO */

.festival-info {
    display: flex;

    align-items: center;

    gap: 14px;

    padding: 12px 18px 20px;
}

.festival-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;

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

    border-radius: 50%;

    background: var(--primary);

    color: white;

    font-size: 18px;
}

.festival-info h3 {
    margin: 0;

    color: var(--text);

    font-size: 16px;
}

.festival-info p {
    margin-top: 5px;

    color: var(--muted);

    font-size: 11px;
}



/* =========================================
   FESTIVAL RESPONSIVE
========================================= */

@media (max-width: 900px) {

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

}


@media (max-width: 600px) {

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

    .festival-placeholder {
        height: 250px;
    }

}

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

.gallery-section {
    background: var(--background);
}


/* FILTERS */

.gallery-filters {
    display: flex;

    justify-content: center;

    gap: 8px;

    margin-bottom: 30px;
}

.gallery-filter {
    padding: 10px 18px;

    border: 1px solid var(--border);

    border-radius: 30px;

    background: white;

    color: var(--muted);

    font-family: inherit;

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

    cursor: pointer;

    transition: 0.2s ease;
}

.gallery-filter:hover {
    color: var(--primary);

    border-color: var(--primary);
}

.gallery-filter.active {
    background: var(--primary);

    border-color: var(--primary);

    color: white;
}


/* GALLERY GRID */

.gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;
}


/* GALLERY ITEM */

.gallery-item {
    overflow: hidden;

    border-radius: var(--radius);

    background: white;

    border: 1px solid var(--border);

    transition: 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);

    box-shadow: var(--shadow);
}


/* PLACEHOLDER */

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

    display: flex;

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

    flex-direction: column;

    background:
        linear-gradient(
            135deg,
            var(--primary-light),
            #f3f3f5
        );

    border: 1px dashed #d9a7b6;

    color: var(--primary);
}

.gallery-placeholder span {
    font-size: 48px;

    margin-bottom: 10px;
}

.gallery-placeholder small {
    color: var(--muted);

    font-size: 11px;

    font-weight: 600;
}


/* HIDDEN FILTER ITEMS */

.gallery-item.hidden {
    display: none;
}


/* RESPONSIVE */

@media (max-width: 850px) {

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

}


@media (max-width: 550px) {

    .gallery-filters {
        justify-content: flex-start;

        overflow-x: auto;

        padding-bottom: 5px;
    }

    .gallery-filter {
        flex-shrink: 0;
    }

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

    .gallery-placeholder {
        min-height: 280px;
    }

}

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

.about-class {
    background: var(--background);
}

.about-class-grid {
    display: grid;

    grid-template-columns:
        1.3fr 0.7fr;

    gap: 50px;

    align-items: center;
}

.about-class-content h2 {
    margin: 12px 0 22px;

    max-width: 650px;

    font-size: clamp(30px, 4vw, 46px);

    line-height: 1.08;

    letter-spacing: -0.04em;
}

.about-class-content p {
    max-width: 650px;

    margin-bottom: 14px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.8;
}


/* DETAILS */

.about-class-details {
    overflow: hidden;

    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.about-detail {
    padding: 20px 22px;

    border-bottom: 1px solid var(--border);
}

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

.about-detail span {
    display: block;

    margin-bottom: 6px;

    color: var(--primary);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.14em;
}

.about-detail strong {
    color: var(--text);

    font-size: 14px;

    line-height: 1.5;
}


/* ACADEMIC JOURNEY */

.about-engineering {
    background: white;
}

.about-feature-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.about-feature-card {
    padding: 28px;

    background: var(--background);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    transition: 0.3s ease;
}

.about-feature-card:hover {
    transform: translateY(-5px);

    box-shadow: var(--shadow);
}

.about-feature-number {
    margin-bottom: 30px;

    color: var(--primary);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 0.1em;
}

.about-feature-card h3 {
    margin-bottom: 8px;

    font-size: 19px;
}

.about-feature-card p {
    color: var(--muted);

    font-size: 13px;

    line-height: 1.7;
}


/* ABOUT RESPONSIVE */

@media (max-width: 800px) {

    .about-class-grid {
        grid-template-columns: 1fr;

        gap: 30px;
    }

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

}

/* GALLERY COMING SOON */

.gallery-coming-soon {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 50px 25px;
}

.gallery-coming-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 50%;
    background: var(--primary-light);
    font-size: 32px;
}

.gallery-coming-soon h3 {
    margin-bottom: 10px;
    color: var(--text);
    font-size: 24px;
}

.gallery-coming-soon p {
    max-width: 500px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}