/* Enhanced Professional Responsive Styles - Inspired by UAB Logo */
:root {
    --primary-blue: #1e5aa8;
    --secondary-blue: #0f4477;
    --accent-gold: #ffd700;
    --light-gold: #fff8e1;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --border-light: #e9ecef;
    --shadow-light: 0 2px 15px rgba(30, 90, 168, 0.08);
    --shadow-medium: 0 4px 25px rgba(30, 90, 168, 0.15);
    --shadow-heavy: 0 8px 40px rgba(30, 90, 168, 0.25);
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    --gradient-gold: linear-gradient(135deg, var(--accent-gold) 0%, #ffb300 100%);
    
    /* Responsive spacing variables */
    --section-padding: 4rem 0;
    --container-padding: 0 2rem;
    --element-gap: 2rem;
    --border-radius: 20px;
    --border-radius-small: 10px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    font-size: 1rem;
}

/* Typography - Fluid Typography for Better Responsiveness */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
    word-wrap: break-word;
    hyphens: auto;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h5 {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
}

h6 {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
}

p {
    margin-bottom: 1rem;
    word-wrap: break-word;
    hyphens: auto;
}

/* Flexible Container System */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--container-padding);
    width: 100%;
}
.container .py-4 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.container-fluid {
    width: 100%;
    padding: 0 1rem;
}

/* Responsive Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
    gap: 0;
}

.col {
    flex: 1;
    padding: 0 1rem;
    min-width: 0;
}

/* col-12 width removed (use Bootstrap default) */
/* col-11 width removed */
/* col-10 width removed */
/* col-9 width removed */
/* col-8 width removed */
/* col-7 width removed */
/* col-6 width removed */
/* col-5 width removed */
/* col-4 width removed */
/* col-3 width removed */
/* col-2 width removed */
/* col-1 width removed */

/* ================================================================== */
/* ENHANCED HEADER STYLES - FULLY RESPONSIVE */
/* ================================================================== */

/* Top Banner */
.top-banner {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--gradient-gold);
    padding: 0.5rem 0;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: var(--text-dark);
    text-align: center;
    font-weight: 500;
}

.top-info-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.info-item i {
    color: var(--primary-blue);
    font-size: 0.875rem;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Switcher in Top Bar */
.top-info-bar .language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-light);
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    font-weight: 500;
}

.lang-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-1px);
}

.lang-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.lang-btn img {
    width: 16px;
    height: 12px;
    border-radius: 2px;
}

/* Portal Button in Top Bar */
.top-info-bar .portal-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(30, 90, 168, 0.2);
}

.top-info-bar .portal-btn:hover {
    background: var(--gradient-gold);
    color: var(--text-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 90, 168, 0.3);
}

/* ================================================================== */
/* MAIN NAVIGATION STYLES */
/* ================================================================== */

.navbar-professional {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    border-bottom: 3px solid var(--primary-blue);
}

.navbar-professional .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Enhanced Brand/Logo */
.navbar-professional .navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.navbar-professional .navbar-brand:hover .brand-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(30, 90, 168, 0.2));
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 1px;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Custom Mobile Toggle */
.navbar-professional .navbar-toggler {
    border: none;
    background: none;
    border: 2px solid var(--white);
    border-radius: 8px;
    padding: 0.5rem;
    transition: all 0.3s ease;
    display: none;
    cursor: pointer;
}

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

.navbar-toggler-icon {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.navbar-toggler-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--white);
    transition: all 0.3s ease;
}

.navbar-toggler.active .navbar-toggler-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler.active .navbar-toggler-icon span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler.active .navbar-toggler-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation Collapse */
.navbar-collapse {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar-collapse.collapse {
    display: none;
}

.navbar-collapse.show {
    display: flex;
    width: 100%;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-blue);
    padding: 1rem;
    box-shadow: var(--shadow-heavy);
}

/* Main Navigation Links - Responsive */
.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--primary-blue) !important;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    white-space: nowrap;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

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

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: var(--accent-gold) !important;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link:hover::before,
.nav-link:focus::before,
.nav-link.active::before {
    width: 80%;
}

/* Improved hover effects */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--accent-gold) !important;
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    background: var(--accent-gold) !important;
    color: white !important;
    transform: translateX(5px);
    transition: all 0.2s ease;
}

.navbar-toggler:hover {
    transform: scale(1.05);
    transition: all 0.2s ease;
}

/* Header Right Section - Responsive */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* Language Switcher - Enhanced for Mobile */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.language-switcher a {
    display: flex;
    align-items: center;
    padding: 0.4rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    opacity: 0.8;
    position: relative;
}

.language-switcher a:hover,
.language-switcher a.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.language-switcher img {
    width: clamp(20px, 4vw, 24px);
    height: clamp(14px, 3vw, 16px);
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Search Form - Mobile Friendly */
.header-search {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    position: relative;
}

.search-input {
    background: var(--white);
    border: 1px solid var(--accent-gold);
    border-radius: 25px;
    padding: 0.6rem 1rem;
    color: var(--primary-blue);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    width: clamp(150px, 25vw, 200px);
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-input:focus {
    outline: none;
    background: var(--light-bg);
    border-color: var(--accent-gold);
    width: clamp(200px, 30vw, 250px);
}

.search-btn {
    background: var(--gradient-gold);
    border: none;
    border-radius: 25px;
    padding: 0.6rem 1rem;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    white-space: nowrap;
}

.search-btn:hover {
    background: var(--accent-gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Portal/Login Button - Responsive */
.portal-btn {
    background: var(--accent-gold);
    color: var(--text-dark);
    border: 2px solid var(--accent-gold);
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    white-space: nowrap;
}

.portal-btn:hover {
    background: var(--gradient-gold);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* ================================================================== */
/* HERO SECTION - FULLY RESPONSIVE */
/* ================================================================== */

.hero-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: 100vh;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 0 !important;
    margin-top: 0 !important;
    top: 0;
}

/* Ensure hero section container spans full width */
.hero-section .container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/images/campus-main.png') center center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 4;
    width: 100%;
    text-align: center;
    padding: 2rem 0;
}

.hero-logo {
    max-width: clamp(120px, 20vw, 200px);
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(255, 215, 0, 0.3));
    animation: pulse 3s ease-in-out infinite;
    margin-bottom: 2rem;
}

.hero-title {
    color: var(--white);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    margin-bottom: 2rem;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-tagline {
    margin-bottom: 3rem;
}

.tagline-text {
    color: var(--accent-gold);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.tagline-text::before,
.tagline-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: clamp(30px, 8vw, 50px);
    height: 2px;
    background: var(--accent-gold);
    display: none; /* Hidden on mobile by default */
}

.tagline-text::before {
    left: clamp(-45px, -12vw, -70px);
}

.tagline-text::after {
    right: clamp(-45px, -12vw, -70px);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.btn-hero {
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2.5rem);
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    min-width: clamp(150px, 25vw, 200px);
    text-align: center;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.btn-hero:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-gold);
    border: none;
    color: var(--text-dark);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* Hero bullets for slideshow indicators */
.hero-bullets {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 4;
}

.hero-bullets .bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transition: background 0.3s;
}

.hero-bullets .bullet.active {
    background: var(--accent-gold);
}

/* Galaxy Bullet Animations */
.hero-galaxy-bullets {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.galaxy-bullet {
    position: absolute;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(173,216,230,0.7) 30%, rgba(255,255,255,0.3) 70%, transparent 100%);
    border-radius: 50%;
    filter: blur(0.3px);
    box-shadow: 0 0 10px rgba(255,255,255,0.5), 0 0 20px rgba(173,216,230,0.3);
    animation: galaxyMovement linear infinite;
}

@keyframes galaxyMovement {
    0%, 100% {
        transform: translate(var(--tx), var(--ty)) scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: translate(calc(var(--tx) * 1.5), calc(var(--ty) * 1.5)) scale(1.3);
        opacity: 1;
    }
}

/* Scroll indicator arrow */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-left: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(-45deg);
    margin: 0 auto;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ================================================================== */
/* STATS SECTION - RESPONSIVE */
/* ================================================================== */

.stats-section {
    background: var(--light-bg);
    position: relative;
    padding: var(--section-padding);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--element-gap);
    margin-top: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    border-top: 4px solid var(--accent-gold);
}

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

.stat-icon {
    width: clamp(60px, 12vw, 80px);
    height: clamp(60px, 12vw, 80px);
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.stat-icon i {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--white);
}

.stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================================================================== */
/* MAIN CONTENT - RESPONSIVE */
/* ================================================================== */

.main-content {
    background: var(--white);
    padding: var(--section-padding);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--element-gap);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(60px, 15vw, 80px);
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-top: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* News Cards - Responsive Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--element-gap);
    margin-top: 2rem;
}

.news-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.news-image {
    position: relative;
    height: clamp(180px, 25vw, 200px);
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    margin-bottom: 1rem;
}

.news-date {
    color: var(--text-light);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

.news-title {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 1rem;
}

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

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

.news-summary {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.news-read-more {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: clamp(0.9rem, 2vw, 1rem);
    margin-top: auto;
}

.news-read-more:hover {
    color: var(--secondary-blue);
    transform: translateX(5px);
}

/* ================================================================== */
/* SIDEBAR - RESPONSIVE */
/* ================================================================== */

.sidebar-section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    border-top: 4px solid var(--primary-blue);
    margin-top: var(--element-gap);
}

.sidebar-section h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
}

/* Events - Responsive */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.event-item:hover {
    background: var(--light-gold);
    transform: translateX(5px);
}

.event-date {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1rem;
    border-radius: 15px;
    text-align: center;
    min-width: clamp(70px, 15vw, 80px);
    flex-shrink: 0;
}

.event-day {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-details {
    flex: 1;
    min-width: 0;
}

.event-title {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 0.5rem;
}

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

.event-title a:hover {
    color: var(--primary-blue);
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    color: var(--text-light);
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

/* Quick Links - Responsive */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-link-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-link-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-gold);
    transition: width 0.3s ease;
}

.quick-link-item:hover::before {
    width: 100%;
}

.quick-link-item:hover {
    color: var(--text-dark);
    box-shadow: var(--shadow-light);
}

.quick-link-icon {
    width: clamp(40px, 10vw, 50px);
    height: clamp(40px, 10vw, 50px);
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.quick-link-icon i {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--white);
}

.quick-link-content {
    flex: 1;
    position: relative;
    z-index: 2;
    min-width: 0;
}

.quick-link-content h4 {
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin-bottom: 0.2rem;
    color: var(--text-dark);
}

/* Continuation from .quick-link-content p selector */
.quick-link-content p {
    color: var(--text-light);
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    margin-bottom: 0;
    line-height: 1.4;
}

/* ================================================================== */
/* FOOTER - FULLY RESPONSIVE */
/* ================================================================== */

.site-footer {
    background: var(--primary-blue);
    color: white;
    padding: 3rem 0 0;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo img {
    width: 50px;
    height: auto;
}

.social-links-container {
    margin-top: 1.5rem;
}

.social-links-container h3 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #FFD700;
    transform: scale(1.1);
}

.footer-section h3 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

.footer-section li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info li {
    display: inline-block;
    margin-right: 20px;
}

.contact-info li i {
    margin-right: 5px;
}

.contact-info li span {
    white-space: nowrap;
}

.contact-info a {
    color: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-info a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.site-footer a {
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    transition: all 0.4s ease-out;
    display: inline-block;
}

.site-footer a:hover {
    color: #FFD700;
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    transition: all 0.2s ease-in;
}

/* Adjusted Contact Section */
.contact-section {
    text-align: left;
}

.contact-info li {
    justify-content: flex-start;
}

.contact-info a {
    text-decoration: none !important;
}

.contact-info a:hover:after {
    display: none;
}

/* Footer Contact Alignment Fix */
.contact-section {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.contact-info {
    padding-left: 0;
    margin-left: 0;
}

.contact-info li {
    padding-left: 0;
    margin-left: 0;
}

.contact-info i {
    margin-left: 0;
}

/* Final Contact Alignment Adjustments */
.contact-section {
    padding-left: 0;
    margin-left: -5px;
}

.contact-info li {
    padding-left: 5px;
    margin-left: 0;
}

.contact-info i {
    margin-right: 12px;
    margin-left: -2px;
}

/* Fix Contact Text Alignment */
.contact-info span {
    margin-left: 0;
    padding-left: 0;
    display: block;
}

.contact-info a {
    display: inline-block;
    margin-left: 0;
    padding-left: 0;
}

/* Single-line contact layout */
.contact-info-single-line {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.contact-info-single-line span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.contact-info-single-line i {
    margin-right: 5px;
}

/* ================================================================== */
/* UTILITY CLASSES - RESPONSIVE */
/* ================================================================== */

/* Spacing Utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

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

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }
.pt-5 { padding-top: 3rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }
.pb-5 { padding-bottom: 3rem; }

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-blue); }
.text-secondary { color: var(--secondary-blue); }
.text-gold { color: var(--accent-gold); }
.text-muted { color: var(--text-light); }
.text-white { color: var(--white); }

/* Background Utilities */
.bg-primary { background: var(--gradient-primary); }
.bg-gold { background: var(--gradient-gold); }
.bg-light { background: var(--light-bg); }
.bg-white { background: var(--white); }

/* Animation Utilities */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

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

.animate-pulse { animation: pulse 3s ease-in-out infinite; }
.animate-fadeInUp { animation: fadeInUp 0.6s ease-out; }
.animate-slideInLeft { animation: slideInLeft 0.6s ease-out; }

/* ================================================================== */
/* RESPONSIVE MEDIA QUERIES */
/* ================================================================== */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    :root {
        --section-padding: 2rem 0;
        --container-padding: 0 1rem;
        --element-gap: 1rem;
    }
    
    .navbar-toggler {
        display: block;
    }
    
    .navbar-collapse {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .nav-link {
        padding: 1rem 0;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-right {
        width: 100%;
        justify-content: flex-start;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .header-search {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .search-input {
        width: 100%;
    }
    
    .search-input:focus {
        width: 100%;
    }
    
    .tagline-text::before,
    .tagline-text::after {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-hero {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .navbar-toggler {
        display: block;
    }
    
    .navbar-collapse.show {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tagline-text::before,
    .tagline-text::after {
        display: block;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar-toggler {
        display: none;
    }
    
    .navbar-collapse {
        display: flex !important;
        flex-direction: row;
        position: relative;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }
    
    .navbar-nav {
        flex-direction: row;
    }
    
    .content-grid {
        grid-template-columns: 2fr 1fr;
        gap: 3rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .navbar-toggler {
        display: none;
    }
    
    .navbar-collapse {
        display: flex !important;
        flex-direction: row;
        position: relative;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }
    
    .navbar-nav {
        flex-direction: row;
    }
    
    .content-grid {
        grid-template-columns: 2fr 1fr;
        gap: 4rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
    :root {
        --section-padding: 6rem 0;
    }
}

/* Nav Dropdown Fix - hide by default */
.navbar .dropdown-menu {
    display: none;
    margin-top: 0.5rem;
    border-radius: var(--border-radius-small);
    box-shadow: var(--shadow-medium);
}
.navbar .dropdown.show > .dropdown-menu,
.navbar .dropdown:hover > .dropdown-menu {
    display: block;
}

/* Dropdown menu fixes */
.navbar-nav .dropdown-menu {
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    margin-top: 0;
}

.navbar-nav .dropdown-item {
    color: var(--primary-blue) !important;
    padding: 0.5rem 1.5rem;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    background: rgba(0,0,0,0.05);
}

/* Keep dropdown open when moving cursor down */
.navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

/* Print Styles */
@media print {
    .navbar,
    .hero-section,
    .footer-section {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .main-content {
        padding: 0;
    }
    
    .news-card,
    .stat-card,
    .sidebar-section {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}

/* Mobile Language Switcher Styles */
.mobile-language-switcher {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1rem !important;
}

.mobile-lang-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: var(--light-bg);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 100px;
    justify-content: center;
    font-size: 0.85rem;
}

.mobile-lang-btn:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(30, 90, 168, 0.2);
}

.mobile-lang-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(30, 90, 168, 0.3);
}

.mobile-lang-btn img {
    width: 16px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.mobile-lang-btn span {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Mobile responsiveness and subtle animations to navigation bar */
@media (max-width: 991.98px) {
  .top-info-bar {
    display: none;
  }
  .navbar {
    padding: 0.5rem 1rem;
  }
  .navbar-collapse {
    background: white;
    padding: 1rem;
    margin-top: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
  }
}

/* Smooth animations */
.nav-link, .language-btn, .portal-btn {
  transition: all 0.3s ease;
}

.dropdown-menu {
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  display: block;
  transform: translateY(10px);
  pointer-events: none;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Fix mobile hamburger menu visibility */
@media (max-width: 991.98px) {
  .navbar-professional .navbar-toggler {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    padding: 0;
  }
  
  .navbar-toggler-line {
    display: block !important;
    width: 24px;
    height: 2px;
    background: var(--primary-blue);
    transition: all 0.3s ease;
  }
}

/* Fix mobile menu overlay visibility */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: white !important;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
  }
  
  .navbar-nav .nav-link {
    color: var(--primary-blue) !important;
    padding: 0.5rem 0;
  }
}

/* Align hamburger menu with topbar content */
@media (max-width: 991.98px) {
  .navbar-toggler {
    margin-left: auto;
    margin-right: 1rem;
    align-self: center;
  }
  
  .navbar-brand {
    display: flex;
    align-items: center;
  }
}

/* Improve mobile header alignment across devices */
@media (max-width: 991.98px) {
  .navbar-brand {
    flex: 1;
    min-width: 0;
  }
  
  .brand-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .navbar-toggler {
    margin-left: 0.5rem;
    margin-right: 0;
    flex-shrink: 0;
  }
}