/* ========================================================
   LPS MIRCEA ELIADE - CULORI MODERNE ȘI CONTRAST ÎMBUNĂTĂȚIT
   Versiune: 2.0 - WCAG AA Compliant
   ======================================================== */

/* ===== VARIABILE CSS MODERNE ===== */
:root {
    /* PRIMARY - Albastru Navy Modern */
    --primary: #0a1628;
    --primary-600: #0f2847;
    --primary-500: #163a66;
    --primary-400: #1e4d8c;
    --primary-300: #3b6db5;
    --primary-200: #6a9cd6;
    --primary-100: #b0d0f5;
    
    /* ACCENT - Cyan Electric (contrast excelent) */
    --accent-cyan: #00e5ff;
    --accent-cyan-dark: #00b8cc;
    --accent-cyan-light: #4df0ff;
    
    /* SECONDARY - Portocaliu Vibrant */
    --secondary: #ff6b00;
    --secondary-light: #ff8f40;
    --secondary-dark: #cc5500;
    --secondary-glow: rgba(255, 107, 0, 0.4);
    
    /* SUCCESS - Verde Modern */
    --success: #00c853;
    --success-dark: #009624;
    --success-light: #5efc82;
    
    /* DANGER - Roșu Vibrant */
    --danger: #ff1744;
    --danger-dark: #d50000;
    --danger-light: #ff616f;
    
    /* WARNING - Galben Auriu */
    --warning: #ffc400;
    --warning-dark: #c79100;
    --warning-light: #fff64f;
    
    /* INFO - Albastru Deschis */
    --info: #00b0ff;
    --info-dark: #0081cb;
    --info-light: #69e2ff;
    
    /* NEUTRALS - Scala Gri Modernă */
    --gray-950: #0a0a0f;
    --gray-900: #121218;
    --gray-800: #1e1e2d;
    --gray-700: #2d2d42;
    --gray-600: #454560;
    --gray-500: #6b6b8a;
    --gray-400: #9898b3;
    --gray-300: #c4c4d4;
    --gray-200: #e2e2eb;
    --gray-100: #f4f4f8;
    --gray-50: #fafafc;
    
    /* TEXT COLORS - Contrast îmbunătățit */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-on-dark: #f8fafc;
    --text-on-primary: #ffffff;
    --text-on-accent: #0a1628;
    
    /* GRADIENTS - Dinamice și Moderne */
    --gradient-primary: linear-gradient(135deg, #0a1628 0%, #1e4d8c 100%);
    --gradient-hero: linear-gradient(135deg, #0a1628 0%, #163a66 40%, #1e4d8c 100%);
    --gradient-accent: linear-gradient(135deg, #ff6b00 0%, #ff1744 100%);
    --gradient-success: linear-gradient(135deg, #00c853 0%, #00e676 100%);
    --gradient-cyan: linear-gradient(135deg, #00b8cc 0%, #00e5ff 100%);
    --gradient-purple: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-dark: linear-gradient(180deg, #0a1628 0%, #1e1e2d 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    
    /* SPORT SPECIFIC GRADIENTS */
    --gradient-volei: linear-gradient(135deg, #1565c0 0%, #42a5f5 100%);
    --gradient-judo: linear-gradient(135deg, #c62828 0%, #ef5350 100%);
    --gradient-lupte: linear-gradient(135deg, #6a1b9a 0%, #ab47bc 100%);
    --gradient-fotbal: linear-gradient(135deg, #2e7d32 0%, #66bb6a 100%);
    --gradient-tenis: linear-gradient(135deg, #f9a825 0%, #fdd835 100%);
    --gradient-handbal: linear-gradient(135deg, #00838f 0%, #26c6da 100%);
    
    /* PROJECT GRADIENTS */
    --gradient-pnrr: linear-gradient(135deg, #1565c0 0%, #1976d2 50%, #42a5f5 100%);
    --gradient-pnras: linear-gradient(135deg, #00897b 0%, #26a69a 100%);
    --gradient-smartlab: linear-gradient(135deg, #5e35b1 0%, #7e57c2 100%);
    --gradient-erasmus: linear-gradient(135deg, #003399 0%, #0052cc 50%, #ffcc00 100%);
    
    /* SHADOWS - Moderne cu culoare */
    --shadow-sm: 0 2px 4px rgba(10, 22, 40, 0.08);
    --shadow-md: 0 4px 12px rgba(10, 22, 40, 0.12);
    --shadow-lg: 0 12px 28px rgba(10, 22, 40, 0.16);
    --shadow-xl: 0 24px 48px rgba(10, 22, 40, 0.2);
    --shadow-glow-cyan: 0 0 30px rgba(0, 229, 255, 0.3);
    --shadow-glow-orange: 0 0 30px rgba(255, 107, 0, 0.3);
    --shadow-glow-purple: 0 0 30px rgba(139, 92, 246, 0.3);
    
    /* BORDER RADIUS */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
}

/* ===== FIXED HEADER SPACING ===== */
/* Compensare pentru header-ul fix */
body {
    padding-top: 0;
}

/* Page header trebuie să aibă padding-top suficient pentru header fix */
/* Header fix = topbar (~50px) + header-main (~80px) = ~130px */
/* Adăugăm spațiu suplimentar pentru vizibilitate */
.page-header {
    padding-top: 180px !important; /* Header fix (~130px) + 50px spațiu */
    padding-bottom: 60px !important;
    margin-top: 0 !important;
}

/* Hero sections */
.hero,
.hero-section,
#hero {
    padding-top: 180px !important;
    margin-top: 0 !important;
}

.smartlab-hero {
    padding-top: 180px !important;
    margin-top: 0 !important;
}

/* Pentru pagini care încep direct cu conținut (fără page-header) */
main > section:first-child:not(.page-header):not(.hero):not(.hero-section) {
    padding-top: 150px;
}

/* ===== CONTRAST FIX - Text pe fundal întunecat ===== */
.header,
.topbar,
.footer,
.page-header,
[class*="gradient-"],
.bg-dark,
.bg-primary {
    color: var(--text-on-dark);
}

.header *,
.topbar *,
.footer *,
.page-header *,
.bg-dark *,
.bg-primary * {
    color: inherit;
}

/* ===== TOPBAR - Contrast îmbunătățit ===== */
.topbar {
    background: var(--gray-900) !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.topbar a {
    color: var(--gray-200) !important;
    transition: color 0.2s ease;
}

.topbar a:hover {
    color: var(--accent-cyan) !important;
}

.topbar .social-links a {
    background: rgba(255,255,255,0.08) !important;
    color: var(--text-on-dark) !important;
}

.topbar .social-links a:hover {
    background: var(--accent-cyan) !important;
    color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-cyan);
}

/* ===== HEADER - Fundal modern ===== */
.header {
    background: var(--primary) !important;
}

.header.scrolled {
    background: rgba(10, 22, 40, 0.98) !important;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg);
}

/* ===== PAGE HEADERS - Gradienturi dinamice ===== */
.page-header {
    background: var(--gradient-hero) !important;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.page-header h1,
.page-header h2,
.page-header p {
    color: var(--text-on-dark) !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.page-header h1 {
    font-weight: 800 !important;
    letter-spacing: -0.02em;
}

/* ===== SPORT-SPECIFIC PAGE HEADERS ===== */
.page-header.sport-volei { background: var(--gradient-volei) !important; }
.page-header.sport-judo { background: var(--gradient-judo) !important; }
.page-header.sport-lupte { background: var(--gradient-lupte) !important; }
.page-header.sport-fotbal { background: var(--gradient-fotbal) !important; }
.page-header.sport-tenis { background: var(--gradient-tenis) !important; }
.page-header.sport-handbal { background: var(--gradient-handbal) !important; }

/* Project headers */
.page-header.pnrr-header { background: var(--gradient-pnrr) !important; }
.page-header.pnras-header { background: var(--gradient-pnras) !important; }
.page-header.smartlab-header { background: var(--gradient-smartlab) !important; }
.page-header.erasmus-header { background: var(--gradient-erasmus) !important; }

/* ===== BUTTONS - Modern și vibrant ===== */
.btn-primary,
.btn,
button[type="submit"] {
    background: var(--gradient-accent) !important;
    color: var(--text-on-dark) !important;
    border: none !important;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.25);
}

.btn-primary:hover,
.btn:hover,
button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.35);
}

.btn-secondary {
    background: transparent !important;
    color: var(--secondary) !important;
    border: 2px solid var(--secondary) !important;
}

.btn-secondary:hover {
    background: var(--secondary) !important;
    color: var(--text-on-dark) !important;
}

/* CTA Button în navigare */
.nav-cta {
    background: var(--gradient-accent) !important;
    color: var(--text-on-dark) !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px var(--secondary-glow);
    transition: all 0.3s ease !important;
}

.nav-cta:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 25px var(--secondary-glow) !important;
}

/* ===== CARDS - Contrast și hover effects ===== */
.card,
.feature-card,
.service-card,
.news-card,
.sport-card,
.project-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card:hover,
.feature-card:hover,
.service-card:hover,
.news-card:hover,
.sport-card:hover,
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-cyan);
}

/* Card headers cu gradient */
.card-header,
.feature-card-header {
    background: var(--gradient-primary);
    color: var(--text-on-dark);
    padding: 20px 24px;
}

/* ===== SECTION TITLES - Contrast îmbunătățit ===== */
.section-title,
.section-header h2,
h2.section-title {
    color: var(--text-primary) !important;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
}

.section-title::after,
.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    margin-top: 16px;
    border-radius: 2px;
}

.section-subtitle,
.section-header p {
    color: var(--text-secondary) !important;
    font-size: 1.1rem;
    max-width: 600px;
}

/* ===== TEXT - Contrast WCAG AA ===== */
body {
    color: var(--text-primary);
    background: var(--gray-100);
}

p, li, td, th {
    color: var(--text-secondary);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
}

a {
    color: var(--primary-400);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--secondary);
}

/* Text pe fundal întunecat */
.bg-dark p,
.bg-dark li,
.bg-primary p,
.bg-primary li,
.page-header p,
.footer p,
.footer li {
    color: var(--gray-200) !important;
}

/* ===== BADGES - Vibrante și lizibile ===== */
.badge,
.tag,
.label {
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-sport { 
    background: var(--danger) !important; 
    color: white !important;
}
.badge-academic { 
    background: var(--info) !important; 
    color: white !important;
}
.badge-event { 
    background: var(--warning) !important; 
    color: var(--gray-900) !important;
}
.badge-success { 
    background: var(--success) !important; 
    color: white !important;
}
.badge-admitere {
    background: var(--gradient-success) !important;
    color: white !important;
}

/* ===== FORM INPUTS - Modern și accesibil ===== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="date"],
textarea,
select {
    background: white;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent-cyan);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.15);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-light);
}

label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

/* ===== FOOTER - Contrast și ierarhie vizuală ===== */
.footer {
    background: var(--gradient-dark) !important;
    color: var(--text-on-dark);
}

.footer-main {
    background: var(--primary) !important;
}

.footer h5,
.footer h4 {
    color: white !important;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-cyan);
    border-radius: 2px;
}

.footer a {
    color: var(--gray-300) !important;
    transition: all 0.2s ease;
}

.footer a:hover {
    color: var(--accent-cyan) !important;
    padding-left: 5px;
}

.footer-bottom {
    background: var(--gray-950) !important;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom p,
.footer-bottom a {
    color: var(--gray-400) !important;
}

.footer .social-links a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    color: white !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    background: var(--accent-cyan) !important;
    color: var(--primary) !important;
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-cyan);
}

/* ===== TABLES - Contrast și lizibilitate ===== */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

th {
    background: var(--primary) !important;
    color: white !important;
    font-weight: 600;
    padding: 16px 20px;
    text-align: left;
}

td {
    background: white;
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-200);
    color: var(--text-secondary);
}

tr:hover td {
    background: var(--gray-50);
}

/* ===== STATS / COUNTERS - Vizibilitate mare ===== */
.stat-number,
.counter,
.stat-value {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.stat-label,
.counter-label {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    margin-top: 8px;
}

/* Stats pe fundal întunecat */
.bg-dark .stat-number,
.page-header .stat-number {
    background: linear-gradient(135deg, #fff 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== ALERTS / NOTICES - Contrast clar ===== */
.alert,
.notice {
    border-radius: var(--radius-md);
    padding: 16px 20px;
    font-weight: 500;
}

.alert-info {
    background: rgba(0, 176, 255, 0.1);
    border-left: 4px solid var(--info);
    color: var(--info-dark);
}

.alert-success {
    background: rgba(0, 200, 83, 0.1);
    border-left: 4px solid var(--success);
    color: var(--success-dark);
}

.alert-warning {
    background: rgba(255, 196, 0, 0.15);
    border-left: 4px solid var(--warning);
    color: var(--warning-dark);
}

.alert-danger {
    background: rgba(255, 23, 68, 0.1);
    border-left: 4px solid var(--danger);
    color: var(--danger-dark);
}

/* ===== TIMELINE - Modern și vizibil ===== */
.timeline::before {
    background: var(--gradient-cyan) !important;
    width: 4px;
}

.timeline-item::before {
    background: var(--accent-cyan) !important;
    border: 4px solid white !important;
    box-shadow: var(--shadow-glow-cyan);
}

/* ===== PROGRESS BARS ===== */
.progress {
    background: var(--gray-200);
    border-radius: var(--radius-full);
    height: 12px;
    overflow: hidden;
}

.progress-bar {
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    background: var(--gradient-accent) !important;
    color: white !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-orange);
}

/* ===== LINKS ÎN SIDEBAR ===== */
.sidebar-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.sidebar-title {
    color: var(--text-primary) !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-200);
}

.sidebar-title i {
    color: var(--secondary);
}

.nav-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary) !important;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.nav-link-item:hover {
    background: var(--gray-100);
    color: var(--primary) !important;
    transform: translateX(4px);
}

.nav-link-item i {
    color: var(--gray-500);
    transition: color 0.2s;
}

.nav-link-item:hover i {
    color: var(--secondary);
}

/* ===== ICON BOXES ===== */
.icon-box {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.icon-box-primary {
    background: rgba(30, 77, 140, 0.1);
    color: var(--primary-400);
}

.icon-box-secondary {
    background: rgba(255, 107, 0, 0.1);
    color: var(--secondary);
}

.icon-box-success {
    background: rgba(0, 200, 83, 0.1);
    color: var(--success);
}

/* ===== ANIMATED GRADIENTS ===== */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animated-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-400), var(--accent-cyan), var(--primary));
    background-size: 300% 300%;
    animation: gradient-shift 8s ease infinite;
}

/* ===== GLASSMORPHISM EFFECTS ===== */
.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
}

.glass-dark {
    background: rgba(10, 22, 40, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== HOVER GLOW EFFECTS ===== */
.glow-cyan:hover {
    box-shadow: var(--shadow-glow-cyan);
}

.glow-orange:hover {
    box-shadow: var(--shadow-glow-orange);
}

.glow-purple:hover {
    box-shadow: var(--shadow-glow-purple);
}

/* ===== SMARTLAB HERO - Special styling ===== */
.smartlab-hero {
    background: var(--gradient-smartlab) !important;
    color: var(--text-on-dark);
    position: relative;
    overflow: hidden;
}

.smartlab-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.smartlab-hero h1,
.smartlab-hero h2,
.smartlab-hero p {
    color: var(--text-on-dark) !important;
}

/* ===== RESPONSIVE - Ajustări contrast pe mobile ===== */
@media (max-width: 768px) {
    .stat-number,
    .counter {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .btn-primary,
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

/* ===== PRINT - Contrast pentru tipărire ===== */
@media print {
    * {
        color: black !important;
        background: white !important;
    }
    
    a {
        text-decoration: underline;
    }
}

/* ===== ACCESSIBILITY - Focus states vizibile ===== */
*:focus-visible {
    outline: 3px solid var(--accent-cyan) !important;
    outline-offset: 2px;
}

/* Skip link pentru screen readers */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 9999;
    padding: 1rem;
    background: var(--primary);
    color: white;
}

.skip-link:focus {
    left: 0;
}

/* ===== QUOTE SECTION FIX ===== */
.quote-section {
    background: linear-gradient(135deg, #1a365d 0%, #2d5a8a 100%) !important;
}

.quote-section blockquote,
.quote-section blockquote p,
.quote-section blockquote footer,
.quote-section p,
.quote-section .container {
    color: #ffffff !important;
}

.quote-section blockquote p {
    font-size: 1.5rem !important;
    font-style: italic !important;
    line-height: 1.8 !important;
    margin-bottom: 20px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.quote-section blockquote footer {
    font-size: 1rem !important;
    opacity: 0.9 !important;
}

.quote-section i.bi-quote {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 3rem !important;
}

/* ===== ADDITIONAL CONTRAST FIXES ===== */

/* Director card text visibility */
.director-card-index,
.director-card-index h3,
.director-card-index div {
    color: white !important;
}

/* Catedra members list visibility */
.catedra-members li {
    color: var(--text-primary) !important;
}

/* CTA section text */
.cta-section,
.cta-section h2,
.cta-section p {
    color: white !important;
}

/* Page header on dark backgrounds */
[style*="linear-gradient"] h1,
[style*="linear-gradient"] h2,
[style*="linear-gradient"] h3,
[style*="linear-gradient"] h4,
[style*="linear-gradient"] p {
    color: inherit;
}

/* Quick access cards */
.quick-card h4,
.quick-card p {
    color: white !important;
}

.quick-card.active h4,
.quick-card.active p {
    color: white !important;
}

/* Service cards with dark icons */
.service-card h3 {
    color: var(--text-primary) !important;
}

.service-card p {
    color: var(--text-secondary) !important;
}

/* News content visibility */
.news-card .news-content h3,
.news-card .news-title {
    color: var(--text-primary) !important;
}

.news-card .news-excerpt,
.news-card .news-content p {
    color: var(--text-secondary) !important;
}

/* Footer text visibility */
.footer-main,
.footer-main h4,
.footer-main p,
.footer-main a,
.footer-main li {
    color: var(--text-on-dark) !important;
}

.footer-bottom {
    color: var(--gray-400) !important;
}

/* Stats cards text */
.stat-value,
.stat-number,
.counter {
    color: var(--text-primary) !important;
}

/* Contact section */
.contact-info-card h5 {
    color: var(--text-primary) !important;
}

.contact-info-card p,
.contact-info-card a {
    color: var(--text-secondary) !important;
}

/* Form labels visibility */
.form-group label {
    color: var(--text-primary) !important;
}

/* Alert messages */
.alert-success {
    color: #065f46 !important;
    background-color: #d1fae5 !important;
}

.alert-error,
.alert-danger {
    color: #991b1b !important;
    background-color: #fee2e2 !important;
}

.alert-warning {
    color: #92400e !important;
    background-color: #fef3c7 !important;
}

.alert-info {
    color: #1e40af !important;
    background-color: #dbeafe !important;
}

/* ===== NAVBAR CTA BUTTON FIX - CRITICAL ===== */
/* Force navbar to be single row with flexbox */
.header .container {
    display: flex !important;
    align-items: center !important;
}

.navbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    gap: 15px !important;
}

/* Nav menu stays in center */
.navbar > .nav,
.navbar > ul.nav {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    margin: 0 auto !important;
    flex: 0 1 auto !important;
}

/* CTA Button - MUST stay on same line */
.navbar > .btn,
.navbar > .btn-primary,
.navbar > .header-cta,
.navbar > a.btn-primary,
.navbar > a.header-cta {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    margin-left: auto !important;
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* Logo stays left */
.navbar > .logo {
    flex-shrink: 0 !important;
    margin-right: auto !important;
}

/* Desktop - ensure everything stays on one line */
@media (min-width: 1025px) {
    .navbar {
        flex-wrap: nowrap !important;
        height: auto !important;
        min-height: 70px !important;
    }
    
    .navbar > .nav,
    .navbar > ul.nav {
        position: static !important;
        flex: 0 1 auto !important;
    }
    
    .navbar > .btn-primary,
    .navbar > .header-cta,
    .navbar > a.btn-primary {
        position: static !important;
        margin-left: 20px !important;
        flex-shrink: 0 !important;
    }
    
    .navbar > .mobile-toggle {
        display: none !important;
    }
}

/* Mobile - stack vertically */
@media (max-width: 1024px) {
    .navbar {
        flex-wrap: wrap !important;
    }
    
    .navbar > .btn-primary,
    .navbar > .header-cta {
        display: none !important;
    }
}
