/* ============================================
   GOVERNMENT ARTS AND SCIENCE COLLEGE
   RESPONSIVE STYLESHEET - MOBILE & DESKTOP
   ============================================ */

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

:root {
    --primary-green: #1b5e20;
    --secondary-green: #2e7d32;
    --accent-gold: #ffa000;
    --accent-orange: #ff6f00;
    --light-bg: #fafafa;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-gray: #555555;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Karla', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ============================================
   TOP BAR - RESPONSIVE
   ============================================ */
.top-bar {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: var(--white);
    padding: 12px 0;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.top-bar .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.top-bar a:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* ============================================
   HEADER BANNER - RESPONSIVE
   ============================================ */
.header-banner {
    background: linear-gradient(to bottom, #ffffff 0%, #f5f5f5 100%);
    padding: 30px 0;
    border-bottom: 4px solid var(--accent-gold);
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(27,94,32,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 100px 1fr 100px;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.logo-container {
    animation: fadeInScale 1s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.logo-container img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    transition: transform 0.5s ease;
}

.logo-container:hover img {
    transform: scale(1.05) rotate(1deg);
}

.college-info {
    text-align: center;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.college-info h1 {
    font-family: 'Noto Sans Tamil', sans-serif;
    font-size: 1.6rem;
    color: var(--primary-green);
    margin-bottom: 6px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.college-info h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.8rem;
    color: var(--secondary-green);
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 1px;
}

.college-info p {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* ============================================
   NAVIGATION - RESPONSIVE WITH MOBILE MENU
   ============================================ */
nav {
    background: var(--primary-green);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 998;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    padding: 15px 20px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

nav ul {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    list-style: none;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

nav li {
    position: relative;
}

nav a {
    display: block;
    padding: 16px 20px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent-gold);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

nav a:hover::before,
nav a.active::before {
    width: 80%;
}

nav a::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transition: left 0.5s ease;
}

nav a:hover::after {
    left: 100%;
}

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

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 1000;
    border-top: 3px solid var(--accent-gold);
    animation: dropdownSlide 0.3s ease-out;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 14px 20px;
    display: block;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background: var(--primary-green);
    color: var(--white);
    padding-left: 30px;
}

.dropdown-content a::before {
    display: none;
}

/* ============================================
   HERO SLIDER - RESPONSIVE
   ============================================ */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: var(--text-dark);
}

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

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(95, 94, 94, 0.9) 0%, transparent 100%);
    padding: 60px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease;
}

.slide.active .slide-overlay {
    transform: translateY(0);
    opacity: 1;
}

.slide-overlay h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 10px;
    font-weight: 700;
}

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

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

/* ============================================
   CONTENT SECTIONS - RESPONSIVE
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 80px 0;
    animation: fadeIn 1s ease-out;
}

.section-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

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

.section-title {
    font-family: 'Crimson Pro', serif;
    font-size: 2.8rem;
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--accent-gold), var(--accent-orange));
    border-radius: 2px;
}

/* ============================================
   WELCOME SECTION - RESPONSIVE
   ============================================ */
.welcome-section {
    background: var(--light-bg);
}

.welcome-text {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.welcome-text h3 {
    font-family: 'Crimson Pro', serif;
    color: var(--primary-green);
    font-size: 2rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.welcome-text p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.9;
    text-align: justify;
}

/* Principal Section */
.principal-section {
    margin-top: 40px;
    text-align: center;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 15px;
}

.principal-photo {
    max-width: 300px;
    width: 100%;
    margin: 0 auto 20px;
}

.principal-photo img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.principal-name {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 8px;
}

.principal-title {
    color: var(--accent-orange);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.principal-message {
    color: var(--text-gray);
    line-height: 1.9;
    text-align: justify;
    font-style: italic;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    border-left: 4px solid var(--accent-gold);
}

/* ============================================
   NEWS SIDEBAR - RESPONSIVE
   ============================================ */
.news-sidebar {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.news-sidebar h3 {
    font-family: 'Crimson Pro', serif;
    color: var(--primary-green);
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-gold);
}

.news-item-sidebar {
    padding: 20px;
    margin-bottom: 20px;
    background: var(--light-bg);
    border-radius: 10px;
    border-left: 4px solid var(--accent-gold);
    transition: all 0.3s ease;
}

.news-item-sidebar:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-date {
    color: var(--accent-orange);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-title {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
}

.news-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--primary-green);
}

/* ============================================
   GLIMPSE SECTION - RESPONSIVE
   ============================================ */
.glimpse-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    padding: 80px 0;
}

.glimpse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.glimpse-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.5s ease;
    animation: fadeInUp 1s ease-out;
    animation-fill-mode: both;
}

.glimpse-card:nth-child(1) { animation-delay: 0.1s; }
.glimpse-card:nth-child(2) { animation-delay: 0.2s; }
.glimpse-card:nth-child(3) { animation-delay: 0.3s; }
.glimpse-card:nth-child(4) { animation-delay: 0.4s; }
.glimpse-card:nth-child(5) { animation-delay: 0.5s; }
.glimpse-card:nth-child(6) { animation-delay: 0.6s; }

.glimpse-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.2);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.glimpse-number {
    font-family: 'Crimson Pro', serif;
    font-size: 3.5rem;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1;
}

.glimpse-label {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ============================================
   INNER PAGE STYLES - RESPONSIVE
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    padding: 60px 0;
    text-align: center;
    color: var(--white);
    margin-top: 0;
}

.page-header h1 {
    font-family: 'Crimson Pro', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.content-section {
    padding: 80px 0;
}

.content-box {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.content-box h2 {
    font-family: 'Crimson Pro', serif;
    color: var(--primary-green);
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.content-box h3 {
    color: var(--secondary-green);
    font-size: 1.5rem;
    margin: 25px 0 15px;
    font-weight: 600;
}

.content-box p {
    color: var(--text-gray);
    line-height: 1.9;
    margin-bottom: 15px;
    text-align: justify;
}

.content-box ul {
    margin: 20px 0;
    padding-left: 30px;
}

.content-box li {
    color: var(--text-gray);
    line-height: 2;
    margin-bottom: 10px;
}

/* ============================================
   TABLES - RESPONSIVE
   ============================================ */
.committee-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-radius: 10px;
    overflow: hidden;
}

.committee-table thead {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: var(--white);
}

.committee-table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.committee-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.committee-table tr:hover {
    background: var(--light-bg);
}

.member-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-gold);
}

/* ============================================
   GALLERY - RESPONSIVE
   ============================================ */
.gallery-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.gallery-category {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.gallery-category-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-category:hover .gallery-category-image {
    transform: scale(1.1);
}

.gallery-category-title {
    padding: 25px;
    text-align: center;
    background: var(--light-bg);
}

.gallery-category-title h3 {
    font-family: 'Crimson Pro', serif;
    color: var(--primary-green);
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.gallery-category-title p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 15px;
    color: var(--white);
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    padding: 20px;
}

.gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.gallery-modal-image {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.gallery-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 40px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-close:hover {
    transform: scale(1.2);
}

/* ============================================
   FOOTER - RESPONSIVE
   ============================================ */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent-gold);
    font-weight: 700;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-gold);
    padding-left: 10px;
}

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

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

/* TABLET LANDSCAPE (1024px and below) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .section-with-sidebar {
        grid-template-columns: 1fr;
    }

    .news-sidebar {
        position: static;
        max-height: none;
    }

    .header-content {
        grid-template-columns: 80px 1fr 80px;
        gap: 20px;
    }

    .college-info h1 {
        font-size: 1.3rem;
    }

    .college-info h2 {
        font-size: 1.5rem;
    }

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

    .section-title {
        font-size: 2.3rem;
    }

    nav ul {
        padding: 0 30px;
        justify-content: flex-start;
    }

    nav a {
        padding: 14px 18px;
        font-size: 0.85rem;
    }
}

/* TABLET PORTRAIT (768px and below) */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .top-bar .container {
        padding: 0 20px;
        gap: 20px;
        font-size: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-banner {
        padding: 20px 0;
    }

    .header-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 20px;
        gap: 15px;
    }

    .logo-container {
        margin: 0 auto;
        max-width: 70px;
    }

    .college-info h1 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .college-info h2 {
        font-size: 1.3rem;
        margin-bottom: 5px;
    }

    .college-info p {
        font-size: 0.85rem;
    }

    /* Mobile Navigation */
    nav {
        position: relative;
    }

    .mobile-menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        padding: 0;
        width: 100%;
    }

    nav ul.active {
        display: flex;
    }

    nav li {
        width: 100%;
    }

    nav a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 0.9rem;
    }

    nav a::before {
        display: none;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background: rgba(255,255,255,0.1);
        border-top: none;
    }

    .dropdown-content a {
        color: var(--white);
        padding: 12px 30px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .dropdown-content a:hover {
        background: rgba(255,255,255,0.1);
        padding-left: 40px;
    }

    /* Hero Slider */
    .hero-slider {
        height: 350px;
    }

    .slide-overlay {
        padding: 30px 20px;
    }

    .slide-overlay h3 {
        font-size: 1.8rem;
    }

    .slider-dots {
        bottom: 20px;
        gap: 8px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    /* Sections */
    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 35px;
    }

    .welcome-text {
        padding: 25px;
    }

    .welcome-text h3 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .principal-section {
        padding: 20px;
    }

    .principal-photo {
        max-width: 200px;
    }

    .principal-name {
        font-size: 1.3rem;
    }

    .principal-title {
        font-size: 1rem;
    }

    .principal-message {
        padding: 15px;
        font-size: 0.95rem;
    }

    /* Glimpse Section */
    .glimpse-section {
        padding: 50px 0;
    }

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

    .glimpse-card {
        padding: 25px 15px;
    }

    .glimpse-number {
        font-size: 2.5rem;
    }

    .glimpse-label {
        font-size: 0.95rem;
    }

    /* Page Header */
    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    /* Content Section */
    .content-section {
        padding: 50px 0;
    }

    .content-box {
        padding: 25px;
    }

    .content-box h2 {
        font-size: 1.6rem;
    }

    .content-box h3 {
        font-size: 1.3rem;
    }

    /* Tables */
    .committee-table {
        display: block;
        overflow-x: auto;
        font-size: 0.85rem;
    }

    .committee-table th,
    .committee-table td {
        padding: 12px 8px;
        white-space: nowrap;
    }

    .member-photo {
        width: 60px;
        height: 60px;
    }

    /* Gallery */
    .gallery-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .gallery-item img {
        height: 250px;
    }

    /* Footer */
    footer {
        padding: 40px 0 20px;
        margin-top: 50px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section h3 {
        font-size: 1.3rem;
    }
}

/* MOBILE PHONES (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .top-bar {
        font-size: 0.75rem;
        padding: 10px 0;
    }

    .top-bar .container {
        padding: 0 15px;
        gap: 10px;
    }

    .header-banner {
        padding: 15px 0;
    }

    .header-content {
        padding: 0 15px;
    }

    .logo-container {
        max-width: 60px;
    }

    .college-info h1 {
        font-size: 0.95rem;
    }

    .college-info h2 {
        font-size: 1.1rem;
    }

    .college-info p {
        font-size: 0.75rem;
    }

    .hero-slider {
        height: 250px;
    }

    .slide-overlay {
        padding: 20px 15px;
    }

    .slide-overlay h3 {
        font-size: 1.4rem;
    }

    .section {
        padding: 35px 0;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    .welcome-text {
        padding: 20px;
    }

    .welcome-text h3 {
        font-size: 1.4rem;
    }

    .welcome-text p {
        font-size: 0.9rem;
    }

    .principal-section {
        padding: 15px;
    }

    .principal-photo {
        max-width: 150px;
    }

    .principal-name {
        font-size: 1.1rem;
    }

    .principal-title {
        font-size: 0.9rem;
    }

    .principal-message {
        padding: 12px;
        font-size: 0.85rem;
    }

    .glimpse-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .glimpse-card {
        padding: 20px 15px;
    }

    .glimpse-number {
        font-size: 2.2rem;
    }

    .glimpse-label {
        font-size: 0.9rem;
    }

    .page-header {
        padding: 30px 0;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .page-header p {
        font-size: 0.9rem;
    }

    .content-box {
        padding: 20px;
    }

    .content-box h2 {
        font-size: 1.4rem;
    }

    .content-box h3 {
        font-size: 1.2rem;
    }

    .content-box p,
    .content-box li {
        font-size: 0.9rem;
    }

    .committee-table {
        font-size: 0.75rem;
    }

    .committee-table th,
    .committee-table td {
        padding: 10px 6px;
    }

    .member-photo {
        width: 50px;
        height: 50px;
    }

    .gallery-item img {
        height: 200px;
    }

    .footer-section h3 {
        font-size: 1.2rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }
}

/* SMALL PHONES (360px and below) */
@media (max-width: 360px) {
    .college-info h1 {
        font-size: 0.85rem;
    }

    .college-info h2 {
        font-size: 1rem;
    }

    .hero-slider {
        height: 220px;
    }

    .slide-overlay h3 {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .welcome-text h3 {
        font-size: 1.2rem;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }

    .content-box h2 {
        font-size: 1.2rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center !important;
}

.text-justify {
    text-align: justify !important;
}

.mt-20 {
    margin-top: 20px !important;
}

.mb-20 {
    margin-bottom: 20px !important;
}

.p-20 {
    padding: 20px !important;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
*:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

a:focus,
button:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-green);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
}

.skip-to-content:focus {
    top: 0;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    nav,
    .hero-slider,
    .mobile-menu-toggle,
    footer,
    .news-sidebar {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .page-header {
        background: none !important;
        color: #000 !important;
        border-bottom: 2px solid #000;
    }

    .content-box {
        box-shadow: none !important;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }

    a {
        text-decoration: underline;
        color: #000 !important;
    }
}

/* ============================================
   DEPARTMENT CARDS - NEW SECTION
   ============================================ */
.departments-showcase {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.department-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(27, 94, 32, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.department-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.department-card:hover::before {
    transform: scaleX(1);
}

.department-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(27, 94, 32, 0.15);
}

.department-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
}

.department-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0.9;
}

.department-card:hover .department-image img {
    transform: scale(1.1);
    opacity: 1;
}

.department-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.department-info {
    padding: 28px 24px;
    position: relative;
}

.department-name {
    font-family: 'Crimson Pro', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 12px;
    line-height: 1.3;
}

.department-hod {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.department-hod strong {
    color: var(--text-dark);
    font-weight: 600;
}

.department-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--accent-orange);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: gap 0.3s ease;
}

.department-link:hover {
    gap: 14px;
}

.department-link::after {
    content: '→';
    font-size: 1.2rem;
}

/* Department Page Specific Styles */
.dept-page-header {
    position: relative;
    height: 350px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    overflow: hidden;
}

.dept-header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.25;
}

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

.dept-header-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
}

.dept-header-content h1 {
    font-family: 'Crimson Pro', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.dept-header-content p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Department Navigation */
.dept-nav {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 52px;
    z-index: 997;
}

.dept-nav ul {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.dept-nav li {
    position: relative;
}

.dept-nav a {
    display: block;
    padding: 18px 24px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.dept-nav a:hover,
.dept-nav a.active {
    color: var(--accent-orange);
    border-bottom-color: var(--accent-orange);
    background: transparent;
}

.dept-nav a:hover {
    color: var(--accent-orange);
    background: rgba(255, 111, 0, 0.05);
    border-bottom-color: var(--accent-orange);
}

/* Department Content Layout */
.dept-welcome-section {
    padding: 70px 0;
}

.dept-welcome-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
    align-items: start;
}

.dept-welcome-text h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 2.2rem;
    color: var(--primary-green);
    margin-bottom: 25px;
    font-weight: 700;
}

.dept-welcome-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.dept-image-showcase {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    position: sticky;
    top: 150px;
}

.dept-image-showcase img {
    width: 100%;
    height: auto;
    display: block;
}

/* Vision Mission Objectives Grid */
.vmo-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

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

.vmo-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.vmo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-gold));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}

.vmo-card:hover::before {
    transform: scaleX(1);
}

.vmo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.12);
}

.vmo-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.vmo-card h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.8rem;
    color: var(--primary-green);
    margin-bottom: 20px;
    font-weight: 700;
}

.vmo-card ul {
    list-style: none;
    text-align: left;
    padding: 0;
}

.vmo-card li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
    color: var(--text-dark);
}

.vmo-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .departments-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
    
    .vmo-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .dept-welcome-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .dept-image-showcase {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .dept-page-header {
        height: 250px;
    }
    
    .dept-header-content h1 {
        font-size: 2.2rem;
    }
    
    .dept-nav ul {
        flex-wrap: wrap;
        padding: 0 20px;
    }
    
    .dept-nav a {
        padding: 14px 16px;
        font-size: 0.85rem;
    }
    
    .departments-grid {
        grid-template-columns: 1fr;
    }
    
    .department-image {
        height: 200px;
    }
}

/* ============================================
   FACULTY PROFILES - ENHANCED SECTION
   ============================================ */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    margin-top: 40px;
}

.faculty-member {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.faculty-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(27, 94, 32, 0.15);
}

.faculty-photo-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}

.faculty-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.faculty-member:hover .faculty-photo {
    transform: scale(1.05);
}

.faculty-info {
    padding: 25px 20px;
}

.faculty-name {
    font-family: 'Crimson Pro', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 8px;
    line-height: 1.3;
}

.faculty-qualification {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 6px;
    font-style: italic;
}

.faculty-designation {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 4px;
}

.faculty-specialization {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 15px;
    padding: 8px 12px;
    background: rgba(27, 94, 32, 0.05);
    border-radius: 6px;
    display: inline-block;
}

.faculty-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 20px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.faculty-profile-link:hover {
    background: linear-gradient(135deg, var(--secondary-green), var(--primary-green));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.3);
}

.faculty-profile-link::before {
    content: '📄';
    font-size: 1.1rem;
}

/* Head of Department Special Card */
.hod-card {
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.05), rgba(46, 125, 50, 0.05));
    border: 2px solid var(--accent-gold);
    position: relative;
}

.hod-card::before {
    content: 'HEAD OF DEPARTMENT';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-gold);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.hod-card .faculty-name {
    color: var(--accent-orange);
}

/* Faculty Section Header */
.faculty-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.faculty-section-header h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 15px;
    font-weight: 700;
}

.faculty-section-header p {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* Contact Info on Faculty Card */
.faculty-contact {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.faculty-email {
    font-size: 0.85rem;
    color: var(--accent-orange);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.faculty-email:hover {
    text-decoration: underline;
}

.faculty-email::before {
    content: '📧';
}

/* Responsive Design for Faculty Grid */
@media (max-width: 1024px) {
    .faculty-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .faculty-photo-container {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .faculty-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .faculty-photo-container {
        height: 320px;
    }
    
    .faculty-section-header h2 {
        font-size: 2rem;
    }
    
    .hod-card::before {
        font-size: 0.65rem;
        padding: 3px 10px;
    }
}

@media (max-width: 480px) {
    .faculty-photo-container {
        height: 280px;
    }
    
    .faculty-name {
        font-size: 1.2rem;
    }
    
    .faculty-info {
        padding: 20px 15px;
    }
}


/* ============================================
   DEPARTMENT HOME NAVIGATION LINK
   ============================================ */
.dept-nav ul li a[href="academic-department.html"] {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    padding: 7px 20px;
    border-radius: 25px;
    margin-top: 5px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(27, 94, 32, 0.2);
    transition: all 0.3s ease;
}

.dept-nav ul li a[href="academic-department.html"]:hover {
    background: linear-gradient(135deg, var(--secondary-green), var(--primary-green));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(27, 94, 32, 0.3);
}

.dept-nav ul li a[href="academic-department.html"]::before {
    content: '';
    display: none;
}

/* Mobile responsive for department home link */
@media (max-width: 768px) {
    .dept-nav ul li a[href="academic-department.html"] {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}


/* ============================================
   BREADCRUMB NAVIGATION
   ============================================ */
.breadcrumb-nav {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.breadcrumb-nav .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-nav a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.breadcrumb-nav a:hover {
    color: var(--accent-orange);
    text-decoration: underline;
}

.breadcrumb-nav .separator {
    margin: 0 10px;
    color: var(--text-gray);
    font-weight: 300;
}

.breadcrumb-nav .current {
    color: var(--text-dark);
    font-weight: 600;
}

/* Mobile responsive for breadcrumb */
@media (max-width: 768px) {
    .breadcrumb-nav {
        font-size: 0.85rem;
        padding: 12px 0;
    }
    
    .breadcrumb-nav .separator {
        margin: 0 6px;
    }
}


/* ============================================
   DEPARTMENTS PAGE NAVIGATION
   ============================================ */
.departments-nav {
    margin-bottom: 30px;
}

/* Department Home special styling */
.dept-nav ul li a.active,
.dept-nav ul li a[href="academic-department.html"].active {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
    color: var(--white);
    padding: 7px 20px;
    border-radius: 25px;
    margin-top: 5px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(255, 160, 0, 0.3);
    transition: all 0.3s ease;
}

.dept-nav ul li a.active:hover,
.dept-nav ul li a[href="academic-department.html"].active:hover {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-gold));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 160, 0, 0.4);
}

.dept-nav ul li a.active::before,
.dept-nav ul li a[href="academic-department.html"].active::before {
    content: '';
    display: none;
}

/* Smooth scroll for anchor links on departments page */
html {
    scroll-behavior: smooth;
}

#about-departments,
#facilities {
    scroll-margin-top: 120px; /* Account for sticky navigation */
}

/* Responsive for departments nav */
@media (max-width: 768px) {
    .departments-nav ul li a.active {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}


/* ============================================
   DEPARTMENT NAVIGATION - REGULAR LINKS FIX
   ============================================ */
/* Ensure section links (About, Faculty, etc.) have normal styling, not button styling */
.dept-nav ul li a[href^="#"]:not([href="academic-department.html"]):not([href="#other-depts"]):not([href="#all-depts"]) {
    background: transparent !important;
    color: var(--text-dark);
    border-radius: 0;
    box-shadow: none;
    padding: 18px 24px;
}

.dept-nav ul li a[href^="#"]:not([href="academic-department.html"]):not([href="#other-depts"]):not([href="#all-depts"]).active {
    color: var(--accent-orange);
    background: transparent !important;
    border-bottom: 3px solid var(--accent-orange);
    box-shadow: none;
}

.dept-nav ul li a[href^="#"]:not([href="academic-department.html"]):not([href="#other-depts"]):not([href="#all-depts"]):hover {
    color: var(--accent-orange);
    background: rgba(255, 111, 0, 0.05) !important;
    border-bottom: 3px solid var(--accent-orange);
}

/* Ensure non-hash links (like Faculty, Courses pages if they're separate files) also get normal styling */
.dept-nav ul li a:not([href^="#"]):not([href="academic-department.html"]):not([href*="dept-"]) {
    background: transparent;
}


/* ============================================
   FINAL OVERRIDE - REGULAR NAV LINKS
   ============================================ */
/* Make absolutely sure section links (#about-dept, #faculty, etc.) look normal */
.dept-nav ul li a[href="#about-dept"],
.dept-nav ul li a[href="#faculty"],
.dept-nav ul li a[href="#courses"],
.dept-nav ul li a[href="#activities"],
.dept-nav ul li a[href="#student-activities"],
.dept-nav ul li a[href="#newsletter"],
.dept-nav ul li a[href="#about-departments"],
.dept-nav ul li a[href="#facilities"] {
    background: transparent !important;
    color: var(--text-dark) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 18px 24px !important;
    border-bottom: 3px solid transparent;
}

/* Active state for section links - just orange underline, no background */
.dept-nav ul li a[href="#about-dept"].active,
.dept-nav ul li a[href="#faculty"].active,
.dept-nav ul li a[href="#courses"].active,
.dept-nav ul li a[href="#activities"].active,
.dept-nav ul li a[href="#about-departments"].active,
.dept-nav ul li a[href="#facilities"].active {
    color: var(--accent-orange) !important;
    background: transparent !important;
    border-bottom: 3px solid var(--accent-orange) !important;
}

/* Hover state for section links */
.dept-nav ul li a[href="#about-dept"]:hover,
.dept-nav ul li a[href="#faculty"]:hover,
.dept-nav ul li a[href="#courses"]:hover,
.dept-nav ul li a[href="#activities"]:hover,
.dept-nav ul li a[href="#about-departments"]:hover,
.dept-nav ul li a[href="#facilities"]:hover {
    color: var(--accent-orange) !important;
    background: rgba(255, 111, 0, 0.05) !important;
    border-bottom: 3px solid var(--accent-orange) !important;
}


/* ============================================
   REMOVE BUTTON BACKGROUNDS - MAKE NORMAL LINKS
   ============================================ */
/* Override All Departments button to look like regular link */
.dept-nav ul li a[href="academic-department.html"] {
    background: transparent !important;
    color: var(--text-dark) !important;
    padding: 18px 24px !important;
    border-radius: 0 !important;
    font-weight: 600;
    box-shadow: none !important;
    border-bottom: 3px solid transparent !important;
}

.dept-nav ul li a[href="academic-department.html"]:hover {
    background: rgba(255, 111, 0, 0.05) !important;
    color: var(--accent-orange) !important;
    border-bottom: 3px solid var(--accent-orange) !important;
    transform: none !important;
}

/* Override Department Home button (active state) to look like regular link */
.dept-nav ul li a[href="academic-department.html"].active {
    background: transparent !important;
    color: var(--accent-orange) !important;
    padding: 18px 24px !important;
    border-radius: 0 !important;
    font-weight: 600;
    box-shadow: none !important;
    border-bottom: 3px solid var(--accent-orange) !important;
}

.dept-nav ul li a[href="academic-department.html"].active:hover {
    background: rgba(255, 111, 0, 0.05) !important;
    color: var(--accent-orange) !important;
    border-bottom: 3px solid var(--accent-orange) !important;
    transform: none !important;
}

/* Remove the ::before pseudo-element that was hiding */
.dept-nav ul li a[href="academic-department.html"]::before {
    content: '' !important;
    display: block !important;
}


/* ============================================
   REMOVE DEFAULT UNDERLINES - SHOW ONLY ON HOVER/ACTIVE
   ============================================ */
/* Remove default underline from all dept-nav links */
.dept-nav a {
    border-bottom: none !important;
}

/* Show underline ONLY on hover */
.dept-nav a:hover {
    border-bottom: 3px solid var(--accent-orange) !important;
}

/* Show underline ONLY when specifically active (with .active class) */
.dept-nav a.active {
    border-bottom: 3px solid var(--accent-orange) !important;
    color: var(--accent-orange) !important;
}

/* Override section links - no default underline */
.dept-nav ul li a[href^="#"] {
    border-bottom: none !important;
}

.dept-nav ul li a[href^="#"]:hover {
    border-bottom: 3px solid var(--accent-orange) !important;
}

.dept-nav ul li a[href^="#"].active {
    border-bottom: 3px solid var(--accent-orange) !important;
}

/* Override All Departments and Department Home - no default underline */
.dept-nav ul li a[href="academic-department.html"] {
    border-bottom: none !important;
}

.dept-nav ul li a[href="academic-department.html"]:hover {
    border-bottom: 3px solid var(--accent-orange) !important;
}

.dept-nav ul li a[href="academic-department.html"].active {
    border-bottom: 3px solid var(--accent-orange) !important;
}


/* ============================================
   REMOVE HOVER UNDERLINES - ONLY ACTIVE STATE
   ============================================ */
/* Remove underline on hover - keep background color only */
.dept-nav a:hover {
    border-bottom: none !important;
    background: rgba(255, 111, 0, 0.05) !important;
    color: var(--accent-orange) !important;
}

/* Section links - no hover underline */
.dept-nav ul li a[href^="#"]:hover {
    border-bottom: none !important;
    background: rgba(255, 111, 0, 0.05) !important;
    color: var(--accent-orange) !important;
}

/* All Departments and Department Home - no hover underline */
.dept-nav ul li a[href="academic-department.html"]:hover {
    border-bottom: none !important;
    background: rgba(255, 111, 0, 0.05) !important;
    color: var(--accent-orange) !important;
}

.dept-nav ul li a[href="academic-department.html"].active:hover {
    border-bottom: 3px solid var(--accent-orange) !important;
    background: rgba(255, 111, 0, 0.05) !important;
    color: var(--accent-orange) !important;
}

