/* ═══════════════════════════════════════════════════════════════════════════
   BEYOND BARISTA ACADEMY - PREMIUM COFFEE DESIGN SYSTEM
   System-wide styling for barista excellence
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@500;600;700;800&display=swap');

:root {
    /* Coffee Color Palette */
    --primary: #6F4E37;
    --primary-dark: #2C1810;
    --primary-hover: #5a3d2a;
    --accent: #C67C4E;
    --accent-gold: #D4A574;
    --accent-hover: #B36B3F;
    --bg: #F8F7F4;
    --color-bg: #F8F7F4;
    --surface: #FFFFFF;
    --text: #2C1810;
    --text-muted: #6B6B6B;
    --border: #E8E6E1;
    --success: #52B788;
    --warning: #FFB703;
    --danger: #D62828;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Sizing */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(44, 24, 16, 0.08);
    --shadow-md: 0 4px 12px rgba(44, 24, 16, 0.12);
    --shadow-lg: 0 8px 24px rgba(44, 24, 16, 0.16);
    --shadow-xl: 0 12px 32px rgba(44, 24, 16, 0.2);

    /* Transitions */
    --trans-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --trans-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

[data-bs-theme="dark"] {
    --bg: #1A1410;
    --color-bg: #1A1410;
    --surface: #2C1810;
    --text: #F8F7F4;
    --text-muted: #B8B8B8;
    --border: #4a3d30;
    --primary: #D4A574;
    --accent: #E29578;
}

/* ─────────────────────────────────────────────────────────────────────────
   BASE STYLES
   ───────────────────────────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

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

h1 { font-size: 3.5rem; line-height: 1.1; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--trans-base);
}

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

/* ─────────────────────────────────────────────────────────────────────────
   TOPBAR LUXURY (DARK CHOCOLATE & GOLDEN ACCENTS)
   ───────────────────────────────────────────────────────────────────────── */
.topbar-luxury {
    background: linear-gradient(90deg, #180D06 0%, #26140A 50%, #180D06 100%) !important;
    border-bottom: 1px solid rgba(229, 184, 105, 0.25);
    font-size: 0.825rem;
    color: #F3C78E;
    position: relative;
    z-index: 1030;
    letter-spacing: 0.2px;
}

.topbar-luxury .badge-location {
    background: linear-gradient(135deg, #FBBF24 0%, #D97706 100%);
    color: #1A0D06 !important;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.8px;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}

.topbar-luxury .topbar-link {
    color: #F3C78E !important;
    text-decoration: none;
    transition: all 0.25s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.topbar-luxury .topbar-link i {
    color: #FBBF24 !important;
}

.topbar-luxury .topbar-link:hover {
    color: #FFF3DD !important;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    transform: translateY(-1px);
}

.topbar-luxury .topbar-divider {
    color: rgba(243, 199, 142, 0.3);
    font-size: 0.8rem;
}

.topbar-luxury .topbar-dropdown-btn {
    color: #F3C78E !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.topbar-luxury .topbar-dropdown-btn:hover {
    color: #FFF3DD !important;
}

.topbar-luxury .status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background-color: #10B981;
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 8px #10B981;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

/* ─────────────────────────────────────────────────────────────────────────
   NAVBAR LUXURY & ANIMATIONS
   ───────────────────────────────────────────────────────────────────────── */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(111, 78, 55, 0.09);
    box-shadow: 0 6px 30px -6px rgba(44, 24, 16, 0.07);
    padding: 0.7rem 0;
    min-height: 74px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-bs-theme="dark"] .navbar-custom {
    background: rgba(20, 14, 9, 0.95) !important;
    border-bottom: 1px solid rgba(212, 165, 116, 0.14);
    box-shadow: 0 8px 32px -6px rgba(0, 0, 0, 0.55);
}

/* Brand Logo Container */
.brand-emblem-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-emblem-box {
    position: relative;
    padding: 4px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.18), rgba(111, 78, 55, 0.06));
    border: 1.5px solid rgba(217, 119, 6, 0.28);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-emblem-wrapper:hover .brand-emblem-box {
    transform: scale(1.06) rotate(-2deg);
    border-color: rgba(217, 119, 6, 0.7);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.3);
}

.brand-title {
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-weight: 800;
    font-size: 1.28rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #2c1810 0%, #6f4e37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.35px;
}

[data-bs-theme="dark"] .brand-title {
    background: linear-gradient(135deg, #ffffff 0%, #d4a574 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 2.2px;
    color: #92400e;
    text-transform: uppercase;
    display: block;
    margin-top: 2px;
}

[data-bs-theme="dark"] .brand-subtitle {
    color: #d4a574;
}

/* Nav Link Pills with Modern Magnetic Feel */
.navbar-nav {
    gap: 4px;
}

.navbar-nav .nav-link {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.935rem;
    font-weight: 600;
    color: #3b2214 !important;
    padding: 0.52rem 0.95rem !important;
    border-radius: 9999px;
    transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.01em;
}

[data-bs-theme="dark"] .navbar-nav .nav-link {
    color: #ece5de !important;
}

.navbar-nav .nav-link:hover {
    color: #b45309 !important;
    background: rgba(217, 119, 6, 0.09);
    transform: translateY(-2px);
}

[data-bs-theme="dark"] .navbar-nav .nav-link:hover {
    color: #fbbf24 !important;
    background: rgba(217, 119, 6, 0.16);
}

.navbar-nav .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #5b3720 0%, #381f10 100%) !important;
    box-shadow: 0 4px 14px rgba(74, 46, 27, 0.28);
}

[data-bs-theme="dark"] .navbar-nav .nav-link.active {
    background: linear-gradient(135deg, #d97706 0%, #92400e 100%) !important;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.4);
}

/* Animated Career Live Beacon Badge */
.badge-career-pulse {
    font-size: 0.62rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    letter-spacing: 0.6px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.badge-career-pulse::before {
    content: '';
    width: 5px;
    height: 5px;
    background: #ffffff;
    border-radius: 50%;
    display: inline-block;
    animation: careerPulseDot 1.4s infinite;
}

@keyframes careerPulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.6); opacity: 0.4; }
}

/* Luxury Theme Toggle Button */
.btn-theme-luxury {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1.5px solid rgba(111, 78, 55, 0.15);
    background: rgba(111, 78, 55, 0.04);
    color: #6f4e37;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    font-size: 1.05rem;
}

.btn-theme-luxury:hover {
    border-color: #d97706;
    color: #d97706;
    background: rgba(217, 119, 6, 0.12);
    transform: rotate(20deg) scale(1.08);
}

[data-bs-theme="dark"] .btn-theme-luxury {
    border-color: rgba(212, 165, 116, 0.25);
    background: rgba(255, 255, 255, 0.06);
    color: #fbbf24;
}

/* Luxury Action Buttons */
.btn-nav-signin {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-weight: 600;
    font-size: 0.92rem;
    color: #4a2e1b !important;
    border: 1.5px solid rgba(111, 78, 55, 0.24);
    background: transparent;
    padding: 0.52rem 1.25rem;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

[data-bs-theme="dark"] .btn-nav-signin {
    color: #f3ede7 !important;
    border-color: rgba(212, 165, 116, 0.35);
}

.btn-nav-signin:hover {
    border-color: #b45309;
    color: #b45309 !important;
    background: rgba(217, 119, 6, 0.09);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 78, 55, 0.1);
}

[data-bs-theme="dark"] .btn-nav-signin:hover {
    border-color: #fbbf24;
    color: #fbbf24 !important;
    background: rgba(251, 191, 36, 0.12);
}

.btn-nav-register {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-weight: 700;
    font-size: 0.92rem;
    color: #ffffff !important;
    background: linear-gradient(135deg, #d97706 0%, #b45309 50%, #853805 100%);
    border: none;
    padding: 0.55rem 1.4rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.38);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.btn-nav-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    animation: ctaShimmerSweep 4s infinite;
}

@keyframes ctaShimmerSweep {
    0% { left: -120%; }
    25% { left: 140%; }
    100% { left: 140%; }
}

.btn-nav-register:hover {
    transform: translateY(-2.5px);
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.5);
    filter: brightness(1.08);
}

/* User Account Profile Pill */
.btn-nav-user {
    border: 1.5px solid rgba(217, 119, 6, 0.3);
    background: rgba(217, 119, 6, 0.06);
    padding: 0.35rem 0.9rem 0.35rem 0.45rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-nav-user:hover {
    border-color: #d97706;
    background: rgba(217, 119, 6, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.2);
}

.user-avatar-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d97706, #6f4e37);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Smooth Dropdown Fade Animation */
.navbar-custom .dropdown-menu {
    border-radius: 16px !important;
    animation: dropdownFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: top right;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ─────────────────────────────────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────────────────────────────────── */

.btn {
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--trans-base);
    font-family: var(--font-body);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border: none;
    color: white !important;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white !important;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-gold));
    border: none;
    color: white !important;
    box-shadow: var(--shadow-md);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white !important;
}

.btn-outline-primary {
    color: var(--primary) !important;
    border: 2px solid var(--primary);
}

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

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }

/* ─────────────────────────────────────────────────────────────────────────
   HERO SECTION
   ───────────────────────────────────────────────────────────────────────── */

.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 5rem 2rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title .highlight {
    color: var(--accent-gold);
}

.hero-description {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212, 165, 116, 0.2);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.875rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.featured-card {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: var(--radius-xl);
    padding: 2rem;
    color: white;
    animation: slideInRight 0.6s ease-out;
}

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

/* ─────────────────────────────────────────────────────────────────────────
   CARDS
   ───────────────────────────────────────────────────────────────────────── */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--trans-base);
}

.card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-body { padding: 1.5rem; }

/* COURSE CARD */
.course-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--trans-base);
    border: 1px solid var(--border);
}

.course-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
    border-color: var(--accent);
}

.course-image {
    height: 200px;
    background: linear-gradient(135deg, var(--accent), var(--accent-gold));
    position: relative;
    overflow: hidden;
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--success);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.75rem;
}

.course-body { padding: 1.5rem; }

.course-category {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.course-title {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.course-instructor {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.course-rating {
    color: var(--warning);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.course-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-price {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.1rem;
}

/* STAT CARD */
.stat-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: all var(--trans-base);
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent), var(--accent-gold));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.stat-card h4 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.stat-card small {
    color: var(--text-muted);
}

/* ─────────────────────────────────────────────────────────────────────────
   FORMS
   ───────────────────────────────────────────────────────────────────────── */

.form-control,
.form-select {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text);
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    transition: all var(--trans-base);
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(198, 124, 78, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.form-group { margin-bottom: 1.5rem; }

/* ─────────────────────────────────────────────────────────────────────────
   CATEGORIES GRID
   ───────────────────────────────────────────────────────────────────────── */

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

.category-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 2px solid var(--border);
    transition: all var(--trans-base);
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
}

.category-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.category-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent), var(--accent-gold));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.category-card h5 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.category-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────────
   PROGRESS & BADGES
   ───────────────────────────────────────────────────────────────────────── */

.progress {
    height: 8px;
    background: var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(to right, var(--accent), var(--accent-gold));
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.badge {
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.badge-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
}

.badge-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-gold));
    color: white;
}

.badge-success {
    background: rgba(82, 183, 136, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.badge-warning {
    background: rgba(255, 183, 3, 0.2);
    color: #b87d00;
}

.badge-danger {
    background: rgba(214, 40, 40, 0.2);
    color: var(--danger);
}

/* ─────────────────────────────────────────────────────────────────────────
   ALERTS
   ───────────────────────────────────────────────────────────────────────── */

.alert {
    border-radius: var(--radius-lg);
    border-left: 4px solid;
    padding: 1rem 1.25rem;
}

.alert-success {
    background: rgba(82, 183, 136, 0.1);
    border-left-color: var(--success);
    color: #1a5f3f;
}

.alert-danger {
    background: rgba(214, 40, 40, 0.1);
    border-left-color: var(--danger);
    color: #8b1a1a;
}

.alert-warning {
    background: rgba(255, 183, 3, 0.1);
    border-left-color: var(--warning);
    color: #8b6914;
}

/* ─────────────────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────────────────── */

footer {
    background: var(--primary-dark);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--trans-base);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-link:hover {
    color: var(--accent-gold);
}

.footer-section h6 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* ─────────────────────────────────────────────────────────────────────────
   UTILITIES
   ───────────────────────────────────────────────────────────────────────── */

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.section { padding: 4rem 2rem; }
.section-alt { background: var(--bg); }

.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }

/* ─────────────────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .hero-section {
        padding: 3rem 1rem;
        min-height: auto;
    }

    .hero-title { font-size: 2rem; }
    .hero-description { font-size: 1rem; }

    .hero-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-accent {
        width: 100%;
    }

    .categories-grid,
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .featured-card {
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.75rem; }
    .section { padding: 2rem 1rem; }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
}

/* ─────────────────────────────────────────────────────────────────────────
   ANIMATIONS
   ───────────────────────────────────────────────────────────────────────── */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.fade-in { animation: fadeIn 0.6s ease-out; }
.slide-up { animation: slideUp 0.6s ease-out; }

/* ─────────────────────────────────────────────────────────────────────────
   ACCESSIBILITY
   ───────────────────────────────────────────────────────────────────────── */

*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────────
   ALERT STYLING WITH LINKS
   ───────────────────────────────────────────────────────────────────────── */

.alert a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    transition: opacity var(--trans-base);
}

.alert a:hover {
    opacity: 0.8;
    text-decoration: none;
}

.alert-danger a {
    color: #721c24;
}

.alert-success a {
    color: #155724;
}

.alert-warning a {
    color: #856404;
}

.alert-info a {
    color: #004085;
}

/* ═════════════════════════════════════════════════════════════════════════
   END OF PREMIUM DESIGN SYSTEM
   ═════════════════════════════════════════════════════════════════════════ */
