/* ============== ROOT VARIABLES ============== */
:root {
    --primary: #a4243b;
    --primary-dark: #871b30;
    --secondary: #0e70c7;
    --secondary-dark: #0a5aa3;
    --dark: #1a1a2e;
    --light: #f7f7fa;
    --white: #ffffff;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; font-weight: 700; }

a { text-decoration: none; color: inherit; transition: var(--transition); }

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

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2 span { color: var(--primary); }

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-title p { color: var(--gray); font-size: 1rem; max-width: 600px; margin: 0 auto; }

/* ============== ROW 1: TOP BAR ============== */
.top-bar {
    background: linear-gradient(90deg, var(--dark) 0%, #2d2d4a 100%);
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 2px solid var(--primary);
    position: relative;
    z-index: 1100;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-links, .top-utils { display: flex; gap: 0; flex-wrap: wrap; align-items: center; }

.top-links a, .top-utils a {
    color: rgba(255,255,255,0.85);
    padding: 4px 12px;
    border-right: 1px solid rgba(255,255,255,0.2);
    font-weight: 500;
}

.top-links a:last-child, .top-utils a:last-child { border-right: none; }

.top-links a:hover, .top-utils a:hover { color: #ffd700; }

.top-utils a i { margin-right: 5px; }

/* ============== ROW 2: LOGO HEADER ============== */
.logo-header {
    background: #fbf8f0;
    padding: 18px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(164,36,59,0.08);
}

.logo-header .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: nowrap;
}

.logo-left, .logo-right, .logo-naac {
    flex-shrink: 0;
    display: block;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
}
.logo-left:hover img, .logo-right:hover img, .logo-naac:hover img { transform: scale(1.05); }

/* Base logo image styles (size set per-logo below) */
.logo-img {
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    transition: var(--transition);
}

/* All 3 logos forced into IDENTICAL 90px circles - guaranteed visual uniformity */
.logo-header .logo-left .logo-img,
.logo-header .logo-right .logo-img,
.logo-header .logo-naac .logo-img {
    height: 90px;
    width: 90px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    background: rgba(255, 255, 255, 0.5);
}

/* NAAC: shift focus UP so circle visible, ribbon cropped out */
.logo-header .logo-naac .logo-img {
    object-position: center 28%;
}

.logo-center {
    text-align: center;
    min-width: 0;
    flex-shrink: 1;
    padding: 0 4px;
}

.logo-center h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.4rem;
    color: var(--primary);
    line-height: 1.1;
    margin: 0 0 8px;
    font-weight: 800;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: none;
}

/* PLATINUM JUBILEE - small, bold, compact under logo */
.jubilee-text {
    margin-top: 4px;
    font-size: 0.6rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-align: center;
    line-height: 1.15;
    width: 90px;
    background: linear-gradient(
        90deg,
        #dc2626 0%,
        #f59e0b 25%,
        #16a34a 50%,
        #2563eb 75%,
        #7c3aed 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: jubileeRainbow 4s linear infinite;
}
.jubilee-text span {
    display: inline-block;
    animation: jubileeBounce 1.8s ease-in-out infinite;
}
.jubilee-text span:nth-child(2) { animation-delay: 0.2s; }
.jubilee-text span:nth-child(3) { animation-delay: 0.4s; }

@keyframes jubileeRainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
@keyframes jubileeBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.logo-center .subtitle {
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 6px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.4;
    white-space: nowrap;
}

.logo-center .naac-line {
    color: var(--secondary);
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.3px;
}

/* Legacy classes hidden */
.contact-info { display: none !important; }

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

.contact-item .icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-item:nth-child(2) .icon {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
}

.contact-item .text small { display: block; color: var(--gray); font-size: 0.75rem; font-weight: 500; }

.contact-item .text strong { color: var(--dark); font-size: 0.95rem; font-weight: 600; }

/* ============== ROW 3: MAIN NAVIGATION ============== */
.main-nav {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-dark) 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-menu {
    display: flex;
    list-style: none;
    flex-wrap: nowrap;
    flex: 1;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    color: #fff;
    padding: 15px 10px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
    position: relative;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #ffd700;
    transition: var(--transition);
}

.nav-menu > li:hover > a::after { width: 80%; }

.nav-menu > li:hover > a { background: rgba(0,0,0,0.15); }

.nav-menu > li > a i { font-size: 0.62rem; margin-left: 3px; opacity: 0.85; }

/* Dropdowns */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    border-top: 3px solid var(--secondary);
    z-index: 999;
}

.nav-menu > li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li { list-style: none; position: relative; }

.dropdown a {
    display: block;
    padding: 11px 18px;
    color: #333;
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 1px solid var(--gray-light);
    transition: var(--transition);
}

.dropdown a:hover {
    background: var(--secondary);
    color: #fff;
    padding-left: 25px;
}

/* Submenu */
.dropdown li.has-sub > a::after {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    float: right;
}

.sub-dropdown {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 240px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border-left: 3px solid var(--primary);
}

.dropdown li.has-sub:hover .sub-dropdown {
    opacity: 1;
    visibility: visible;
}

/* Mobile menu toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    padding: 10px 20px;
    cursor: pointer;
}

.search-btn {
    background: var(--secondary);
    color: #fff;
    border: none;
    padding: 16px 18px;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover { background: var(--secondary-dark); }

/* ============== ROW 4: BANNER SLIDER ============== */
.banner {
    position: relative;
    overflow: hidden;
    background: #000;
}

.slider {
    position: relative;
    width: 100%;
    height: 550px;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active { opacity: 1; }

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

.slide-overlay {
    display: none;
}

.slide-content {
    color: #fff;
    max-width: 600px;
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-content .tag {
    display: inline-block;
    background: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slide-content h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.slide-content p { font-size: 1.1rem; margin-bottom: 25px; opacity: 0.95; }

.slide-content .btn-group { display: flex; gap: 15px; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(164,36,59,0.4); }

.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }

.slider-nav {
    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: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.slider-nav:hover { background: var(--primary); border-color: var(--primary); }

.slider-nav.prev { left: 20px; }
.slider-nav.next { right: 20px; }

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

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

.slider-dots .dot.active { background: var(--primary); width: 35px; border-radius: 6px; }

/* Quick links bar */
.quick-links {
    background: linear-gradient(90deg, var(--secondary-dark) 0%, var(--secondary) 100%);
    padding: 0;
    margin-top: -1px;
}

.quick-links .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.quick-link {
    color: #fff;
    padding: 18px 20px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.15);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.quick-link:last-child { border-right: none; }
.quick-link:hover { background: rgba(0,0,0,0.2); }
.quick-link i { font-size: 1.2rem; }

/* ============== ROW 5: WELCOME SECTION ============== */
.welcome { padding: 70px 0; background: var(--white); }

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

.welcome-images {
    position: relative;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: 1.1fr 1.1fr 0.8fr;
    gap: 12px;
    height: 540px;
}

.welcome-images img {
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-images img:hover { transform: scale(1.02); }

.welcome-images .img-1 {
    grid-row: 1 / 4;
    grid-column: 1 / 2;
}

.welcome-images .img-2 {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
    border: 6px solid #fff;
}

.welcome-images .badge {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(164,36,59,0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.welcome-images .badge h3 {
    font-size: 2.8rem;
    line-height: 1;
    color: #fff;
    margin-bottom: 4px;
}

.welcome-images .badge p { font-size: 0.85rem; margin: 0; font-weight: 500; letter-spacing: 0.5px; }

/* Welcome logo-box (replaces badge with college logo image) */
.welcome-images .logo-box {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: var(--transition);
}
.welcome-images .logo-box:hover { transform: scale(1.02); }
.welcome-images .logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    display: block;
}

/* Welcome name-card (college name in English - row 3 of right column) */
.welcome-images .name-card {
    grid-row: 3 / 4;
    grid-column: 2 / 3;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 14px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 12px 28px rgba(164, 36, 59, 0.3);
    transition: var(--transition);
}
.welcome-images .name-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(164, 36, 59, 0.4); }
.welcome-images .name-card .nc-title {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    margin: 0 0 4px;
    letter-spacing: 0.5px;
    line-height: 1.15;
}
.welcome-images .name-card .nc-sub {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.72rem;
    margin: 0;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.welcome-text .subhead {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.welcome-text h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.welcome-text h2 span { color: var(--primary); }

.welcome-text p { color: var(--gray); margin-bottom: 15px; font-size: 0.98rem; }

.welcome-text .features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 25px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--light);
    padding: 12px 18px;
    border-radius: 10px;
    border-left: 4px solid var(--secondary);
}

.feature-item i { color: var(--secondary); font-size: 1.3rem; }
.feature-item span { font-weight: 600; font-size: 0.9rem; }

/* ============== ROW 6: 3 COLUMNS - NOTICE/LNMU/DOWNLOAD ============== */
.info-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
}

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

.info-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 480px;
}

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

.info-card-header {
    padding: 20px 25px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.info-card-header h3 { color: #fff; font-size: 1.4rem; }
.info-card-header i { font-size: 1.6rem; opacity: 0.7; }

.notice-card .info-card-header { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.lnmu-card .info-card-header { background: linear-gradient(135deg, var(--secondary), var(--secondary-dark)); }
.download-card .info-card-header { background: linear-gradient(135deg, #2c3e50, #34495e); }

.info-card-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.info-card-body::-webkit-scrollbar { width: 6px; }
.info-card-body::-webkit-scrollbar-track { background: var(--light); }
.info-card-body::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

.notice-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--gray-light);
    transition: var(--transition);
}

.notice-item:hover { background: #fef5f7; padding-left: 8px; }

.notice-date {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    text-align: center;
    flex-shrink: 0;
    min-width: 55px;
    height: fit-content;
}

.lnmu-card .notice-date { background: linear-gradient(135deg, var(--secondary), var(--secondary-dark)); }
.download-card .notice-date { background: linear-gradient(135deg, #2c3e50, #34495e); }

.notice-date .day { font-size: 1.1rem; font-weight: 700; line-height: 1; display: block; }
.notice-date .month { font-size: 0.65rem; text-transform: uppercase; }

.notice-text { font-size: 0.88rem; color: #333; line-height: 1.4; }
.notice-text:hover { color: var(--primary); }

.notice-text .new-tag {
    display: inline-block;
    background: #ff6b6b;
    color: #fff;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    margin-left: 5px;
    animation: blink 1.5s infinite;
}

@keyframes blink { 50% { opacity: 0.5; } }

.info-card-footer {
    padding: 12px 20px;
    background: var(--light);
    text-align: center;
    border-top: 1px solid var(--gray-light);
}

.info-card-footer a {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-card-footer a:hover { color: var(--secondary); }
.info-card-footer a i { margin-left: 5px; transition: var(--transition); }
.info-card-footer a:hover i { transform: translateX(5px); }

/* ============== ROW 7: CHANCELLOR / VC / PRINCIPAL ============== */
.leadership { padding: 70px 0; background: var(--white); }

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

.leader-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--gray-light);
}

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

.leader-photo {
    position: relative;
    overflow: hidden;
    height: 380px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.leader-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    transition: var(--transition);
}

.leader-card:hover .leader-photo img { transform: scale(1.03); }

.leader-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
    letter-spacing: 0.5px;
}

.leader-card:nth-child(2) .leader-badge { background: var(--secondary); }
.leader-card:nth-child(3) .leader-badge { background: #2c3e50; }

.leader-body { padding: 25px; }

.leader-body h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.leader-body .designation {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.leader-card:nth-child(2) .designation { color: var(--secondary); }

.leader-body p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 18px;
    font-style: italic;
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 0;
    border-bottom: 2px solid var(--primary);
}

.read-more:hover { color: var(--secondary); border-bottom-color: var(--secondary); gap: 14px; }

/* ============== ROW 8: MEDIA GALLERY ============== */
.media-gallery {
    padding: 70px 0;
    background: linear-gradient(135deg, var(--dark) 0%, #2d2d4a 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.media-gallery::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(164,36,59,0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(14,112,199,0.15) 0%, transparent 40%);
}

.media-gallery .container { position: relative; z-index: 2; }

.media-gallery .section-title h2 { color: #fff; }
.media-gallery .section-title p { color: rgba(255,255,255,0.7); }

.media-scroll-wrap {
    position: relative;
    margin: 0 -20px;
    padding: 20px;
    overflow: hidden;
}

.media-scroll {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(255,255,255,0.1);
}

.media-scroll::-webkit-scrollbar { height: 8px; }
.media-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,0.1); border-radius: 4px; }
.media-scroll::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

.media-item {
    flex: 0 0 320px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    color: #333;
}

.media-item:hover { transform: translateY(-8px); }

.media-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.media-thumb .play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.media-thumb .play-overlay i {
    color: #fff;
    font-size: 3rem;
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition);
}

.media-item:hover .play-overlay { background: rgba(0,0,0,0.5); }
.media-item:hover .play-overlay i { opacity: 1; transform: scale(1); }

.media-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.media-body { padding: 20px; }
.media-body h4 { font-size: 1.05rem; color: var(--dark); margin-bottom: 6px; line-height: 1.3; }
.media-body .media-date { color: var(--primary); font-size: 0.78rem; font-weight: 600; }

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 5;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.scroll-btn:hover { background: var(--primary-dark); transform: translateY(-50%) scale(1.1); }
.scroll-btn.left { left: 5px; }
.scroll-btn.right { right: 5px; }

/* ============== ROW 9: COLLEGE EVENTS ============== */
.events-section { padding: 70px 0; background: var(--light); }

.events-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.tab-btn {
    background: #fff;
    border: 2px solid var(--gray-light);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    color: var(--dark);
}

.tab-btn.active, .tab-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(164,36,59,0.3);
}

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

.event-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.event-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.event-card:hover .event-thumb img { transform: scale(1.08); }

.event-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    color: var(--primary);
    padding: 10px 14px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    min-width: 60px;
}

.event-date .day { display: block; font-size: 1.3rem; font-weight: 800; line-height: 1; }
.event-date .month { font-size: 0.7rem; text-transform: uppercase; font-weight: 600; }

.event-body { padding: 20px; }
.event-body h4 { font-size: 1.05rem; color: var(--dark); margin-bottom: 10px; line-height: 1.3; min-height: 50px; }
.event-meta { display: flex; align-items: center; gap: 8px; color: var(--gray); font-size: 0.8rem; margin-bottom: 12px; }
.event-meta i { color: var(--primary); }

.event-view-all { text-align: center; margin-top: 35px; }

/* ============== ROW 10: USEFUL LINKS ============== */
.useful-links {
    padding: 70px 0;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

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

.link-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.link-card:hover { transform: translateY(-10px); }
.link-card:hover::before { opacity: 1; }
.link-card:hover * { color: #fff !important; position: relative; z-index: 1; }

.link-card:nth-child(odd) { border-top-color: var(--primary); }
.link-card:nth-child(even) { border-top-color: var(--secondary); }

.link-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.link-card:nth-child(even) .link-icon { background: linear-gradient(135deg, var(--secondary), var(--secondary-dark)); }

.link-card:hover .link-icon {
    background: rgba(255,255,255,0.2) !important;
    transform: scale(1.1) rotate(10deg);
}

.link-card h4 { font-size: 1.05rem; color: var(--dark); margin-bottom: 8px; position: relative; z-index: 1; }
.link-card p { font-size: 0.82rem; color: var(--gray); position: relative; z-index: 1; }

/* ============== ROW 11: PHOTO GALLERY ============== */
.photo-gallery { padding: 70px 0; background: var(--white); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.gallery-item:nth-child(1) { grid-row: span 2; }
.gallery-item:nth-child(6) { grid-column: span 2; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(164,36,59,0.85), transparent);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

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

.gallery-overlay i {
    color: #fff;
    font-size: 2rem;
    margin-left: auto;
}

/* ============== ROW 12: FOOTER ============== */
.footer {
    background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
    color: #fff;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-col p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 15px; line-height: 1.7; }

.footer-logo {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.footer-logo img {
    height: 65px;
    width: 65px;
    object-fit: contain;
    background: #fff;
    padding: 4px;
    border-radius: 50%;
}

.footer-logo h3 {
    color: #fff;
    font-size: 1.3rem;
    line-height: 1.1;
    margin-bottom: 4px;
}

.footer-logo small { color: rgba(255,255,255,0.6); font-size: 0.78rem; }

.footer-col ul { list-style: none; }

.footer-col ul li {
    padding: 7px 0;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary);
    font-size: 0.8rem;
}

.footer-col ul li:hover { color: #fff; padding-left: 8px; }

.contact-list { list-style: none; }

.contact-list li {
    display: block !important;
    padding: 10px 0 !important;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    line-height: 1.6;
    border: none !important;
    position: relative;
    padding-left: 28px !important;
}

.contact-list li::before {
    display: none !important;
}

.contact-list li i {
    color: var(--primary);
    position: absolute;
    left: 0;
    top: 14px;
    width: 18px;
    text-align: center;
    font-size: 0.95rem;
}

.contact-list li:hover {
    color: #fff;
    padding-left: 28px !important;
}

.social-links { display: flex; gap: 10px; margin-top: 18px; }

.social-links a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover { background: var(--primary); transform: translateY(-3px); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

.footer-bottom a { color: var(--primary); }

/* Floating Buttons */
.floating-btn {
    position: fixed;
    right: 25px;
    z-index: 998;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 5px 25px rgba(0,0,0,0.25);
    transition: var(--transition);
}

.whatsapp-btn { background: #25d366; bottom: 90px; }
.whatsapp-btn:hover { transform: scale(1.1); }

.scroll-top {
    background: var(--primary);
    bottom: 25px;
    opacity: 0;
    visibility: hidden;
}

.scroll-top.show { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--primary-dark); transform: scale(1.1); }

/* ============== RESPONSIVE ============== */
@media (max-width: 1200px) {
    .nav-menu > li > a { padding: 14px 7px; font-size: 0.75rem; letter-spacing: 0; }
    .nav-menu > li > a i { font-size: 0.55rem; margin-left: 2px; }
    /* Logo sizing for 1200px - circular 76px */
    .logo-header .logo-left .logo-img,
    .logo-header .logo-right .logo-img,
    .logo-header .logo-naac .logo-img {
        height: 76px;
        width: 76px;
    }
    .jubilee-text { width: 76px; }
}

@media (max-width: 992px) {
    .logo-header .logo-left .logo-img { height: 65px; width: 65px; }
    .logo-right { display: none !important; }
    .logo-naac { display: none !important; }
    .logo-header .container { gap: 12px; justify-content: flex-start; }
    .logo-center { text-align: left; padding: 0; }
    .logo-center h1 {
        font-size: 1.55rem;
        letter-spacing: 0.3px;
        white-space: normal;
        overflow: visible;
    }
    .logo-center .subtitle { font-size: 0.88rem; white-space: normal; }
    .logo-center .naac-line { font-size: 0.92rem; }
    .welcome-grid, .info-grid, .leadership-grid, .links-grid { grid-template-columns: 1fr 1fr; }
    .events-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .slide-content h2 { font-size: 2.2rem; }
    .quick-links .container { grid-template-columns: repeat(2, 1fr); }
    .quick-link { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }

    /* Mobile menu */
    .mobile-toggle { display: block; }
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        height: 100vh;
        background: var(--primary-dark);
        flex-direction: column;
        overflow-y: auto;
        transition: left 0.4s ease;
        z-index: 1001;
        padding-top: 60px;
    }
    .nav-menu.open { left: 0; }
    .nav-menu > li { width: 100%; }
    .nav-menu > li > a { padding: 14px 25px; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.2);
        display: none;
        border-top: none;
    }
    .dropdown.show { display: block; }
    .dropdown a { color: #fff; border-bottom: 1px solid rgba(255,255,255,0.05); padding-left: 40px; }
    .dropdown a:hover { background: var(--secondary); padding-left: 50px; }
    .sub-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        background: rgba(0,0,0,0.3);
        box-shadow: none;
        display: none;
    }
    .sub-dropdown.show { display: block; }
    .sub-dropdown a { padding-left: 60px !important; font-size: 0.85rem; }
    .menu-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
    }
    .menu-overlay.show { display: block; }
    body.menu-open { overflow: hidden; }
    .search-btn { display: none; }
}

@media (max-width: 768px) {
    .top-bar { font-size: 11px; }
    .top-bar .container { justify-content: space-between; }
    .top-welcome { display: none; }
    .logo-header { padding: 12px 0; }
    .logo-header .container { gap: 12px; flex-wrap: nowrap; }
    .logo-header .logo-left .logo-img { height: 56px; width: 56px; flex-shrink: 0; }
    .logo-right { display: none !important; }
    .logo-center { min-width: 0; flex: 1; text-align: left; }
    .logo-center h1 {
        font-size: 1.05rem;
        letter-spacing: 0;
        line-height: 1.25;
        margin-bottom: 4px;
        white-space: normal;
        overflow: visible;
    }
    .logo-center .subtitle {
        font-size: 0.68rem;
        margin-bottom: 3px;
        line-height: 1.35;
    }
    .logo-center .naac-line { font-size: 0.7rem; }
    .slider { height: 280px; }
    .slide-overlay { display: none; }
    .slider-nav { width: 38px; height: 38px; font-size: 0.9rem; }
    .welcome-grid, .info-grid, .leadership-grid, .events-grid, .footer-grid {
        grid-template-columns: 1fr !important;
    }
    .links-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
    .link-card { padding: 18px 12px !important; }
    .link-card h4 { font-size: 0.9rem !important; }
    .link-card p { font-size: 0.72rem !important; }
    .welcome-images { height: 420px; }
    .welcome-images .badge h3 { font-size: 2.2rem; }
    .welcome-images .badge p { font-size: 0.75rem; }
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
    .gallery-item:nth-child(1), .gallery-item:nth-child(6) { grid-row: span 1; grid-column: span 1; }
    .section-title h2 { font-size: 1.7rem; }
    .welcome-text h2 { font-size: 1.7rem; }
    .welcome-text .features { grid-template-columns: 1fr; }
    .info-card { height: 420px; }
    .media-item { flex: 0 0 270px; }
    .floating-btn { width: 48px; height: 48px; font-size: 1.1rem; right: 15px; }
}

@media (max-width: 480px) {
    .quick-links .container { grid-template-columns: 1fr; }
    .events-tabs { gap: 6px; }
    .tab-btn { padding: 8px 18px; font-size: 0.8rem; }
    .top-links { gap: 0; justify-content: center; }
    .top-links a { padding: 3px 8px; font-size: 11px; }
    .top-utils { display: flex; }
    .logo-header .logo-left .logo-img { height: 48px; width: 48px; }
    .logo-center h1 { font-size: 0.98rem; }
    .logo-center .subtitle { font-size: 0.62rem; line-height: 1.3; }
    .logo-center .naac-line { font-size: 0.65rem; }
    .slider { height: 220px; }
}
/* ============================================================
   ============== INNER PAGES SHARED STYLES ===================
   ============================================================ */

/* Page Banner with breadcrumb */
.page-banner {
    position: relative;
    height: 250px;
    background: linear-gradient(135deg, rgba(164,36,59,0.85), rgba(14,112,199,0.85)), url('../../../samastipurcollegeonline.in/uploads/banners/1773135904_WhatsApp_Image_2026-03-09_at_9_35_06_PM_(1.html).jpeg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
}

.page-banner .container { position: relative; z-index: 2; }

.page-banner h1 {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    list-style: none;
    flex-wrap: wrap;
}

.breadcrumb li { color: rgba(255,255,255,0.85); display: flex; align-items: center; gap: 8px; }
.breadcrumb li a { color: #fff; transition: var(--transition); }
.breadcrumb li a:hover { color: #ffd700; }
.breadcrumb li:not(:last-child)::after { content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900; opacity: 0.7; }
.breadcrumb li:last-child { color: #ffd700; font-weight: 500; }

/* Inner page container */
.inner-page { padding: 60px 0; background: #fff; }

.inner-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.inner-content { background: #fff; }

.inner-content h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--gray-light);
    position: relative;
}

.inner-content h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--primary);
}

.inner-content h3 {
    color: var(--secondary);
    font-size: 1.3rem;
    margin: 25px 0 12px;
}

.inner-content p {
    color: #444;
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 1rem;
    text-align: justify;
}

.inner-content ul, .inner-content ol { padding-left: 25px; margin-bottom: 15px; }
.inner-content ul li, .inner-content ol li { margin-bottom: 8px; line-height: 1.7; color: #444; }

.inner-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 15px 25px;
    margin: 20px 0;
    background: #fef5f7;
    font-style: italic;
    color: #555;
    border-radius: 0 8px 8px 0;
}

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 25px; }

.sidebar-box {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
}

.sidebar-box h4 {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 15px 20px;
    font-size: 1.05rem;
}

.sidebar-box ul { list-style: none; }

.sidebar-box ul li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    font-size: 0.92rem;
    font-weight: 500;
    border-bottom: 1px solid var(--gray-light);
    transition: var(--transition);
}

.sidebar-box ul li a:hover, .sidebar-box ul li a.active {
    background: var(--secondary);
    color: #fff;
    padding-left: 28px;
}

.sidebar-box ul li:last-child a { border-bottom: none; }

.sidebar-form { padding: 20px; }

.sidebar-form input, .sidebar-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    margin-bottom: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
}

.sidebar-form input:focus, .sidebar-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(164,36,59,0.1);
}

.sidebar-form button {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-form button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(164,36,59,0.3); }

/* ============== DEPARTMENT GRID (LIST PAGE) ============== */
.dept-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.dept-card {
    background: linear-gradient(135deg, var(--dark) 0%, #2d3e50 100%);
    border-radius: 12px;
    padding: 50px 25px;
    text-align: center;
    color: #fff;
    transition: var(--transition);
    border-bottom: 4px solid var(--primary);
    position: relative;
    overflow: hidden;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.dept-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.dept-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.dept-card:hover::before { opacity: 1; }
.dept-card:hover > * { position: relative; z-index: 1; }

.dept-card .dept-icon {
    font-size: 2.8rem;
    margin-bottom: 18px;
    color: #fff;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.dept-card:hover .dept-icon { transform: scale(1.15) rotate(8deg); }

.dept-card h3 {
    color: #fff;
    font-size: 1.3rem;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.dept-card .dept-tag {
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

.dept-card .dept-arrow {
    position: absolute;
    bottom: 15px;
    right: 20px;
    color: rgba(255,255,255,0.4);
    font-size: 1.1rem;
    transition: var(--transition);
    z-index: 1;
}

.dept-card:hover .dept-arrow { color: #fff; right: 12px; }

/* ============== COURSE THUMBNAIL GRID ============== */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.course-thumb {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
    cursor: pointer;
}

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

.course-thumb-img {
    height: 140px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
    position: relative;
}

.course-thumb-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), transparent 60%);
}

.course-thumb-body { padding: 18px 16px; }
.course-thumb h4 { font-size: 1.05rem; color: var(--dark); margin-bottom: 4px; }
.course-thumb .course-meta { color: var(--gray); font-size: 0.82rem; display: flex; align-items: center; gap: 5px; }
.course-thumb .course-meta i { color: var(--primary); }

/* ============== INFO TABLE ============== */
.info-table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    background: #fff;
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
}

.info-table th {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 14px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.info-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--gray-light);
    font-size: 0.92rem;
    color: #444;
}

.info-table tr:nth-child(even) td { background: #fafafa; }
.info-table tr:hover td { background: #fef5f7; }
.info-table tr:last-child td { border-bottom: none; }

/* ============== CONTACT PAGE STYLES ============== */
.contact-blocks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.contact-block {
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary);
}

.contact-block:nth-child(even) { border-top-color: var(--secondary); }
.contact-block:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.contact-block .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.contact-block:nth-child(even) .icon { background: linear-gradient(135deg, var(--secondary), var(--secondary-dark)); }

.contact-block h4 { font-size: 1.05rem; color: var(--dark); margin-bottom: 8px; }
.contact-block p { color: var(--gray); font-size: 0.9rem; margin: 0; }

.contact-form-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-form { padding: 40px; }
.contact-form h2 { margin-bottom: 20px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    margin-bottom: 15px;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(164,36,59,0.1);
}

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

.contact-map {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.contact-map iframe { width: 100%; height: 100%; border: 0; min-height: 400px; }

/* ============== RESPONSIVE FOR INNER PAGES ============== */
@media (max-width: 992px) {
    .inner-grid { grid-template-columns: 1fr; }
    .dept-grid { grid-template-columns: 1fr 1fr; }
    .contact-blocks { grid-template-columns: 1fr 1fr; }
    .contact-form-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .page-banner { height: 200px; }
    .page-banner h1 { font-size: 1.8rem; }
    .dept-grid { grid-template-columns: 1fr; }
    .contact-blocks { grid-template-columns: 1fr; }
    .contact-form .form-row { grid-template-columns: 1fr; }
    .inner-content h2 { font-size: 1.4rem; }
}

/* ============================================================
   MOBILE RESPONSIVE OVERRIDES - HIGHEST SPECIFICITY
   ============================================================ */
@media (max-width: 992px) {
    section .container .welcome-grid,
    section .container .info-grid,
    section .container .leadership-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .welcome-text h2 { font-size: 2rem !important; }
    .welcome-text p { font-size: 0.95rem !important; }
    .section-title h2 { font-size: 1.9rem !important; }
    .info-card { height: auto !important; min-height: 380px; }
}

@media (max-width: 768px) {
    .container { padding: 0 18px !important; max-width: 100%; }
    .welcome-text h2 { font-size: 1.75rem !important; }
    .section-title h2 { font-size: 1.7rem !important; }
    .welcome-grid, .info-grid, .leadership-grid, .events-grid, .footer-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .welcome-images { height: 350px !important; }
    .welcome-images .badge { padding: 14px 18px !important; }
    .welcome-images .badge h3 { font-size: 1.8rem !important; }
    .info-card { height: auto !important; }
    .leader-card { max-width: 100%; }
    .features { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
    .feature-item { font-size: 0.82rem !important; padding: 8px 10px !important; }

    /* LEADERSHIP CARDS: Mobile photo - object-fit:contain, no crop */
    .leader-photo {
        height: auto !important;
        aspect-ratio: 3 / 4 !important;
        min-height: 0 !important;
        max-height: none !important;
        background: linear-gradient(135deg, #f3f4f6, #e5e7eb) !important;
        overflow: hidden !important;
    }
    .leader-photo img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
    .leader-card img {
        height: 100% !important;
        max-height: none !important;
    }

    /* WELCOME LOGO BOX on mobile */
    .welcome-images {
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto auto auto !important;
        height: auto !important;
        gap: 12px !important;
    }
    .welcome-images .img-1 {
        grid-row: 1 !important;
        grid-column: 1 / -1 !important;
        height: 220px !important;
    }
    .welcome-images .img-2 {
        grid-row: 2 !important;
        grid-column: 1 / 2 !important;
        height: 170px !important;
    }
    .welcome-images .logo-box {
        grid-column: 2 / 3 !important;
        grid-row: 2 !important;
        height: 170px !important;
        padding: 10px !important;
    }
    .welcome-images .logo-box img {
        object-fit: contain !important;
    }
    .welcome-images .name-card {
        grid-row: 3 !important;
        grid-column: 1 / -1 !important;
        height: auto !important;
        padding: 16px 14px !important;
    }
    .welcome-images .name-card .nc-title { font-size: 1.15rem !important; }
    .welcome-images .name-card .nc-sub { font-size: 0.78rem !important; }
}

@media (max-width: 480px) {
    .container { padding: 0 14px !important; }
    .welcome-text h2 { font-size: 1.45rem !important; }
    .welcome-text h2 span { display: inline; }
    .section-title h2 { font-size: 1.45rem !important; }
    .section-title p { font-size: 0.85rem !important; }
    .welcome-text p { font-size: 0.88rem !important; line-height: 1.6 !important; }
    .welcome-images { height: 280px !important; }
    .welcome-images .img-1, .welcome-images .img-2 { width: 80% !important; }
    .welcome-images .badge { padding: 10px 14px !important; }
    .welcome-images .badge h3 { font-size: 1.5rem !important; }
    .welcome-images .badge p { font-size: 0.7rem !important; }
    .features { grid-template-columns: 1fr !important; }
    .info-card-head { padding: 18px 18px !important; }
    .info-card-head h3 { font-size: 1.05rem !important; }
    .info-card-body { padding: 15px !important; }

    /* LEADERSHIP MOBILE 480px */
    .leader-photo {
        aspect-ratio: 3 / 4 !important;
        height: auto !important;
    }
    .leader-photo img {
        object-fit: contain !important;
    }
    .leader-card img {
        height: 100% !important;
    }

    /* WELCOME LOGO BOX 480px */
    .welcome-images .logo-box {
        height: 150px !important;
        padding: 8px !important;
    }
    .welcome-images .name-card {
        padding: 14px 12px !important;
    }
    .welcome-images .name-card .nc-title { font-size: 1rem !important; }
    .welcome-images .name-card .nc-sub { font-size: 0.7rem !important; }

    body, .container, section { overflow-x: hidden !important; }
}

/* Leadership photo fallback */
.leader-photo-fallback {
    width: 100%;
    height: 100%;
    min-height: 320px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

/* Welcome section - College Gate image - show FULL on ALL views (no crop) */
.welcome-images .img-1 {
    object-fit: contain !important;
    object-position: center !important;
    background: linear-gradient(135deg, #1e3a5f, #2c5282) !important;
    padding: 0 !important;
}

@media (max-width: 768px) {
    /* On mobile, show full gate image - no cropping */
    .welcome-images .img-1 {
        object-fit: contain !important;
        background: linear-gradient(135deg, #1e3a5f, #2c5282) !important;
        padding: 0 !important;
    }
}

@media (max-width: 480px) {
    .welcome-images {
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto auto auto !important;
        height: auto !important;
        gap: 12px !important;
    }
    .welcome-images .img-1 {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        height: 230px !important;
        background: linear-gradient(135deg, #1e3a5f, #2c5282) !important;
    }
    .welcome-images .img-2 {
        grid-column: 1 / 2 !important;
        grid-row: 2 !important;
        height: 140px !important;
        border: 4px solid #fff !important;
    }
    .welcome-images .badge {
        grid-column: 2 / 3 !important;
        grid-row: 2 !important;
        padding: 12px 8px !important;
    }
    .welcome-images .logo-box {
        grid-column: 2 / 3 !important;
        grid-row: 2 !important;
    }
}

/* ============================================================
   TOP BAR LOGIN DROPDOWN
   ============================================================ */
.top-bar .top-spacer { flex: 1; display: flex; align-items: center; }
.top-welcome {
    color: rgba(255,255,255,0.9);
    font-size: 0.8rem;
    font-weight: 500;
}
.top-welcome i { margin-right: 6px; color: #ffd700; }

.top-bar .top-utils {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Simple Login Button (no dropdown) */
.login-btn-simple {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 22px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary), #c0455a);
    box-shadow: 0 2px 8px rgba(164, 36, 59, 0.3);
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}
.login-btn-simple:hover {
    background: linear-gradient(135deg, #871b30, var(--primary));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(164, 36, 59, 0.4);
    color: #fff !important;
}
.login-btn-simple i { font-size: 0.9rem; }

@media (max-width: 768px) {
    .top-bar .top-spacer { flex: 0; }
    .top-welcome { display: none; }
    .top-bar .container { justify-content: center !important; }
    .login-btn-simple { padding: 6px 18px; font-size: 0.78rem; }
}
@media (max-width: 480px) {
    .login-btn-simple { padding: 5px 16px; font-size: 0.75rem; }
}

/* Leader photo cleanup - badge above image */
.leader-badge { z-index: 2; }

/* ============================================================
   ============ PHOTO GALLERY LIGHTBOX (Album Viewer) =========
   Click any gallery photo → full screen with next/prev
   ============================================================ */

.gallery-item { cursor: pointer; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.lightbox.active { display: flex; animation: lbFadeIn 0.25s ease; }

@keyframes lbFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.lightbox-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 92vw;
    max-height: 92vh;
    animation: lbZoomIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes lbZoomIn {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.lightbox-content img {
    max-width: 92vw;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
    transition: opacity 0.15s ease;
    display: block;
    margin: 0 auto;
}

.lightbox-caption {
    color: #fff;
    margin-top: 16px;
    font-size: 1rem;
    font-weight: 500;
    max-width: 80vw;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 3;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.08);
}
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }

@media (max-width: 768px) {
    .lightbox-content img { max-height: 70vh; }
    .lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    .lightbox-nav.prev { left: 10px; }
    .lightbox-nav.next { right: 10px; }
    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
        top: 14px;
        right: 14px;
    }
    .lightbox-caption { font-size: 0.88rem; }
    .lightbox-counter { font-size: 0.78rem; }
}

/* ============================================================
   ============ DIGITAL LIBRARY HINDI POSTER MODAL ============
   ============================================================ */

.dl-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.dl-modal.active { display: flex; animation: dlFadeIn 0.25s ease; }

@keyframes dlFadeIn { from { opacity: 0; } to { opacity: 1; } }

.dl-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: pointer;
}

.dl-modal-content {
    position: relative;
    z-index: 2;
    background: linear-gradient(160deg, #fff 0%, #fff8f8 100%);
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(164, 36, 59, 0.35);
    max-width: 560px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    animation: dlSlideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(164, 36, 59, 0.15);
}

@keyframes dlSlideUp {
    from { transform: translateY(40px) scale(0.95); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.dl-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(164, 36, 59, 0.1);
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dl-modal-close:hover {
    background: var(--primary);
    color: #fff;
    transform: rotate(90deg);
}

/* Header section */
.dl-modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 35px 25px 28px;
    text-align: center;
    border-radius: 18px 18px 0 0;
    position: relative;
    overflow: hidden;
}
.dl-modal-header::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: -100px;
    right: -50px;
}
.dl-modal-header::after {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    bottom: -60px;
    left: -30px;
}
.dl-modal-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
}
.dl-modal-header h3 {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.7rem;
    margin: 0 0 6px;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}
.dl-modal-header p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.85rem;
    margin: 0;
    letter-spacing: 0.4px;
    position: relative;
    z-index: 1;
}

/* Body section */
.dl-modal-body { padding: 26px 28px 28px; }

.dl-greeting {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 0 8px;
}
.dl-intro {
    color: #444;
    font-size: 0.98rem;
    line-height: 1.65;
    margin: 0 0 22px;
}
.dl-intro strong { color: var(--primary); }

.dl-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dl-features li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border-left: 4px solid var(--primary);
    padding: 12px 14px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
}
.dl-features li:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 14px rgba(164, 36, 59, 0.12);
    border-left-color: var(--secondary);
}
.dl-feat-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.dl-features li:nth-child(2) .dl-feat-icon { background: linear-gradient(135deg, var(--secondary), var(--secondary-dark)); }
.dl-features li:nth-child(3) .dl-feat-icon { background: linear-gradient(135deg, #16a34a, #15803d); }
.dl-features li:nth-child(4) .dl-feat-icon { background: linear-gradient(135deg, #ea580c, #c2410c); }
.dl-feat-text {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.55;
    flex: 1;
}

.dl-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 22px;
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.35);
    transition: all 0.25s ease;
}
.dl-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(46, 125, 50, 0.45);
    color: #fff;
}
.dl-cta-btn i { font-size: 1.3rem; }

@media (max-width: 768px) {
    .dl-modal { padding: 12px; }
    .dl-modal-header { padding: 28px 20px 22px; }
    .dl-modal-header h3 { font-size: 1.35rem; }
    .dl-modal-header p { font-size: 0.78rem; }
    .dl-modal-icon { width: 58px; height: 58px; font-size: 1.5rem; }
    .dl-modal-body { padding: 20px 18px 22px; }
    .dl-greeting { font-size: 1rem; }
    .dl-intro { font-size: 0.9rem; }
    .dl-features li { padding: 10px 12px; gap: 10px; }
    .dl-feat-icon { width: 34px; height: 34px; font-size: 0.9rem; }
    .dl-feat-text { font-size: 0.85rem; }
    .dl-cta-btn { padding: 12px 18px; font-size: 0.95rem; }
}

/* ============================================================
   ============ SINGLE COMBINED HEADER LOGO ===================
   New approach: One image (header-logo.png) replaces all
   3 separate logos + text. Old logo CSS classes (.logo-left,
   .logo-right, .logo-naac, .logo-center) become unused.
   ============================================================ */

.logo-header { padding: 14px 0; }

.logo-header .container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 20px;
}

.logo-header .header-logo-wrap {
    display: inline-block;
    width: auto;
    max-width: 100%;
    text-align: center;
    line-height: 0;
}

.logo-header .header-logo-img {
    max-width: 100%;
    width: auto;
    max-height: 110px;
    height: auto;
    object-fit: contain;
    display: inline-block;
    margin: 0;
    transition: var(--transition);
}

.logo-header .header-logo-wrap:hover .header-logo-img {
    transform: scale(1.02);
}

/* Responsive scaling for header image */
@media (max-width: 1200px) {
    .logo-header .header-logo-img { max-height: 100px; }
}

@media (max-width: 992px) {
    .logo-header { padding: 12px 0; }
    .logo-header .header-logo-img { max-height: 90px; }
}

@media (max-width: 768px) {
    .logo-header { padding: 10px 0; }
    .logo-header .container { padding: 0 14px; }
    .logo-header .header-logo-img { max-height: 75px; }
}

@media (max-width: 480px) {
    .logo-header { padding: 8px 0; }
    .logo-header .container { padding: 0 12px; }
    .logo-header .header-logo-img { max-height: 65px; }
}

/* ============================================================
   ============ FACULTY PHOTO CROP FIX (Mobile View) ==========
   Issue: Mobile pe faculty cards me photo top crop ho rahi thi
   (forehead/head cut). Fix: object-position top so face stays
   visible when cropping occurs.
   ============================================================ */

@media (max-width: 768px) {
    /* Target any faculty/staff/profile card image on mobile */
    [class*="faculty"] img,
    [class*="staff"] img,
    [class*="member"] img,
    [class*="profile"] img,
    [class*="team"] img,
    [class*="person"] img,
    [class*="employee"] img,
    [class*="instructor"] img,
    [class*="teacher"] img,
    [class*="department-card"] img,
    [class*="dept-card"] img,

    /* Common card patterns */
    .card-img-top,
    .card > img:first-child,
    .card > a:first-child > img {
        object-fit: cover !important;
        object-position: top center !important;
    }
}

/* Also apply to leader/admin card photos on mobile (consistent face-first crop) */
@media (max-width: 768px) {
    .leader-photo img,
    .leader-card img,
    .as-staff-photo img,
    .as-staff-card img {
        object-fit: cover !important;
        object-position: top center !important;
    }
}

/* ============================================================
   ============ FACULTY PHOTO FIX — v5 NO CROP GUARANTEED ======
   v4 was partial — head still cropping. Switching strategy:
   `object-fit: contain` shows ENTIRE photo (no crop ever).
   Small letterboxing acceptable, face 100% visible guaranteed.
   ============================================================ */

@media (max-width: 768px) {
    /* :not() trick for max specificity + contain for zero crop */
    html:not(#none) body:not(#none) img[src*="/uploads/faculty/"],
    html:not(#none) body:not(#none) img[src*="/uploads/leadership/"],
    html:not(#none) body:not(#none) img[src*="/uploads/staff/"],
    html:not(#none) body:not(#none) img[alt^="Dr."],
    html:not(#none) body:not(#none) img[alt^="Dr "],
    html:not(#none) body:not(#none) img[alt^="Prof."],
    html:not(#none) body:not(#none) img[alt^="Prof "],
    html:not(#none) body:not(#none) img[alt^="Mr."],
    html:not(#none) body:not(#none) img[alt^="Mrs."],
    html:not(#none) body:not(#none) img[alt^="Ms."],
    html:not(#none) body:not(#none) img[alt^="Shri"],
    html:not(#none) body:not(#none) img[alt^="Smt"],
    html:not(#none) body:not(#none) img[alt*="ALOK"],
    html:not(#none) body:not(#none) img[alt*="PRIYA"],
    html:not(#none) body:not(#none) img[alt*="SHIV"],
    html:not(#none) body:not(#none) img[alt*="Amar"],
    html:not(#none) body:not(#none) img[alt*="Ritesh"],
    html:not(#none) body:not(#none) img[alt*="Saraswati"] {
        object-fit: contain !important;
        object-position: center !important;
        background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%) !important;
    }
}

/* Tablet — same behavior */
@media (max-width: 992px) and (min-width: 769px) {
    html:not(#none) body:not(#none) img[src*="/uploads/faculty/"],
    html:not(#none) body:not(#none) img[src*="/uploads/leadership/"],
    html:not(#none) body:not(#none) img[alt^="Dr."],
    html:not(#none) body:not(#none) img[alt^="Prof."] {
        object-fit: contain !important;
        background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%) !important;
    }
}
