/* =========================================================
   CLEANED & OPTIMIZED SCHOOL WEBSITE CSS
   - Preserves existing selectors, colors, dimensions and responsive rules
   - Removes redundant declarations/comments and normalizes formatting
   ========================================================= */

/* =========================================================
GOOGLE FONTS & RESET
========================================================= */

:root {
    --primary: #000;
    --secondary: #D4A017;
    --light: #FFF8F0;
    --white: #fff;
    --dark: #070707;

    --text: #2C2C2C;
    --border: #ddd;
    --shadow: 0 8px 25px rgba(0, 0, 0, .08);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, .15);

    --heading-font: 'Cormorant Garamond', serif;
    --body-font: 'Inter', sans-serif;

    --transition: .4s ease;
    --radius: 18px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;

    font-family: var(--body-font);
    background: var(--light);
    color: var(--text);
    line-height: 1.7;
}

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

img {
    width: 100%;
}

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

ul {
    list-style: none;
}

input,
textarea,
select,
button {
    max-width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

/* =========================================================
REUSABLE / COMMON
========================================================= */

.section {
    width: 90%;
    max-width: 1200px;
    margin: 90px auto;
}

.section-heading {
    text-align: center;
    margin-bottom: 55px;
}

.section-subtitle {
    color: var(--secondary);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.section-heading h2 {
    margin-top: 10px;
    color: var(--primary);
    font-family: var(--heading-font);
    font-size: 46px;
}

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

.navbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 999;

    width: 100%;
    padding: 16px 8%;

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

    background: rgba(3, 3, 3, .96);
    backdrop-filter: blur(12px);

    transition: var(--transition);
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.school-logo {
    width: 80px;
    height: 80px;
    flex-shrink: 0;

    border: 3px solid var(--secondary);
    border-radius: 50%;
}

.logo span {
    color: var(--white);
    font-family: var(--heading-font);
    font-size: 40px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    position: relative;

    color: var(--white);
    font-size: 20px;
    font-weight: 500;

    transition: .3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary);
}

.nav-links a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: var(--secondary);
    transition: .4s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

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

    border: 0;
    background: transparent;

    color: var(--white);
    font-size: 30px;
    cursor: pointer;
}

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

.hero {
    position: relative;

    height: 100vh;

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

    overflow: hidden;
}

.hero-bg-slider,
.hero-bg,
.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-bg {
    opacity: 0;
    transition: 1.5s;
}

.hero-bg.active {
    opacity: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    background: rgba(0, 0, 0, .55);
}

.hero-content {
    position: relative;
    z-index: 10;

    width: 90%;
    max-width: 850px;

    color: var(--white);
    text-align: center;
}

.hero-tag {
    display: inline-block;

    margin-bottom: 20px;
    padding: 10px 25px;

    border: 1px solid var(--secondary);
    border-radius: 40px;

    background: rgba(212, 160, 23, .18);
    color: var(--white);
}

.hero-content h1 {
    margin-bottom: 20px;

    font-family: var(--heading-font);
    font-size: 72px;
}

.hero-content p {
    font-size: 22px;
}

.slide {
    display: none;
}

.slide.active {
    display: block;
    animation: fade 1s;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;

    transform: translateX(-50%);

    color: var(--white);
    font-size: 13px;
    letter-spacing: 3px;
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
FOUNDER
========================================================= */

.founder-image-wrap {
    width: 100%;

    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;

    gap: 25px;
}

.founder-card {
    width: 250px;
    height: 380px;
    flex: 0 0 250px;

    overflow: hidden;

    background: var(--white);
    border-bottom: 5px solid var(--secondary);
    border-radius: 20px;

    text-align: center;

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

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

.founder-img {
    width: 250px;
    height: 260px;

    display: block;
    object-fit: cover;
}

.founder-card h3 {
    margin: 18px 0 8px;

    color: var(--primary);
    font-family: var(--heading-font);
    font-size: 22px;
}

.founder-card p {
    padding-bottom: 0px;
    color: var(--primary);
}

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

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

.about-left,
.about-right {
    padding: 35px;

    background: var(--white);
    border-radius: var(--radius);

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

.about-left:hover,
.about-right:hover {
    transform: translateY(-8px);
}

.about-left {
    border-left: 6px solid var(--primary);
}

.about-right {
    border-left: 6px solid var(--secondary);
}

.about-left p,
.about-right p {
    color: var(--primary);
    font-size: 17px;
    line-height: 1.9;
}

.about-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 40px 0;
}

.about-image {
    height: 280px;
    overflow: hidden;
    border-radius: var(--radius);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.about-stats div {
    padding: 35px;

    background: var(--white);
    border-radius: var(--radius);

    text-align: center;
    box-shadow: var(--shadow);

    transition: var(--transition);
}

.about-stats div:hover {
    transform: translateY(-10px);
}

.about-stats h3 {
    margin-bottom: 10px;

    color: var(--primary);
    font-family: var(--heading-font);
    font-size: 42px;
}

.about-highlight {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.about-card {
    padding: 40px;

    background: var(--white);
    border-top: 5px solid var(--secondary);
    border-radius: var(--radius);

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

.about-card:hover {
    transform: translateY(-8px);
}

.about-card h3 {
    margin-bottom: 18px;
    color: var(--primary);
}

/* =========================================================
ACTIVITIES
========================================================= */

.activities-container {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 25px;
    align-items: stretch;
}

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

    padding: 25px;

    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.activity-image-card {
    overflow: hidden;

    background: var(--white);
    border-radius: 14px;

    text-align: center;
    transition: var(--transition);
}

.activity-image-card:hover {
    transform: translateY(-5px);
}

.activity-image-card img {
    width: 100%;
    height: 280px;

    object-fit: cover;
    border-radius: 12px;

    transition: var(--transition);
}

.activity-image-card:hover img {
    transform: scale(1.03);
}

.activity-image-card p {
    margin: 0;
    padding: 10px 5px 5px;

    color: var(--dark);
    font-family: var(--heading-font);
    font-size: 20px;
    font-weight: 600;
}

.activity-image-card p::after {
    content: "";

    display: block;

    width: 70px;
    height: 2px;

    margin: 8px auto 0;

    background: var(--secondary);
}

.activities-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity-item {
    flex: 1;

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

    padding: 25px 30px;

    background: var(--white);
    border: 1px solid rgba(212, 160, 23, .15);
    border-radius: var(--radius);

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

.activity-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
}

.activity-icon {
    width: 90px;
    height: 90px;
    min-width: 90px;

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

    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
}

.activity-icon i {
    color: var(--secondary);
    font-size: 40px;
}

.activity-content h3 {
    margin-bottom: 8px;

    color: var(--primary);
    font-family: var(--heading-font);
    font-size: 24px;
}

.activity-content p {
    color: var(--dark);
    font-size: 16px;
    line-height: 1.7;
}

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

.principal-preview {
    width: 100%;
    height: 550px;

    display: grid;
    grid-template-columns: 48% 52%;

    overflow: hidden;

    background: var(--white);
    border-radius: 25px;

    box-shadow: var(--shadow);
    cursor: pointer;

    transition: var(--transition);
}

.principal-preview:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.principal-card {
    height: 100%;
    overflow: hidden;
}

.preview-img {
    width: 100%;
    height: 100%;
    min-height: 0;

    display: block;

    object-fit: cover;
    object-position: center;
}

.principal-preview-right {
    height: 100%;
    min-height: 0;

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

    padding: 40px 55px;

    background: var(--white);
}

.preview-subtitle {
    color: var(--secondary);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.principal-preview-right .preview-subtitle {
    margin-bottom: 12px;
}

.principal-preview-right h2 {
    margin: 0 0 22px;

    color: #1f1f1f;
    font-family: var(--heading-font);
    font-size: 40px;
    line-height: 1.2;
}

.preview-text {
    max-width: 650px;
    margin: 0 0 25px;

    color: var(--primary);
    font-size: 17px;
    line-height: 1.8;
}

.read-more {
    color: #111;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
}

.read-more:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

/* =========================================================
WHY CHOOSE US
========================================================= */

.why-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.why-image img {
    width: 100%;
    height: 520px;

    object-fit: cover;
    border-radius: 20px;

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

.why-content {
    display: grid;
    gap: 20px;
}

.why-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;

    padding: 25px;

    background: var(--white);
    border-radius: var(--radius);

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

.why-card:hover {
    transform: translateX(10px);
    border-left: 6px solid var(--secondary);
}

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

.why-card h3 {
    margin-bottom: 8px;
    color: var(--primary);
}

.why-card p {
    color: var(--primary);
}

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

.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

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

    background: rgba(0, 0, 0, .75);
}

.modal-content {
    position: relative;

    width: 90%;
    max-width: 700px;
    padding: 40px;

    background: var(--white);
    border-radius: 20px;

    box-shadow: 0 15px 40px rgba(0, 0, 0, .25);

    animation: popup .5s;
}

@keyframes popup {
    from {
        opacity: 0;
        transform: scale(.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;

    color: var(--primary);
    font-size: 35px;
    cursor: pointer;
}

.close:hover {
    color: var(--secondary);
}

.principal-header {
    text-align: center;
}

.modal-img {
    width: 180px;
    height: 180px;

    margin: auto;

    object-fit: cover;

    border: 5px solid var(--secondary);
    border-radius: 50%;
}

.principal-header h3 {
    margin-top: 20px;

    color: var(--primary);
    font-family: var(--heading-font);
    font-size: 30px;
}

.principal-header span {
    color: var(--primary);
}

.modal-content hr {
    height: 2px;
    margin: 25px 0;

    border: 0;
    background: #eee;
}

.modal-content p {
    color: var(--primary);
    line-height: 1.9;
}

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

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.activity-card {
    overflow: hidden;

    background: var(--white);
    border-radius: var(--radius);

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

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .15);
}

.activity-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.activity-card h3 {
    padding: 18px;

    color: var(--primary);
    font-family: var(--heading-font);
    font-size: 22px;
    text-align: center;
}

/* =========================================================
FACULTY SECTION
========================================================= */

.faculty-section {
    padding: 45px 20px 70px;
    background: #fcf7ef;
}

.principal-area {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.faculty-grid {
    width: 600px;
    max-width: 100%;
    margin: 0 auto;

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

    column-gap: 150px;
    row-gap: 60px;
}

.faculty-card {
    width: 140px;

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

    margin: 0 auto;

    text-align: center;
}

.faculty-image {
    width: 220px;
    height: 260px;
    flex-shrink: 0;

    overflow: hidden;

    background: var(--white);
    border: 1px solid #111;
    border-radius: 11px;

    box-shadow: 0 5px 12px rgba(0, 0, 0, .12);
    transition: .3s ease;
}

.faculty-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: .4s ease;
}

.faculty-card:hover .faculty-image {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
}

.faculty-card:hover .faculty-image img {
    transform: scale(1.02);
}

.faculty-card h3 {
    width: max-content;
    max-width: none;

    margin: 10px 0 0;

    color: #111;
    font-size: 18px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;

    white-space: nowrap;
}

.faculty-card p {
    margin: 5px 0 0;

    color: #111010;
    font-size: 16px;
    line-height: 1.3;
}

/* Principal overrides */

.principal-area .faculty-card {
    width: 165px;
}

.principal-area .faculty-image {
    width: 220px;
    height: 260px;
}

.principal-area .faculty-card h3 {
    margin-top: 10px;
    font-size: 18px;
}

.principal-area .faculty-card p {
    margin-top: 5px;
    font-size: 16px;
}

/* =========================================================
FACULTY TABLE
========================================================= */

.faculty-table-section {
    padding: 80px 6%;
    background: var(--light);
}

.faculty-table-section .section-heading {
    margin-bottom: 40px;
}

.faculty-table-section .section-heading h2 {
    margin: 0;
    font-size: 42px;
}

.faculty-table {
    width: 80%;
    margin: 0 auto;

    border-collapse: collapse;

    background: var(--white);
    border: 1px solid var(--border);
}

.faculty-table th,
.faculty-table td {
    padding: 15px 18px;

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

    text-align: left;
}

.faculty-table th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.faculty-table td {
    color: var(--dark);
    font-size: 16px;
}

.faculty-table tbody tr:nth-child(odd) {
    background: var(--light);
}

.faculty-table tbody tr:nth-child(even) {
    background: #F3E6D8;
}

/* =========================================================
STORY / HISTORY
========================================================= */

.story-section {
    padding: 90px 6%;
    background: var(--light);
}

.story-container {
    max-width: 1250px;
    margin: auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;

    align-items: start;
}

.story-left {
    padding-top: 5px;
}

.story-subtitle {
    display: block;

    margin-bottom: 12px;

    color: var(--secondary);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .5px;
}

.story-left h2 {
    margin-bottom: 25px;

    color: var(--primary);
    font-family: var(--heading-font);
    font-size: 48px;
    line-height: 1.05;
}

.story-intro {
    max-width: 650px;
    margin-bottom: 40px;

    color: var(--dark);
    font-size: 18px;
    line-height: 1.7;
}

.story-timeline {
    position: relative;
    padding-left: 45px;
}

.story-timeline::before {
    content: "";

    position: absolute;
    top: 8px;
    bottom: 15px;
    left: 9px;

    width: 2px;

    background: #d9d9d9;
}

.story-item {
    position: relative;

    min-height: 60px;
    margin-bottom: 30px;

    display: grid;
    grid-template-columns: 75px 1fr;
    gap: 10px;
}

.story-dot {
    position: absolute;
    top: 5px;
    left: -42px;

    width: 16px;
    height: 16px;

    z-index: 2;

    background: var(--secondary);
    border: 4px solid var(--light);
    border-radius: 50%;

    box-shadow: 0 0 0 1px var(--secondary);
}

.story-year {
    padding-top: 0;

    color: var(--primary);
    font-size: 20px;
    font-weight: 700;
}

.story-text p {
    margin: 0;

    color: #050505;
    font-size: 17px;
    line-height: 1.6;
}

.story-right {
    width: 100%;
}

.story-main-image {
    width: 100%;
    height: 410px;

    overflow: hidden;

    margin-bottom: 25px;

    border-radius: 10px;
    box-shadow: var(--shadow);
}

.story-main-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: .5s;
}

.story-main-image:hover img {
    transform: scale(1.03);
}

.story-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.story-card {
    min-height: 180px;
    padding: 25px 22px;

    background: var(--white);
    border-radius: 8px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, .06);
}

.story-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 15px;

    color: var(--primary);
    font-size: 21px;
}

.story-card h3 span {
    display: inline-block;

    width: 5px;
    height: 22px;

    background: var(--secondary);
    border-radius: 5px;
}

.story-card p {
    margin: 0;

    color: #010101;
    font-size: 16px;
    line-height: 1.65;
}

/* =========================================================
PAGE BANNER
========================================================= */

.page-banner {
    position: relative;

    height: 500px;
    margin-top: 90px;

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

    text-align: center;

    background:
        linear-gradient(
            rgba(5, 5, 5, .75),
            rgba(49, 49, 49, .75)
        ),
        url("../imgs/banner.jpeg") center / cover no-repeat;
}

.page-banner-content {
    z-index: 2;
    color: var(--white);
}

.page-banner-content h1 {
    margin-bottom: 10px;

    font-family: var(--heading-font);
    font-size: 58px;
}

.page-banner-content p {
    font-size: 20px;
    letter-spacing: 1px;
}

/* =========================================================
ACADEMICS / STUDENT RESULTS
========================================================= */

.achievement-text {
    margin-top: 80px;

    color: var(--secondary);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    text-align: center;
}

.student-result-heading {
    width: 100%;
    margin-top: 20px;

    color: var(--primary);
    font-family: var(--heading-font);
    font-size: 40px;
    font-weight: 700;
    text-align: center;
}

.student-table {
    width: 75%;
    margin: 40px auto;

    border-collapse: separate;
    border-spacing: 0;

    background: var(--white);
    border-radius: 16px;

    overflow: hidden;

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

.student-table thead th {
    padding: 17px 20px;

    background: var(--primary);
    color: var(--white);

    border-right: 1px solid rgba(255, 255, 255, .5);
    border-bottom: 2px solid var(--secondary);

    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.student-table thead th:last-child {
    border-right: none;
}

.student-table tbody td {
    padding: 15px 20px;

    color: var(--dark);

    border-right: 1px solid #e2c98b;
    border-bottom: 1px solid #eee5dc;

    font-size: 20px;
    text-align: center;
}

.student-table tbody tr {
    transition: .3s ease;
}

.student-table tbody tr:nth-child(even) {
    background: #fffaf5;
}

.student-table tbody tr:hover {
    background: #fdf0e2;
    transform: scale(1.01);
}

.student-table tbody tr:last-child td {
    border-bottom: none;
}

.student-table tbody td:first-child {
    width: 15%;
    color: var(--primary);
    font-weight: 600;
}

.student-table tbody td:nth-child(2) {
    width: 35%;
}

.student-table tbody td:nth-child(3) {
    width: 25%;
}

.student-table tbody td:nth-child(4) {
    width: 25%;
}

/* =========================================================
TOP ACHIEVERS
========================================================= */

.top-achievers {
    width: 90%;
    max-width: 1100px;
    margin: 40px auto 30px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;

    align-items: start;
}

.achiever-card {
    padding: 20px 15px 22px;

    background: #fffdf7;
    border: 1px solid rgba(128, 0, 0, .15);
    border-radius: 18px;

    text-align: center;

    box-shadow: var(--shadow);
    transition: .3s ease;
}

.achiever-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .16);
}

.achiever-image {
    position: relative;

    width: 170px;
    height: 170px;

    margin: 0 auto 15px;

    border-radius: 50%;
}

.achiever-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    border: 5px solid #d4af37;
    border-radius: 50%;
}

.rank-badge {
    position: absolute;
    top: 5px;
    right: -8px;

    width: 42px;
    height: 42px;

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

    background: #8b0000;
    color: var(--white);

    border: 3px solid #d4af37;
    border-radius: 50%;

    font-family: var(--heading-font);
    font-size: 22px;
    font-weight: 700;

    box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
}

.achiever-card h3 {
    margin: 10px 0 5px;

    color: var(--primary);
    font-family: var(--heading-font);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .5px;
}

.achiever-card p {
    margin: 5px 0;

    color: #b8860b;
    font-size: 24px;
    font-weight: 700;
}

.achievement-year {
    display: inline-block;

    margin-top: 5px;
    padding: 5px 14px;

    background: #f7f0d8;
    color: #5c3b00;

    border-radius: 20px;

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

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

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

    margin-top: 40px;
}

.facility-gallery-card {
    height: 280px;
    overflow: hidden;

    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 18px;

    box-shadow: 0 10px 25px rgba(0, 0, 0, .10);

    transition: .4s ease;
}

.facility-gallery-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: .5s ease;
}

.facility-gallery-card p {
    margin: 0;
    padding: 15px 10px;

    background: var(--white);
    color: var(--primary);

    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.facility-gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, .16);
}

.facility-gallery-card:hover img {
    transform: scale(1.06);
}

/* =========================================================
ADMISSION
========================================================= */

.admission-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.admission-image img {
    width: 100%;

    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}

.admission-text span {
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: 2px;
}

.admission-text h2 {
    margin: 15px 0;

    color: var(--primary);
    font-family: var(--heading-font);
    font-size: 42px;
}

.admission-text p {
    margin-bottom: 30px;

    color: var(--primary);
    line-height: 1.8;
}

.admission-text a {
    display: inline-block;

    padding: 14px 32px;

    background: var(--primary);
    color: var(--white);

    border-radius: 40px;

    transition: .4s;
}

.admission-text a:hover {
    background: var(--secondary);
    color: var(--primary);
}

.admission-table,
.documents-table table {
    width: 100%;
    margin-top: 40px;

    border-collapse: collapse;

    background: var(--white);

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

.admission-table th,
.documents-table th {
    padding: 16px;

    background: var(--primary);
    color: var(--white);
}

.admission-table td,
.documents-table td {
    padding: 16px;

    border: 1px solid #eee;

    text-align: center;
}

.admission-table tr:nth-child(even),
.documents-table tr:nth-child(even) {
    background: #faf7f3;
}

.mandatory {
    color: #0b8b45;
    font-weight: 600;
}

.optional {
    color: #d48b00;
    font-weight: 600;
}

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

.contact-query-section {
    padding: 90px 20px;
    background: var(--light);
}

.contact-query-container {
    max-width: 1150px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 70px;

    align-items: center;
}

.contact-information {
    padding: 10px 20px 10px 0;
}

.contact-subtitle,
.query-subtitle {
    color: #003366;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact-information h2 {
    margin: 8px 0 15px;

    color: #0f172a;
    font-family: var(--heading-font);
    font-size: 48px;
}

.contact-intro {
    max-width: 450px;
    margin-bottom: 32px;

    color: var(--primary);
    font-size: 17px;
    line-height: 1.8;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;

    margin-bottom: 25px;
}

.contact-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;

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

    background: var(--primary);
    color: var(--white);

    border-radius: 50%;

    font-size: 15px;
}

.contact-detail h3 {
    margin: 0 0 5px;

    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
}

.contact-detail p {
    margin: 0;

    color: var(--primary);
    font-size: 16px;
    line-height: 1.7;
}

.query-form-container {
    padding: 40px;

    background: var(--white);
    border-top: 4px solid #003366;
    border-radius: 14px;

    box-shadow: 0 15px 40px rgba(0, 51, 102, .10);
}

.query-form-container h2 {
    margin: 7px 0 8px;

    color: var(--primary);
    font-family: var(--heading-font);
    font-size: 41px;
}

.query-description {
    margin: 0 0 25px;

    color: var(--primary);
    font-size: 16px;
    line-height: 1.7;
}

.query-form-group {
    margin-bottom: 17px;
}

.query-form-group label {
    display: block;

    margin-bottom: 7px;

    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
}

.query-form-group label span {
    color: var(--primary);
}

.query-form-group input,
.query-form-group textarea {
    width: 100%;

    padding: 12px 14px;

    border: 1px solid #d9dee5;
    border-radius: 7px;

    outline: none;

    background: var(--white);
    color: #1f2937;

    font-size: 16px;

    transition: .3s;
}

.query-form-group input::placeholder,
.query-form-group textarea::placeholder {
    color: var(--primary);
}

.query-form-group input:focus,
.query-form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, .08);
}

.query-form-group textarea {
    min-height: 115px;
    resize: vertical;
    line-height: 1.6;
}

.query-submit-btn {
    width: 100%;
    padding: 14px 20px;

    border: none;
    border-radius: 7px;

    background: var(--primary);
    color: var(--white);

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

    cursor: pointer;
    transition: .3s;
}

.query-submit-btn i {
    margin-right: 7px;
}

.query-submit-btn:hover {
    background: #00264d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 51, 102, .20);
}

.query-success {
    display: none;

    margin-top: 15px;
    padding: 12px;

    background: #ecfdf5;
    color: #047857;

    border-radius: 7px;

    font-size: 16px;
    text-align: center;
}

.query-success.show {
    display: block;
}

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

.gallery-section {
    padding: 90px 6%;
    background: var(--light);
}

.gallery-heading {
    max-width: 750px;
    margin: 0 auto 55px;

    text-align: center;
}

.gallery-subtitle {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--secondary);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
}

.gallery-heading h2 {
    margin-bottom: 18px;

    color: var(--primary);
    font-family: var(--heading-font);
    font-size: 52px;
    line-height: 1.1;
}

.gallery-heading p {
    max-width: 650px;
    margin: auto;

    color: var(--primary);
    font-size: 16px;
    line-height: 1.7;
}

.professional-gallery {
    max-width: 1250px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 270px;
    gap: 22px;
}

.gallery-item {
    position: relative;

    overflow: hidden;

    padding: 6px;

    background: var(--white);
    border: 2px solid var(--secondary);
    border-radius: 16px;

    box-shadow: var(--shadow);

    transition: .4s ease;
}

.gallery-item::before {
    content: "";

    position: absolute;
    inset: 3px;
    z-index: 3;

    border: 1px solid rgba(212, 160, 23, .35);
    border-radius: 12px;

    pointer-events: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    border-radius: 10px;

    transition: .6s ease;
}

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

    border-color: var(--primary);

    box-shadow: 0 15px 35px rgba(0, 0, 0, .16);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-featured {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    padding: 25px;

    background:
        linear-gradient(
            to top,
            rgba(40, 20, 25, .9),
            rgba(40, 20, 25, .35),
            transparent 65%
        );

    opacity: 0;
    transition: .4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    transform: translateY(20px);
    transition: .4s ease;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-info span {
    display: block;

    margin-bottom: 5px;

    color: var(--secondary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.gallery-info h3 {
    margin: 0;

    color: var(--white);
    font-size: 21px;
    font-weight: 600;
}

.gallery-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;

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

    background: rgba(255, 255, 255, .95);
    color: var(--primary);

    border-radius: 50%;

    font-size: 16px;

    transform: translateY(20px);
    transition: .4s;
}

.gallery-item:hover .gallery-icon {
    transform: translateY(0);
}

.gallery-icon:hover {
    background: var(--secondary);
    color: var(--white);
}

/* =========================================================
LANGUAGE SELECTOR
========================================================= */

.language-selector select {
    padding: 8px 12px;

    border: 1px solid #ddd;
    border-radius: 6px;

    background: var(--white);
    color: var(--primary);

    font-size: 18px;
    cursor: pointer;
    outline: none;
}

.language-selector select:focus {
    border-color: #007bff;
}

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

.site-footer {
    margin-top: 50px;
    padding: 35px 8%;

    background: var(--primary);
    color: var(--white);
}

.footer-content {
    display: flex;
    justify-content: center;
}

.footer-left {
    max-width: 900px;
    text-align: center;
}

.footer-left h3 {
    margin-bottom: 15px;

    color: var(--secondary);
    font-family: var(--heading-font);
    font-size: 40px;
}

.footer-left p {
    margin: 8px 0;

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

.footer-left i {
    margin-right: 8px;

    color: var(--secondary);
    font-size: 20px;
}

.footer-line {
    height: 1px;
    margin: 12px 0;

    border: 0;
    background: rgba(255, 255, 255, .25);
}

.copyright {
    margin-top: 25px;
    padding-top: 15px;

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

    color: var(--white);
    font-size: 14px;
    text-align: center;

    opacity: .85;
}

/* =========================================================
REVEAL ANIMATION
========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: 1s;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
TABLE WRAPPERS
========================================================= */

.student-table-wrapper,
.faculty-table-wrapper,
.table-wrapper,
.table-responsive {
    width: 100%;
    max-width: 100%;
}

/* =========================================================
   SONAMATA ADARSH VIDYALAYA
   CLEAN RESPONSIVE SYSTEM
   Desktop • Laptop • Tablet • Mobile • Small phones
   ========================================================= */

/* ---------- GLOBAL SIZING ---------- */

:root {
    --nav-height: 76px;
    --content-width: 1200px;
    --page-gutter: 5%;
}

html {
    scroll-padding-top: var(--nav-height);
}

body {
    overflow-x: hidden;
}

section {
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

.section {
    width: min(90%, var(--content-width));
    margin: 90px auto;
}

.section-heading h2 {
    font-size: clamp(34px, 4vw, 46px);
    line-height: 1.15;
}

/* =========================================================
   NAVBAR — PROFESSIONAL, COMPACT
   ========================================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;

    width: 100%;
    min-height: var(--nav-height);
    height: var(--nav-height);

    padding: 8px var(--page-gutter);

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

    background: rgba(3, 3, 3, .97);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 18px rgba(0, 0, 0, .12);
}

.logo {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 1;
}

.school-logo {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;

    border: 2px solid var(--secondary);
    border-radius: 50%;
    object-fit: cover;
}

.logo span {
    display: block;
    min-width: 0;

    color: var(--white);
    font-family: var(--heading-font);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;

    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex-shrink: 0;
}

.nav-links a {
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

.language-selector {
    flex-shrink: 0;
}

.language-selector select {
    max-width: 100px;
}

.menu-toggle {
    display: none;
    flex: 0 0 42px;
}

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

.hero {
    min-height: 100svh;
    height: 100svh;
}

.hero-content {
    width: min(90%, 900px);
}

.hero-tag {
    padding: 8px 18px;
    margin-bottom: 18px;
    font-size: 13px;
}

.hero-content h1 {
    margin-bottom: 15px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.08;
}

.hero-content p {
    font-size: clamp(15px, 1.7vw, 22px);
}

.hero-scroll {
    bottom: 25px;
}

/* =========================================================
   FOUNDER
   ========================================================= */

.founder-image-wrap {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.founder-card {
    width: 100%;
    max-width: 210px;
    height: auto;
    min-height: 350px;
    margin: 0 auto;

    flex: none;
}

.founder-img {
    width: 100%;
    height: 255px;
    object-fit: cover;
}

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

.about-grid {
    gap: 35px;
}

.about-left,
.about-right {
    padding: 30px;
}

.about-left p,
.about-right p {
    font-size: 16px;
}

/* =========================================================
   ACTIVITIES
   ========================================================= */

.activities-container {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .9fr);
    gap: 25px;
}

.activities-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    padding: 18px;
}

.activity-image-card img {
    height: 210px;
}

.activity-image-card p {
    font-size: 17px;
}

.activity-item {
    gap: 18px;
    padding: 20px;
}

.activity-icon {
    width: 68px;
    height: 68px;
    min-width: 68px;
}

.activity-icon i {
    font-size: 30px;
}

.activity-content h3 {
    font-size: 21px;
}

.activity-content p {
    font-size: 14px;
}

/* =========================================================
   PRINCIPAL PREVIEW + MODAL
   ========================================================= */

.principal-preview {
    height: 480px;
}

.principal-preview-right {
    padding: 35px 45px;
}

.principal-preview-right h2 {
    font-size: clamp(30px, 3vw, 40px);
}

.preview-text {
    font-size: 15px;
    line-height: 1.7;
}

.modal {
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    max-height: 90svh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* =========================================================
   WHY CHOOSE US
   ========================================================= */

.why-wrapper {
    gap: 35px;
}

.why-image img {
    height: 500px;
}

.why-card {
    gap: 16px;
    padding: 20px;
}

.why-card span {
    font-size: 30px;
}

/* =========================================================
   FACULTY — PROFESSIONAL SCHOOL LAYOUT
   ========================================================= */

.faculty-section {
    width: min(92%, 1240px);
    margin: 0 auto;
    padding: 70px 20px 90px;
    background: #fcf7ef;
}

.principal-area {
    display: flex;
    justify-content: center;
    margin-bottom: 55px;
}

.principal-area .faculty-card {
    width: 220px;
    max-width: 220px;
}

.principal-area .faculty-image {
    width: 180px;
    height: 220px;
}

.faculty-grid {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 220px));
    justify-content: center;
    justify-items: center;

    column-gap: 45px;
    row-gap: 65px;
}

.faculty-card {
    width: 220px;
    max-width: 220px;
    min-width: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.faculty-image {
    width: 180px;
    height: 220px;
    max-width: 100%;

    overflow: hidden;
    flex-shrink: 0;

    background: var(--white);
    border: 1px solid #111;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, .10);
}

.faculty-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.faculty-card h3,
.principal-area .faculty-card h3 {
    width: 100%;
    max-width: 220px;

    margin: 12px 0 0;

    font-size: 18px;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: break-word;
    text-align: center;
}

.faculty-card p,
.principal-area .faculty-card p {
    width: 100%;
    max-width: 220px;

    margin: 5px 0 0;

    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

/* =========================================================
   TABLES — CLEAN AND READABLE
   ========================================================= */

.student-table-wrapper,
.faculty-table-wrapper,
.table-wrapper,
.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.student-table,
.faculty-table,
.admission-table,
.documents-table table {
    max-width: 100%;
}

.student-table,
.faculty-table {
    margin-left: auto;
    margin-right: auto;
}

.student-table td,
.student-table th,
.faculty-table td,
.faculty-table th,
.admission-table td,
.admission-table th,
.documents-table td,
.documents-table th {
    overflow-wrap: break-word;
    word-break: normal;
}

/* =========================================================
   STORY / HISTORY
   ========================================================= */

.story-container {
    gap: 45px;
}

.story-main-image {
    height: 390px;
}

/* =========================================================
   PAGE BANNERS
   ========================================================= */

.page-banner {
    height: 430px;
    min-height: 430px;
    margin-top: var(--nav-height);
}

.page-banner-content {
    width: min(90%, 900px);
    padding: 0 15px;
}

.page-banner-content h1 {
    font-size: clamp(42px, 5.5vw, 58px);
    line-height: 1.1;
}

.page-banner-content p {
    font-size: clamp(15px, 1.8vw, 20px);
}

/* =========================================================
   ACHIEVEMENTS
   ========================================================= */

.student-table {
    width: min(92%, 1000px);
    table-layout: fixed;
}

.student-table th,
.student-table td {
    padding: 13px 12px;
}

.student-table tbody td {
    font-size: 16px;
}

/* =========================================================
   TOP ACHIEVERS
   ========================================================= */

.top-achievers {
    width: min(92%, 1100px);
}

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

.facilities-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* =========================================================
   ADMISSION
   ========================================================= */

.admission-intro {
    gap: 40px;
}

.admission-table,
.documents-table table {
    width: 100%;
    table-layout: fixed;
}

.admission-table th,
.admission-table td,
.documents-table th,
.documents-table td {
    overflow-wrap: break-word;
}

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

.contact-query-container {
    gap: 50px;
}

.query-form-container {
    padding: 35px;
}

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

.professional-gallery {
    width: 100%;
}

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

.footer-content {
    width: min(90%, 1200px);
    margin: 0 auto;
}


/* =========================================================
   LAPTOP — 901px TO 1200px
   ========================================================= */

@media (min-width: 901px) and (max-width: 1200px) {

    :root {
        --nav-height: 70px;
        --page-gutter: 3.5%;
    }

    .navbar {
        gap: 15px;
    }

    .school-logo {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .logo span {
        font-size: 21px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .section {
        width: 92%;
        margin: 75px auto;
    }

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

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

    .founder-image-wrap {
        max-width: 920px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 22px;
    }

    .founder-card {
        max-width: 205px;
        min-height: 345px;
    }

    .founder-img {
        height: 245px;
    }

    .activities-container {
        grid-template-columns: 1.25fr 1fr;
    }

    .activities-gallery {
        gap: 12px;
        padding: 16px;
    }

    .activity-image-card img {
        height: 190px;
    }

    .principal-preview {
        height: 430px;
    }

    .principal-preview-right {
        padding: 30px;
    }

    .why-image img {
        height: 430px;
    }

    .faculty-section {
        width: 94%;
        padding: 60px 15px 75px;
    }

    .faculty-grid {
        max-width: 820px;
        grid-template-columns: repeat(4, 175px);
        column-gap: 35px;
        row-gap: 55px;
    }

    .faculty-card {
        width: 175px;
        max-width: 175px;
    }

    .faculty-image {
        width: 155px;
        height: 195px;
    }

    .faculty-card h3,
    .principal-area .faculty-card h3 {
        max-width: 175px;
        font-size: 16px;
    }

    .faculty-card p,
    .principal-area .faculty-card p {
        max-width: 175px;
        font-size: 13px;
    }

    .principal-area .faculty-card,
    .principal-area .faculty-image {
        width: 175px;
    }

    .principal-area .faculty-image {
        height: 195px;
    }

    .story-container {
        gap: 35px;
    }

    .story-main-image {
        height: 340px;
    }

    .facilities-gallery {
        gap: 20px;
    }

    .contact-query-container {
        gap: 35px;
    }
}


/* =========================================================
   TABLET — 601px TO 900px
   ========================================================= */

@media (min-width: 601px) and (max-width: 900px) {

    :root {
        --nav-height: 68px;
        --page-gutter: 25px;
    }

    .navbar {
        padding: 7px 25px;
    }

    .school-logo {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .logo span {
        font-size: 20px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 11px;
    }

    .language-selector select {
        max-width: 80px;
        font-size: 11px;
    }

    .section {
        width: 92%;
        margin: 65px auto;
    }

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

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

    .hero-content h1 {
        font-size: clamp(40px, 7vw, 58px);
    }

    .founder-image-wrap {
        max-width: 650px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
    }

    .founder-card {
        max-width: 190px;
        min-height: 325px;
    }

    .founder-img {
        height: 225px;
    }

    .about-grid,
    .why-wrapper,
    .admission-intro,
    .contact-query-container,
    .story-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .activities-container {
        grid-template-columns: 1fr;
    }

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

    .activity-image-card img {
        height: 220px;
    }

    .principal-preview {
        height: auto;
        grid-template-columns: 1fr 1fr;
    }

    .principal-preview-right {
        padding: 25px;
    }

    .why-image img {
        height: 400px;
    }

    .faculty-section {
        width: 94%;
        padding: 55px 12px 70px;
    }

    .faculty-grid {
        max-width: 650px;
        grid-template-columns: repeat(3, 180px);
        column-gap: 25px;
        row-gap: 50px;
    }

    .faculty-card {
        width: 180px;
        max-width: 180px;
    }

    .faculty-image {
        width: 150px;
        height: 185px;
    }

    .faculty-card h3,
    .principal-area .faculty-card h3 {
        max-width: 180px;
        font-size: 15px;
    }

    .faculty-card p,
    .principal-area .faculty-card p {
        max-width: 180px;
        font-size: 13px;
    }

    .principal-area .faculty-card {
        width: 180px;
    }

    .principal-area .faculty-image {
        width: 150px;
        height: 185px;
    }

    .story-main-image {
        height: 350px;
    }

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

    .facilities-gallery,
    .top-achievers {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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


/* =========================================================
   MOBILE — UP TO 600px
   ========================================================= */

@media (max-width: 600px) {

    :root {
        --nav-height: 64px;
    }

    body {
        font-size: 14px;
    }

    .section {
        width: calc(100% - 30px);
        margin: 55px auto;
    }

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

    .section-subtitle {
        font-size: 11px;
        letter-spacing: 2.5px;
    }

    .section-heading h2 {
        margin-top: 8px;
        font-size: clamp(28px, 8vw, 36px);
    }

    /* ---------- NAVBAR ---------- */

    .navbar {
        height: var(--nav-height);
        min-height: var(--nav-height);

        padding: 7px 12px;
        gap: 8px;
    }

    .logo {
        max-width: calc(100% - 52px);
        gap: 7px;
    }

    .school-logo {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        border-width: 2px;
    }

    .logo span {
        max-width: 100%;
        font-size: clamp(14px, 4.4vw, 18px);
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 42px;
        height: 42px;

        color: var(--white);
        font-size: 27px;
        line-height: 1;
    }

    .nav-links {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        max-height: 0;
        overflow: hidden;

        background: rgba(3, 3, 3, .98);

        transition: max-height .35s ease;
    }

    .nav-links.active {
        max-height: calc(100svh - var(--nav-height));
        overflow-y: auto;
    }

    .nav-links a {
        width: 100%;
        padding: 13px 22px;

        font-size: 14px;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .nav-links a::after {
        display: none;
    }

    .language-selector {
        padding: 12px 22px 16px;
    }

    .language-selector select {
        width: 100%;
        max-width: 180px;
    }

    /* ---------- HERO ---------- */

    .hero {
        min-height: 650px;
        height: 100svh;
    }

    .hero-content {
        width: calc(100% - 30px);
        padding: 0 5px;
    }

    .hero-tag {
        margin-bottom: 14px;
        padding: 7px 13px;
        font-size: 10px;
    }

    .hero-content h1 {
        margin-bottom: 12px;
        font-size: clamp(32px, 10vw, 46px);
        line-height: 1.1;
    }

    .hero-content p {
        font-size: 14px;
        line-height: 1.5;
    }

    .hero-scroll {
        bottom: 18px;
        font-size: 10px;
        letter-spacing: 2px;
    }

    /* ---------- FOUNDER ---------- */

    .founder-image-wrap {
        width: 100%;
        max-width: 390px;

        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
    }

    .founder-card {
        width: 100%;
        max-width: 180px;
        min-height: 300px;
        border-radius: 14px;
    }

    .founder-img {
        height: 205px;
    }

    .founder-card h3 {
        margin: 14px 8px 5px;
        font-size: 16px;
        line-height: 1.2;
    }

    .founder-card p {
        padding-bottom: 15px;
        font-size: 12px;
    }

    /* ---------- ABOUT ---------- */

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

    .about-left,
    .about-right {
        padding: 22px 18px;
    }

    .about-left p,
    .about-right p {
        font-size: 14px;
        line-height: 1.7;
    }

    .about-images,
    .about-stats {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .about-image {
        height: 230px;
    }

    /* ---------- ACTIVITIES ---------- */

    .activities-container {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .activities-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
        border-radius: 14px;
    }

    .activity-image-card img {
        height: 135px;
        border-radius: 8px;
    }

    .activity-image-card p {
        padding: 7px 2px 3px;
        font-size: 12px;
        line-height: 1.2;
    }

    .activity-image-card p::after {
        width: 35px;
        margin-top: 5px;
    }

    .activities-cards {
        gap: 12px;
    }

    .activity-item {
        gap: 13px;
        padding: 16px;
        border-radius: 14px;
    }

    .activity-icon {
        width: 52px;
        height: 52px;
        min-width: 52px;
    }

    .activity-icon i {
        font-size: 22px;
    }

    .activity-content h3 {
        margin-bottom: 4px;
        font-size: 19px;
    }

    .activity-content p {
        font-size: 12px;
        line-height: 1.55;
    }

    /* ---------- PRINCIPAL ---------- */

    .principal-preview {
        height: auto;
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .principal-card,
    .preview-img {
        width: 100%;
        height: 310px;
    }

    .principal-preview-right {
        height: auto;
        padding: 25px 20px 28px;
        align-items: center;
        text-align: center;
    }

    .preview-subtitle {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .principal-preview-right h2 {
        margin-bottom: 14px;
        font-size: 29px;
        line-height: 1.15;
    }

    .preview-text {
        margin-bottom: 16px;
        font-size: 13px;
        line-height: 1.65;
    }

    .read-more {
        font-size: 13px;
    }

    /* ---------- WHY ---------- */

    .why-wrapper {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .why-image img {
        height: 360px;
    }

    .why-content {
        gap: 12px;
    }

    .why-card {
        gap: 13px;
        padding: 15px;
        border-radius: 14px;
    }

    .why-card span {
        font-size: 25px;
    }

    .why-card h3 {
        margin-bottom: 4px;
        font-size: 15px;
    }

    .why-card p {
        font-size: 12px;
        line-height: 1.5;
    }

    /* ---------- MODAL ---------- */

    .modal {
        padding: 12px;
    }

    .modal-content {
        width: 100%;
        max-width: 650px;
        max-height: 92svh;
        padding: 25px 18px 22px;
        border-radius: 15px;
    }

    .close {
        top: 8px;
        right: 14px;
        font-size: 30px;
    }

    .modal-img {
        width: 115px;
        height: 115px;
    }

    .principal-header h3 {
        margin-top: 12px;
        font-size: 23px;
        line-height: 1.2;
    }

    .modal-content p {
        font-size: 13px;
        line-height: 1.7;
    }

    /* ---------- FACULTY ---------- */

    .faculty-section {
        width: 100%;
        padding: 55px 12px 70px;
    }

    .principal-area {
        margin-bottom: 40px;
    }

    .principal-area .faculty-card,
    .faculty-card {
        width: 100%;
        max-width: 175px;
    }

    .faculty-grid {
        width: 100%;
        max-width: 390px;

        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 18px;
        row-gap: 38px;
    }

    .faculty-image,
    .principal-area .faculty-image {
        width: 145px;
        height: 175px;
        max-width: 100%;
    }

    .faculty-card h3,
    .principal-area .faculty-card h3 {
        max-width: 175px;
        margin-top: 10px;
        font-size: 15px;
        line-height: 1.25;
    }

    .faculty-card p,
    .principal-area .faculty-card p {
        max-width: 175px;
        font-size: 12px;
        line-height: 1.35;
    }

    /* ---------- FACULTY TABLE ---------- */

    .faculty-table-section {
        padding: 55px 12px;
        overflow-x: hidden;
    }

    .faculty-table {
        width: 100%;
        table-layout: fixed;
    }

    .faculty-table th,
    .faculty-table td {
        padding: 9px 5px;
        font-size: 12px;
        line-height: 1.3;
        white-space: normal;
    }

    /* ---------- HISTORY ---------- */

    .story-section {
        padding: 55px 15px;
    }

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

    .story-left h2 {
        font-size: clamp(32px, 9vw, 44px);
    }

    .story-intro {
        font-size: 14px;
    }

    .story-timeline {
        padding-left: 35px;
    }

    .story-item {
        grid-template-columns: 58px 1fr;
        gap: 7px;
    }

    .story-year {
        font-size: 15px;
    }

    .story-text p {
        font-size: 13px;
        line-height: 1.6;
    }

    .story-main-image {
        height: 260px;
    }

    .story-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .story-card {
        min-height: 0;
        padding: 20px 16px;
    }

    .story-card p {
        font-size: 13px;
    }

    /* ---------- PAGE BANNER ---------- */

    .page-banner {
        height: 300px;
        min-height: 300px;
        margin-top: var(--nav-height);
    }

    .page-banner-content {
        width: 94%;
    }

    .page-banner-content h1 {
        font-size: clamp(34px, 10vw, 48px);
    }

    .page-banner-content p {
        font-size: 13px;
    }

    /* ---------- ACHIEVEMENTS ---------- */

    .achievement-text {
        margin-top: 45px;
        font-size: 13px;
    }

    .student-result-heading {
        padding: 0 5px;
        font-size: clamp(27px, 8vw, 36px);
    }

    .student-table {
        display: table;
        width: 100%;
        margin: 25px auto;
        table-layout: fixed;
    }

    .student-table th,
    .student-table td {
        padding: 9px 4px;
        font-size: 11px;
        line-height: 1.25;
    }

    .student-table tbody td {
        font-size: 12px;
    }

    /* ---------- ACHIEVERS ---------- */

    .top-achievers {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .achiever-image {
        width: 145px;
        height: 145px;
    }

    .achiever-card h3 {
        font-size: 21px;
    }

    .achiever-card p {
        font-size: 20px;
    }

    /* ---------- FACILITIES ---------- */

    .facilities-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .facility-gallery-card {
        height: 240px;
    }

    /* ---------- ADMISSION ---------- */

    .admission-intro {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .admission-text h2 {
        font-size: 34px;
    }

    .admission-text p {
        font-size: 14px;
    }

    .admission-table,
    .documents-table table {
        width: 100%;
        table-layout: fixed;
        font-size: 12px;
    }

    .admission-table th,
    .admission-table td,
    .documents-table th,
    .documents-table td {
        padding: 9px 4px;
        font-size: 11px;
        line-height: 1.3;
        white-space: normal;
        overflow-wrap: break-word;
    }

    /* ---------- CONTACT ---------- */

    .contact-query-section {
        padding: 55px 15px;
    }

    .contact-query-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-information {
        padding: 0;
    }

    .contact-information h2 {
        font-size: 38px;
    }

    .contact-intro,
    .contact-detail p {
        font-size: 14px;
    }

    .query-form-container {
        padding: 24px 17px;
    }

    /* ---------- GALLERY ---------- */

    .professional-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 230px;
        gap: 12px;
    }

    .gallery-featured {
        grid-column: span 1;
        grid-row: span 1;
    }

    /* ---------- FOOTER ---------- */

    .site-footer {
        padding-left: 15px;
        padding-right: 15px;
    }

    .footer-content {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .footer-left p {
        font-size: 13px;
    }

    .copyright {
        font-size: 11px;
    }
}


/* =========================================================
   SMALL PHONES — 320px TO 380px
   ========================================================= */

@media (max-width: 380px) {

    .navbar {
        padding-left: 9px;
        padding-right: 9px;
    }

    .school-logo {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
    }

    .logo span {
        font-size: 14px;
    }

    .menu-toggle {
        width: 40px;
        flex-basis: 40px;
        font-size: 25px;
    }

    .section {
        width: calc(100% - 24px);
    }

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

    .hero {
        min-height: 580px;
    }

    .hero-content h1 {
        font-size: 31px;
    }

    .founder-image-wrap {
        max-width: 340px;
        column-gap: 8px;
        row-gap: 28px;
    }

    .founder-card {
        max-width: 165px;
        min-height: 285px;
    }

    .founder-img {
        height: 185px;
    }

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

    .activities-gallery {
        gap: 6px;
        padding: 8px;
    }

    .activity-image-card img {
        height: 120px;
    }

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

    .activity-item {
        padding: 13px;
    }

    .activity-icon {
        width: 46px;
        height: 46px;
        min-width: 46px;
    }

    .activity-content h3 {
        font-size: 17px;
    }

    .activity-content p {
        font-size: 11px;
    }

    .principal-card,
    .preview-img {
        height: 270px;
    }

    .principal-preview-right {
        padding: 22px 15px 25px;
    }

    .principal-preview-right h2 {
        font-size: 27px;
    }

    .why-image img {
        height: 320px;
    }

    .faculty-grid {
        max-width: 350px;
        column-gap: 10px;
        row-gap: 32px;
    }

    .faculty-card,
    .principal-area .faculty-card {
        max-width: 160px;
    }

    .faculty-image,
    .principal-area .faculty-image {
        width: 135px;
        height: 165px;
    }

    .faculty-card h3,
    .principal-area .faculty-card h3 {
        max-width: 160px;
        font-size: 13px;
    }

    .faculty-card p,
    .principal-area .faculty-card p {
        max-width: 160px;
        font-size: 11px;
    }

    .student-table th,
    .student-table td,
    .faculty-table th,
    .faculty-table td,
    .admission-table th,
    .admission-table td,
    .documents-table th,
    .documents-table td {
        padding: 7px 3px;
        font-size: 10px;
    }

    .page-banner {
        height: 270px;
        min-height: 270px;
    }

    .page-banner-content h1 {
        font-size: 32px;
    }

    .story-main-image {
        height: 230px;
    }
}


/* =========================================================
   VERY WIDE SCREENS
   ========================================================= */

@media (min-width: 1400px) {

    .navbar {
        padding-left: 6%;
        padding-right: 6%;
    }

    .section {
        max-width: 1250px;
    }

    .founder-image-wrap {
        max-width: 1200px;
    }

    .faculty-section {
        max-width: 1320px;
    }
}


/* =========================================================
   ACCESSIBILITY / STABILITY
   ========================================================= */

button,
a,
select,
input,
textarea {
    -webkit-tap-highlight-color: transparent;
}

textarea {
    resize: vertical;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* =========================================================
   END CLEAN RESPONSIVE SYSTEM
   ========================================================= */

/* =========================================================
   DESKTOP NAVBAR — SLIGHTLY LARGER
   Laptop size remains unchanged
   ========================================================= */
@media (min-width: 1201px) {
    .navbar {
        height: 82px;
        min-height: 82px;
        padding: 9px 5%;
    }

    :root {
        --nav-height: 82px;
    }

    .navbar .school-logo {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }

    .navbar .logo {
        gap: 11px;
        margin-right: 32px;
    }

    .navbar .logo span {
        font-size: 27px;
        line-height: 1.1;
    }

    .navbar .nav-links {
        gap: 20px;
    }

    .navbar .nav-links a {
        font-size: 14px;
    }

    .navbar .language-selector select {
        font-size: 13px;
        padding: 7px 10px;
    }
}

@media (min-width: 1201px) {
    .navbar .nav-links a {
        font-size: 20px !important;
    }
}