/*
 * CSE IU Department - Main Stylesheet
 * Islamic University Color Scheme
 */

/* ========================================
   CSS VARIABLES / DESIGN TOKENS
   ======================================== */
:root {
    /* Primary Colors - IU Green Theme */
    --primary: #37A000;
    --primary-light: #4CBB17;
    --primary-dark: #2D8000;

    /* Accent Colors */
    --accent: #FFD700;
    --accent-light: #FFEB3B;

    /* Neutral Colors */
    --dark: #25282A;
    --gray-900: #1b263b;
    --gray-700: #415a77;
    --gray-500: #778da9;
    --gray-300: #d3d3d3;
    --gray-100: #f8f9fa;
    --white: #ffffff;

    /* Program Colors */
    --program-bsc: #37A000;
    --program-bsc-light: #4CBB17;
    --program-bsc-dark: #2D8000;

    --program-msc: #008080;
    --program-msc-light: #20b2aa;
    --program-msc-dark: #006666;

    --program-evening: #663399;
    --program-evening-light: #8a2be2;
    --program-evening-dark: #4b0082;



    /* Status Colors */
    --success: #37A000;
    --warning: #ff9800;
    --danger: #e53935;
    --info: #0288d1;

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
    --shadow-primary: 0 8px 24px rgba(55, 160, 0, 0.25);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Module Colors (Academics/Research) */
    --hp-navy: #0d1b2a;
    --hp-navy-light: #1b263b;
    --hp-green: #37A000;
    --hp-green-dark: #2D8000;
    --hp-green-dark: #2D8000;
    --hp-gold: #d4a574;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --gray-900: #e0e0e0;
    --gray-700: #b0b0b0;
    --gray-500: #888888;
    --gray-300: #404040;
    --gray-100: #121212;
    /* Dark Bg */
    --white: #1e1e1e;
    /* Card Bg */
    --dark: #f8f9fa;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* Hide back-to-top on mobile */
@media (max-width: 480px) {
    .back-to-top {
        display: none !important;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    color: var(--gray-700);
    font-size: 1.2rem;
    margin-right: 15px;
    cursor: pointer;
    transition: color 0.3s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary);
}

[data-theme="dark"] .theme-toggle {
    color: var(--accent);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Print Optimization */
@media print {

    .modern-header,
    .header-nav-menu,
    .nav-toggle,
    .theme-toggle,
    footer,
    .back-to-top,
    .hero-buttons,
    .alert-bar,
    .btn,
    .sidebar,
    .no-print {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    a {
        text-decoration: none !important;
        color: black !important;
    }

    /* Ensure tables and content print well */
    table {
        border-collapse: collapse !important;
        width: 100% !important;
    }

    th,
    td {
        border: 1px solid #ddd !important;
    }
}



/* ========================================
   GLOBAL RESETS & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* Prevent horizontal scroll from off-screen elements */
    width: 100%;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--gray-100);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    width: 100%;
    position: relative;
}

/* Container Padding Override - Reduce margins from screen edges */
/* Mobile-first approach with progressive enhancement */
.container,
.container-fluid {
    padding-left: 10px;
    padding-right: 10px;
    width: 100%;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .container {
        max-width: 85% !important;
        margin-left: auto;
        margin-right: auto;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {

    .container,
    .container-fluid {
        padding-left: 20px;
        padding-right: 20px;
    }

    .container {
        max-width: 85% !important;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .container {
        max-width: 85% !important;
        margin-left: auto;
        margin-right: auto;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {

    .container,
    .container-fluid {
        padding-left: 20px;
        padding-right: 20px;
    }

    .container {
        max-width: 85% !important;
        margin-left: auto;
        margin-right: auto;
    }
}

/* XXL devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 85% !important;
        margin-left: auto;
        margin-right: auto;
        padding-left: 30px;
        padding-right: 30px;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   NAVBAR STYLES
/* Glassmorphism Header Effect */
.modern-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 3px solid var(--navy);
}

.modern-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    gap: 15px;
    transition: height 0.3s ease;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.header-logo {
    height: 55px;
    width: auto;
    transition: all 0.3s ease;
}

.header-brand-text {
    display: flex;
    flex-direction: column;
}

.brand-prefix {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.2;
}

.brand-name {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.0rem;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--navy), #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.85rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
}

.brand-name-mobile {
    display: none;
    font-weight: 700;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--navy), #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Navigation Menu */
.header-nav-menu {
    display: flex;
    align-items: center;
}

/* Remove default Bootstrap dropdown arrow */
.dropdown-toggle::after {
    display: none !important;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    /* Further Reduced padding */
    color: var(--navy);
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    /* Reduced nav font size */
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(55, 160, 0, 0.1);
}

.nav-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.nav-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

/* Dropdown Menu - Enhanced visibility */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #ffffff;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1100;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--primary);
    display: block;
}

.nav-dropdown:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu>li>a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.dropdown-menu>li>a:hover {
    background: rgba(55, 160, 0, 0.08);
    color: var(--primary-dark);
    transform: translateX(5px);
    font-weight: 600;
}

/* Nested Dropdown (Submenu) - Enhanced Desktop */
.dropdown-submenu {
    position: relative;
}

/* Add hover bridge to prevent menu from disappearing when moving to submenu */
.dropdown-submenu::after {
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    width: 10px;
    height: 100%;
    background: transparent;
}

.dropdown-submenu>.dropdown-menu {
    top: -10px;
    left: 100%;
    margin-left: 5px;
    min-width: 220px;
    border-top: 2px solid var(--primary-light);
    opacity: 0;
    visibility: hidden;
    transform: translateX(15px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1200;
    pointer-events: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.dropdown-submenu:hover>.dropdown-menu,
.dropdown-submenu:focus-within>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

/* Submenu items - Smaller than parent but clean */
.dropdown-submenu>.dropdown-menu>li>a {
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--gray-700);
}

.dropdown-submenu>.dropdown-menu>li>a:hover {
    background: rgba(55, 160, 0, 0.1);
    color: var(--primary-dark);
}

.dropdown-submenu>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navigation Search */
.nav-search .nav-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    padding: 0;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--navy);
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

/* Laptop/Tablet - Slight Optimizations */
@media (min-width: 1201px) and (max-width: 1366px) {
    .container {
        max-width: 98% !important;
        padding-left: 10px;
        padding-right: 10px;
    }

    .brand-name {
        font-size: 0.95rem;
    }

    .nav-link {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}

/* Mobile Responsive - Activate at 1200px to prevent branding overflow */
@media (max-width: 1200px) {
    .header-nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        /* Reduced width */
        height: 100vh;
        background: #ffffff;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        padding: 60px 0 0 0;
        /* Add top padding to avoid overlap with toggle */
        flex-direction: column;
        align-items: flex-start;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        overflow-y: auto;
        z-index: 1100;
        /* Increased to cover main nav-toggle */
        display: flex;
    }

    /* Staggered Animation for Menu Items */
    .header-nav-menu.show .nav-item {
        animation: slideInRight 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
        opacity: 0;
        transform: translateX(20px);
    }

    .header-nav-menu.show .nav-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .header-nav-menu.show .nav-item:nth-child(2) {
        animation-delay: 0.15s;
    }

    .header-nav-menu.show .nav-item:nth-child(3) {
        animation-delay: 0.2s;
    }

    .header-nav-menu.show .nav-item:nth-child(4) {
        animation-delay: 0.25s;
    }

    .header-nav-menu.show .nav-item:nth-child(5) {
        animation-delay: 0.3s;
    }

    .header-nav-menu.show .nav-item:nth-child(6) {
        animation-delay: 0.35s;
    }

    .header-nav-menu.show .nav-item:nth-child(7) {
        animation-delay: 0.4s;
    }

    .header-nav-menu.show .nav-item:nth-child(8) {
        animation-delay: 0.45s;
    }

    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(30px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .mobile-nav-close {
        background: rgba(13, 27, 42, 0.05);
        border: none;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        color: var(--hp-navy);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: 0.2s;
    }

    .mobile-nav-close:hover {
        background: rgba(13, 27, 42, 0.1);
        transform: rotate(90deg);
        color: var(--danger);
    }

    .header-nav-menu.show {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 5px;
        padding: 0 15px 40px;
    }

    .nav-item {
        width: 100%;
        border-bottom: none;
        margin-bottom: 2px;
    }

    .nav-link {
        padding: 14px 18px;
        justify-content: space-between;
        color: var(--hp-navy);
        /* Navy Text */
        font-size: 1.05rem;
        /* Larger font */
        font-weight: 600;
        border-radius: 8px;
        transition: all 0.2s ease;
        border: 1px solid transparent;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(13, 27, 42, 0.08);
        /* Navy tint */
        padding-left: 22px;
        color: var(--hp-navy);
    }



    .nav-link i {
        color: var(--gray-600);
    }

    .nav-link:hover i {
        color: var(--hp-navy);
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        border-top: none;
        padding: 0;
        max-height: 0;
        opacity: 1;
        visibility: visible;
        overflow: hidden;
        transform: none;
        transition: max-height 0.3s ease, padding 0.3s ease;
        background: transparent;
        border-radius: 8px;
        margin-top: 0;
        display: block;
        margin-bottom: 0;
    }

    .nav-item.show .dropdown-menu,
    .dropdown-menu.show {
        background: #f8f9fa;
        /* Light gray background for menu */
        padding: 5px;
        margin-top: 5px;
        margin-bottom: 5px;
        border-left: 3px solid var(--hp-navy);
        /* Status indicator line */
    }



    /* Parent level dropdown items */
    .dropdown-menu>li>a {
        padding: 12px 20px;
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--gray-700);
        border-left: 3px solid transparent;
        border-radius: 4px;
        margin-bottom: 2px;
    }

    .dropdown-menu>li>a:hover {
        background: #fff;
        color: var(--hp-navy);
        border-left-color: var(--hp-navy);
        transform: translateX(5px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    /* Nested Submenu on Mobile - Enhanced */
    .dropdown-submenu {
        position: relative;
    }

    .dropdown-submenu>.dropdown-menu {
        position: static;
        top: auto;
        left: auto;
        transform: none;
        margin: 0;
        padding: 5px;
        background: #ffffff;
        border-radius: 8px;
        border-top: none;
        margin-left: 15px;
        border-left: 2px solid var(--hp-navy);
    }

    /* Submenu items - Smaller but clean styling */
    .dropdown-submenu>.dropdown-menu>li>a {
        padding: 10px 15px;
        font-size: 0.85rem;
        font-weight: 500;
        color: var(--gray-700);
        border-left: none;
    }

    .dropdown-submenu>.dropdown-menu>li>a:hover {
        background: rgba(55, 160, 0, 0.08);
        color: var(--primary-dark);
    }

    .dropdown-submenu>a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .dropdown-submenu>a i {
        transition: transform 0.3s ease;
    }

    .nav-toggle {
        display: block;
        z-index: 1101;
        /* Higher than sidebar (1100) */
        position: relative;
        /* Ensure z-index applies */
    }

    .brand-prefix,
    .brand-name,
    .brand-subtitle {
        display: block;
    }

    .brand-prefix {
        font-size: 0.75rem;
        margin-bottom: -2px;
    }

    .brand-name {
        font-size: 0.95rem;
        /* Slightly smaller for mobile */
        white-space: normal;
        /* Allow wrapping */
        line-height: 1.1;
        margin-bottom: 2px;
    }

    .brand-subtitle {
        font-size: 0.75rem;
        display: block;
        color: var(--hp-green) !important;
        /* Force Green for Uni Name */
        background: none;
        -webkit-background-clip: unset;
        background-clip: unset;
    }

    .header-logo {
        height: 50px;
    }

    .header-content {
        height: 70px;
    }
}

/* ========================================
   HERO / CAROUSEL STYLES
   ======================================== */
.hero-carousel {
    margin-top: 70px;
}

.hero-carousel .carousel-item {
    height: 500px;
    position: relative;
}

.hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.7) 0%, rgba(26, 35, 126, 0.5) 100%);
    z-index: 1;
}

.hero-carousel .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.hero-carousel .carousel-caption {
    z-index: 2;
    bottom: 50%;
    transform: translateY(50%);
    text-align: left;
    padding: 0 10%;
}

.hero-carousel .carousel-caption h5 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.hero-carousel .carousel-caption p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: var(--transition-normal);
}

.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next {
    opacity: 1;
}

.hero-carousel .carousel-control-prev {
    left: 30px;
}

.hero-carousel .carousel-control-next {
    right: 30px;
}

/* ========================================
   SECTION STYLES
   ======================================== */
.section {
    padding: 50px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header p {
    color: var(--gray-500);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto 0;
}

/* ========================================
   PAGE HEADER (Public Pages)
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--gray-900) 0%, #1b263b 100%);
    padding: 35px 0;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
    opacity: 0.9;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.page-header h1 i {
    margin-right: 10px;
}


.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0;
}

.page-header .subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    line-height: 1.7;
    margin-top: 10px;
}

.breadcrumb-nav {
    margin-top: 15px;
}

.breadcrumb-nav a {
    color: var(--hp-gold);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.breadcrumb-nav span {
    color: rgba(255, 255, 255, 0.6);
}



/* Breadcrumb Navigation */
.breadcrumb-nav {
    margin-bottom: 10px;
}

.breadcrumb-nav a {
    color: #d4a574;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-nav a:hover {
    color: #fff;
}

.breadcrumb-nav span {
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   CARD STYLES
   ======================================== */
.card-modern {
    background: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-normal);
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Glass Card */
.card-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Faculty Card - Styles consolidated at end of file (Faculty Card Styles section) */

/* ========================================
   CHAIRMAN MESSAGE SECTION
   ======================================== */
/* ========================================
   FOOTER STYLES
   ======================================== */
.footer-main {
    background: linear-gradient(135deg, var(--dark) 0%, var(--gray-900) 100%);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-main .container {
    max-width: 95% !important;
}



.footer-main h5 {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-main p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-main .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-main .footer-links li {
    margin-bottom: 12px;
}

.footer-main .footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.footer-main .footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-main .social-links {
    display: flex;
    gap: 15px;
}

.footer-main .social-links a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    transition: var(--transition-normal);
}

.footer-main .social-links a:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-3px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ========================================
   NOTICE BOARD STYLES
   ======================================== */
.notice-card {
    background: var(--white);
    border-left: 5px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 20px 25px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.notice-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.notice-card.urgent {
    border-color: var(--danger);
}

.notice-card.exam {
    border-color: var(--warning);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    color: var(--white);
    padding: 12px 30px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    transition: var(--transition-normal);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
    color: var(--white);
}

.btn-outline-primary-custom {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 28px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    background: transparent;
    transition: var(--transition-normal);
}

.btn-outline-primary-custom:hover {
    background: var(--primary);
    color: var(--white);
}

/* ========================================
   UTILITIES
   ======================================== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.bg-gradient-dark {
    background: linear-gradient(135deg, var(--dark), var(--gray-900));
}



/* ========================================
   FEATURE CARDS
   ======================================== */
.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card .feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card .feature-icon i {
    font-size: 28px;
    color: var(--white);
}

.feature-card h5 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--gray-500);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ========================================
   ACHIEVEMENT CARDS
   ======================================== */
.achievement-card {
    background: linear-gradient(135deg, var(--gray-100), var(--white));
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: var(--transition-normal);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.achievement-card:hover {
    background: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.achievement-card .achievement-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), #ffc107);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.achievement-card .achievement-icon i {
    font-size: 24px;
    color: var(--dark);
}

.achievement-card h5 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.achievement-card p {
    color: var(--gray-500);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ========================================
   QUICK LINKS
   ======================================== */
.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 25px 15px;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-normal);
    height: 100%;
    min-height: 120px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-link-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    color: var(--white);
}

.quick-link-card i {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--accent);
}

.quick-link-card span {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

/* ========================================
   PANEL HEADERS
   ======================================== */
.panel-header {
    padding: 15px 0;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary);
}

.panel-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary);
}



/* ========================================
   STATS BAR
   ======================================== */
.stats-bar .stat-item {
    padding: 10px;
}

.stats-bar .stat-item h3 {
    font-size: 2rem;
    color: var(--white);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (max-width: 991.98px) {
    .navbar-main .navbar-collapse {
        background: var(--dark);
        padding: 20px;
        border-radius: var(--radius-md);
        margin-top: 10px;
    }

    .hero-carousel .carousel-item {
        height: 400px;
    }

    .hero-carousel .carousel-caption h5 {
        font-size: 2rem;
    }

    .chairman-card {
        flex-direction: column;
        text-align: center;
    }



    .quick-link-card {
        min-height: 100px;
        padding: 20px 10px;
    }

    .quick-link-card i {
        font-size: 26px;
    }
}

@media (max-width: 767.98px) {
    .hero-carousel .carousel-item {
        height: 400px;
    }

    .hero-carousel .carousel-caption {
        padding: 0 5%;
        text-align: center;
    }

    .hero-carousel .carousel-caption h5 {
        font-size: 1.5rem;
    }

    .hero-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .hero-cta .btn.me-2 {
        margin-right: 0 !important;
    }

    .section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }



    .feature-card {
        padding: 25px 20px;
    }

    .stats-bar .stat-item h3 {
        font-size: 1.5rem;
    }

    .quick-link-card {
        min-height: 90px;
        padding: 15px 10px;
    }

    .quick-link-card i {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .quick-link-card span {
        font-size: 11px;
    }
}

/* ========================================
   BUET-STYLE COMPONENTS
   ======================================== */

/* Top Utility Bar */
.utility-bar {
    background: var(--dark);
    padding: 8px 0;
    font-size: 13px;
}

.utility-links a {
    color: rgba(255, 255, 255, 0.8);
    margin-right: 20px;
    transition: var(--transition-fast);
}

.utility-links a:hover {
    color: var(--accent);
}

.utility-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-utility {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 5px 15px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    transition: var(--transition-fast);
}

.btn-utility:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-utility-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-utility-primary:hover {
    background: var(--primary-light);
}

/* Section Badge */
.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Section (Two Column) */
.about-content {
    padding-right: 30px;
}

.about-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.about-text {
    color: var(--gray-700);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    padding: 20px 0;
    border-top: 1px solid var(--gray-300);
    border-bottom: 1px solid var(--gray-300);
}

.about-stat-item {
    text-align: center;
}

.about-stat-item .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.about-stat-item .stat-label {
    font-size: 13px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Image Grid */
.about-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.about-image-grid .image-main {
    grid-column: 1 / -1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image-grid .image-main img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.about-image-grid .image-secondary {
    display: contents;
}

.about-image-grid .image-secondary img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}



/* Research Areas Section */
.research-areas-section {
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.research-areas-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2337A000' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.research-intro h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.research-intro p {
    color: var(--gray-700);
    margin-bottom: 25px;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.research-icon-card {
    background: #fff;
    padding: 25px 15px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
}

.research-icon-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.research-icon-card .research-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(55, 160, 0, 0.1), rgba(76, 187, 23, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.research-icon-card .research-icon i {
    font-size: 26px;
    color: var(--primary);
}

.research-icon-card h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

/* Outreach Section */
.outreach-card {
    background: #fff;
    padding: 35px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    height: 100%;
}

.outreach-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.outreach-card .outreach-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.outreach-card .outreach-icon i {
    font-size: 30px;
    color: #fff;
}

.outreach-card h4 {
    color: var(--dark);
    margin-bottom: 15px;
}

.outreach-card p {
    color: var(--gray-700);
    font-size: 14px;
    margin-bottom: 20px;
}

.outreach-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.outreach-link:hover {
    color: var(--primary-dark);
}

/* News Tabs (BUET Style) */
.news-tabs-container {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.news-tabs {
    border: none;
    background: var(--gray-100);
    padding: 10px;
}

.news-tabs .nav-link {
    border: none;
    background: transparent;
    color: var(--gray-700);
    padding: 12px 25px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition-fast);
}

.news-tabs .nav-link:hover {
    background: rgba(55, 160, 0, 0.1);
    color: var(--primary);
}

.news-tabs .nav-link.active {
    background: var(--primary);
    color: #fff;
}

.news-tab-content {
    padding: 30px;
}

/* Event Cards */
.event-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--gray-100);
    padding: 20px;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.event-card:hover {
    background: #fff;
    box-shadow: var(--shadow-md);
}

.event-card .event-date {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    text-align: center;
    min-width: 70px;
}

.event-card .event-date .day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.event-card .event-date .month {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-card .event-info h5 {
    color: var(--dark);
    margin-bottom: 5px;
    font-size: 1rem;
}

.event-card .event-info p {
    color: var(--gray-500);
    margin: 0;
    font-size: 13px;
}

/* Responsive adjustments for BUET components */
@media (max-width: 991.98px) {
    .research-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .about-stat-item {
        flex: 1 0 45%;
    }

    .about-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    .utility-bar {
        display: none;
    }

    .research-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .research-icon-card {
        padding: 15px 10px;
    }

    .research-icon-card h5 {
        font-size: 12px;
    }

    .news-tabs .nav-link {
        padding: 10px 15px;
        font-size: 13px;
    }

    .news-tab-content {
        padding: 20px;
    }

    .about-image-grid {
        display: none;
    }


}

/* Duplicate Header Styles Removed */

/* ========================================
   HERO WELCOME SECTION
   ======================================== */

/* ========================================
   CAMPUS GALLERY / COMPACT CAROUSEL
   ======================================== */
.campus-gallery-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.campus-carousel {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.campus-carousel .carousel-item {
    height: 400px;
}

.campus-carousel .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.campus-carousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
    z-index: 1;
}

.campus-carousel .carousel-caption {
    z-index: 2;
    bottom: 30px;
    left: 30px;
    right: auto;
    text-align: left;
    max-width: 500px;
}

.campus-carousel .carousel-caption h5 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 8px;
}

.campus-carousel .carousel-caption p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin: 0;
}

.campus-carousel .carousel-control-prev,
.campus-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: var(--transition-normal);
}

.campus-carousel:hover .carousel-control-prev,
.campus-carousel:hover .carousel-control-next {
    opacity: 1;
}

.campus-carousel .carousel-control-prev {
    left: 20px;
}

.campus-carousel .carousel-control-next {
    right: 20px;
}

.campus-carousel .carousel-indicators {
    bottom: 20px;
    margin-bottom: 0;
}

.campus-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    margin: 0 5px;
    opacity: 1;
}

.campus-carousel .carousel-indicators button.active {
    background: #fff;
    border-color: #fff;
}

@media (max-width: 767.98px) {
    .campus-gallery-section {
        padding: 50px 0;
    }

    .campus-carousel .carousel-item {
        height: 280px;
    }

    .campus-carousel .carousel-caption {
        left: 20px;
        bottom: 20px;
    }

    .campus-carousel .carousel-caption h5 {
        font-size: 1.2rem;
    }

    .campus-carousel .carousel-caption p {
        font-size: 0.85rem;
    }
}

/* ========================================
   RESPONSIVE DESIGN ENHANCEMENTS
   ======================================== */

/* Mobile-First Typography Scaling */
@media (max-width: 575.98px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    h5 {
        font-size: 1rem;
    }

    .container,
    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }

    .page-hero,
    .page-header {
        padding: 25px 0;
        margin-top: 70px;
    }

    .page-hero h1,
    .page-header h1 {
        font-size: 1.75rem;
    }

    .page-hero p,
    .page-header p {
        font-size: 0.95rem;
    }

    /* Force side-by-side layout for avatar headers on mobile */
    .page-header .d-flex.align-items-center.gap-4 {
        gap: 12px !important;
    }

    .page-header .dashboard-avatar {
        width: 60px !important;
        height: 60px !important;
        border-width: 2px !important;
    }

    .page-header .header-meta {
        gap: 8px !important;
        flex-wrap: wrap;
    }

    /* Make buttons smaller on mobile in page headers */
    .page-header .btn {
        padding: 5px 10px !important;
        font-size: 0.8rem !important;
        height: auto !important;
    }
}

/* Tablet Devices (576px - 991px) */
@media (min-width: 576px) and (max-width: 991.98px) {
    html {
        font-size: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .container {
        max-width: 90% !important;
    }

    .page-hero,
    .page-header {
        padding: 30px 0;
    }

    .page-hero h1,
    .page-header h1 {
        font-size: 2rem;
    }
}

/* Desktop Devices (992px and up) */
@media (min-width: 992px) {
    html {
        font-size: 16px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.75rem;
    }

    .page-hero,
    .page-header {
        padding: 35px 0;
    }

    .page-hero h1,
    .page-header h1 {
        font-size: 2.5rem;
    }
}

/* ========================================
   RESPONSIVE CARD LAYOUTS
   ======================================== */

.card-modern,
.info-card,
.news-card,
.contact-card,
.research-area-card {
    transition: all var(--transition-normal);
}

@media (max-width: 575.98px) {

    .card-modern,
    .info-card,
    .news-card,
    .contact-card,
    .research-area-card {
        padding: 20px;
        margin-bottom: 20px;
    }

    .card-modern .card-body {
        padding: 20px;
    }

    .news-card .card-image {
        height: 150px;
    }

    .news-card .card-content {
        padding: 15px;
    }
}

/* ========================================
   RESPONSIVE NAVIGATION
   ======================================== */

@media (max-width: 991.98px) {
    .header-nav .nav-menu {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .header-nav .nav-item {
        border-bottom: 1px solid #f0f0f0;
    }

    .header-nav .nav-item a {
        padding: 12px 15px;
        display: block;
    }
}

/* ========================================
   RESPONSIVE FORM LAYOUTS
   ======================================== */

@media (max-width: 575.98px) {

    .form-container,
    .contact-form {
        padding: 20px;
    }

    .form-label {
        font-size: 0.95rem;
    }

    .form-control,
    .form-select {
        padding: 10px 12px;
        font-size: 16px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
        width: 100%;
    }

    .row .btn {
        margin-bottom: 10px;
    }
}

/* ========================================
   RESPONSIVE IMAGES & MEDIA
   ======================================== */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.img-responsive {
    width: 100%;
    height: auto;
}

.hero-slider {
    height: 400px;
}

@media (min-width: 576px) {
    .hero-slider {
        height: 500px;
    }
}

@media (min-width: 992px) {
    .hero-slider {
        height: 600px;
    }
}

.carousel-item {
    min-height: 300px;
}

@media (min-width: 576px) {
    .carousel-item {
        min-height: 400px;
    }
}

@media (min-width: 992px) {
    .carousel-item {
        min-height: 500px;
    }
}

/* ========================================
   RESPONSIVE GRID LAYOUTS
   ======================================== */

@media (max-width: 575.98px) {
    .row {
        --bs-gutter-x: 12px;
        --bs-gutter-y: 12px;
    }

    .col-sm-6,
    .col-md-6,
    .col-lg-4 {
        width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {

    .col-md-3,
    .col-lg-4 {
        width: 50%;
        flex: 0 0 50%;
    }
}

/* ========================================
   RESPONSIVE FOOTER
   ======================================== */

@media (max-width: 575.98px) {
    .footer {
        padding: 40px 0 20px !important;
    }

    .footer-widget {
        margin-bottom: 30px;
    }

    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-links a {
        font-size: 0.8rem;
    }
}

/* ========================================
   RESPONSIVE BUTTONS & CONTROLS
   ======================================== */

@media (max-width: 575.98px) {
    .btn-sm {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .btn-md {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 12px 20px;
        font-size: 1rem;
        width: 100%;
    }

    .btn-group {
        flex-direction: column;
        gap: 10px;
    }

    .btn-group>.btn {
        width: 100%;
    }
}

/* ========================================
   RESPONSIVE SPACING UTILITIES
   ======================================== */

@media (max-width: 575.98px) {
    .mt-5 {
        margin-top: 30px !important;
    }

    .mb-5 {
        margin-bottom: 30px !important;
    }

    .py-5 {
        padding-top: 80px !important;
        padding-bottom: 30px !important;
    }

    .px-4 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .g-4 {
        --bs-gutter-x: 20px;
        --bs-gutter-y: 20px;
    }
}

/* ========================================
   RESPONSIVE VISIBILITY
   ======================================== */

@media (max-width: 575.98px) {
    .d-none-mobile {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .d-none-desktop {
        display: none !important;
    }
}

/* ========================================
   RESPONSIVE TABLE STYLES
   ======================================== */

table {
    width: 100%;
    border-collapse: collapse;
}

@media (max-width: 767.98px) {
    table {
        font-size: 0.9rem;
    }

    table th,
    table td {
        padding: 10px 8px;
    }

    /* Stack table on mobile */
    .table-responsive {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ========================================
   HOMEPAGE SPECIFIC STYLES
   ======================================== */

/* Legacy Color Variables for Homepage */
:root {
    --hp-green: #2e7d32;
    --hp-green-dark: #1b5e20;
    --hp-navy: #0d1b2a;
    --hp-navy-light: #1b263b;
    --hp-gold: #d4a574;
    --hp-white: #ffffff;
    --hp-gray-50: #fafafa;
    --hp-gray-100: #f5f5f5;
    --hp-gray-200: #eeeeee;
    --hp-gray-600: #757575;
    --hp-gray-800: #424242;
}

/* Hero Section - Clean University Style */
.hero {
    background: var(--hp-navy);
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 130px 0 50px 0;
    /* Top padding > bottom padding to account for fixed header (approx 80px) */
    overflow: hidden;
}

/* Adjust hero height for portrait screens (e.g. mobile desktop mode) */
@media (orientation: portrait) {
    .hero {
        min-height: auto !important;
        padding-bottom: 80px;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(135deg, #1a4d1a 0%, #2d5a2d 50%, #1b5e20 100%);
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
    opacity: 0.95;
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero .uni-name {
    color: var(--hp-gold);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.hero h1 {
    color: var(--hp-white);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero .tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 550px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 60px;
    margin-top: 60px;
}

.hero-stat {
    text-align: left;
}

.hero-stat .num {
    color: var(--hp-white);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stat .label {
    color: var(--hp-gold);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Custom Buttons for Homepage */
.btn-primary-custom {
    background: var(--hp-green);
    color: var(--hp-white);
    padding: 14px 35px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.btn-primary-custom:hover {
    background: var(--hp-green-dark);
    color: var(--hp-white);
}

.btn-outline-custom {
    background: transparent;
    color: var(--hp-white);
    padding: 14px 35px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    margin-left: 15px;
}

.btn-outline-custom:hover {
    background: var(--hp-white);
    color: var(--hp-navy);
    border-color: var(--hp-white);
}

/* Program Cards - Enhanced */
.program-box {
    display: block;
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-bottom: 30px;
    text-decoration: none;
    border: 2px solid var(--hp-navy);
}

.program-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.03) 0%, rgba(46, 125, 50, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.program-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.program-box:hover::before {
    opacity: 1;
}

.program-box .icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.1), rgba(46, 125, 50, 0.05));
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.program-box:hover .icon {
    background: linear-gradient(135deg, var(--hp-green), var(--hp-green-dark));
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(46, 125, 50, 0.2);
}

.program-box .icon i {
    font-size: 2.2rem;
    color: var(--hp-green);
    transition: color 0.3s;
}

.program-box:hover .icon i {
    color: var(--white);
}

.program-box h4 {
    color: var(--hp-navy);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.program-box p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
    font-size: 1rem;
}

.program-box .details {
    margin-top: 25px;
    padding-top: 80px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    gap: 15px;
}

.program-box .details span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #888;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 30px;
    font-weight: 500;
}

.program-box .details span i {
    color: var(--hp-green);
    font-size: 1rem;
}

/* Notice Board & News */
.notices-news-section {
    background: linear-gradient(180deg, var(--gray-100) 0%, #fff 100%);
    padding: 50px 0;
}





/* Enhanced CTA Section */
.cta-section {
    position: relative;
    background: var(--hp-green);
    padding: 80px 0;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
}

.btn-white {
    background: var(--hp-white);
    color: var(--hp-green);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    color: var(--hp-navy);
}

@media (max-width: 991px) {
    .hero {
        min-height: auto;
        padding: 50px 0;
    }

    .hero::before {
        width: 100%;
        clip-path: none;
        background: linear-gradient(180deg, rgba(13, 27, 42, 0.9) 0%, rgba(46, 125, 50, 0.9) 100%);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 30px;
        flex-wrap: wrap;
    }
}

/* ========================================
   RESTORED RICH VISUAL ELEMENTS
   ======================================== */

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}





/* Notices & News - Themed Design */
.notice-panel,
.news-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--navy);
}

.notice-panel .panel-header {
    background: linear-gradient(135deg, var(--hp-green) 0%, var(--hp-green-dark) 100%);
    padding: 20px 25px;
    border-bottom: none;
}

.news-panel .panel-header {
    background: linear-gradient(135deg, var(--hp-navy) 0%, var(--hp-navy-light) 100%);
    padding: 20px 25px;
    border-bottom: none;
}

.notice-panel .panel-header h3,
.news-panel .panel-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-body {
    padding: 15px;
    flex: 1;
    background: #fff;
}

/* Notice Items */
.notice-item-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.notice-item-card:hover {
    background: #fcfcfc;
    border-color: var(--hp-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.08);
}

.notice-item-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--hp-green);
    opacity: 0;
    transition: opacity 0.3s;
}

.notice-item-card:hover::before {
    opacity: 1;
}

.notice-item-card:last-child {
    margin-bottom: 0;
}

.notice-item-card .notice-date-card {
    background: rgba(46, 125, 50, 0.05);
    border: 1px solid rgba(46, 125, 50, 0.1);
    border-radius: 8px;
    width: 75px;
    height: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notice-item-card .notice-date-card .day {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--hp-green);
}

.notice-item-card .notice-date-card .month {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--hp-navy);
    margin-top: 2px;
}

.notice-info {
    flex: 1;
}

.notice-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--hp-navy);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.notice-item-card:hover .notice-title {
    color: var(--hp-green);
}

.notice-meta {
    font-size: 0.85rem;
    color: #777;
    display: flex;
    gap: 12px;
}

.notice-meta i {
    color: var(--hp-gold);
}

.notice-panel .panel-footer,
.news-panel .panel-footer {
    padding: 20px 25px;
    border-top: 1px solid #f0f4f8;
    text-align: center;
    background: #fafafa;
}

/* View All Buttons - Themed */
.notice-panel .view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--hp-green);
    color: #fff;
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.2);
}

.notice-panel .view-all-btn:hover {
    background: var(--hp-green-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(46, 125, 50, 0.3);
}

.news-panel .view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--hp-navy);
    color: #fff;
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(13, 27, 42, 0.2);
}

.news-panel .view-all-btn:hover {
    background: var(--hp-navy-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(13, 27, 42, 0.3);
}

/* News List Layout - Matches Notice Design */
.news-entry {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #ddd;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border-radius: 10px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.news-entry::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--hp-navy);
    opacity: 0;
    transition: opacity 0.3s;
}

.news-entry:hover::before {
    opacity: 1;
}

.news-entry:hover {
    background: #fcfcfc;
    border-color: var(--hp-navy);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 27, 42, 0.08);
}

.news-entry:last-child {
    border-bottom: none;
}

/* Duplicate hover rule removed */

.news-thumb-small {
    width: 75px;
    height: 75px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid #eee;
}

.news-thumb-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-entry:hover .news-thumb-small img {
    transform: scale(1.1);
}

.news-info {
    flex-grow: 1;
    min-width: 0;
}

.news-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--hp-navy);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news-entry:hover .news-title {
    color: var(--hp-green);
}

.news-meta {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    background: #e0e0e0;
    color: #555;
    letter-spacing: 0.5px;
}

.category-badge.event {
    background: rgba(46, 125, 50, 0.1);
    color: var(--hp-green);
}

.category-badge.news {
    background: rgba(13, 27, 42, 0.1);
    color: var(--hp-navy);
}



/* Chairman Section - Rich Design */
.chairman-section {
    position: relative;
    background: linear-gradient(135deg, var(--hp-navy) 0%, var(--hp-navy-light) 100%);
    padding: 50px 0;
}

.chairman-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(46, 125, 50, 0.1) 0%, transparent 70%);
    opacity: 0.5;
}

/* Chairman - Float Style Layout */
.chairman-wrapper {
    position: relative;
    z-index: 2;
}

.chairman-wrapper .section-tag {
    display: inline-block;
    background: var(--hp-green);
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.chairman-text-content {
    color: rgba(255, 255, 255, 0.9);
}

.chairman-text-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 20px;
}

/* Float image - newspaper style */
.chairman-photo-float {
    float: left;
    margin: 0 25px 15px 0;
    text-align: center;
}

.chairman-photo-float img {
    width: 180px;
    height: 210px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block;
    margin-bottom: 10px;
}

.chairman-name {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

.chairman-title {
    color: var(--hp-gold);
    font-size: 0.85rem;
    font-weight: 500;
}

.btn-read-more {
    display: inline-block;
    color: var(--hp-gold);
    font-weight: 600;
    text-decoration: none;
    padding: 10px 0;
    transition: all 0.3s;
}

.chairman-section {
    scroll-margin-top: 100px;
    /* Fix anchor position */
}

.btn-read-more:hover {
    color: #ffffff !important;
    /* Force white text */
}

.btn-read-more i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.btn-read-more:hover i {
    transform: translateX(5px);
}





.photo-frame {
    display: inline-block;
    padding: 10px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-bottom: 20px;
}

.photo-frame::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    bottom: -10px;
    left: -10px;
    border: 2px solid var(--hp-green);
    border-radius: 4px;
    z-index: -1;
    opacity: 0.3;
}

.photo-frame::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    bottom: -20px;
    left: -20px;
    border: 2px solid var(--hp-gold);
    border-radius: 4px;
    z-index: -2;
    opacity: 0.2;
}

.photo-frame img {
    width: 280px;
    height: 320px;
    object-fit: cover;
    display: block;
}

.chairman-message h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--hp-white);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.chairman-message h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--hp-green);
}

.chairman-message p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
}

/* Events Carousel - Rich Design */
.events-section {
    background: #fff;
    padding: 20px 0 30px 0;
    /* Reduced top/bottom padding */
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Monitor Stand Styles */
.monitor-stand {
    position: relative;
    margin-top: -5px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stand-neck {
    width: 120px;
    height: 40px;
    background: #222;
    margin: 0 auto;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.stand-base {
    width: 240px;
    height: 15px;
    background: #1a1a1a;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Power Light */
.events-carousel-wrapper::after {
    content: '';
    position: absolute;
    bottom: 12px;
    right: 25px;
    width: 6px;
    height: 6px;
    background: #0f0;
    border-radius: 50%;
    box-shadow: 0 0 5px #0f0;
    z-index: 10;
}

/* Peripherals Reverted */

/* Remove unused container rule */

.events-carousel-container {
    width: 100%;
    max-width: 900px;
    padding: 0 15px;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
}

.events-carousel-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 0 0 1px #222, 0 10px 40px rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    background: #2b2b2b;
    /* Monitor Casing Dark */
    padding: 12px 12px 35px 12px;
    /* Thick bottom bezel */
    z-index: 5;
    /* Monitor Effect */
}

.events-carousel-wrapper .carousel {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    border-radius: 0;
    /* Slightly less than wrapper to fit inside padding */
    background: #fff;
}

.events-carousel-wrapper .carousel-item {
    height: 100%;
}

.events-carousel-wrapper .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    object-position: center center;
    transition: transform 7s linear;
}

.events-carousel-wrapper .carousel-item.active img {
    transform: scale(1.05);
}

/* Blur footer caption overlay - positioned relative to .carousel (the visible frame) */
.carousel-caption-blur {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 15px;
    background: rgba(13, 27, 42, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.carousel-caption-blur h5 {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

.carousel-caption-blur p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    margin: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Mobile styles for blur caption */
@media (max-width: 991px) {
    .carousel-caption-blur {
        padding: 6px 10px;
        gap: 8px;
    }

    .carousel-caption-blur h5 {
        font-size: 0.7rem;
    }

    .carousel-caption-blur p {
        font-size: 0.65rem;
    }
}

@media (max-width: 991px) {

    /* Hero Stats - Horizontal 3-column layout on mobile */
    .hero-stats {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 20px;
        margin-top: 40px;
    }

    .hero-stat {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }

    .hero-stat .num {
        font-size: 2rem;
    }

    .hero-stat .label {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }



    .chairman-message h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .chairman-section {
        padding: 30px 0;
    }

    /* Mobile carousel caption - ensure visible */
    .events-carousel-wrapper .carousel-caption {
        display: block !important;
        padding: 15px 10px 10px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 100%);
    }

    .events-carousel-wrapper .carousel-caption h5 {
        font-size: 0.85rem;
        margin-bottom: 3px;
        line-height: 1.2;
    }

    .events-carousel-wrapper .carousel-caption p {
        font-size: 0.7rem;
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .events-carousel-wrapper .event-badge {
        font-size: 0.6rem;
        padding: 2px 8px;
        margin-bottom: 5px;
    }

    .notice-panel .panel-header::before,
    .notice-panel .panel-header::after,
    .news-panel .panel-header::before,
    .news-panel .panel-header::after {
        display: none;
    }

    .notice-panel .panel-header,
    .news-panel .panel-header {
        padding: 3px 15px;
    }

    .notice-panel .panel-header h3,
    .news-panel .panel-header h3 {
        font-size: 1.25rem;
    }

    .notice-panel .icon-box,
    .news-panel .icon-box {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Redundant hero block removed */

.hero-illustration {
    position: absolute;
    top: 50%;
    /* Center in the green area: starts at ~55% from left, ends at 100%, center is ~77.5% */
    left: 77%;
    transform: translate(-50%, -50%);
    width: min(35%, 400px);
    z-index: 1;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    animation: floatGently 6s ease-in-out infinite;
}

.hero-illustration img {
    width: 100%;
    height: auto;
    object-fit: contain;
    /* filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)); */
    /* animation: glowPulse 4s ease-in-out infinite alternate; */
}

@keyframes floatGently {

    0%,
    100% {
        transform: translate(-50%, -50%);
    }

    50% {
        transform: translate(-50%, -52%);
    }
}

/* @keyframes glowPulse removed */

@media (max-width: 991px) {
    .hero-illustration {
        display: none;
    }
}




/* ========================================
   CONTACT PAGE STYLES
   ======================================== */
:root {
    /* Contact Page Specific Colors (Legacy) */
    --green: #2e7d32;
    --green-dark: #1b5e20;
    --navy: #0d1b2a;
    --navy-light: #1b263b;
    --gold: #d4a574;
}

/* Contact Cards */
.contact-card {
    background: linear-gradient(145deg, #ffffff, #fafafa);
    border: 1px solid #e8eef3;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    height: 100%;
    transition: all 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.contact-card h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--navy);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-100);
}

.contact-card h4 i {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    font-size: 1.2rem;
}

/* Contact Items */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.3s;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item:hover {
    padding-left: 10px;
}

.contact-item .icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.contact-item .info h5 {
    color: var(--navy);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-item .info p {
    color: var(--gray-600);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-item .info a {
    color: var(--green);
    text-decoration: none;
}

.contact-item .info a:hover {
    text-decoration: underline;
}

/* Map - Contact Page */
.contact-section .map-container {
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-section .map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
}

/* Quick Contact */
.quick-contact {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: 20px;
    padding: 40px;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

.quick-contact::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: var(--green);
    border-radius: 50%;
    opacity: 0.1;
    transform: translate(50%, -50%);
}

.quick-contact h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.quick-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.quick-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.quick-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-link:hover {
    background: var(--green);
    color: #fff;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .quick-contact {
        padding: 30px 20px;
    }

    /* ========================================
   EVENTS PAGE STYLES
   ======================================== */
    :root {
        /* Events Page Specific Colors (Legacy) */
        --green: #2e7d32;
        --green-dark: #1b5e20;
        --navy: #0d1b2a;
        --navy-light: #1b263b;
        --gold: #d4a574;
    }

    /* Event Card */
    .event-card {
        background: linear-gradient(145deg, #ffffff, #fafafa);
        border: 1px solid #e8eef3;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
        transition: all 0.4s ease;
        height: 100%;
    }

    .event-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    }

    .event-card .event-image {
        height: 180px;
        background: linear-gradient(135deg, var(--navy), var(--navy-light));
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .event-card .event-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .event-card .event-image .placeholder-icon {
        font-size: 4rem;
        color: rgba(255, 255, 255, 0.3);
    }

    .event-card .event-date {
        position: absolute;
        top: 15px;
        left: 15px;
        background: linear-gradient(135deg, var(--green), var(--green-dark));
        color: #fff;
        padding: 10px 15px;
        border-radius: 10px;
        text-align: center;
        min-width: 60px;
    }

    .event-card .event-date .day {
        font-size: 1.5rem;
        font-weight: 700;
        line-height: 1;
    }

    .event-card .event-date .month {
        font-size: 0.75rem;
        text-transform: uppercase;
    }

    .event-card .event-badge {
        position: absolute;
        top: 15px;
        right: 15px;
        background: var(--gold);
        color: #fff;
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 600;
    }

    .event-card .card-body {
        padding: 25px;
    }

    .event-card h5 {
        color: var(--navy);
        font-weight: 700;
        margin-bottom: 12px;
        font-size: 1.1rem;
    }

    .event-card p {
        color: #666;
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 15px;
    }

    .event-card .event-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        font-size: 0.85rem;
        color: #888;
    }

    .event-card .event-meta span {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .event-card .event-meta i {
        color: var(--green);
    }

    /* Featured Event */
    .featured-event {
        background: linear-gradient(135deg, var(--navy), var(--navy-light));
        border-radius: 20px;
        padding: 40px;
        margin-bottom: 50px;
        color: #fff;
        position: relative;
        overflow: hidden;
    }

    .featured-event::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 300px;
        height: 300px;
        background: var(--green);
        border-radius: 50%;
        opacity: 0.1;
        transform: translate(0, 0);
        /* Reset generic transform if any */
    }

    .featured-event .badge {
        background: linear-gradient(135deg, var(--gold), #c99a5b);
        color: #fff;
        padding: 8px 20px;
        border-radius: 50px;
        font-weight: 600;
        font-size: 0.85rem;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 20px;
    }

    .featured-event h3 {
        font-weight: 700;
        margin-bottom: 15px;
        font-size: 1.8rem;
    }

    .featured-event p {
        opacity: 0.9;
        line-height: 1.8;
        margin-bottom: 25px;
    }

    .featured-event .event-details {
        display: flex;
        flex-wrap: wrap;
        gap: 25px;
        margin-bottom: 25px;
    }

    .featured-event .event-details .detail {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .featured-event .event-details .detail i {
        color: var(--gold);
        font-size: 1.2rem;
    }

    .featured-event .register-btn {
        background: var(--green);
        color: #fff;
        padding: 12px 30px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        transition: all 0.3s;
    }

    .featured-event .register-btn:hover {
        background: var(--green-dark);
        color: #fff;
        transform: scale(1.05);
    }

    /* Calendar Sidebar */
    .calendar-sidebar {
        background: linear-gradient(145deg, #ffffff, #fafafa);
        border: 1px solid #e8eef3;
        border-radius: 16px;
        padding: 25px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    }

    .calendar-sidebar h4 {
        color: var(--navy);
        font-weight: 700;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .calendar-sidebar h4 i {
        color: var(--green);
    }

    .upcoming-event-item {
        display: flex;
        gap: 15px;
        padding: 15px 0;
        border-bottom: 1px solid #e8eef3;
    }

    .upcoming-event-item:last-child {
        border-bottom: none;
    }

    .upcoming-event-item .date-box {
        background: linear-gradient(135deg, var(--green), var(--green-dark));
        color: #fff;
        padding: 10px;
        border-radius: 8px;
        text-align: center;
        min-width: 50px;
    }

    .upcoming-event-item .date-box .day {
        font-size: 1.2rem;
        font-weight: 700;
        line-height: 1;
    }

    .upcoming-event-item .date-box .month {
        font-size: 0.7rem;
        text-transform: uppercase;
    }

    .upcoming-event-item .event-info h6 {
        color: var(--navy);
        font-weight: 600;
        font-size: 0.95rem;
        margin-bottom: 5px;
    }

    .upcoming-event-item .event-info span {
        color: #888;
        font-size: 0.8rem;
    }

    /* Filter Bar */
    .filter-bar {
        background: #fff;
        padding: 20px;
        border-radius: 12px;
        margin-bottom: 30px;
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
        align-items: center;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .filter-bar .filter-btn {
        background: #f8f9fa;
        border: 2px solid transparent;
        padding: 10px 20px;
        border-radius: 50px;
        color: var(--navy);
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
    }

    .filter-bar .filter-btn:hover,
    .filter-bar .filter-btn.active {
        background: linear-gradient(135deg, var(--green), var(--green-dark));
        color: #fff;
    }

    @media (max-width: 768px) {
        .featured-event {
            padding: 25px;
        }

        .featured-event h3 {
            font-size: 1.4rem;
        }
    }
}




/* ========================================
   RESEARCH & LABS STYLES
/* ========================================
   RESEARCH INDEX UNIQUE STYLES
   ======================================== */

/* Research Cards */


/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: var(--green);
    border-radius: 50%;
    opacity: 0.1;
    transform: translate(50%, -50%);
}

.cta-section h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin: 0 auto 30px;
}

.cta-section .btn-cta {
    background: var(--green);
    color: #fff;
    padding: 15px 40px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.cta-section .btn-cta:hover {
    background: var(--green-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.4);
}

/* Header Actions & Research Header Elements */
.header-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-header {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-header.primary {
    background: #fff;
    color: var(--navy);
}

.btn-header.primary:hover {
    background: var(--gold);
    transform: translateY(-3px);
}

.btn-header.outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-header.outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Page Header Special (Research Index Specific) */
/* We can use a specific class for this widely, e.g. .page-header.fancy */




/* ========================================
   PUBLICATIONS STYLES
    .filter-card {
        background: linear-gradient(145deg, #ffffff, #fafafa);
        border: 1px solid #e8eef3;
        border-radius: 16px;
        padding: 25px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
        position: sticky;
        top: 100px;
    }

    .filter-card h5 {
        color: var(--navy);
        font-weight: 700;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .filter-card h5 i {
        color: var(--green);
    }

    .filter-card label {
        color: var(--navy);
        font-weight: 600;
        margin-bottom: 8px;
        display: block;
        font-size: 0.9rem;
    }

    .filter-card .form-control,
    .filter-card .form-select {
        border: 2px solid var(--gray-200);
        border-radius: 10px;
        padding: 12px 15px;
        font-size: 0.9rem;
        transition: all 0.3s;
    }

    .filter-card .form-control:focus,
    .filter-card .form-select:focus {
        border-color: var(--green);
        box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
    }

    .filter-card .btn-filter {
        background: linear-gradient(135deg, var(--green), var(--green-dark));
        color: #fff;
        border: none;
        padding: 12px;
        border-radius: 10px;
        font-weight: 600;
        width: 100%;
        transition: all 0.3s;
    }

    .filter-card .btn-filter:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
    }



/* ========================================
   STAFF & FACULTY STYLES
   ======================================== */
.staff-card {
    background: linear-gradient(145deg, #ffffff, #fafafa);
    border: 1px solid #e8eef3;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    height: 100%;
}

.staff-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.staff-card .photo-wrapper {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    position: relative;
}

.staff-card .photo-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.staff-card:hover .photo-wrapper img {
    border-color: var(--green);
    transform: scale(1.05);
}

.staff-card h5 {
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.staff-card .designation {
    color: var(--green);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.staff-card .contact-info {
    font-size: 0.85rem;
    color: #666;
}

.staff-card .contact-info p {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.staff-card .contact-info i {
    color: var(--green);
}

.category-section {
    margin-bottom: 60px;
}

.category-header {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-header i {
    font-size: 1.5rem;
    color: var(--gold);
}

.category-header h3 {
    margin: 0;
    font-weight: 600;
    font-size: 1.3rem;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
}

.section-title .icon-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.section-title .icon-box i {
    color: #fff;
    font-size: 1.8rem;
}

/* Map Container */
.map-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 5px solid #fff;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ========================================
   NEWS & EVENTS PAGE STYLES
   ======================================== */

/* Content Section */
.content-section {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* News Card - Professional Modern Design */
.news-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: 1px solid #e8eef3 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.news-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Card Image Container */
.news-card .card-image {
    position: relative !important;
    overflow: hidden !important;
    height: 200px !important;
    background: linear-gradient(135deg, #f0f4f8, #e8eef3) !important;
}

.news-card .card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
}

.news-card:hover .card-image img {
    transform: scale(1.08) !important;
}

/* Date Badge */
.news-card .date-badge {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    background: linear-gradient(135deg, #37A000, #2D8000) !important;
    color: #fff !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    text-align: center !important;
    box-shadow: 0 4px 15px rgba(55, 160, 0, 0.3) !important;
    z-index: 2 !important;
}

.news-card .date-badge .day {
    display: block !important;
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

.news-card .date-badge .month {
    display: block !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-top: 3px !important;
}

/* Card Content */
.news-card .card-content {
    padding: 25px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    background: #ffffff !important;
}

/* Category Badge */
.news-card .badge-category {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 12px !important;
    width: fit-content !important;
}

.news-card .badge-event {
    background: linear-gradient(135deg, #37A000, #2D8000) !important;
    color: #fff !important;
}

.news-card .badge-news {
    background: linear-gradient(135deg, #d4a574, #c9935a) !important;
    color: #1b263b !important;
}

/* Card Title */
.news-card h5 {
    color: #1b263b !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    transition: color 0.3s ease !important;
}

.news-card:hover h5 {
    color: #37A000 !important;
}

/* Card Description */
.news-card p {
    color: #778da9 !important;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    flex-grow: 1 !important;
}

/* Read More Button */
.news-card .btn-read-more {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #37A000 !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    margin-top: auto !important;
}

.news-card .btn-read-more i {
    transition: transform 0.3s ease !important;
}

.news-card:hover .btn-read-more {
    color: #2D8000 !important;
}

.news-card:hover .btn-read-more i {
    transform: translateX(5px) !important;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 50px;
}

.pagination .page-link {
    border: none;
    padding: 12px 18px;
    color: var(--gray-900);
    font-weight: 600;
    border-radius: 10px;
    margin: 0 3px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: rgba(55, 160, 0, 0.1);
    color: var(--primary);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 15px rgba(55, 160, 0, 0.3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-500);
}

.empty-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h4 {
    color: var(--gray-900);
    margin-bottom: 10px;
}

/* News Cards Responsive */
@media (max-width: 768px) {
    .content-section {
        padding: 40px 0 60px;
    }

    .news-card .card-image {
        height: 180px;
    }

    .news-card .card-content {
        padding: 20px;
    }

    .news-card h5 {
        font-size: 1rem;
    }
}

/* ========================================
   FOOTER STYLES
   ======================================== */
.site-footer {
    background: var(--gray-900);
    color: rgba(255, 255, 255, 0.8);
}

.footer-main {
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-col h6 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-col .contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-col .contact-list i {
    color: var(--primary-light);
    margin-top: 3px;
}

/* Footer Map - Fixed Height */
.footer-col .map-container {
    position: relative;
    height: 150px;
    padding-bottom: 0;
    border-radius: 8px;
    overflow: hidden;
}

.footer-col .map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .footer-col.location-col {
        grid-column: 1 / -1;
        margin-top: 20px;
    }

    .footer-col .map-container {
        height: 200px;
    }
}

@media (max-width: 576px) {

    /* Maintain 3 columns on small screens as requested, but tighten spacing */
    .footer-grid {
        gap: 10px;
    }

    .footer-col h6 {
        font-size: 0.9rem;
    }

    .footer-col ul li a,
    .footer-col .contact-list span {
        font-size: 0.8rem;
    }
}

/* ========================================
   ACADEMICS MODULE
   ======================================== */



/* Content Layout */
.academic-content {
    padding: 80px 0;
    background: #f8f9fa;
}

/* Filter Panel */
.academic-filters {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    background: #f1f3f5;
    color: var(--hp-navy);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.filter-tab:hover {
    background: #e9ecef;
    color: var(--hp-green);
}

.filter-tab.active {
    background: var(--hp-navy);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(13, 27, 42, 0.2);
}

.filter-tab i {
    font-size: 1.1rem;
}

/* Universal Academic Card */
.academic-card {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.academic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(46, 125, 50, 0.2);
}

.academic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--hp-green), var(--hp-green-dark));
    opacity: 0;
    transition: opacity 0.3s;
}

.academic-card:hover::before {
    opacity: 1;
}

/* Card Content */
.academic-card h5 {
    color: var(--hp-navy);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.academic-card .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.academic-card .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.academic-card .meta-item i {
    color: var(--hp-green);
}

/* Program Badges */
.program-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    align-self: flex-start;
}

.badge-bsc {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.badge-msc {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.badge-evening {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

/* Action Buttons */
.card-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.btn-academic {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-academic-primary {
    background: var(--hp-navy);
    color: var(--white);
    border: 1px solid var(--hp-navy);
}

.btn-academic-primary:hover {
    background: var(--hp-green);
    border-color: var(--hp-green);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-academic-outline {
    background: transparent;
    border: 1px solid #dee2e6;
    color: var(--hp-navy);
}

.btn-academic-outline:hover {
    border-color: var(--hp-navy);
    background: var(--hp-navy);
    color: var(--white);
    transform: translateY(-2px);
}

/* Empty State */
.empty-academic {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.empty-academic i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 20px;
    display: block;
}

.empty-academic h4 {
    color: var(--hp-navy);
    margin-bottom: 10px;
}

.empty-academic p {
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header-academic h1 {
        font-size: 2rem;
    }

    .academic-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-tab {
        justify-content: center;
    }
}

/* ========================================
   RESEARCH MODULE
   ======================================== */



/* Research Area Card */
.research-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    text-align: center;
}

.research-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(46, 125, 50, 0.2);
}

.research-card .icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.1), rgba(46, 125, 50, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--hp-green) !important;
    font-size: 1.8rem;
    transition: transform 0.3s;
}

.research-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--hp-green), var(--hp-green-dark));
    color: var(--white);
}

.research-card h4 {
    color: var(--hp-navy);
    font-weight: 700;
    margin-bottom: 15px;
}

.research-card p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* Lab Card (Grid View) */
/* Lab Card (Enhanced) */
.lab-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.lab-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.lab-card .image-wrapper {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.lab-card .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.lab-card:hover .image-wrapper img {
    transform: scale(1.1);
}

.lab-card .image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(13, 27, 42, 0.9), transparent);
    padding: 20px;
    z-index: 2;
}

.lab-card .lab-title {
    color: var(--white);
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Floating Badge */
.lab-card .tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--hp-navy);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 3;
    backdrop-filter: blur(5px);
}

.lab-card .content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.lab-card .description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.lab-card .card-footer-custom {
    padding: 15px 25px;
    background: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lab-card .stats {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lab-card .stats i {
    color: var(--hp-green);
    font-size: 1rem;
}

.lab-card .btn-details {
    color: var(--hp-navy);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}

.lab-card .btn-details:hover {
    color: var(--hp-green);
}

/* Publication Card */
.publication-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.3s;
}

.publication-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 3px solid var(--hp-green);
}

.publication-card h5 {
    color: var(--hp-navy);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.publication-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: #666;
}

.publication-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.publication-meta i {
    color: var(--hp-green);
}

.year-badge {
    background: var(--hp-navy);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
}



.lab-info-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.lab-info-card h3 {
    color: var(--hp-navy);
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
}

.lab-info-card h3 i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.15), rgba(46, 125, 50, 0.05));
    color: var(--hp-green);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.member-card {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.member-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--hp-green);
    margin-bottom: 15px;
    padding: 2px;
    background: var(--white);
}

.member-card h5 {
    color: var(--hp-navy);
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.member-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.member-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(46, 125, 50, 0.1);
    color: var(--hp-green);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
}

.member-btn:hover {
    background: var(--hp-green);
    color: var(--white);
}

.research-badge {
    background: linear-gradient(135deg, var(--hp-gold), #e8b98a);
    color: var(--hp-navy);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(212, 165, 116, 0.2);
}

/* ========================================
   GLOBAL PAGE HEADER
   ======================================== */


/* ========================================
   NEWS & EVENTS ELEMENT
   ======================================== */
.news-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.news-card .card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .card-image img {
    transform: scale(1.05);
}

.date-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--white);
    border-radius: 10px;
    padding: 8px 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 60px;
    z-index: 10;
}

.date-badge .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--hp-green);
    line-height: 1;
}

.date-badge .month {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--hp-navy);
    text-transform: uppercase;
}

.news-card .card-content {
    padding: 25px;
}

.badge-category {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-news {
    background: rgba(46, 125, 50, 0.1);
    color: var(--hp-green);
}

.badge-event {
    background: rgba(212, 165, 116, 0.15);
    color: var(--hp-navy);
}

.news-card h5 {
    color: var(--hp-navy);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s;
}

.news-card:hover h5 {
    color: var(--hp-green);
}

.news-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    color: var(--hp-green);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-read-more i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.btn-read-more:hover {
    color: var(--hp-navy);
}

.btn-read-more:hover i {
    transform: translateX(5px);
}

/* Filter Buttons */
.filter-buttons {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ========================================
   CONTACT PAGE ELEMENTS
   ======================================== */
.contact-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.contact-card h4 {
    color: var(--hp-navy);
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.contact-card h4 i {
    color: var(--hp-green);
    font-size: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(46, 125, 50, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hp-green);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item .info h5 {
    color: var(--hp-navy);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-item .info p {
    color: #666;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.contact-item .info a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item .info a:hover {
    color: var(--hp-green);
}

/* Map Container */
.map-container {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Quick Contact Banner */
.quick-contact {
    background: linear-gradient(135deg, var(--navy), var(--dark));
    border-radius: 15px;
    padding: 40px;
    margin-top: 50px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.quick-contact::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    opacity: 0.15;
}

.quick-contact h3 {
    margin-bottom: 15px;
    font-weight: 700;
}

.quick-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

/* ========================================
   ABOUT PAGE ELEMENTS
   ======================================== */
.about-info-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    margin-bottom: 25px;
    border-left: 5px solid var(--hp-green);
}

.about-info-card h4 {
    color: var(--hp-navy);
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.about-info-card h4 i {
    color: var(--hp-green);
    font-size: 1.5rem;
}

.about-info-card p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 0;
}

/* Chairman Section in About (Unique Classes to avoid conflicts) */
.about-chairman-section {
    background: #f8f9fa;
    padding: 60px 0;
    margin-top: 40px;
}

.about-chairman-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-chairman-photo {
    flex: 0 0 300px;
    text-align: center;
}

.about-chairman-photo .photo-frame {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 5px solid #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.about-chairman-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-chairman-photo h4 {
    color: var(--hp-navy);
    font-weight: 700;
    margin-bottom: 5px;
}

.about-chairman-photo p {
    color: var(--hp-green);
    font-weight: 600;
}

.about-chairman-message {
    flex: 1;
}

.about-chairman-message .overline {
    text-transform: uppercase;
    color: var(--hp-green);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.about-chairman-message h3 {
    color: var(--hp-navy);
    font-weight: 800;
    margin-bottom: 25px;
}

.message-text {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 30px;
}

.chairman-signature {
    margin-top: 20px;
}

.chairman-signature .name {
    font-family: 'Great Vibes', cursive;
    font-size: 1.5rem;
    color: var(--hp-navy);
}

.chairman-signature .title {
    font-size: 0.9rem;
    color: #666;
}

/* Mobile Responsive for About Chairman Section */
@media (max-width: 991px) {
    .about-chairman-content {
        flex-direction: column;
        gap: 30px;
    }

    .about-chairman-photo {
        flex: 0 0 auto;
        width: 100%;
    }

    .about-chairman-photo .photo-frame {
        width: 140px;
        /* Smaller photo */
        height: 140px;
        border-width: 3px;
    }

    .message-text {
        text-align: justify;
        /* Justified text */
    }

    .about-chairman-message .overline {
        text-align: center;
        display: block;
    }

    .chairman-signature {
        text-align: right;
        display: block;
        margin-right: 15px;
    }
}

/* ========================================
   FACULTY PAGE ELEMENTS
   ======================================== */
.stats-bar {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 10px;
}

.stat-item .number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

.stat-item .label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Faculty Card styles moved to consolidated section at end of file */

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #757575;
}

.empty-state i {
    font-size: 4rem;
    color: #eee;
    margin-bottom: 20px;
}

/* ========================================
   PROFILE PAGE STYLES (Teacher/Faculty)
   ======================================== */
:root {
    --profile-green: #2e7d32;
    --profile-green-dark: #1b5e20;
    --profile-navy: #0d1b2a;
    --profile-navy-light: #1b263b;
    --profile-gold: #d4a574;
}

.profile-hero {
    background: linear-gradient(135deg, var(--profile-navy) 0%, var(--profile-navy-light) 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.profile-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, var(--profile-green-dark), var(--profile-green));
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
    opacity: 0.9;
}

.profile-hero .container {
    padding-left: 20px;
    /* Ensure padding inside hero */
    padding-right: 20px;
    position: relative;
    z-index: 2;
}

.profile-card {
    background: linear-gradient(145deg, #ffffff, #fafafa);
    border: 1px solid #e8eef3;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-top: -60px;
    position: relative;
    z-index: 10;
    border-top: 4px solid var(--profile-green);
    text-align: center;
}

.profile-img-lg {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
}

.info-section {
    background: linear-gradient(145deg, #ffffff, #fafafa);
    border: 1px solid #e8eef3;
    border-radius: 16px;
    padding: 25px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.info-section h4 {
    color: var(--profile-navy);
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-section h4 i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--profile-green), var(--profile-green-dark));
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Modern Table for Profile */
.table-modern {
    margin: 0;
    width: 100%;
}

.table-modern thead th {
    background: var(--profile-navy);
    color: #fff;
    border: none;
    padding: 12px 15px;
    font-weight: 500;
}

.table-modern tbody td {
    padding: 12px 15px;
    border-color: #f0f0f0;
    vertical-align: middle;
}

.table-modern tbody tr:hover {
    background: #f8f9fa;
}

.research-badge {
    background: linear-gradient(135deg, var(--profile-green), var(--profile-green-dark));
    color: #fff;
    padding: 8px 18px;
    border-radius: 25px;
    display: inline-block;
    margin: 5px;
    font-size: 14px;
    font-weight: 500;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: rgba(46, 125, 50, 0.1);
    color: var(--profile-green);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-outline-primary-custom {
    color: var(--profile-navy);
    border: 2px solid var(--profile-navy);
    padding: 10px 25px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-primary-custom:hover {
    background: var(--profile-navy);
    color: #fff;
}

/* ======================================== CR Page Styles ======================================== */
.session-title {
    font-size: 1.8rem;
    color: var(--hp-navy);
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
}

.session-badge {
    background: var(--hp-gold);
    color: #fff;
    font-size: 0.9rem;
    padding: 5px 15px;
    border-radius: 20px;
}



/* ======================================== Faculty Card Styles ======================================== */
.faculty-card {
    background: #fff;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid var(--hp-navy);
    position: relative;
    margin-top: 40px;
}

.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.faculty-card .photo-wrapper {
    position: relative;
    height: 60px;
    overflow: visible;
    background: linear-gradient(135deg, var(--hp-navy) 0%, var(--hp-navy-light) 100%);
    border-radius: 12px 12px 0 0;
}

.faculty-card .photo-wrapper::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40%;
    background: linear-gradient(135deg, var(--hp-green-dark), var(--hp-green));
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
    opacity: 0.9;
    z-index: 1;
    border-radius: 0 12px 0 0;
}

.faculty-card .photo {
    position: absolute;
    left: 50%;
    bottom: -35px;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 2;
    transition: transform 0.3s ease;
    background: #fff;
}

.faculty-card:hover .photo {
    transform: translateX(-50%) scale(1.05);
}

.faculty-card .info {
    padding: 45px 15px 15px;
    text-align: center;
}

.faculty-card .name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--hp-navy);
    margin-bottom: 3px;
    line-height: 1.3;
}

.faculty-card .designation-text {
    color: var(--hp-green-dark);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.faculty-card .contact-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 0;
}

.faculty-card .contact-icons a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hp-green), var(--hp-green-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.faculty-card .contact-icons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(46, 125, 50, 0.4);
}

.faculty-card .specialization {
    font-size: 0.75rem;
    color: #666;
    margin: 8px 0 0;
}

.faculty-card .btn-profile {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--hp-navy), var(--hp-navy-light));
    color: #fff;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    margin-top: 12px;
    transition: all 0.3s;
}

.faculty-card .btn-profile:hover {
    background: linear-gradient(135deg, var(--hp-green), var(--hp-green-dark));
    transform: translateY(-2px);
    box-shadow: 0 3px 12px rgba(46, 125, 50, 0.3);
}