:root {
    --primary-aqua: #00c6ff;
    --secondary-aqua: #0072ff;
    --light-aqua: #e6f7ff;
    --dark-aqua: #0066cc;
    --accent-blue: #1e90ff;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #343a40;
    --text-dark: #212529;
    --shadow: 0 4px 15px rgba(0, 114, 255, 0.1);
    --shadow-hover: 0 10px 30px rgba(0, 114, 255, 0.2);
    --transition: all 0.3s ease;
    --border: rgba(0, 114, 255, 0.10);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f5f7fa 0%, #e4f2fe 100%);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========== ENHANCED HEADER STYLES ========== */
.university-header {
    background: linear-gradient(135deg, var(--secondary-aqua) 0%, var(--primary-aqua) 100%);
    position: relative;
    overflow: visible !important;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 114, 255, 0.15);
}

.navbar {
    padding: 0.8rem 0;
    position: relative;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
}

.navbar-brand {
    padding: 0;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 5px 0;
}

.logo-container img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    border-radius: 50%;
    padding: 5px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.logo-container img:hover {
    transform: rotate(5deg) scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text {
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    margin-bottom: 3px;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.logo-container:hover .logo-text::after {
    width: 80px;
}

.logo-subtext {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.60rem;
    font-weight: 500;
    letter-spacing: 0.8px;
    line-height: 1.3;
    max-width: 300px;
    text-transform: uppercase;
}

.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    transition: var(--transition);
}

.navbar-toggler:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.navbar-nav {
    align-items: center;
    gap: 1px;
}

.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 600;
    margin: 0 1px;
    padding: 10px 11px !important;
    border-radius: 25px;
    transition: var(--transition);
    font-size: 0.8rem;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.navbar-nav .nav-link:hover::before {
    transform: translateX(0);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ENHANCED ACTIVE STATE FOR NAVIGATION */
.navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.25) !important;
    font-weight: 700 !important;
    position: relative;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Active indicator for desktop */
@media (min-width: 992px) {
    .navbar-nav .nav-link.active::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 70%;
        height: 3px;
        background: white;
        border-radius: 2px;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
}

/* Active state for dropdown items */
.dropdown-item.active {
    background: var(--light-aqua) !important;
    color: var(--secondary-aqua) !important;
    font-weight: 600;
    border-left: 3px solid var(--primary-aqua);
}

/* Active state for dropdown parent */
.nav-item.dropdown .nav-link.active {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Active icon color */
.navbar-nav .nav-link.active i {
    color: #ffeb3b !important; /* Yellow highlight for active icon */
    transform: scale(1.1);
}

/* Mobile active state */
@media (max-width: 991px) {
    .navbar-nav .nav-link.active {
        background: rgba(255, 255, 255, 0.3) !important;
        border-left: 4px solid white;
    }
}

/* Font Awesome icon styles */
.navbar-nav .nav-link i {
    font-size: 0.8rem;
    width: 18px;
    text-align: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.navbar-nav .nav-link:hover i {
    transform: scale(1.2);
}

/* ========== DROPDOWN MENU STYLES FIXED ========== */
.nav-item.dropdown {
    position: relative;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1001;
    background: var(--white) !important; /* Changed to white */
    border: 1px solid rgba(0, 114, 255, 0.2);
    border-radius: 10px;
    padding: 10px 0;
    margin-top: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    min-width: 220px;
    transition: all 0.3s ease;
}

.dropdown-item {
    color: var(--primary-aqua) !important; /* Aqua blue color */
    padding: 10px 20px !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: var(--light-aqua) !important; /* Light aqua background on hover */
    padding-left: 25px !important;
    color: var(--secondary-aqua) !important; /* Darker aqua on hover */
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--primary-aqua);
}

.dropdown-divider {
    border-color: rgba(0, 114, 255, 0.1);
    margin: 8px 20px;
}

/* Dropdown arrow for parent item */
.nav-item.dropdown .nav-link::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    border: none;
    font-size: 0.7rem;
    margin-left: 5px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .nav-link::after {
    transform: rotate(180deg);
}

/* Enhanced Wave Animation */
.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    overflow: hidden;
    pointer-events: none;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%);
    background-size: 600px 100%;
    opacity: 0.4;
}

.wave1 {
    animation: wave 25s linear infinite;
    opacity: 0.3;
}

.wave2 {
    animation: wave 20s linear infinite;
    opacity: 0.2;
    animation-delay: -5s;
    height: 90%;
}

.wave3 {
    animation: wave 15s linear infinite;
    opacity: 0.1;
    animation-delay: -2s;
    height: 80%;
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-600px); }
}

/* Header Bottom Decoration */
.header-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to right, 
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%);
}

/* Hover effect for desktop */
@media (min-width: 992px) {
    .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%) scaleX(0);
        width: 70%;
        height: 2px;
        background: white;
        transition: transform 0.3s ease;
    }
    
    .navbar-nav .nav-link:hover::after {
        transform: translateX(-50%) scaleX(1);
    }
    
    .navbar-nav .nav-link.active::after {
        transform: translateX(-50%) scaleX(1);
    }
    
    /* Keep dropdown visible on hover */
    .dropdown-menu {
        display: block !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    }
}

/* ========== RESPONSIVE DESIGN ========== */

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .navbar-nav .nav-link {
        padding: 10px 14px !important;
        font-size: 0.95rem;
    }
    
    .logo-text {
        font-size: 2rem;
    }
}

/* Large devices (desktops, 992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .navbar-nav .nav-link {
        padding: 10px 10px !important;
        font-size: 0.85rem;
    }
    
    .logo-text {
        font-size: 1.6rem;
    }
    
    .logo-subtext {
        font-size: 0.7rem;
        max-width: 250px;
    }
}

/* Medium devices (tablets, 768px to 991px) */
@media (max-width: 991px) {
    .navbar-nav .nav-link {
        padding: 12px 20px !important;
        margin: 2px 0;
        border-radius: 10px;
        text-align: left;
        justify-content: flex-start;
        white-space: nowrap;
    }
    
    .navbar-collapse {
        background: rgba(0, 114, 255, 0.98);
        border-radius: 15px;
        padding: 15px;
        margin-top: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    
    .navbar-nav {
        gap: 0;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .logo-subtext {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }
    
    .logo-container img {
        width: 60px;
        height: 60px;
    }
    
    /* Mobile dropdown styles */
    .dropdown-menu {
        position: static !important;
        float: none;
        width: auto;
        margin-top: 0;
        background: var(--white) !important; /* White background for mobile */
        border: 1px solid rgba(0, 114, 255, 0.1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    
    .dropdown-menu.show {
        display: block;
    }
    
    .dropdown-item {
        color: var(--primary-aqua) !important; /* Aqua blue for mobile */
        padding: 8px 25px !important;
    }
    
    .dropdown-item:hover {
        background: var(--light-aqua) !important;
        color: var(--secondary-aqua) !important;
    }
    
    .nav-item.dropdown .nav-link::after {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .nav-item.dropdown .nav-link[aria-expanded="true"]::after {
        transform: translateY(-50%) rotate(180deg);
    }
}

/* Small devices (landscape phones, 576px to 767px) */
@media (max-width: 767px) {
    .logo-text {
        font-size: 1.3rem;
    }
    
    .logo-subtext {
        font-size: 0.6rem;
        max-width: 200px;
    }
    
    .logo-container {
        gap: 10px;
    }
    
    .wave-container {
        height: 80px;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px !important;
        font-size: 0.9rem;
    }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575px) {
    .logo-container {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    
    .logo-text-container {
        padding-left: 0;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-subtext {
        font-size: 0.55rem;
        max-width: 180px;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 8px 12px !important;
        font-size: 0.85rem;
    }
    
    .navbar-nav .nav-link i {
        font-size: 0.8rem;
        width: 16px;
    }
    
    .dropdown-item {
        padding: 8px 20px !important;
    }
}

/* Fix for very small screens */
@media (max-width: 400px) {
    .logo-text {
        font-size: 1rem;
    }
    
    .logo-subtext {
        font-size: 0.5rem;
        max-width: 150px;
    }
    
    .logo-container img {
        width: 50px;
        height: 50px;
    }
    
    .navbar-nav .nav-link span:not(.nav-link i) {
        font-size: 0.8rem;
    }
}

/* Mobile menu animation */
@media (max-width: 991px) {
    .navbar-collapse.collapsing {
        transition: height 0.3s ease;
    }
    
    .navbar-collapse.show {
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ========== MAIN CONTENT ========== */
.main-content {
    margin-top: 2rem;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out;
}

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

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 15px;
}

.page-title {
    color: var(--secondary-aqua);
    font-weight: 800;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.breadcrumb {
    background: var(--light-aqua);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    display: inline-block;
}

.breadcrumb-item a {
    color: var(--secondary-aqua);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item.active {
    color: var(--dark-gray);
}

/* Carousel Styles */
.hero-section {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.carousel-item {
    height: 400px;
    position: relative;
}

.carousel-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.8);
}

.carousel-caption {
    position: absolute;
    bottom: 20%;
    left: 5%;
    text-align: left;
    z-index: 10;
    max-width: 90%;
}

.carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.carousel-caption p {
    font-size: 1.2rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Quick Links */
.quick-links-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.section-title {
    color: var(--secondary-aqua);
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 2rem;
    text-align: center;
}

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

.quick-link-card {
    display: block;
    text-decoration: none;
    background: var(--light-aqua);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    border: 2px solid transparent;
    margin-bottom: 1rem;
}

.quick-link-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-aqua);
    text-decoration: none;
}

.quick-link-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-aqua), var(--secondary-aqua));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.quick-link-card h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.quick-link-card p {
    color: white;
    margin: 0;
    font-size: 0.9rem;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--secondary-aqua) 0%, var(--primary-aqua) 100%);
    border-radius: 15px;
    color: white;
    margin: 3rem 0;
    padding: 3rem 1rem;
}

.stat-box {
    padding: 1.5rem;
    text-align: center;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 1rem 0;
}

.stat-text {
    font-size: 1rem;
    opacity: 0.9;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 2rem;
    overflow: hidden;
}

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

.card-header {
    background: linear-gradient(135deg, var(--primary-aqua), var(--secondary-aqua));
    color: white;
    border-radius: 15px 15px 0 0 !important;
    padding: 1.2rem;
    font-weight: 600;
    border: none;
}

.card-body {
    padding: 1.5rem;
}

/* Mission & Vision Specific */
.mission-card, .vision-card {
    border-left: 5px solid var(--primary-aqua);
}

.mission-point, .value-card {
    padding: 1.5rem;
    background: var(--light-aqua);
    border-radius: 10px;
    height: 100%;
    transition: var(--transition);
    text-align: center;
}

.mission-point:hover, .value-card:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: var(--shadow);
}

.point-icon, .value-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-aqua), var(--secondary-aqua));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    margin: 0 auto 1rem;
}

.mission-point h5, .value-card h4 {
    color:#23DEFB;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.mission-point p, .value-card p {
    color: #23DEFB;
    font-size: 0.9rem;
    margin: 0;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-aqua), var(--secondary-aqua));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary-aqua);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--light-aqua);
}

.timeline-content {
    padding-left: 1rem;
}

.timeline-content h5 {
    color: var(--secondary-aqua);
    margin-bottom: 0.5rem;
}

/* Director General Page */
.director-profile {
    margin-bottom: 3rem;
}

.director-image-container {
    position: relative;
    margin-bottom: 2rem;
}

.director-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.director-badge {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-aqua), var(--secondary-aqua));
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 114, 255, 0.3);
    font-size: 0.9rem;
    white-space: nowrap;
}

.director-name {
    color: var(--secondary-aqua);
    font-weight: 800;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.director-title {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Team Cards */
.team-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

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

.team-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.team-card:hover .team-img img {
    transform: scale(1.1);
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-info h5 {
    color:#23DEFB;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.team-role {
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.team-dept {
    color: white;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Department Cards */
.dept-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

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

.dept-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-aqua), var(--secondary-aqua));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.dept-content h4 {
    color:white ;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.dept-content p {
    color:white;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.dept-info {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    color: white;
    font-size: 0.9rem;
}

.dept-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dept-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.dept-link:hover {
    color: var(--secondary-aqua);
    gap: 10px;
}

/* Staff Cards */
.staff-card {
    transition: var(--transition);
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(0, 198, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60px; /* Space for the floating image */
}

.staff-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 114, 255, 0.15);
    border-color: var(--primary-aqua);
}

.staff-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    margin: -85px auto 15px;
    background: white;
    transition: var(--transition);
    z-index: 2;
}

.staff-card:hover .staff-img {
    border-color: var(--primary-aqua);
    transform: scale(1.05);
}

.staff-name {
    color: var(--secondary-aqua);
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.staff-role {
    color: var(--dark-gray);
    font-weight: 700;
    font-size: 0.85rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.staff-department {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.staff-bio {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.staff-contact {
    background: var(--light-aqua);
    border-radius: 12px;
    padding: 0.75rem;
    margin-top: auto;
    width: 100%;
}

.staff-contact p {
    margin: 0.3rem 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--secondary-aqua);
    font-weight: 500;
}

.staff-socials {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    justify-content: center;
}

/* Gallery Cards */
.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

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

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

/* News Cards */
.news-card {
    transition: var(--transition);
    height: 100%;
    box-shadow: var(--shadow);
    border-radius: 15px;
    overflow: hidden;
}

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

.news-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

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

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary-aqua);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.news-content {
    padding: 1.5rem;
}

.news-content h5 {
    color: var(--dark-gray);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    margin: 0.8rem 0;
    color: var(--dark-gray);
    font-size: 0.85rem;
}

.news-meta small {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-excerpt {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin: 1rem 0;
}

/* Event Cards */
.event-card {
    border-left: 5px solid var(--primary-aqua);
    transition: var(--transition);
    height: 100%;
    margin-bottom: 1.5rem;
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.event-card:hover {
    border-left-color: var(--secondary-aqua);
    transform: translateX(5px);
}

.event-date {
    background: var(--primary-aqua);
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    min-width: 70px;
    margin-right: 1rem;
}

.event-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 0.9rem;
    font-weight: 600;
}

.event-content h5 {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.event-content p {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin: 0;
}

/* Form Styles */
.form-control {
    border: 2px solid var(--medium-gray);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary-aqua);
    box-shadow: 0 0 0 0.2rem rgba(0, 114, 255, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-aqua), var(--secondary-aqua));
    border: none;
    border-radius: 10px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 114, 255, 0.3);
    color: white;
}

/* ========== ENHANCED FOOTER ========== */
.university-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding-top: 4rem;
    position: relative;
    overflow: hidden;
}

/* Remove the wave from footer */
.footer-wave {
    display: none;
}

/* Add geometric pattern background */
.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background: 
        radial-gradient(circle at 25% 25%, var(--primary-aqua) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, var(--primary-aqua) 2px, transparent 2px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Modern section divider */
.footer-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 80%;
    background: linear-gradient(to bottom, 
        transparent, 
        rgba(0, 198, 255, 0.3), 
        transparent);
}

.footer-section:last-child::after {
    display: none;
}

.footer-section {
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

.footer-section h4 {
    color: var(--primary-aqua);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 198, 255, 0.2);
}

.footer-section h4 i {
    width: 36px;
    height: 36px;
    background: rgba(0, 198, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 1rem;
    padding-left: 15px;
    position: relative;
    transition: var(--transition);
}

/* Footer list arrow: fully disable pseudo-element (prevents stray symbol + spacing) */
.footer-section ul li::before {
    content: none !important;
    display: none !important;
}

.footer-section ul li:hover::before {
    display: none !important;
}

.footer-section ul li a {

    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--primary-aqua);
    padding-left: 5px;
}

.footer-section p i {
    width: 24px;
    color: var(--primary-aqua);
    font-size: 1rem;
}

/* Social Icons - Modern Grid */
.social-icons {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    max-width: 280px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-aqua), var(--secondary-aqua));
    opacity: 0;
    transition: var(--transition);
}

.social-icons a:hover::before {
    opacity: 1;
}

.social-icons a i {
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.social-icons a:hover i {
    transform: scale(1.2);
}

.social-icons a.facebook:hover {
    background: transparent;
}

.social-icons a.twitter:hover {
    background: transparent;
}

.social-icons a.linkedin:hover {
    background: transparent;
}

.social-icons a.instagram:hover {
    background: transparent;
}

.social-icons a.youtube:hover {
    background: transparent;
}

/* Contact Info Styling */
.footer-section p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-section p i {
    margin-top: 3px;
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-bottom .fas.fa-heart {
    color: #ff6b6b;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    5% { transform: scale(1.1); }
    10% { transform: scale(1); }
    15% { transform: scale(1.1); }
    20% { transform: scale(1); }
    100% { transform: scale(1); }
}

/* Back to Top Button */
.back-to-top {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-aqua), var(--secondary-aqua));
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.3);
}

.back-to-top:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 114, 255, 0.4);
}

/* Newsletter Form (Optional addition) */
.newsletter-form {
    margin-top: 1.5rem;
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
    transition: var(--transition);
}

.newsletter-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(0, 198, 255, 0.3);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
    padding: 10px 20px;
    background: var(--primary-aqua);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--secondary-aqua);
    transform: translateY(-2px);
}

/* Responsive Design for Footer */
@media (max-width: 992px) {
    .footer-section::after {
        display: none;
    }
    
    .footer-section {
        text-align: center;
        padding: 1.5rem;
    }
    
    .footer-section h4 {
        justify-content: center;
    }
    
    .footer-section p {
        justify-content: center;
    }
    
    .social-icons {
        margin: 1.5rem auto 0;
        justify-content: center;
    }
    
    .footer-bottom p {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 576px) {
    .social-icons {
        grid-template-columns: repeat(3, 1fr);
        max-width: 220px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .footer-section {
        padding: 1.5rem;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
}

/* Responsive Design for Main Content */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 576px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .carousel-item {
        height: 300px;
    }
    
    .carousel-caption h2 {
        font-size: 1.8rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .quick-link-card {
        padding: 1.2rem;
    }
    
    .quick-link-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .staff-img {
        width: 100px;
        height: 100px;
        margin: -65px auto 15px;
    }
    
    .dept-card {
        padding: 1.2rem;
    }
    
    .dept-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .team-img {
        height: 180px;
    }
    
    .news-image {
        height: 150px;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-body {
        padding: 1.2rem;
    }
    
    .card-header {
        padding: 1rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
    
    .carousel-caption {
        left: 10%;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    .carousel-item {
        height: 350px;
    }
    
    .carousel-caption h2 {
        font-size: 2.2rem;
    }
    
    .staff-img {
        width: 130px;
        height: 130px;
    }
    
    .team-img {
        height: 220px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption h2 {
        font-size: 2.5rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .carousel-item {
        height: 450px;
    }
    
    .carousel-caption h2 {
        font-size: 3rem;
    }
}

/* Custom responsive adjustments */
@media (max-width: 768px) {
    .director-profile {
        text-align: center;
    }
    
    .director-badge {
        position: relative;
        bottom: 0;
        left: 0;
        transform: none;
        margin-top: 1rem;
        display: inline-block;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-marker {
        left: -1.5rem;
    }
    
    .dept-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .event-date {
        margin-right: 0.5rem;
        min-width: 60px;
    }
    
    .event-day {
        font-size: 1.3rem;
    }
}

/* Print styles */
@media print {
    .university-header,
    .university-footer,
    .navbar-toggler,
    .social-icons,
    .btn,
    .carousel,
    .wave-container,
    .footer-wave,
    .footer-background,
    .back-to-top {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    a {
        color: black !important;
        text-decoration: none !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .wave,
    .wave1,
    .wave2,
    .wave3 {
        animation: none !important;
    }
    
    .footer-bottom .fas.fa-heart {
        animation: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-aqua: #0066cc;
        --secondary-aqua: #004999;
        --light-aqua: #e6f2ff;
        --dark-aqua: #003366;
    }
    
    .btn-primary {
        border: 2px solid black;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #ffffff;
    }
    
    .card,
    .quick-link-card,
    .dept-card,
    .staff-card,
    .news-card,
    .team-card {
        background: #2d2d2d;
        color: #ffffff;
    }
    
    .card-header {
        background: linear-gradient(135deg, #0066cc, #004999);
    }
    
    .mission-point,
    .value-card,
    .staff-contact {
        background: #333333;
    }
    
    .form-control {
        background: #2d2d2d;
        border-color: #444444;
        color: #ffffff;
    }
}

/* Scroll to top button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-aqua), var(--secondary-aqua));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.3);
    z-index: 1000;
    transition: var(--transition);
}

.scroll-to-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 114, 255, 0.4);
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

/* Fix for mobile tap targets */
@media (max-width: 768px) {
    button,
    a,
    input,
    select,
    textarea {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 12px 15px !important;
    }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .carousel-item {
        height: 350px;
    }
}
/* ========== CALENDAR FIXES ========== */
.calendar-container {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    height: 100%;
}

.calendar-view {
    position: relative;
    z-index: 1;
}

.calendar-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    min-width: 320px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--medium-gray);
}

.calendar-header {
    display: contents;
}

.calendar-day-name {
    text-align: center;
    padding: 12px 8px;
    background: linear-gradient(135deg, var(--primary-aqua), var(--secondary-aqua));
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--dark-aqua);
    white-space: nowrap;
}

.calendar-week {
    display: contents;
}

.calendar-day {
    text-align: center;
    padding: 15px 8px;
    border: 1px solid var(--medium-gray);
    background: white;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.95rem;
}

.calendar-day:hover:not(.empty):not(.event-day) {
    background: var(--light-aqua);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-day.empty {
    background: #f8f9fa;
    cursor: default;
}

.calendar-day.event-day {
    background: var(--light-aqua);
    color: var(--secondary-aqua);
    font-weight: 600;
    position: relative;
}

.calendar-day.event-day::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--secondary-aqua);
    border-radius: 50%;
}

.calendar-day.event-day.active-day {
    background: linear-gradient(135deg, var(--primary-aqua), var(--secondary-aqua));
    color: white;
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 3px 10px rgba(0, 114, 255, 0.3);
}

.calendar-day.event-day.active-day::after {
    background: white;
}

.calendar-title {
    color: var(--secondary-aqua);
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.calendar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-aqua), var(--secondary-aqua));
    border-radius: 2px;
}

.calendar-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.current-month {
    background: var(--light-aqua);
    color: var(--secondary-aqua);
    border: none;
    font-weight: 600;
    min-width: 150px;
}

.event-categories {
    background: var(--light-aqua);
    padding: 1.25rem;
    border-radius: 10px;
    margin-top: 1.5rem;
}

.event-categories h5 {
    color: var(--secondary-aqua);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.form-check-label {
    color: var(--dark-gray);
    font-weight: 500;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary-aqua);
    border-color: var(--primary-aqua);
}

/* ========== EVENT CARDS ========== */
.event-card {
    background: white;
    border: 1px solid var(--medium-gray);
    border-left: 4px solid var(--primary-aqua);
    border-radius: 10px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-left-color: var(--secondary-aqua);
}

.event-date {
    background: linear-gradient(135deg, var(--primary-aqua), var(--secondary-aqua));
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    min-width: 80px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.event-day {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

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

.event-info {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ========== NEWS CARDS ========== */
.news-card {
    background: white;
    border: 1px solid var(--medium-gray);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.news-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--primary-aqua), var(--secondary-aqua));
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    color: var(--dark-gray);
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #888;
}

.news-meta small {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ========== RESPONSIVE CALENDAR ========== */
@media (max-width: 768px) {
    .calendar-container {
        padding: 1rem;
    }
    
    .calendar-day {
        padding: 10px 5px;
        min-height: 45px;
        font-size: 0.85rem;
    }
    
    .calendar-day-name {
        padding: 8px 5px;
        font-size: 0.8rem;
    }
    
    .calendar-title {
        font-size: 1.2rem;
    }
    
    .event-date {
        min-width: 70px;
        padding: 8px 12px;
    }
    
    .event-day {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .calendar-grid {
        min-width: 280px;
    }
    
    .calendar-day {
        padding: 8px 3px;
        min-height: 40px;
        font-size: 0.8rem;
    }
    
    .calendar-day-name {
        padding: 6px 3px;
        font-size: 0.75rem;
    }
    
    .calendar-controls {
        flex-direction: column;
        gap: 8px;
    }
    
    .current-month {
        min-width: 120px;
        font-size: 0.9rem;
    }
}

/* ========== NEWS TICKER ========== */
.news-ticker {
    background: linear-gradient(135deg, var(--secondary-aqua), var(--primary-aqua));
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    color: white;
    font-weight: 500;
}

.ticker-item {
    display: inline-block;
    margin-right: 40px;
}

.ticker-item i {
    margin-right: 8px;
    color: #ffeb3b;
}

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

/* Pause animation on hover */
.news-ticker:hover .ticker-content {
    animation-play-state: paused;
}

/* ========== FEATURED NEWS CAROUSEL ========== */
.featured-news {
    position: relative;
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 2rem;
    color: white;
}

.featured-content .news-category {
    position: static;
    display: inline-block;
    margin-bottom: 10px;
}

.featured-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* ========== PAST EVENTS ========== */
.past-event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.past-event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.past-event-info {
    padding: 1.5rem;
}

.past-event-info h5 {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* ========== NEWSLETTER ========== */
.newsletter-card {
    background: linear-gradient(135deg, var(--primary-aqua), var(--secondary-aqua));
    color: white;
    border: none;
}

.newsletter-card .card-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
}

.newsletter-card .card-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* ========== ENHANCED CALENDAR STYLES ========== */
.calendar-container {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    height: 100%;
    transition: all 0.3s ease;
}

.calendar-container:hover {
    box-shadow: var(--shadow-hover);
}

.calendar-view {
    position: relative;
    z-index: 1;
}

.calendar-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    margin: -1px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    min-width: 320px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--medium-gray);
}

.calendar-header {
    display: contents;
}

.calendar-day-name {
    text-align: center;
    padding: 12px 8px;
    background: linear-gradient(135deg, var(--primary-aqua), var(--secondary-aqua));
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--dark-aqua);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

.calendar-week {
    display: contents;
}

.calendar-day {
    text-align: center;
    padding: 15px 8px;
    border: 1px solid var(--medium-gray);
    background: white;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.95rem;
}

.calendar-day:hover:not(.empty) {
    background: var(--light-aqua);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-day.empty {
    background: #f8f9fa;
    cursor: default;
}

.calendar-day.event-day {
    background: linear-gradient(135deg, rgba(0, 198, 255, 0.1), rgba(0, 114, 255, 0.1));
    color: var(--secondary-aqua);
    font-weight: 600;
    position: relative;
}

.calendar-day.event-day::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--secondary-aqua);
    border-radius: 50%;
}

.calendar-day.today {
    background: linear-gradient(135deg, var(--primary-aqua), var(--secondary-aqua));
    color: white;
    font-weight: 700;
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary-aqua);
    position: relative;
    z-index: 3;
}

.calendar-day.today::after {
    background: white;
}

.calendar-day.today.event-day::after {
    background: #ffeb3b;
}

.calendar-day.active {
    background: linear-gradient(135deg, var(--dark-aqua), #0052cc);
    color: white;
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 3px 12px rgba(0, 114, 255, 0.4);
}

.calendar-day.active::after {
    background: white;
}

.calendar-title {
    color: var(--secondary-aqua);
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
    font-size: 1.3rem;
}

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

.calendar-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 1.5rem;
}

#currentMonthBtn {
    background: var(--light-aqua);
    color: var(--secondary-aqua);
    border: 2px solid var(--primary-aqua);
    font-weight: 600;
    min-width: 100px;
    transition: all 0.3s ease;
}

#currentMonthBtn:hover {
    background: var(--primary-aqua);
    color: white;
    transform: translateY(-2px);
}

.event-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--secondary-aqua);
    border-radius: 50%;
}

.calendar-day.today .event-indicator {
    background: #ffeb3b;
}

.event-date-large {
    background: linear-gradient(135deg, var(--primary-aqua), var(--secondary-aqua));
    color: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    min-width: 80px;
}

.event-day-large {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.event-month-large {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Event Categories */
.event-categories {
    background: linear-gradient(135deg, rgba(0, 198, 255, 0.05), rgba(0, 114, 255, 0.05));
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    border: 1px solid var(--light-aqua);
}

.event-categories h5 {
    color: var(--secondary-aqua);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-categories h5::before {
    content: '';
    display: block;
    width: 20px;
    height: 3px;
    background: var(--primary-aqua);
    border-radius: 2px;
}

.form-check {
    padding-left: 2rem;
    margin-bottom: 0.8rem;
}

.form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-left: -2rem;
    margin-top: 0.2em;
    border: 2px solid #dee2e6;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary-aqua);
    border-color: var(--primary-aqua);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 198, 255, 0.25);
    border-color: var(--primary-aqua);
}

.form-check-label {
    color: var(--dark-gray);
    font-weight: 500;
    cursor: pointer;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.form-check:hover .form-check-label {
    color: var(--secondary-aqua);
}

/* Modal Enhancements */
.modal-header.bg-primary {
    background: linear-gradient(135deg, var(--primary-aqua), var(--secondary-aqua)) !important;
}

.event-info h6 {
    color: var(--secondary-aqua);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-aqua);
}

.event-info ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.event-info ul li:last-child {
    border-bottom: none;
}

.event-info ul li i {
    width: 20px;
    text-align: center;
    color: var(--primary-aqua);
}

/* Responsive Calendar */
@media (max-width: 768px) {
    .calendar-container {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .calendar-day {
        padding: 12px 5px;
        min-height: 50px;
        font-size: 0.85rem;
    }
    
    .calendar-day-name {
        padding: 10px 5px;
        font-size: 0.8rem;
    }
    
    .calendar-title {
        font-size: 1.2rem;
    }
    
    .event-date-large {
        min-width: 70px;
        padding: 12px;
    }
    
    .event-day-large {
        font-size: 2rem;
    }
    
    .calendar-controls {
        flex-wrap: wrap;
    }
    
    #currentMonthBtn {
        order: -1;
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .calendar-grid {
        min-width: 280px;
    }
    
    .calendar-day {
        padding: 10px 3px;
        min-height: 45px;
        font-size: 0.8rem;
    }
    
    .calendar-day-name {
        padding: 8px 3px;
        font-size: 0.75rem;
    }
    
    .calendar-controls button {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .event-categories {
        padding: 1rem;
    }
    
    .event-categories h5 {
        font-size: 1rem;
    }
    
    .form-check-label {
        font-size: 0.9rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .calendar-container {
        background: #2d2d2d;
    }
    
    .calendar-grid {
        background: #2d2d2d;
        border-color: #444;
    }
    
    .calendar-day {
        background: #2d2d2d;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .calendar-day.empty {
        background: #333;
    }
    
    .calendar-day.event-day {
        background: rgba(0, 114, 255, 0.1);
        color: var(--primary-aqua);
    }
    
    .event-categories {
        background: rgba(0, 114, 255, 0.05);
        border-color: #444;
    }
    
    .form-check-label {
        color: #e0e0e0;
    }
}

/* Animation for calendar changes */
@keyframes calendarSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calendar-grid {
    animation: calendarSlideIn 0.3s ease-out;
}

/* Accessibility improvements */
.calendar-day:focus {
    outline: 2px solid var(--primary-aqua);
    outline-offset: 2px;
    z-index: 5;
}

.calendar-controls button:focus {
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary-aqua);
}

/* About pages shared card grid */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.about-card {
  background: var(--light-aqua);
  border-radius: 14px;
  padding: 0;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.about-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.about-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-card:hover .about-card-image img {
  transform: scale(1.05);
}

.about-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.about-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.4;
}

.about-card-excerpt {
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.news-card-full-text {
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.about-card-footer {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* About page modal */
.about-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 24px;
}

.about-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.about-modal-container {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.about-modal-overlay.is-open .about-modal-container {
  transform: translateY(0);
}

.about-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.about-modal-header .about-modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
}

.about-modal-close {
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.about-modal-close:hover {
  background: #e2e8f0;
  color: #334155;
}

.about-modal-body {
  padding: 24px;
}

.about-modal-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.about-modal-image-wrapper {
  flex: 0 0 240px;
}

.about-modal-image-wrapper img,
.about-modal-main-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.about-modal-main-video {
  width: 100%;
  border-radius: 16px;
}

.about-modal-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.about-modal-title-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
}

.about-modal-description {
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
}

.about-modal-actions {
  margin-top: 12px;
  display: none;
  gap: 10px;
  flex-wrap: wrap;
}

.about-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .about-modal-layout {
    flex-direction: column;
  }

  .about-modal-image-wrapper {
    flex: 1 1 auto;
    width: 100%;
  }
}
