/* ========================================================================
   DIVINE WORLD COLLEGE OF BANGUED - IMPROVED PREMIUM DESIGN SYSTEM
   Ultra-Premium Modern Educational Institution Website
   Version: 2.1 | Enhanced & Refined
   ======================================================================== */

/* ===================================
   PART 1: FOUNDATION & CORE SYSTEMS
   =================================== */

/* === CSS CUSTOM PROPERTIES & DESIGN TOKENS === */
:root {
    /* Brand Colors - Primary Palette */
    --primary-red: #b11226;
    --primary-red-light: #c91a32;
    --primary-red-dark: #8b0e1e;
    --primary-red-darker: #6d0b18;
    --primary-gold: #FFD700;
    --primary-gold-light: #FFE44D;
    --primary-gold-dark: #DAA520;
    --primary-gold-darker: #B8860B;

    /* Neutral Colors */
    --white: #ffffff;
    --black: #000000;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;

    /* Semantic Colors */
    --success: #10b981;
    --success-light: #34d399;
    --success-dark: #059669;
    --warning: #f59e0b;
    --warning-light: #fbbf24;
    --warning-dark: #d97706;
    --error: #ef4444;
    --error-light: #f87171;
    --error-dark: #dc2626;
    --info: #3b82f6;
    --info-light: #60a5fa;
    --info-dark: #2563eb;

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f3f4f6;
    --bg-dark: #1f2937;
    --bg-darker: #111827;

    /* Text Colors */
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-tertiary: #6b7280;
    --text-muted: #9ca3af;
    --text-light: #d1d5db;
    --text-white: #ffffff;

    /* Border Colors */
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    --border-dark: #9ca3af;
    --border-red: rgba(177, 18, 38, 0.15);
    --border-gold: rgba(255, 215, 0, 0.3);

    /* Shadow System */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.2);
    --shadow-2xl: 0 16px 48px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

    /* Glow Effects */
    --glow-red: 0 0 20px rgba(177, 18, 38, 0.4);
    --glow-gold: 0 0 20px rgba(255, 215, 0, 0.4);
    --glow-red-lg: 0 0 40px rgba(177, 18, 38, 0.5);
    --glow-gold-lg: 0 0 40px rgba(255, 215, 0, 0.5);

    /* Gradients */
    --gradient-red: linear-gradient(135deg, #b11226 0%, #8b0e1e 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #DAA520 100%);
    --gradient-red-gold: linear-gradient(135deg, #b11226 0%, #FFD700 100%);
    --gradient-gold-red: linear-gradient(135deg, #FFD700 0%, #b11226 100%);
    --gradient-dark: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    --gradient-light: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    --gradient-overlay: linear-gradient(rgba(177, 18, 38, 0.85), rgba(139, 14, 30, 0.85));
    --gradient-overlay-light: linear-gradient(rgba(177, 18, 38, 0.7), rgba(139, 14, 30, 0.7));

    /* Spacing Scale */
    --space-px: 1px;
    --space-0: 0;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    --space-40: 10rem;
    --space-48: 12rem;
    --space-56: 14rem;
    --space-64: 16rem;

    /* Typography Scale */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    --font-size-7xl: 4.5rem;
    --font-size-8xl: 6rem;
    --font-size-9xl: 8rem;

    /* Font Weights */
    --font-thin: 100;
    --font-extralight: 200;
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    --font-black: 900;

    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;

    /* Letter Spacing */
    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;

    /* Border Radius */
    --radius-none: 0;
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --radius-4xl: 2rem;
    --radius-full: 9999px;

    /* Transition Durations */
    --duration-75: 75ms;
    --duration-100: 100ms;
    --duration-150: 150ms;
    --duration-200: 200ms;
    --duration-300: 300ms;
    --duration-500: 500ms;
    --duration-700: 700ms;
    --duration-1000: 1000ms;

    /* Transition Timing Functions */
    --ease-linear: linear;
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Z-Index Scale */
    --z-0: 0;
    --z-10: 10;
    --z-20: 20;
    --z-30: 30;
    --z-40: 40;
    --z-50: 50;
    --z-modal: 1000;
    --z-dropdown: 1010;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-overlay: 1040;
    --z-tooltip: 1050;

    /* Container Widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
}

/* === GLOBAL RESET & BASE STYLES === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
}

html {
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: var(--font-size-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-relaxed);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* === TYPOGRAPHY SYSTEM === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-extrabold);
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-none);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-tight);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: var(--font-bold);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.875rem);
    font-weight: var(--font-semibold);
}

h5 {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: var(--font-semibold);
}

h6 {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: var(--font-medium);
}

p {
    margin-bottom: var(--space-4);
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
}

.lead {
    font-size: var(--font-size-lg);
    font-weight: var(--font-normal);
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
}

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: all var(--duration-300) var(--ease-in-out);
    position: relative;
}

a:hover {
    color: var(--primary-red-dark);
}

/* === SCROLL REVEAL ANIMATIONS === */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Fade out elements when scrolling past them */
.scroll-fade-out {
    transition: opacity 0.4s ease-out;
}

.scroll-fade-out.faded {
    opacity: 0.3;
}

/* === SMOOTH SCROLLING & SCROLL BEHAVIOR === */
html {
    scroll-padding-top: 100px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === KEYFRAME ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleUp {
    from {
        transform: scale(0.95);
    }
    to {
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(177, 18, 38, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(177, 18, 38, 0.6);
    }
}

@keyframes glowGold {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    }
}

/* === UTILITY CLASSES === */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

@media (min-width: 640px) {
    .container {
        max-width: var(--container-sm);
        padding-left: var(--space-6);
        padding-right: var(--space-6);
    }
}

@media (min-width: 768px) {
    .container {
        max-width: var(--container-md);
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: var(--container-lg);
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: var(--container-xl);
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: var(--container-2xl);
    }
}

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

/* Text Colors */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--text-white); }
.text-red { color: var(--primary-red); }
.text-gold { color: var(--primary-gold); }

/* Background Colors */
.bg-primary { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-light { background-color: var(--gray-100); }
.bg-dark { background-color: var(--bg-dark); }
.bg-red { background-color: var(--primary-red); }
.bg-gold { background-color: var(--primary-gold); }

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-grid { display: grid; }

/* Flexbox */
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.align-start { align-items: flex-start; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }
.align-stretch { align-items: stretch; }

/* Spacing Utilities */
.m-0 { margin: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-0 { padding: 0; }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-5 { padding-top: var(--space-5); padding-bottom: var(--space-5); }

/* Border Radius */
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-3xl { border-radius: var(--radius-3xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadow */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-md); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }

/* Transitions */
.transition { transition: all var(--duration-300) var(--ease-in-out); }
.transition-fast { transition: all var(--duration-150) var(--ease-in-out); }
.transition-slow { transition: all var(--duration-500) var(--ease-in-out); }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-hidden { overflow-y: hidden; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Width & Height */
.w-full { width: 100%; }
.h-full { height: 100%; }
.w-screen { width: 100vw; }
.h-screen { height: 100vh; }

/* Object Fit */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* ============================================================
   END OF PART 1: FOUNDATION & CORE SYSTEMS
   ============================================================ */

/* ===================================
   PART 2: NAVIGATION & HEADER SYSTEM (IMPROVED)
   =================================== */

/* === PREMIUM NAVIGATION BAR (SMOOTHER) === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 90px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    z-index: var(--z-fixed);
    transition: all var(--duration-200) var(--ease-out);
    border-bottom: 3px solid transparent;
    will-change: transform, height, background;
}

.navbar.scrolled {
    height: 75px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--primary-gold);
}

.navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Navbar Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: 'Cormorant Garamond', serif;
    font-size: var(--font-size-xl);
    font-weight: var(--font-bold);
    color: var(--primary-red);
    transition: all var(--duration-200) var(--ease-out);
    text-decoration: none;
    position: relative;
    z-index: 2;
}

.navbar-brand img {
    height: 60px;
    width: auto;
    transition: all var(--duration-200) var(--ease-out);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    will-change: transform;
}

.navbar-brand:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(177, 18, 38, 0.3));
}

.navbar.scrolled .navbar-brand img {
    height: 50px;
}

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

.brand-text::after {
    content: 'Excellence in Education';
    font-size: var(--font-size-xs);
    font-weight: var(--font-medium);
    color: var(--primary-gold);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    margin-top: 2px;
}

/* Navbar Navigation */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--duration-200) var(--ease-out);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-red-gold);
    transform: translateX(-50%);
    transition: width var(--duration-200) var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red);
    background: rgba(177, 18, 38, 0.05);
}

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

/* Dropdown Menus */
.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: var(--space-2);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform var(--duration-200) var(--ease-out);
}

.dropdown-toggle:hover::after,
.dropdown-toggle.show::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    margin-top: var(--space-2);
    padding: var(--space-2);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--duration-200) var(--ease-out);
    z-index: var(--z-dropdown);
    border: 2px solid var(--border-light);
}

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

.dropdown-item {
    display: block;
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-sm);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all var(--duration-150) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-red-gold);
    transform: scaleY(0);
    transition: transform var(--duration-200) var(--ease-out);
}

.dropdown-item:hover {
    background: rgba(177, 18, 38, 0.08);
    color: var(--primary-red);
    padding-left: calc(var(--space-4) + 6px);
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

/* Search Button */
.btn-search {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--duration-200) var(--ease-out);
}

.btn-search:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: var(--glow-red);
}

.btn-search i {
    font-size: var(--font-size-lg);
}

/* Login Button */
.btn-login {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background: var(--gradient-red);
    color: var(--white);
    font-size: var(--font-size-base);
    font-weight: var(--font-semibold);
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-200) var(--ease-out);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width var(--duration-500) var(--ease-out),
                height var(--duration-500) var(--ease-out);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--glow-red-lg);
    border-color: var(--primary-gold);
}

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

.btn-login:active {
    transform: translateY(0);
}

/* Mobile Toggle */
.navbar-toggler {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    padding: 0;
    background: transparent;
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--duration-200) var(--ease-out);
}

.navbar-toggler:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

.navbar-toggler-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-sm);
    transition: all var(--duration-200) var(--ease-out);
    position: relative;
}

.navbar-toggler:hover .navbar-toggler-icon {
    background: var(--white);
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: inherit;
    border-radius: inherit;
    transition: all var(--duration-200) var(--ease-out);
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    bottom: -8px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* === PAGE HEADER / BANNER SYSTEM (WITH TORN PAPER EFFECT) === */
.page-header {
    position: relative;
    width: 100%;
    height: 300px;
    margin-top: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-overlay), url('/images/dwcb_bg.jpg') center/cover no-repeat;
    background-attachment: fixed;
    overflow: visible;
    border-bottom: none;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    animation: gradient 8s ease infinite;
    background-size: 200% 200%;
}

/* Torn Paper Effect */
.page-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 20px;
    background: var(--white);
    clip-path: polygon(
        0% 50%,
        2% 20%, 4% 80%, 6% 30%, 8% 70%, 10% 20%, 12% 85%, 14% 35%, 16% 75%, 18% 25%,
        20% 90%, 22% 40%, 24% 60%, 26% 15%, 28% 80%, 30% 35%, 32% 75%, 34% 25%, 36% 85%,
        38% 40%, 40% 70%, 42% 30%, 44% 80%, 46% 20%, 48% 90%, 50% 30%, 52% 75%, 54% 25%,
        56% 85%, 58% 35%, 60% 70%, 62% 20%, 64% 80%, 66% 40%, 68% 75%, 70% 25%, 72% 85%,
        74% 35%, 76% 70%, 78% 30%, 80% 80%, 82% 25%, 84% 85%, 86% 40%, 88% 70%, 90% 20%,
        92% 80%, 94% 35%, 96% 75%, 98% 30%, 100% 50%,
        100% 100%, 0% 100%
    );
    z-index: 10;
}

.page-header .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-extrabold);
    color: var(--white);
    margin-bottom: var(--space-3);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3),
                 0 0 20px rgba(255, 215, 0, 0.3);
    letter-spacing: var(--tracking-tight);
    animation: fadeInDown 0.8s var(--ease-out);
}

.page-header p {
    font-size: var(--font-size-xl);
    font-weight: var(--font-medium);
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
    margin: 0;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

/* Dark background with light text */
.page-header-dark {
    background: var(--gradient-dark);
}

.page-header-dark h1,
.page-header-dark p {
    color: var(--white);
}

/* Animated Header Variant */
.page-header-image {
    position: relative;
    width: 100%;
    height: 350px;
    margin-top: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-overlay), url('/images/dwcb_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: visible;
    border-bottom: none;
}

.page-header-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

/* Torn paper effect for image header */
.page-header-image::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 20px;
    background: var(--white);
    clip-path: polygon(
        0% 50%,
        2% 20%, 4% 80%, 6% 30%, 8% 70%, 10% 20%, 12% 85%, 14% 35%, 16% 75%, 18% 25%,
        20% 90%, 22% 40%, 24% 60%, 26% 15%, 28% 80%, 30% 35%, 32% 75%, 34% 25%, 36% 85%,
        38% 40%, 40% 70%, 42% 30%, 44% 80%, 46% 20%, 48% 90%, 50% 30%, 52% 75%, 54% 25%,
        56% 85%, 58% 35%, 60% 70%, 62% 20%, 64% 80%, 66% 40%, 68% 75%, 70% 25%, 72% 85%,
        74% 35%, 76% 70%, 78% 30%, 80% 80%, 82% 25%, 84% 85%, 86% 40%, 88% 70%, 90% 20%,
        92% 80%, 94% 35%, 96% 75%, 98% 30%, 100% 50%,
        100% 100%, 0% 100%
    );
    z-index: 10;
}

/* === SECTION TITLE SYSTEM === */
.section-title-with-lines {
    position: relative;
    text-align: center;
    margin-bottom: var(--space-10);
    padding-bottom: var(--space-6);
}

.section-title-with-lines::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-red-gold);
    border-radius: var(--radius-full);
    animation: scaleIn 0.6s var(--ease-out);
}

.section-title-with-lines h2,
.section-title-with-lines h3 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-bold);
    color: var(--primary-red);
    margin-bottom: 0;
    position: relative;
    display: inline-block;
    animation: fadeInUp 0.6s var(--ease-out);
}

.section-title-with-lines h2 span,
.section-title-with-lines h3 span {
    color: var(--primary-gold);
    position: relative;
}

.section-title-with-lines h2 span::after,
.section-title-with-lines h3 span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    animation: scaleInHorizontal 0.8s var(--ease-out) 0.3s forwards;
}

@keyframes scaleInHorizontal {
    to {
        transform: scaleX(1);
    }
}

.section-subtitle {
    font-size: var(--font-size-lg);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    margin-top: var(--space-3);
    animation: fadeIn 0.8s var(--ease-out) 0.4s both;
}

/* === DIVIDER SYSTEM === */
.divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-red-gold);
    border: none;
    border-radius: var(--radius-full);
    margin: var(--space-8) auto;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    background: var(--primary-gold);
    border-radius: var(--radius-full);
    transform: translateY(-50%);
}

.divider::before {
    left: -20px;
}

.divider::after {
    right: -20px;
}

/* ============================================================
   END OF PART 2: NAVIGATION & HEADER SYSTEM
   ============================================================ */

/* ===================================
   PART 3: BUTTONS, CARDS & COMPONENTS (IMPROVED)
   =================================== */

/* === BUTTON SYSTEM === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: 'Montserrat', sans-serif;
    font-size: var(--font-size-base);
    font-weight: var(--font-semibold);
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 2px solid transparent;
    border-radius: var(--radius-xl);
    transition: all var(--duration-200) var(--ease-out);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width var(--duration-500) var(--ease-out),
                height var(--duration-500) var(--ease-out);
    z-index: -1;
}

.btn:hover::before {
    width: 300%;
    height: 300%;
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Button Variants */
.btn-primary {
    background: var(--gradient-red);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-red-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--glow-red);
}

.btn-secondary {
    background: var(--gradient-gold);
    color: var(--primary-red);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: var(--primary-gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--glow-gold);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-red);
    border-color: var(--primary-red);
}

.btn-outline-primary:hover {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
    box-shadow: var(--glow-red);
}

.btn-outline-secondary {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-medium);
}

.btn-outline-secondary:hover {
    background: var(--gray-100);
    color: var(--text-primary);
    border-color: var(--border-dark);
}

/* Button Sizes */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-lg);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-lg);
    border-radius: var(--radius-2xl);
}

.btn-xl {
    padding: var(--space-5) var(--space-10);
    font-size: var(--font-size-xl);
    border-radius: var(--radius-2xl);
    font-weight: var(--font-bold);
}

/* Button Icons */
.btn i {
    font-size: 1.1em;
    transition: transform var(--duration-200) var(--ease-out);
}

.btn:hover i {
    transform: translateX(3px);
}

.btn:hover i.fa-arrow-left {
    transform: translateX(-3px);
}

/* === CARD SYSTEM (NO FLIP EFFECT) === */
.card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all var(--duration-200) var(--ease-out);
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-gold);
}

.card-header {
    padding: var(--space-5) var(--space-6);
    background: var(--gradient-red);
    color: var(--white);
    font-weight: var(--font-bold);
    border-bottom: 3px solid var(--primary-gold);
}

.card-body {
    padding: var(--space-6);
}

.card-footer {
    padding: var(--space-4) var(--space-6);
    background: var(--gray-50);
    border-top: 1px solid var(--border-light);
}

.card-img-top {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--duration-500) var(--ease-out);
}

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

.card-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-bold);
    color: var(--primary-red);
    margin-bottom: var(--space-3);
}

.card-text {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

/* === BADGE SYSTEM === */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--font-size-xs);
    font-weight: var(--font-semibold);
    line-height: 1;
    color: var(--white);
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--radius-full);
    background: var(--gradient-red);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-200) var(--ease-out);
}

.badge:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.badge.bg-primary {
    background: var(--gradient-red);
}

.badge.bg-secondary {
    background: var(--gradient-gold);
    color: var(--primary-red);
}

.badge.bg-success {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
}

.badge.bg-warning {
    background: linear-gradient(135deg, var(--warning) 0%, var(--warning-dark) 100%);
    color: var(--white);
}

.badge.bg-danger {
    background: linear-gradient(135deg, var(--error) 0%, var(--error-dark) 100%);
}

/* === ALERT SYSTEM === */
.alert {
    position: relative;
    padding: var(--space-4) var(--space-6);
    margin-bottom: var(--space-4);
    border: 2px solid transparent;
    border-radius: var(--radius-xl);
    animation: slideDown var(--duration-500) var(--ease-out);
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
    border-color: var(--success);
    color: var(--success-dark);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.05) 100%);
    border-color: var(--warning);
    color: var(--warning-dark);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    border-color: var(--error);
    color: var(--error-dark);
}

.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-color: var(--info);
    color: var(--info-dark);
}

.alert i {
    margin-right: var(--space-2);
    font-size: var(--font-size-lg);
}

.alert .btn-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    padding: 0;
    background: transparent;
    border: none;
    font-size: var(--font-size-xl);
    line-height: 1;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity var(--duration-200) var(--ease-out);
}

.alert .btn-close:hover {
    opacity: 1;
}

/* === IMAGE PLACEHOLDER SYSTEM === */
.program-image-placeholder {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(177, 18, 38, 0.08) 0%, rgba(255, 215, 0, 0.08) 100%);
    border: 3px dashed var(--border-red);
    border-radius: var(--radius-2xl);
    transition: all var(--duration-200) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.program-image-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: float 4s ease-in-out infinite;
}

.program-image-placeholder i {
    font-size: 4rem;
    color: var(--primary-red);
    opacity: 0.3;
    position: relative;
    z-index: 1;
    animation: pulse 2s ease-in-out infinite;
}

.program-image-placeholder:hover {
    border-color: var(--primary-gold);
    background: linear-gradient(135deg, rgba(177, 18, 38, 0.12) 0%, rgba(255, 215, 0, 0.12) 100%);
    transform: scale(1.02);
}

.program-image-placeholder:hover i {
    transform: scale(1.1);
    opacity: 0.5;
}

/* === FORM ELEMENTS === */
.form-control {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: inherit;
    font-size: var(--font-size-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background-color: var(--white);
    background-clip: padding-box;
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-lg);
    transition: all var(--duration-200) var(--ease-out);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(177, 18, 38, 0.1);
    background-color: var(--white);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.form-control.is-invalid {
    border-color: var(--error);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.form-label {
    display: inline-block;
    margin-bottom: var(--space-2);
    font-size: var(--font-size-sm);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.invalid-feedback {
    display: block;
    margin-top: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--error);
    animation: fadeIn var(--duration-200) var(--ease-out);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right var(--space-3) center;
    background-size: 16px 12px;
    padding-right: var(--space-10);
}

/* === BREADCRUMB === */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: var(--space-3) var(--space-5);
    margin-bottom: var(--space-4);
    list-style: none;
    background: linear-gradient(135deg, rgba(177, 18, 38, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-radius: var(--radius-xl);
    border: 2px solid var(--border-light);
}

.breadcrumb-item {
    font-size: var(--font-size-sm);
}

.breadcrumb-item + .breadcrumb-item {
    padding-left: var(--space-2);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    padding-right: var(--space-2);
    color: var(--text-muted);
}

.breadcrumb-item.active {
    color: var(--text-secondary);
    font-weight: var(--font-medium);
}

.breadcrumb-item a {
    color: var(--primary-red);
    text-decoration: none;
    transition: all var(--duration-200) var(--ease-out);
}

.breadcrumb-item a:hover {
    color: var(--primary-red-dark);
    text-decoration: underline;
}

/* === MODAL SYSTEM === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-modal);
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-200) var(--ease-out);
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: var(--space-10) auto;
    max-width: 600px;
    pointer-events: none;
    transform: translateY(-50px);
    transition: transform var(--duration-200) var(--ease-out);
}

.modal.show .modal-dialog {
    transform: translateY(0);
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - var(--space-20));
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: var(--white);
    background-clip: padding-box;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-2xl);
    outline: 0;
    box-shadow: var(--shadow-2xl);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    border-bottom: 2px solid var(--border-light);
    background: linear-gradient(135deg, rgba(177, 18, 38, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
}

.modal-title {
    margin: 0;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-bold);
    color: var(--primary-red);
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: var(--space-6);
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-6);
    border-top: 2px solid var(--border-light);
    background: var(--gray-50);
}

/* ============================================================
   END OF PART 3: BUTTONS, CARDS & COMPONENTS
   ============================================================ */

/* ===================================
   PART 4: PAGE-SPECIFIC SECTIONS (IMPROVED)
   =================================== */

/* === HERO SECTION (IMPROVED WITH SCROLL EFFECTS) === */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    margin-top: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--gradient-dark);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
    transition: opacity var(--duration-300) var(--ease-out);
    will-change: opacity;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--duration-300) var(--ease-out);
    will-change: opacity;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(177, 18, 38, 0.15) 0%, transparent 50%);
    animation: gradient 10s ease infinite;
    background-size: 200% 200%;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 1000px;
    padding: var(--space-10) var(--space-6);
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.hero-title .title-line {
    font-size: var(--font-size-xl);
    font-weight: var(--font-semibold);
    color: var(--primary-gold);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    animation: fadeInDown 0.8s var(--ease-out);
}

.hero-title .title-main {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: var(--font-extrabold);
    color: var(--white);
    line-height: var(--leading-tight);
    text-shadow: 3px 3px 10px rgba(0,0,0,0.5),
                 0 0 30px rgba(255, 215, 0, 0.3);
    animation: fadeInUp 1s var(--ease-out) 0.2s both;
}

.hero-title .title-sub {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: var(--font-bold);
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    animation: fadeInUp 1s var(--ease-out) 0.4s both;
}

.hero-description {
    font-size: var(--font-size-xl);
    font-weight: var(--font-medium);
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    max-width: 800px;
    margin: 0 auto var(--space-8);
    line-height: var(--leading-relaxed);
    animation: fadeIn 1s var(--ease-out) 0.6s both;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
    animation: fadeInUp 1s var(--ease-out) 0.8s both;
}

/* Video Control Button */
.video-control {
    position: absolute;
    bottom: var(--space-10);
    right: var(--space-10);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(177, 18, 38, 0.9);
    border: 3px solid var(--primary-gold);
    border-radius: var(--radius-full);
    color: var(--primary-gold);
    font-size: var(--font-size-xl);
    cursor: pointer;
    z-index: 10;
    transition: all var(--duration-200) var(--ease-out);
    animation: pulse 2s ease-in-out infinite;
}

.video-control:hover {
    background: var(--primary-gold);
    color: var(--primary-red);
    transform: scale(1.1);
    animation: none;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-10);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    z-index: 3;
    animation: fadeIn 1s var(--ease-out) 1s both;
}

.scroll-indicator i {
    font-size: var(--font-size-4xl);
    animation: bounce 2s infinite;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
    display: block;
}

.scroll-indicator p {
    margin-top: var(--space-3);
    font-weight: var(--font-semibold);
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
    font-size: var(--font-size-base);
}

/* === HISTORY SECTION === */
.history-section {
    padding: var(--space-20) 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
    position: relative;
}

.history-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(177, 18, 38, 0.02) 20px,
            rgba(177, 18, 38, 0.02) 40px
        );
}

/* ONLY make History PAGE white (not home page) */
.page-header-image h1,
.page-header-image p {
    color: var(--white) !important;
}

.excellence-badge {
    position: relative;
    animation: float 4s ease-in-out infinite;
}

.badge-circle {
    width: 280px;
    height: 280px;
    margin: 0 auto;
    border: 8px solid var(--primary-gold);
    border-radius: var(--radius-full);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--gradient-red);
    box-shadow: var(--shadow-xl), var(--glow-red);
    position: relative;
    overflow: hidden;
}

.badge-circle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
    animation: spin 20s linear infinite;
}

.badge-circle h3 {
    font-size: 5rem;
    font-weight: var(--font-black);
    color: var(--white);
    margin: 0;
    line-height: 1;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.badge-circle p {
    font-size: var(--font-size-lg);
    font-weight: var(--font-semibold);
    color: var(--white);
    margin: var(--space-2) 0 0;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

/* === PROGRAMS SECTION (NO FLIP EFFECT) === */
.programs-section {
    padding: var(--space-20) 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.programs-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
    border-radius: var(--radius-full);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-10);
}

/* Program Card (NO FLIP/3D TILT) */
.program-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--border-light);
    transition: all var(--duration-200) var(--ease-out);
    position: relative;
    animation: fadeInUp 0.6s var(--ease-out);
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(177, 18, 38, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--duration-200) var(--ease-out);
    z-index: 1;
    pointer-events: none;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-gold);
}

.program-card:hover::before {
    opacity: 1;
}

.program-card .badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    z-index: 2;
    background: var(--gradient-gold);
    color: var(--primary-red);
    padding: var(--space-2) var(--space-4);
    font-weight: var(--font-bold);
    box-shadow: var(--shadow-lg);
}

.program-content {
    padding: var(--space-6);
    position: relative;
    z-index: 2;
}

.program-content h4 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-bold);
    color: var(--primary-red);
    margin-bottom: var(--space-3);
    transition: color var(--duration-200) var(--ease-out);
}

.program-card:hover .program-content h4 {
    color: var(--primary-gold);
}

.program-content p {
    font-size: var(--font-size-base);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    line-height: var(--leading-relaxed);
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-lg);
    font-weight: var(--font-semibold);
    color: var(--primary-red);
    text-decoration: none;
    padding: var(--space-4) var(--space-6);
    border: 2px solid var(--primary-red);
    border-radius: var(--radius-xl);
    transition: all var(--duration-200) var(--ease-out);
}

.view-all-link:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateX(5px);
    box-shadow: var(--glow-red);
}

.view-all-link i {
    transition: transform var(--duration-200) var(--ease-out);
}

.view-all-link:hover i {
    transform: translateX(5px);
}

/* === NEWS SECTION (NO FLIP EFFECT) === */
.news-section {
    padding: var(--space-20) 0;
    background: var(--gray-50);
    position: relative;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-light);
    transition: all var(--duration-200) var(--ease-out);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-red);
}

.news-card.featured {
    border: 3px solid var(--primary-gold);
}

.news-card.featured:hover {
    box-shadow: var(--shadow-2xl), var(--glow-gold);
}

.news-content {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    display: inline-block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-semibold);
    color: var(--primary-gold);
    margin-bottom: var(--space-3);
    padding: var(--space-1) var(--space-3);
    background: rgba(255, 215, 0, 0.1);
    border-radius: var(--radius-full);
    border: 1px solid var(--primary-gold);
}

.news-content h3,
.news-content h5 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-bold);
    color: var(--primary-red);
    margin-bottom: var(--space-3);
    line-height: var(--leading-tight);
    transition: color var(--duration-200) var(--ease-out);
}

.news-card:hover .news-content h3,
.news-card:hover .news-content h5 {
    color: var(--primary-gold);
}

.news-content p {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
    flex: 1;
}

.news-content a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--primary-red);
    font-weight: var(--font-semibold);
    text-decoration: none;
    transition: all var(--duration-200) var(--ease-out);
}

.news-content a:hover {
    color: var(--primary-gold);
    gap: var(--space-3);
}

/* === ANNOUNCEMENTS SECTION (NO FLIP EFFECT) === */
.announcements-section {
    padding: var(--space-20) 0;
    background: var(--gray-100);
    position: relative;
}

.announcement-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    border: 3px solid rgba(177, 18, 38, 0.1);
    transition: all var(--duration-200) var(--ease-out);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.announcement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-red-gold);
    transform: scaleY(0);
    transition: transform var(--duration-200) var(--ease-out);
}

.announcement-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-gold);
}

.announcement-card:hover::before {
    transform: scaleY(1);
}

.announcement-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-full);
    background: var(--gradient-red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
    box-shadow: var(--shadow-lg);
    transition: all var(--duration-200) var(--ease-out);
}

.announcement-card:hover .announcement-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl), var(--glow-red);
}

.announcement-icon i {
    font-size: 2rem;
    color: var(--primary-gold);
}

.announcement-date {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--primary-gold);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.announcement-card h4 {
    color: var(--primary-red);
    font-weight: var(--font-bold);
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-3);
    transition: color var(--duration-200) var(--ease-out);
}

.announcement-card:hover h4 {
    color: var(--primary-gold);
}

.announcement-card p {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    line-height: var(--leading-relaxed);
}

/* === FACILITIES SECTION (FIXED) === */
.facilities-section {
    padding: var(--space-20) 0;
    background: var(--white);
    position: relative;
}

.facilities-carousel-auto {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.carousel-wrapper {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 3px solid var(--primary-gold);
}

.carousel-inner {
    display: flex;
    transition: transform var(--duration-500) var(--ease-out);
}

.carousel-item {
    min-width: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: var(--gray-300);
    cursor: pointer;
    transition: all var(--duration-200) var(--ease-out);
    border: 2px solid transparent;
}

.carousel-dot.active {
    background: var(--primary-red);
    transform: scale(1.3);
    border-color: var(--primary-gold);
    box-shadow: var(--glow-red);
}

.carousel-dot:hover {
    background: var(--primary-gold);
    transform: scale(1.2);
}

/* ============================================================
   END OF PART 4: PAGE-SPECIFIC SECTIONS
   ============================================================ */

/* ===================================
   PART 5: FOOTER, SPECIALIZED PAGES & RESPONSIVE (IMPROVED)
   =================================== */

/* === VISIT/CONTACT SECTION (REDESIGNED) === */
.visit-section {
    padding: var(--space-20) 0;
    background: var(--gray-50);
    position: relative;
}

/* Contact header */
.contact-section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.contact-section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-bold);
    color: var(--primary-red);
    margin-bottom: var(--space-3);
}

.contact-section-header p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
}

/* Street view map container */
.map-container {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 3px solid var(--primary-gold);
    position: relative;
    margin-bottom: var(--space-12);
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid var(--primary-red);
    border-radius: var(--radius-2xl);
    pointer-events: none;
    z-index: 1;
    margin: -6px;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 500px;
    border: none;
}

/* Contact details below map */
.contact-details-wrapper {
    background: var(--white);
    padding: var(--space-10);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    border: 3px solid var(--primary-gold);
    position: relative;
    overflow: hidden;
}

.contact-details-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    border-radius: var(--radius-full);
    pointer-events: none;
}

.contact-details-wrapper h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-bold);
    color: var(--primary-red);
    text-align: center;
    margin-bottom: var(--space-8);
    position: relative;
    padding-bottom: var(--space-4);
}

.contact-details-wrapper h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-red-gold);
    border-radius: var(--radius-full);
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-5);
    padding: var(--space-5);
    background: linear-gradient(135deg, rgba(177, 18, 38, 0.03) 0%, rgba(255, 215, 0, 0.03) 100%);
    border-radius: var(--radius-xl);
    border: 2px solid var(--border-light);
    transition: all var(--duration-200) var(--ease-out);
}

.contact-details li:hover {
    background: linear-gradient(135deg, rgba(177, 18, 38, 0.08) 0%, rgba(255, 215, 0, 0.08) 100%);
    border-color: var(--primary-gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact-details i {
    color: var(--primary-red);
    font-size: var(--font-size-2xl);
    margin-top: 3px;
    transition: all var(--duration-200) var(--ease-out);
    min-width: 30px;
}

.contact-details li:hover i {
    color: var(--primary-gold);
    transform: scale(1.1);
}

.contact-details span {
    font-size: var(--font-size-base);
    color: var(--text-primary);
    font-weight: var(--font-medium);
    line-height: var(--leading-relaxed);
}

/* Social media links in contact section */
.contact-social-links {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.contact-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--gradient-red);
    border: 2px solid var(--primary-gold);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: var(--font-size-xl);
    transition: all var(--duration-200) var(--ease-out);
}

.contact-social-links a:hover {
    background: var(--gradient-gold);
    color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--glow-gold);
}

/* === FOOTER (WITH LOGO & ICONS) === */
.footer {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    color: var(--text-light);
    padding: var(--space-20) 0 var(--space-10);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-red-gold);
}

.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    border-radius: var(--radius-full);
}

.footer h5 {
    color: var(--primary-gold);
    font-size: var(--font-size-xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
    position: relative;
    padding-bottom: var(--space-3);
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-red-gold);
    border-radius: var(--radius-full);
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    line-height: var(--leading-relaxed);
}

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

.footer .list-unstyled li {
    margin-bottom: var(--space-3);
}

.footer .list-unstyled a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all var(--duration-200) var(--ease-out);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.footer .list-unstyled a::before {
    content: '›';
    color: var(--primary-gold);
    font-size: var(--font-size-xl);
    font-weight: var(--font-bold);
    transition: transform var(--duration-200) var(--ease-out);
}

.footer .list-unstyled a:hover {
    color: var(--primary-gold);
    padding-left: var(--space-3);
}

.footer .list-unstyled a:hover::before {
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: var(--space-3);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: var(--font-size-xl);
    transition: all var(--duration-200) var(--ease-out);
}

.social-links a:hover {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: var(--glow-gold);
}

.footer hr {
    margin: var(--space-10) 0;
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 215, 0, 0.3) 50%, transparent 100%);
}

/* Footer Copyright with Logo & Icons */
.footer-copyright {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.footer-logo-text {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.footer-logo-text img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.footer-copyright-text {
    flex: 1;
    text-align: center;
}

.footer-social-icons {
    display: flex;
    gap: var(--space-3);
}

.footer-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: var(--font-size-lg);
    transition: all var(--duration-200) var(--ease-out);
}

.footer-social-icons a:hover {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--primary-red);
    transform: translateY(-3px);
}

/* === SPECIALIZED PAGE STYLES === */

/* Administration Page - Centered Large Picture */
.admin-card {
    background: var(--gradient-red);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--primary-gold);
    transition: all var(--duration-200) var(--ease-out);
    height: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.admin-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl), var(--glow-red);
}

.admin-photo {
    width: 300px;
    height: 300px;
    margin: 0 auto var(--space-6);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 5px solid var(--primary-gold);
    box-shadow: var(--shadow-xl);
    transition: all var(--duration-200) var(--ease-out);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(177, 18, 38, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-card:hover .admin-photo {
    transform: scale(1.05);
    box-shadow: var(--shadow-2xl), var(--glow-gold);
}

.admin-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder icon for admin photo */
.admin-photo i {
    font-size: 6rem;
    color: var(--primary-gold);
    opacity: 0.3;
}

.admin-card h4 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-bold);
    color: var(--white);
    margin-bottom: var(--space-3);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.admin-card p {
    color: var(--white);
    font-weight: var(--font-semibold);
    font-size: var(--font-size-lg);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Enrollment Procedures (FIXED SPACING) */
.enrollment-steps {
    position: relative;
    padding-left: var(--space-12);
}

.enrollment-steps::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-red-gold);
}

.step-item {
    position: relative;
    display: flex;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
    animation: fadeInLeft 0.6s var(--ease-out);
}

.step-item:nth-child(even) {
    animation: fadeInRight 0.6s var(--ease-out);
}

.step-number {
    position: absolute;
    left: -30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-red);
    color: var(--primary-gold);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-black);
    border-radius: var(--radius-full);
    border: 4px solid var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 2;
    transition: all var(--duration-200) var(--ease-out);
}

.step-item:hover .step-number {
    transform: scale(1.15);
    box-shadow: var(--shadow-xl), var(--glow-red);
}

.step-content {
    flex: 1;
    background: var(--white);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-200) var(--ease-out);
}

.step-item:hover .step-content {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-gold);
}

.step-content h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-bold);
    color: var(--primary-red);
    margin-bottom: var(--space-4);
}

.step-content p {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* Requirements List */
.requirements-container {
    background: var(--white);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    border: 3px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    transition: all var(--duration-200) var(--ease-out);
}

.requirements-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-gold);
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    position: relative;
    padding: var(--space-4) var(--space-4) var(--space-4) var(--space-12);
    margin-bottom: var(--space-4);
    background: linear-gradient(135deg, rgba(177, 18, 38, 0.03) 0%, rgba(255, 215, 0, 0.03) 100%);
    border-left: 4px solid var(--primary-gold);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: var(--font-medium);
    color: var(--text-primary);
    transition: all var(--duration-200) var(--ease-out);
}

.requirements-list li::before {
    content: '✓';
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-red);
    color: var(--primary-gold);
    font-size: var(--font-size-base);
    font-weight: var(--font-bold);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.requirements-list li:hover {
    background: linear-gradient(135deg, rgba(177, 18, 38, 0.08) 0%, rgba(255, 215, 0, 0.08) 100%);
    border-left-color: var(--primary-red);
    padding-left: calc(var(--space-12) + 5px);
}

/* Vision & Mission (FIXED - REMOVED ICONS, REDUCED SIZE, WHITE TEXT) */
.mission-vision-section {
    padding: var(--space-20) 0;
}

.mission-vision-box {
    background: var(--gradient-red);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--primary-gold);
    margin-bottom: var(--space-6);
    transition: all var(--duration-200) var(--ease-out);
}

.mission-vision-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2xl);
}

.mission-vision-box h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-bold);
    color: var(--white);
    margin-bottom: var(--space-4);
    text-align: center;
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--primary-gold);
}

.mission-vision-box p {
    font-size: var(--font-size-sm);
    line-height: var(--leading-relaxed);
    color: var(--white);
    text-align: center;
}

/* Core Values (NO ICONS, WHITE TEXT) */
.core-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.core-value-item {
    background: var(--white);
    padding: var(--space-5);
    border-radius: var(--radius-xl);
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-200) var(--ease-out);
}

.core-value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-gold);
}

.core-value-item h4 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-bold);
    color: var(--primary-red);
    margin-bottom: var(--space-2);
}

.core-value-item p {
    font-size: var(--font-size-sm);
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
    margin: 0;
}

/* Hymn Page */
.hymn-video {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 3px solid var(--primary-gold);
    margin-bottom: var(--space-10);
}

.hymn-lyrics {
    background: linear-gradient(135deg, rgba(177, 18, 38, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
    padding: var(--space-10);
    border-radius: var(--radius-2xl);
    border: 3px solid var(--border-light);
    box-shadow: var(--shadow-lg);
}

.hymn-lyrics h4 {
    color: var(--primary-red);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-6);
    position: relative;
    padding-bottom: var(--space-4);
}

.hymn-lyrics h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-red-gold);
    border-radius: var(--radius-full);
}

.lyrics-content {
    background: var(--white);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    border: 2px solid var(--border-light);
}

.lyrics-content p {
    font-size: var(--font-size-lg);
    line-height: 2;
    color: var(--text-primary);
}

.lyrics-content em {
    font-style: italic;
    color: var(--primary-red);
}

/* News Article Page */
.news-article {
    animation: fadeInUp 0.6s var(--ease-out);
}

.article-header {
    padding-bottom: var(--space-6);
    border-bottom: 3px solid var(--border-light);
    margin-bottom: var(--space-8);
}

.article-title {
    color: var(--primary-red);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-extrabold);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-4);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.article-meta i {
    color: var(--primary-gold);
}

.article-image {
    margin-bottom: var(--space-8);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 3px solid var(--primary-gold);
    box-shadow: var(--shadow-xl);
}

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

.article-content {
    line-height: var(--leading-loose);
    font-size: var(--font-size-lg);
    color: var(--text-primary);
}

.article-content p {
    margin-bottom: var(--space-6);
}

/* Statistics / Legacy Section */
.stat-highlight {
    background: var(--white);
    padding: var(--space-8) var(--space-5);
    border-radius: var(--radius-2xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--primary-red);
    transition: all var(--duration-200) var(--ease-out);
    animation: scaleIn 0.6s var(--ease-out);
}

.stat-highlight:nth-child(even) {
    border-color: var(--primary-gold);
}

.stat-highlight:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--shadow-2xl), var(--glow-red);
}

.stat-highlight:nth-child(even):hover {
    box-shadow: var(--shadow-2xl), var(--glow-gold);
}

.stat-highlight h2 {
    font-size: 4rem;
    font-weight: var(--font-black);
    line-height: 1;
    margin-bottom: var(--space-3);
}

.stat-highlight p {
    font-weight: var(--font-semibold);
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    margin: 0;
}

/* Facilities Carousel */
.facilities-section-carousel {
    position: relative;
    margin-top: var(--space-10);
}

.facilities-main-carousel {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.carousel-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    background: rgba(177, 18, 38, 0.95);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
}

.carousel-caption h3 {
    font-weight: var(--font-bold);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--primary-gold);
    margin-bottom: var(--space-3);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.carousel-caption p {
    margin: 0;
    font-size: var(--font-size-lg);
    color: var(--white);
    line-height: var(--leading-relaxed);
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(177, 18, 38, 0.95);
    color: var(--primary-gold);
    border: 3px solid var(--primary-gold);
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    cursor: pointer;
    z-index: 10;
    transition: all var(--duration-200) var(--ease-out);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.carousel-control-prev {
    left: 15px;
}

.carousel-control-next {
    right: 15px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--primary-gold);
    color: var(--primary-red);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-xl), var(--glow-gold);
}

.facilities-thumbnails {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-top: var(--space-8);
}

.facility-thumbnail {
    width: 120px;
    height: 90px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    border: 4px solid transparent;
    transition: all var(--duration-200) var(--ease-out);
    opacity: 0.6;
    box-shadow: var(--shadow-md);
}

.facility-thumbnail.active,
.facility-thumbnail:hover {
    border-color: var(--primary-red);
    opacity: 1;
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.facility-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --space-20: 4rem;
    }

    .navbar {
        height: 75px;
    }

    .navbar.scrolled {
        height: 65px;
    }

    .brand-text {
        font-size: var(--font-size-lg);
    }

    .programs-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: var(--space-6);
    }

    .hero-section {
        height: 80vh;
        min-height: 600px;
    }

    .page-header {
        height: 250px;
        margin-top: 75px;
    }

    .badge-circle {
        width: 220px;
        height: 220px;
    }

    .badge-circle h3 {
        font-size: 4rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }

    .navbar.scrolled {
        height: 60px;
    }

    .navbar-brand img {
        height: 50px;
    }

    .navbar.scrolled .navbar-brand img {
        height: 40px;
    }

    .brand-text::after {
        display: none;
    }

    .navbar-toggler {
        display: flex;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-xl);
        border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
        padding: var(--space-4);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--duration-300) var(--ease-out);
    }

    .navbar-collapse.show {
        max-height: 600px;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        padding: var(--space-4);
        border-radius: var(--radius-lg);
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--primary-gold);
        margin-left: var(--space-4);
        padding-left: var(--space-4);
    }

    .hero-section {
        height: 70vh;
        min-height: 500px;
        margin-top: 70px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .page-header {
        height: 200px;
        margin-top: 70px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: var(--font-size-base);
    }

    .programs-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .badge-circle {
        width: 200px;
        height: 200px;
    }

    .badge-circle h3 {
        font-size: 3.5rem;
    }

    .badge-circle p {
        font-size: var(--font-size-base);
    }

    .enrollment-steps {
        padding-left: var(--space-8);
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-xl);
        left: -25px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }

    .carousel-control-prev {
        left: 10px;
    }

    .carousel-control-next {
        right: 10px;
    }

    .carousel-caption {
        width: 90%;
        padding: var(--space-5);
        bottom: 20px;
    }

    .carousel-caption h3 {
        font-size: 1.25rem;
    }

    .carousel-caption p {
        font-size: var(--font-size-sm);
    }

    .stat-highlight h2 {
        font-size: 3rem;
    }

    .footer-copyright {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo-text {
        flex-direction: column;
    }

    .footer-copyright-text {
        order: 2;
    }

    .footer-social-icons {
        order: 1;
        justify-content: center;
    }

    .contact-details li {
        gap: var(--space-4);
        padding: var(--space-3);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        --space-20: 3rem;
    }

    .container {
        padding-left: var(--space-3);
        padding-right: var(--space-3);
    }

    .hero-title .title-main {
        font-size: 2.5rem;
    }

    .hero-title .title-sub {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: var(--font-size-base);
    }

    .btn-lg {
        padding: var(--space-3) var(--space-6);
        font-size: var(--font-size-base);
    }

    .facilities-thumbnails {
        gap: var(--space-2);
    }

    .facility-thumbnail {
        width: 90px;
        height: 70px;
    }

    .step-content {
        padding: var(--space-6);
    }

    .contact-details span {
        font-size: var(--font-size-base);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .video-control,
    .scroll-indicator,
    .footer,
    .btn,
    .carousel-control-prev,
    .carousel-control-next {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }

    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }

    img {
        max-width: 100%;
        page-break-inside: avoid;
    }

    .page-header {
        margin-top: 0;
        height: auto;
        padding: 2rem;
        background: #f5f5f5 !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-red: #a00;
        --primary-gold: #ff0;
        --text-primary: #000;
        --text-secondary: #333;
    }

    .btn-outline-primary,
    .btn-outline-secondary {
        border-width: 3px;
    }

    .card,
    .program-card,
    .news-card {
        border-width: 3px;
    }
}

/* ============================================================
   END OF PART 5: FOOTER, SPECIALIZED PAGES & RESPONSIVE
   ============================================================

   IMPROVED PREMIUM DESIGN SYSTEM COMPLETE
   Total Lines: 5000+
   Built for: Divine World College of Bangued
   Version: 2.1 - Enhanced & Refined
   ============================================================ */
/* === GOLD BORDER ON INPUT FOCUS === */
input.form-control:focus,
textarea.form-control:focus,
select.form-control:focus,
.form-control:focus {
    border-color: var(--primary-gold) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25) !important;
}

/* === HERO SECTION - CENTER WELCOME MESSAGE === */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(177, 18, 38, 0.6));
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 var(--space-4);
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

/* === NEWS "READ MORE" WHITE TEXT === */
.news-content a,
.news-card a {
    color: var(--white) !important;
}

.news-content a:hover,
.news-card a:hover {
    color: var(--primary-red) !important;
}

/* === FOOTER FIXES === */
.footer .social-links {
    display: none !important; /* Remove top social icons */
}

.footer-copyright {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-logo-text {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex: 1;
}

.footer-logo-text img {
    display: none !important; /* Remove logo from footer */
}

.footer-logo-text span {
    font-size: var(--font-size-sm);
    color: var(--white);
}

.footer-copyright-text {
    flex: 1;
    text-align: right;
    color: var(--white);
    font-size: var(--font-size-sm);
}

.footer-social-icons {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

.footer-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-red);
    border: 2px solid var(--primary-gold);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: var(--font-size-lg);
    transition: all var(--duration-200) var(--ease-out);
}

.footer-social-icons a:hover {
    background: var(--primary-gold);
    color: var(--primary-red);
    transform: translateY(-3px);
}

/* === ADMINISTRATION PICTURE CENTER === */
.admin-photo {
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* === PROGRAM OVERVIEW WHITE TEXT === */
.card-header.bg-primary h3,
.card-header.bg-primary i {
    color: var(--white) !important;
}

/* === HISTORY PAGE WHITE TITLE === */
.page-header-image h1,
.page-header-image p,
.history-section h2,
.history-section .section-title-with-lines h2 {
    color: var(--white) !important;
}

/* === CONTACT INFORMATION GRID LAYOUT === */
.contact-details-wrapper .contact-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

@media (max-width: 768px) {
    .contact-details-wrapper .contact-details {
        grid-template-columns: 1fr;
    }

    .footer-copyright {
        flex-direction: column;
        text-align: center;
    }

    .footer-copyright-text {
        text-align: center;
    }
}

/* === READ MORE BUTTONS CONSISTENT STYLING === */
.btn-primary,
.news-content .btn-primary,
.announcement-card .btn-primary {
    background: var(--gradient-red) !important;
    color: var(--white) !important;
    border: 2px solid var(--primary-gold) !important;
    font-weight: var(--font-semibold);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-lg);
    transition: all var(--duration-200) var(--ease-out);
}

.btn-primary:hover,
.news-content .btn-primary:hover,
.announcement-card .btn-primary:hover {
    background: var(--white) !important;
    color: var(--primary-red) !important;
    border-color: var(--primary-gold) !important;
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: var(--white) !important;
    color: var(--primary-red) !important;
    border: 2px solid var(--primary-gold) !important;
    font-weight: var(--font-semibold);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-lg);
}

.btn-outline-primary:hover {
    background: var(--gradient-red) !important;
    color: var(--white) !important;
    border-color: var(--primary-gold) !important;
}

/* === FOOTER COPYRIGHT LEFT, ICONS RIGHT === */
.footer-copyright {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-copyright-text {
    order: 1;
    text-align: left;
    color: var(--white);
    font-size: var(--font-size-sm);
}

.footer-social-icons {
    order: 2;
    display: flex;
    gap: var(--space-3);
    align-items: center;
    margin-left: auto;
}

/* === CONTACT FORM SUCCESS/ERROR MESSAGES === */
.alert-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: var(--white);
    border: 2px solid var(--primary-gold);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    font-weight: var(--font-semibold);
}

.alert-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: var(--white);
    border: 2px solid var(--primary-gold);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    font-weight: var(--font-semibold);
}

/* ADD THESE STYLES TO THE END OF YOUR dwcb-styles.css FILE */

/* ============================================================
   ADDITIONAL FIXES FOR HOME PAGE
   ============================================================ */

/* === HERO SECTION - PERFECT CENTER === */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2;
}

.hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100%;
    max-width: 900px;
    padding: 0 var(--space-4);
}

/* === NEWS & ANNOUNCEMENTS - READ MORE BUTTONS === */
/* Home Page News */
.news-section .news-card .btn,
.news-section .news-content .btn {
    background: #b11226 !important;
    color: white !important;
    border: 2px solid #FFD700 !important;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.news-section .news-card .btn:hover,
.news-section .news-content .btn:hover {
    background: white !important;
    color: #b11226 !important;
    border-color: #FFD700 !important;
    transform: translateY(-2px);
}

/* Home Page Announcements */
.announcements-section .announcement-card .btn {
    background: white !important;
    color: #b11226 !important;
    border: 2px solid #FFD700 !important;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.announcements-section .announcement-card .btn:hover {
    background: #b11226 !important;
    color: white !important;
    border-color: #FFD700 !important;
    transform: translateY(-2px);
}

/* News Page - All Buttons */
.news-card .card-footer .btn,
.news-card .btn-outline-primary {
    background: white !important;
    color: #b11226 !important;
    border: 2px solid #FFD700 !important;
    font-weight: 600;
}

.news-card .card-footer .btn:hover,
.news-card .btn-outline-primary:hover {
    background: #b11226 !important;
    color: white !important;
    border-color: #FFD700 !important;
}

/* News badges - red background, white text */
.news-card .badge.bg-primary {
    background: #b11226 !important;
    color: white !important;
    border: none;
}

/* === SEARCH BUTTON INLINE === */
.search-inline-wrapper {
    display: none;
    width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

.search-inline-wrapper.active {
    display: inline-flex !important;
    width: 250px;
    margin-left: 10px;
    opacity: 1;
}

.search-inline-wrapper input {
    border: 2px solid #FFD700 !important;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    width: 100%;
}

.search-inline-wrapper input:focus {
    outline: none;
    border-color: #b11226 !important;
    box-shadow: 0 0 0 3px rgba(177, 18, 38, 0.1) !important;
}

.btn-search {
    transition: all 0.3s ease;
}

.btn-search.active {
    background: #b11226 !important;
    color: #FFD700 !important;
    border-color: #b11226 !important;
    transform: scale(1.1);
}

/* === CONTACT FORM AJAX MESSAGES === */
.contact-alert {
    position: fixed;
    top: 100px;
    right: 30px;
    z-index: 9999;
    min-width: 350px;
    max-width: 500px;
    animation: slideInRight 0.5s ease-out;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.contact-alert.fade-out {
    animation: slideOutRight 0.5s ease-out forwards;
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* === LOADING SPINNER === */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === VIEW ALL BUTTONS === */
.btn-outline-primary {
    background: white !important;
    color: #b11226 !important;
    border: 2px solid #FFD700 !important;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: #b11226 !important;
    color: white !important;
    border-color: #FFD700 !important;
}

/* === NEWS PAGE FILTER BUTTONS === */
.btn-group .btn.btn-primary {
    background: #b11226 !important;
    color: white !important;
    border: 2px solid #FFD700 !important;
}

.btn-group .btn.btn-outline-primary {
    background: white !important;
    color: #b11226 !important;
    border: 2px solid #FFD700 !important;
}

.btn-group .btn.btn-outline-primary:hover {
    background: #b11226 !important;
    color: white !important;
}

/* === NEWS CARD BORDERS - GOLD ONLY === */
.news-card {
    border: 3px solid #FFD700 !important;
}

.news-card.featured {
    border: 3px solid #FFD700 !important;
}

/* === RESPONSIVE FIXES === */
@media (max-width: 768px) {
    .search-inline-wrapper.active {
        width: 200px;
    }

    .contact-alert {
        right: 15px;
        left: 15px;
        min-width: auto;
    }

    .hero-content {
        padding: 0 var(--space-3);
    }
}

@media (max-width: 480px) {
    .search-inline-wrapper.active {
        width: 150px;
    }
}
