/* High-Contrast Light Theme with Crimson Red & Slate for La Fraternelle */
:root {
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-dark-slate: #0f172a;
    --bg-glass-border: #e2e8f0;
    --red-primary: #dc3545;
    --red-dark: #b02a37;
    --red-light: #ef4444;
    --red-glow: rgba(220, 53, 69, 0.25);
    --text-primary: #0f172a;
    --text-secondary: #1e293b;
    --text-muted: #64748b;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

.font-heading {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

/* High Contrast Headings and Body */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
}

p, li, span, label {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Modern Clean White Cards */
.glass-card {
    background: var(--bg-surface);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
}

.glass-card:hover {
    border-color: rgba(220, 53, 69, 0.4);
    box-shadow: 0 12px 30px -4px rgba(220, 53, 69, 0.12);
    transform: translateY(-2px);
}

/* Red Primary Buttons */
.btn-gold, .btn-red {
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-family: var(--font-heading);
    border: none;
    border-radius: 12px;
    padding: 0.65rem 1.4rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--red-glow);
}

.btn-gold:hover, .btn-red:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc3545 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.35);
    color: #ffffff !important;
}

.btn-outline-gold, .btn-outline-red {
    border: 2px solid #dc3545;
    color: #dc3545 !important;
    font-weight: 600;
    font-family: var(--font-heading);
    background: transparent;
    border-radius: 12px;
    padding: 0.6rem 1.3rem;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover, .btn-outline-red:hover {
    background: #dc3545;
    color: #ffffff !important;
    box-shadow: 0 4px 20px var(--red-glow);
}

/* Navbar Customization (High Contrast Dark Text on White Navbar) */
.navbar {
    background: #ffffff !important;
    border-bottom: 3px solid #dc3545;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
    color: #0f172a !important;
    font-family: var(--font-heading);
    font-weight: 700 !important;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    padding: 0.5rem 0.9rem !important;
}

.nav-link:hover, .nav-link.active {
    color: #dc3545 !important;
}

/* Hero Section */
.hero-wrapper {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('/images/hero-background.jpg') center/cover no-repeat;
    overflow: hidden;
    color: #ffffff;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(220, 53, 69, 0.3) 0%, rgba(15, 23, 42, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1, .hero-content p {
    color: #ffffff !important;
}

.pulse-glow {
    animation: pulseGlow 2.5s infinite ease-in-out;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* Teacher & Card Styles */
.teacher-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.teacher-card img {
    object-fit: cover;
    border-radius: 12px;
}

.teacher-card h5, .teacher-card h6 {
    color: #dc3545 !important;
}

.teacher-card p {
    color: #1e293b !important;
}

/* Custom Accordion */
.accordion-button {
    background-color: #f8fafc !important;
    color: #0f172a !important;
    box-shadow: none !important;
    font-family: var(--font-heading);
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    color: #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.08) !important;
}

.accordion-item {
    border: 1px solid #e2e8f0 !important;
    background-color: #ffffff !important;
}

/* Text Overrides for High Contrast */
.text-warning, .text-danger {
    color: #dc3545 !important;
}

.badge.bg-warning, .badge.bg-danger {
    background-color: #dc3545 !important;
    color: #ffffff !important;
}

.border-warning, .border-danger {
    border-color: #dc3545 !important;
}

.spinner-border.text-warning {
    color: #dc3545 !important;
}

/* Quill Editor Customization */
.ql-toolbar.ql-snow {
    border-color: #cbd5e1 !important;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    background-color: #f8fafc;
}

.ql-container.ql-snow {
    border-color: #cbd5e1 !important;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    min-height: 160px;
    background-color: #ffffff;
    font-family: var(--font-body);
}

/* Footer Styling */
footer {
    background-color: #0f172a !important;
    color: #cbd5e1 !important;
}

footer h5, footer h6, footer small.text-danger {
    color: #ef4444 !important;
}
