/* ============================================================
   MDBSSS - Maharaja Devi Bux Singh Smarak Sansthan
   Main Stylesheet
   ============================================================ */

/* --- Variables --- */
:root {
    --maroon: #7b1c1c;
    --maroon-dark: #5a1212;
    --maroon-light: #9e2a2a;
    --gold: #c9a227;
    --gold-light: #e4be5a;
    --gold-dark: #a07d0f;
    --cream: #fdf8f0;
    --white: #ffffff;
    --text-dark: #1a1a2e;
    --text-mid: #3d3d3d;
    --text-light: #6b6b6b;
    --border: #e0d5c5;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.18);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
    color: var(--text-mid);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.section-pad {
    padding: 5rem 0;
}

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

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(123, 28, 28, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
    color: var(--gold-light);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.3rem 1.2rem;
    border-radius: 20px;
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
}

.title-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--maroon), var(--gold));
    margin: 0 auto;
    border-radius: 2px;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    padding: 0.45rem 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.top-bar-left {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.top-bar-left i {
    color: var(--gold-light);
}

.top-bar-right {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.top-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 0.25rem 0.8rem;
    border-radius: 4px;
    font-size: 0.78rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.top-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.top-btn-accent {
    background: var(--gold);
    color: var(--maroon-dark) !important;
    font-weight: 600;
    border-color: var(--gold);
}

.top-btn-accent:hover {
    background: var(--gold-light);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: linear-gradient(135deg, #fff 0%, var(--cream) 100%);
    padding: 1rem 0;
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 50%;
    border: 3px solid var(--gold);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(123, 28, 28, 0.2);
}

.header-title {
    flex: 1;
}

.college-name-hi {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: var(--maroon);
    line-height: 1.3;
}

.college-name-en {
    font-size: clamp(0.75rem, 1.8vw, 1.1rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 0.1rem;
}

.affiliation {
    font-size: clamp(0.65rem, 1.2vw, 0.82rem);
    color: var(--text-light);
    margin-top: 0.3rem;
}

.affiliation strong {
    color: var(--maroon);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.nav-inner {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-menu {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
}

.nav-menu>li>a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.83rem;
    font-weight: 500;
    padding: 1rem 0.85rem;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-menu>li>a:hover,
.nav-menu>li>a.active {
    color: var(--gold-light);
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu>li>a.active {
    border-bottom: 3px solid var(--gold);
}

.nav-menu>li>a i {
    font-size: 0.65rem;
    transition: var(--transition);
}

.has-dropdown:hover>a i {
    transform: rotate(180deg);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 210px;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 999;
    border-top: 3px solid var(--gold);
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 0.65rem 1.2rem;
    font-size: 0.84rem;
    color: var(--text-dark);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.dropdown li a:hover {
    background: var(--cream);
    color: var(--maroon);
    border-left-color: var(--gold);
    padding-left: 1.5rem;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 1rem;
    margin-left: auto;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   NEWS TICKER
   ============================================================ */
.news-ticker {
    background: var(--cream);
    border-bottom: 2px solid var(--gold);
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 40px;
}

.ticker-label {
    background: var(--gold);
    color: var(--maroon-dark);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    font-size: 0.82rem;
    color: var(--text-dark);
    animation: ticker 30s linear infinite;
    padding-left: 100%;
}

.ticker-content span {
    margin-right: 2rem;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.ticker-content:hover {
    animation-play-state: paused;
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 520px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(90, 18, 18, 0.75) 0%, rgba(123, 28, 28, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content {
    text-align: center;
    color: #fff;
    padding: 0 1.5rem;
    animation: fadeUp 0.8s ease;
}

.slide-content h2 {
    font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
    font-size: clamp(1.4rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.slide-content p {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.btn-hero {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--maroon-dark);
    padding: 0.8rem 2.2rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.5);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 162, 39, 0.6);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    z-index: 5;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--maroon-dark);
}

.prev {
    left: 1.5rem;
}

.next {
    right: 1.5rem;
}

.slider-dots {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--gold);
    transform: scale(1.3);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
    background: var(--cream);
}

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

.about-img-wrap {
    position: relative;
}

.about-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.about-badge {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
    color: var(--white);
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    box-shadow: var(--shadow);
}

.about-badge i {
    font-size: 1.8rem;
    color: var(--gold-light);
}

.about-badge span {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;
}

.about-content h3 {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 1.4rem;
    color: var(--maroon);
    margin-bottom: 1rem;
}

.about-content p {
    color: var(--text-mid);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--white);
    padding: 0.7rem 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--gold);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dark);
}

.feature-item i {
    color: var(--maroon);
    font-size: 1rem;
}

/* ============================================================
   NEWS & KEY LEADERSHIP SECTION (Homepage 50-50)
   ============================================================ */
.news-leadership-section {
    background: var(--white);
}

.news-leadership-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
}

/* Panel Header (shared by both panels) */
.panel-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
    border-radius: var(--radius) var(--radius) 0 0;
    color: var(--white);
}

.panel-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.panel-icon i {
    font-size: 1.1rem;
    color: var(--gold-light);
}

.panel-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
}

.panel-badge {
    background: rgba(201, 162, 39, 0.25);
    color: var(--gold-light);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* News Panel */
.news-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.news-scroll-container {
    height: 340px;
    overflow: hidden;
    position: relative;
    flex: 1;
}

.news-scroll-inner {
    animation: newsScroll 20s linear infinite;
    padding: 0.5rem 0;
}

.news-scroll-container:hover .news-scroll-inner {
    animation-play-state: paused;
}

@keyframes newsScroll {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

.news-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    cursor: default;
}

.news-item:hover {
    background: var(--cream);
}

.news-date {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--white);
    box-shadow: 0 3px 10px rgba(123, 28, 28, 0.25);
}

.news-day {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.news-month {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.news-content h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
}

.news-content p {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.panel-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    background: var(--cream);
    color: var(--maroon);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    border-top: 1px solid var(--border);
}

.panel-link:hover {
    background: var(--maroon);
    color: var(--gold-light);
}

.panel-link i {
    font-size: 0.75rem;
    transition: var(--transition);
}

.panel-link:hover i {
    transform: translateX(4px);
}

/* Key Management Panel */
.key-mgmt-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.key-mgmt-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    padding: 1.5rem;
    flex: 1;
}

.key-leader-card {
    background: var(--cream);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.key-leader-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.key-leader-img {
    position: relative;
    height: 230px;
    overflow: hidden;
}

.key-leader-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.key-leader-ribbon {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--maroon-dark), rgba(123, 28, 28, 0.9));
    color: var(--gold-light);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.35rem 0.8rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.key-leader-info {
    padding: 1rem;
    text-align: center;
}

.key-leader-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.key-leader-info span {
    display: block;
    font-size: 0.75rem;
    color: var(--maroon);
    font-weight: 600;
    font-family: 'Noto Sans Devanagari', sans-serif;
    margin-bottom: 0.3rem;
}

.key-leader-info p {
    font-size: 0.75rem;
    color: var(--text-light);
}

.key-mgmt-tagline {
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    border-top: 1px solid var(--border);
    background: var(--cream);
    text-align: center;
}

.key-mgmt-tagline i {
    color: var(--gold);
    margin-right: 0.3rem;
}

/* ============================================================
   MANAGEMENT SECTION
   ============================================================ */
.management-section {
    background: var(--white);
}

.management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
    gap: 2.5rem;
    justify-content: center;
}

.mgmt-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
}

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

.mgmt-img-wrap {
    background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mgmt-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.mgmt-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--gold);
}

.founder-avatar,
.manager-avatar {
    background: rgba(255, 255, 255, 0.15);
}

.mgmt-avatar i {
    font-size: 3rem;
    color: var(--gold-light);
}

.mgmt-info {
    padding: 1.5rem;
}

.mgmt-info h4 {
    font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.mgmt-role {
    display: inline-block;
    background: var(--cream);
    color: var(--maroon);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    border: 1px solid var(--gold);
    margin-bottom: 0.8rem;
}

.mgmt-info p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ============================================================
   COURSES SECTION
   ============================================================ */
.courses-section {
    background: linear-gradient(135deg, #0f0f1e 0%, #1a0a0a 100%);
}

.courses-section .section-title {
    color: var(--white);
}

.courses-section .section-tag {
    background: rgba(201, 162, 39, 0.2);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.course-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--maroon), var(--gold));
}

.course-card.featured {
    background: rgba(201, 162, 39, 0.1);
    border-color: var(--gold);
    transform: scale(1.03);
}

.course-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
}

.course-card.featured:hover {
    transform: translateY(-6px) scale(1.05);
}

.course-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    border: 2px solid var(--gold);
}

.course-icon i {
    font-size: 1.5rem;
    color: var(--gold-light);
}

.course-card h3 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.course-sub {
    font-size: 0.78rem;
    color: var(--gold-light);
    margin-bottom: 1.2rem;
}

.subject-list {
    margin-bottom: 1.5rem;
}

.subject-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.subject-list li i {
    font-size: 0.5rem;
    color: var(--gold);
}

.btn-course {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--maroon-dark);
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
}

.btn-course:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 162, 39, 0.4);
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
    padding: 3.5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    color: var(--white);
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--gold-light);
    margin-bottom: 0.8rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
}

.stat-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.3rem;
}

/* ============================================================
   GALLERY SECTION
   ============================================================ */
.gallery-section {
    background: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(90, 18, 18, 0.8), rgba(201, 162, 39, 0.5));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: var(--transition);
    color: var(--white);
}

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

.gallery-overlay i {
    font-size: 1.8rem;
}

.gallery-overlay span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ============================================================
   CONTACT STRIP
   ============================================================ */
.contact-strip {
    background: linear-gradient(135deg, var(--text-dark), #2d1b1b);
    padding: 3rem 0;
}

.contact-strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.contact-strip-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--white);
}

.contact-strip-item>i {
    font-size: 1.8rem;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.contact-strip-item h4 {
    font-size: 0.9rem;
    color: var(--gold-light);
    margin-bottom: 0.3rem;
}

.contact-strip-item p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: linear-gradient(135deg, #12060d, #1a0f0f);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    margin-bottom: 1rem;
    object-fit: contain;
}

.footer-about h3 {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 1rem;
    color: var(--gold-light);
    margin-bottom: 0.8rem;
}

.footer-about p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
}

.footer-col h4 {
    color: var(--gold-light);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.footer-links a i {
    color: var(--gold);
    font-size: 0.7rem;
}

.footer-links a:hover {
    color: var(--gold-light);
    padding-left: 0.4rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 0.9rem;
}

.footer-contact-item i {
    color: var(--gold);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.footer-contact-item p {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.65);
}

.footer-bottom {
    text-align: center;
    padding: 1.2rem 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.82rem;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--gold);
    transform: rotate(90deg);
}

/* ============================================================
   SUB-PAGE BANNER
   ============================================================ */
.page-banner {
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.page-banner h1 {
    font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.page-banner p {
    color: var(--gold-light);
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--gold-light);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

.breadcrumb .current {
    color: var(--gold-light);
    font-weight: 600;
    font-size: 0.85rem;
}

/* ============================================================
   SUB-PAGE CONTENT
   ============================================================ */
.page-content {
    padding: 4rem 0;
}

.page-content.alt-bg {
    background: var(--cream);
}

.content-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.content-card h2 {
    font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: var(--maroon);
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

.content-card h3 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin: 1.5rem 0 0.8rem;
}

.content-card p {
    font-size: 0.95rem;
    color: var(--text-mid);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-card ul {
    margin-bottom: 1rem;
}

.content-card ul li {
    padding: 0.4rem 0;
    font-size: 0.92rem;
    color: var(--text-mid);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.content-card ul li i {
    color: var(--gold);
    font-size: 0.6rem;
    margin-top: 0.45rem;
    flex-shrink: 0;
}

/* Profile Card (for Founder/Manager/Principal pages) */
.profile-section {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.profile-img-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--gold);
}

.profile-img-wrap img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.profile-details h2 {
    font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
    font-size: 1.6rem;
    color: var(--maroon);
    margin-bottom: 0.3rem;
}

.profile-details .profile-role {
    display: inline-block;
    background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
    color: var(--gold-light);
    padding: 0.3rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.profile-details p {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ============================================================
   COMMITTEE TABLES
   ============================================================ */
.committee-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.88rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.committee-table thead {
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
    color: var(--white);
}

.committee-table thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

.committee-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.committee-table tbody tr:nth-child(even) {
    background: var(--cream);
}

.committee-table tbody tr:hover {
    background: rgba(201, 162, 39, 0.08);
}

.committee-table tbody td {
    padding: 0.85rem 1rem;
    color: var(--text-mid);
    vertical-align: top;
}

.committee-table a {
    color: var(--maroon);
    font-weight: 500;
    transition: var(--transition);
}

.committee-table a:hover {
    color: var(--gold-dark);
}

/* ============================================================
   STAFF CARDS
   ============================================================ */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.staff-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    transition: var(--transition);
}

.staff-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.staff-card h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.staff-card .staff-subject {
    color: var(--maroon);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.staff-card .staff-contact {
    font-size: 0.82rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.staff-card .staff-contact i {
    color: var(--gold);
    font-size: 0.75rem;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.contact-info-card i {
    font-size: 2.5rem;
    color: var(--maroon);
    margin-bottom: 1rem;
    background: var(--cream);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gold);
}

.contact-info-card h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-info-card p {
    font-size: 0.88rem;
    color: var(--text-light);
}

.contact-form-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.contact-form h3 {
    font-size: 1.3rem;
    color: var(--maroon);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--cream);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.btn-submit {
    display: inline-block;
    background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
    color: var(--white);
    padding: 0.85rem 2.5rem;
    border: none;
    border-radius: 30px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(123, 28, 28, 0.3);
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--white);
    transform: translateY(-2px);
}

.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
    min-height: 400px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================================
   FEE TABLE
   ============================================================ */
.fee-table-wrap {
    margin-bottom: 2.5rem;
}

.fee-table-wrap h3 {
    font-size: 1.2rem;
    color: var(--maroon);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.fee-table-wrap h3 i {
    color: var(--gold);
}

.fee-total {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
    color: var(--white);
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 0.5rem;
    box-shadow: 0 3px 10px rgba(123, 28, 28, 0.2);
}

.fee-total i {
    color: var(--gold-light);
}

/* Gallery page full */
.gallery-full-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-full-grid .gallery-item {
    aspect-ratio: 4/3;
}

/* Single image gallery page */
.gallery-single-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.gallery-single-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* NCC NSS section */
.ncc-nss-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
}

.ncc-nss-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.ncc-nss-card .card-img {
    height: 200px;
    overflow: hidden;
}

.ncc-nss-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--cream);
    padding: 1rem;
}

.ncc-nss-card .card-body {
    padding: 1.5rem;
}

.ncc-nss-card .card-body h3 {
    font-size: 1.2rem;
    color: var(--maroon);
    margin-bottom: 0.8rem;
}

.ncc-nss-card .card-body p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .nav-menu>li>a {
        padding: 1rem 0.6rem;
        font-size: 0.78rem;
    }

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

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-badge {
        right: 0;
        bottom: -2rem;
    }

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

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

    .course-card.featured {
        transform: none;
    }

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

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

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

    /* Mobile Navbar */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, var(--maroon-dark) 0%, #2a0e0e 100%);
        flex-direction: column;
        align-items: flex-start;
        padding-top: 60px;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-menu>li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .nav-menu>li>a {
        padding: 0.95rem 1.5rem;
        font-size: 0.9rem;
        justify-content: space-between;
    }

    .has-dropdown>a i {
        margin-left: auto;
        transition: transform 0.3s ease;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        border-top: none;
        background: rgba(0, 0, 0, 0.25);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .dropdown.open {
        max-height: 500px;
    }

    .dropdown li a {
        color: rgba(255, 255, 255, 0.8);
        border-left: none;
        padding: 0.7rem 2rem;
        font-size: 0.85rem;
    }

    .dropdown li a:hover {
        background: rgba(255, 255, 255, 0.08);
        padding-left: 2.5rem;
        color: var(--gold-light);
    }

    /* News & Leadership */
    .news-leadership-grid {
        grid-template-columns: 1fr;
    }

    /* Profile */
    .profile-section {
        grid-template-columns: 1fr;
    }

    .profile-img-wrap {
        max-width: 300px;
        margin: 0 auto;
    }

    /* Contact */
    .contact-form-section {
        grid-template-columns: 1fr;
    }

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

    /* NCC NSS */
    .ncc-nss-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .slider-container {
        height: 320px;
    }

    .top-bar-right {
        display: none;
    }

    .top-bar-left {
        font-size: 0.72rem;
        gap: 0.7rem;
    }

    .about-img {
        height: 250px;
    }

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

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

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

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

    .contact-strip-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .header-inner {
        gap: 0.8rem;
    }

    .logo-img {
        width: 70px;
        height: 70px;
    }

    .key-mgmt-cards {
        grid-template-columns: 1fr;
    }

    .content-card {
        padding: 1.5rem;
    }

    .page-banner {
        padding: 2rem 0;
    }

    /* Table responsive */
    .committee-table {
        font-size: 0.78rem;
    }

    .committee-table thead th,
    .committee-table tbody td {
        padding: 0.6rem 0.5rem;
    }

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

@media (max-width: 420px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

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

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