/* ============================================
   MOSBRO Academy - Modern Website Styles
   ============================================ */

/* Colored Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4169E1, #2E4FA3);
    border-radius: 6px;
    border: 2px solid #1a1a2e;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #6B8EF5, #4169E1);
}

/* Firefox scrollbar */
* {
    scrollbar-width: auto;
    scrollbar-color: #4169E1 #1a1a2e;
}

/* CSS Variables */
:root {
    /* Colors */
    --primary-color: #4169E1;
    --primary-dark: #2E4FA3;
    --primary-light: #6B8EF5;
    --secondary-color: #00D4FF;
    --accent-color: #00C851;
    --dark: #1a1a2e;
    --dark-light: #16213e;
    --gray: #6c757d;
    --gray-light: #f8f9fa;
    --white: #ffffff;
    --text-dark: #2d3748;
    --text-light: #718096;
    --color-success: #00C851;
    --color-error: #ff4444;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-2xl: 8rem;

    /* Additional Colors */
    --bg-light: #f8f9fa;
    --border-color: #e2e8f0;
    --text-muted: #718096;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;

    /* Layout & Components */
    --navbar-height: 70px;
    --scroll-offset: 80px;
    --back-to-top-threshold: 300px;
    --navbar-shadow-threshold: 100px;

    /* Animation Durations */
    --animation-duration-fast: 0.3s;
    --animation-duration-base: 0.6s;
    --animation-duration-slow: 1s;
    --animation-duration-gradient: 15s;
}

/* ============================================
   Reset & Base Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    opacity: 0;
    transition: opacity var(--animation-duration-base) ease-out;
}

body.loaded {
    opacity: 1;
}

/* Form element reset for consistent styling across browsers */
button, input, textarea, select {
    font: inherit;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Remove default focus outline (replaced by :focus-visible) */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
select:focus:not(:focus-visible) {
    outline: none;
}

ul {
    list-style: none;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-weight-extrabold);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

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

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1.125rem;
}

/* ============================================
   Accessibility Helpers
   ============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 100;
    transition: top 0.3s;
}

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

/* ============================================
   Container & Layout
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    margin-bottom: var(--spacing-sm);
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
    border-radius: 2px;
}

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

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-base);
}

/* Home page navbar - transparent over hero, white text */
.navbar-home {
    background: transparent;
    box-shadow: none;
}

/* Glassmorphism background for logo in hero section */
.navbar-home .logo-link {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    transition: all var(--transition-base);
}

.navbar-home .logo-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Make logo white in hero section using same technique as footer */
.navbar-home .logo-image {
    filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
    transition: filter var(--transition-base);
}

.navbar-home .logo-text {
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.navbar-home .logo-accent {
    color: var(--primary-light);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.navbar-home .nav-menu a:not(.btn-login) {
    color: var(--white);
    font-weight: var(--font-weight-medium);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.navbar-home .nav-menu a:not(.btn-login):hover {
    color: var(--primary-light);
}

.navbar-home .btn-login {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    box-shadow: 0 2px 8px rgba(65, 105, 225, 0.3);
}

.navbar-home .btn-login:hover {
    background: var(--primary-light);
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.4);
}

.navbar-home .nav-toggle span {
    background: var(--white);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Navbar switches to match regular navbar after scrolling past hero */
.navbar-home.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

/* Remove glassmorphism from logo when scrolled */
.navbar-home.navbar-scrolled .logo-link {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: 0;
    transform: none;
}

.navbar-home.navbar-scrolled .logo-link:hover {
    background: transparent;
    border: none;
    transform: none;
}

/* Restore original logo color when scrolled */
.navbar-home.navbar-scrolled .logo-image {
    filter: none;
}

.navbar-home.navbar-scrolled .logo-text {
    color: var(--dark);
    text-shadow: none;
}

.navbar-home.navbar-scrolled .logo-accent {
    color: var(--primary-color);
    text-shadow: none;
}

.navbar-home.navbar-scrolled .nav-menu a {
    color: var(--text-dark);
    text-shadow: none;
}

.navbar-home.navbar-scrolled .nav-menu a:hover {
    color: var(--primary-color);
}

.navbar-home.navbar-scrolled .nav-menu a.btn-login {
    color: var(--white);
}

.navbar-home.navbar-scrolled .nav-toggle span {
    background: var(--dark);
    box-shadow: none;
}

.navbar-home.navbar-scrolled .btn-login {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    box-shadow: none;
}

.navbar-home.navbar-scrolled .btn-login:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.navbar-home.navbar-scrolled .btn-login:focus,
.navbar-home.navbar-scrolled .btn-login:focus-visible {
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-image {
    height: 40px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--dark);
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--primary-color);
    font-weight: var(--font-weight-extrabold);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a:not(.btn-login) {
    font-weight: var(--font-weight-medium);
    color: var(--text-dark);
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a:not(.btn-login)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-base);
}

.nav-menu a:not(.btn-login):hover::after,
.nav-menu a:not(.btn-login).active::after {
    width: 100%;
}

.btn-login {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-login:focus,
.btn-login:focus-visible {
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px;
}

.btn-login::after {
    display: none;
}

.btn-login .external-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Navigation Enroll Button */
.btn-enroll {
    background: var(--secondary-color);
    color: var(--white) !important;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
    transition: var(--transition-base);
}

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

.btn-enroll::after {
    display: none !important;
}

.navbar-home .btn-enroll {
    background: var(--secondary-color);
    color: var(--white) !important;
    text-shadow: none;
}

.navbar-home .btn-enroll:hover {
    background: var(--accent-color);
}

.navbar-home.navbar-scrolled .btn-enroll {
    background: var(--secondary-color);
    color: var(--white) !important;
}

.navbar-home.navbar-scrolled .btn-enroll:hover {
    background: var(--accent-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    /* Ensure 44x44px minimum touch target */
    padding: 0.75rem;
    margin: -0.75rem;
    /* Button reset styles */
    background: none;
    border: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition-base);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-light) 0%, var(--dark) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(65, 105, 225, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.hero-title {
    color: var(--white);
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    animation: fadeInUp 0.8s ease-out 0.2s both;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Glassmorphism for secondary button in hero section */
.hero-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

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

/* Hero Carousel */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Carousel Navigation Arrows - Enhanced Glassmorphism */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.carousel-arrow-prev {
    left: 2rem;
}

.carousel-arrow-next {
    right: 2rem;
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
}

/* Carousel Indicators - Enhanced Glassmorphism */
.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 10;
    display: flex;
    gap: 0.75rem;
    flex-direction: column;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.carousel-indicator.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.8);
    width: 14px;
    height: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Scroll Indicator - Enhanced Glassmorphism */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    cursor: pointer;
    transition: all var(--transition-base);
}

.scroll-indicator:hover {
    transform: translateX(-50%) translateY(-3px);
}

.scroll-indicator:active {
    transform: translateX(-50%) translateY(0);
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 25px;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
}

.scroll-indicator:hover span {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    animation: scrollBounce 2s infinite;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0; }
    50% { transform: translateX(-50%) translateY(15px); opacity: 1; }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
    text-align: center;
}

.btn svg {
    flex-shrink: 0;
    vertical-align: middle;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

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

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.btn-light {
    background: var(--white);
    color: var(--primary-color);
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

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

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

/* ============================================
   Welcome Section
   ============================================ */

.welcome-section {
    background: var(--white);
}

.welcome-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.welcome-content p {
    font-size: 1.125rem;
    line-height: 1.8;
}

/* ============================================
   Features Section
   ============================================ */

.features-section {
    background: var(--gray-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    text-align: center;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.feature-card h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
    animation: fadeInUp 0.8s ease-out;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cta-content .btn {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    position: relative;
    overflow: hidden;
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

/* Footer Background Watermark Logo */
.footer-bg-logo {
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: clamp(200px, 35vw, 450px);
    height: auto;
    opacity: 0.04;
    filter: brightness(0) invert(1);
    transform: rotate(12deg);
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-top: var(--spacing-sm);
    display: block;
    filter: brightness(0) invert(1);
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
    font-size: 1.125rem;
}

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

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: var(--spacing-sm);
}

.social-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* Brand-specific hover colors */
.social-links a[aria-label="Facebook"]:hover {
    background: #1877F2;
}

.social-links a[aria-label="Twitter"]:hover {
    background: rgba(255, 255, 255, 0.15);
}

.social-links a[aria-label="Instagram"]:hover {
    background: linear-gradient(135deg, #E1306C, #C13584, #F56040);
}

.social-links a[aria-label="WhatsApp"]:hover {
    background: #25D366;
}

.footer-bottom {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-bottom a:hover {
    color: var(--primary-light);
}

.footer-legal-links {
    margin-top: var(--spacing-xs);
    font-size: 0.813rem;
}

/* ============================================
   Back to Top Button & WhatsApp FAB
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* WhatsApp Floating Action Button */
.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 95px; /* Positioned to the left of back-to-top button */
    width: 50px;
    height: 50px;
    background: #25D366; /* WhatsApp green */
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all 0.3s ease;
    z-index: 999;
    text-decoration: none;
}

.whatsapp-fab.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-fab:hover {
    background: #20BA5A; /* Slightly darker green on hover */
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.whatsapp-fab:active {
    transform: translateY(-2px);
}

.whatsapp-fab svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* Responsive adjustments for FAB buttons */
@media (max-width: 768px) {
    .whatsapp-fab {
        bottom: 140px; /* Position above back-to-top button with clearance */
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .back-to-top {
        bottom: 85px; /* Higher position to clear footer content */
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .whatsapp-fab svg {
        width: 24px;
        height: 24px;
    }
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-xl);
        transition: var(--transition-base);
    }

    /* Improve mobile menu link touch targets */
    .nav-menu a:not(.btn-login) {
        padding: 0.875rem 1rem;
        width: 100%;
        display: block;
        border-radius: var(--radius-sm);
    }

    /* Mobile login button styling */
    .nav-menu .btn-login {
        display: inline-flex;
        width: auto;
        margin: var(--spacing-sm) auto 0;
        padding: 0.625rem 1.5rem;
        justify-content: center;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

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

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

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

    /* Mobile menu active page highlighting */
    .nav-menu.active a.active {
        background: rgba(65, 105, 225, 0.1);
        color: var(--primary-color);
        font-weight: var(--font-weight-semibold);
    }

    .hero {
        min-height: 80vh;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    /* Carousel mobile adjustments */
    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .carousel-arrow svg {
        width: 20px;
        height: 20px;
    }

    .carousel-arrow-prev {
        left: 1rem;
    }

    .carousel-arrow-next {
        right: 1rem;
    }

    .carousel-indicators {
        right: 1rem;
        bottom: 5rem;
        gap: 0.5rem;
    }

    .carousel-indicator {
        width: 10px;
        height: 10px;
    }

    .carousel-indicator.active {
        width: 12px;
        height: 12px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Mobile footer logo positioning - above text and centered */
    .footer-section {
        display: flex;
        flex-direction: column;
    }

    .footer-logo {
        order: -1; /* Move logo before other elements */
        margin: 0 auto var(--spacing-sm) auto; /* Center horizontally and add bottom margin */
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* ============================================
   Page Headers
   ============================================ */

.page-header {
    background: linear-gradient(135deg, var(--dark-light) 0%, var(--dark) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: calc(var(--spacing-xl) + 70px) 0 var(--spacing-lg);
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 2;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ============================================
   Breadcrumb Navigation
   ============================================ */

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm) 0;
    position: relative;
    z-index: 2;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item a svg {
    stroke: rgba(255, 255, 255, 0.8);
    transition: var(--transition-base);
}

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

.breadcrumb-item a:hover svg {
    stroke: var(--white);
    transform: scale(1.1);
}

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

.breadcrumb-item.active a {
    color: var(--white);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* ============================================
   About Page Styles
   ============================================ */

.about-content {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-text h2 {
    margin-bottom: var(--spacing-md);
}

.about-text p {
    margin-bottom: var(--spacing-md);
}

.about-image, .mission-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-xl);
}

.mission-section {
    background: var(--gray-light);
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.mission-text h2 {
    margin-bottom: var(--spacing-md);
}

.mission-text p {
    margin-bottom: var(--spacing-md);
}

.values-section {
    background: var(--white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.value-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-base);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: var(--gray-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.value-card h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.value-card p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* ============================================
   Courses Page Styles
   ============================================ */

.coming-soon-section {
    background: var(--white);
    padding: var(--spacing-xl) 0;
}

.coming-soon-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.coming-soon-icon {
    margin: 0 auto var(--spacing-lg);
    color: var(--primary-color);
}

.coming-soon-content h2 {
    margin-bottom: var(--spacing-md);
}

.coming-soon-text {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
}

.preview-features {
    margin: var(--spacing-xl) 0;
}

.preview-features h3 {
    margin-bottom: var(--spacing-md);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.preview-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--gray-light);
    border-radius: var(--radius-md);
    text-align: left;
}

.preview-item svg {
    flex-shrink: 0;
    color: var(--accent-color);
}

.preview-item span {
    font-weight: var(--font-weight-medium);
}

.coming-soon-cta {
    margin-top: var(--spacing-xl);
}

.coming-soon-cta p {
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
}

.coming-soon-cta .btn {
    margin: 0 var(--spacing-xs);
}

.info-section {
    background: var(--gray-light);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.info-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    text-align: center;
}

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

.info-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: var(--gray-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.info-card h3 {
    margin-bottom: var(--spacing-sm);
}

.info-card p {
    margin-bottom: 0;
}

/* ============================================
   News/Blog Page Styles
   ============================================ */

.blog-section {
    background: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

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

.blog-image {
    position: relative;
    height: 200px;
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.55) 0%, rgba(2, 6, 23, 0.65) 100%), url('../images/headers/news-desk.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

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

.blog-category {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    background: var(--white);
    color: var(--primary-color);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
}

.blog-content {
    padding: var(--spacing-md);
}

.blog-meta {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--gray);
}

.blog-date {
    display: flex;
    align-items: center;
}

.blog-content h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.blog-content h2 a {
    color: var(--dark);
}

.blog-content h2 a:hover {
    color: var(--primary-color);
}

.blog-content p {
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.blog-read-more {
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
    display: inline-flex;
    align-items: center;
    transition: var(--transition-base);
}

.blog-read-more:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* ============================================
   Blog Post Page Styles
   ============================================ */

.blog-post-header {
    background: linear-gradient(135deg, var(--dark-light) 0%, var(--dark) 100%);
    padding: calc(var(--spacing-xl) + 70px) 0 var(--spacing-lg);
    color: var(--white);
}


.blog-post-meta {
    margin-top: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.blog-post-meta .blog-category {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.blog-post-meta .blog-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.blog-post-header h1 {
    color: var(--white);
    max-width: 900px;
}

.blog-post-content {
    background: var(--white);
}

.blog-post-body {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-body .lead {
    font-size: 1.375rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
}

.blog-post-footer .btn-secondary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.blog-post-footer .btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.blog-post-body h2 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.blog-post-body p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.callout-box {
    background: var(--gray-light);
    border-left: 4px solid var(--primary-color);
    padding: var(--spacing-md);
    margin: var(--spacing-lg) 0;
    border-radius: var(--radius-sm);
}

.callout-box p {
    margin-bottom: var(--spacing-sm);
}

.callout-box p:last-child {
    margin-bottom: 0;
}

.blog-post-footer {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-light);
}

/* ============================================
   Contact Page Styles
   ============================================ */

.contact-section {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-xl);
}

.contact-info h2 {
    margin-bottom: var(--spacing-md);
}

.contact-intro {
    margin-bottom: var(--spacing-lg);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-item {
    display: flex;
    gap: var(--spacing-md);
}

.contact-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: var(--gray-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.contact-text h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.contact-text p {
    margin: 0;
    color: var(--text-light);
}

.contact-text a {
    color: var(--primary-color);
}

.contact-text a:hover {
    color: var(--primary-dark);
}

.contact-form-wrapper {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form .form-group {
    margin-bottom: var(--spacing-md);
}

.contact-form label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
}

.contact-form .input-wrapper {
    position: relative;
}

.contact-form .input-wrapper svg {
    position: absolute;
    left: var(--spacing-sm);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* For textarea, position icon at top */
.contact-form .input-wrapper.textarea-wrapper svg {
    top: var(--spacing-sm);
    transform: none;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-sm) 2.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

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

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Generic form styles (fallback for any other forms) */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.input-wrapper {
    position: relative;
}

.input-wrapper svg {
    position: absolute;
    left: var(--spacing-sm);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-sm) 2.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper textarea {
    resize: vertical;
    min-height: 120px;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.char-counter {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-align: right;
}

.btn-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ============================================
   Responsive - Page Specific
   ============================================ */

@media (max-width: 768px) {
    .about-grid,
    .mission-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .mission-grid {
        direction: ltr;
    }

    .mission-image {
        order: -1;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .values-grid,
    .preview-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding: calc(var(--spacing-lg) + 70px) 0 var(--spacing-md);
    }

    .coming-soon-cta .btn {
        display: block;
        width: 100%;
        margin: var(--spacing-xs) 0;
    }
}

/* ============================================
   Notifications & Alerts
   ============================================ */

.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    color: var(--white);
    font-weight: var(--font-weight-medium);
    animation: slideInRight 0.3s ease-out;
}

.notification-success {
    background: var(--color-success);
}

.notification-error {
    background: var(--color-error);
}

.notification.hiding {
    animation: slideOutRight 0.3s ease-out;
}

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

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

/* ============================================
   Form Validation Styles
   ============================================ */

/* Form validation error state */
input.error,
textarea.error,
select.error {
    border-color: var(--color-error);
}

/* Inline field error messages */
.field-error {
    color: var(--color-error);
    font-size: 0.875rem;
    margin-top: 0.375rem;
    display: block;
    animation: fadeInError var(--animation-duration-fast) ease-out;
}

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

/* Loading spinner for form submission */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Loading button state */
button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ============================================
   Large Screen Breakpoint
   ============================================ */

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-title {
        font-size: clamp(3.5rem, 5vw, 5rem);
    }

    .section-header h2 {
        font-size: clamp(2.5rem, 4vw, 3.5rem);
    }
}

/* ============================================
   CSS Grid Fallback for Older Browsers
   ============================================ */

/* Flexbox fallback for browsers that don't support CSS Grid */
@supports not (display: grid) {
    .features-grid,
    .about-grid,
    .values-grid,
    .blog-grid,
    .contact-grid {
        display: flex;
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }

    .features-grid > *,
    .values-grid > * {
        flex: 1 1 calc(33.333% - var(--spacing-md));
        min-width: 280px;
    }

    .about-grid > *,
    .contact-grid > * {
        flex: 1 1 calc(50% - var(--spacing-md));
        min-width: 300px;
    }

    .blog-grid > * {
        flex: 1 1 calc(50% - var(--spacing-md));
        min-width: 320px;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    .nav-menu,
    .back-to-top,
    .scroll-indicator,
    .hero-buttons,
    .btn,
    .contact-form,
    footer .social-links {
        display: none !important;
    }

    /* Reset backgrounds and colors for print */
    body {
        background: white;
        color: black;
    }

    .hero,
    .cta-section,
    .page-header {
        background: white !important;
        color: black !important;
    }

    /* Remove shadows and borders */
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Ensure readable text */
    .hero-title,
    .hero-subtitle,
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }

    /* Keep content together */
    .feature-card,
    .value-card,
    .blog-card,
    .contact-item {
        page-break-inside: avoid;
    }

    /* Expand links to show URLs */
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.875rem;
        color: #666;
    }

    /* Don't show URL for internal links */
    a[href^="#"]:after,
    a[href^="/"]:after {
        content: "";
    }

    /* Footer styling for print */
    footer {
        border-top: 2px solid #000;
        padding-top: 1rem;
        margin-top: 2rem;
    }

    .footer-content {
        display: block !important;
    }

    .footer-section {
        margin-bottom: 1rem;
    }

    /* Page breaks */
    section {
        page-break-inside: avoid;
    }
}

/* ============================================
   Accessibility: Reduced Motion Support
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   404 Error Page
   ============================================ */

.error-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 0 4rem 0;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-logo {
    margin: 3rem 0 1rem 0;
    text-align: center;
}

.error-logo-img {
    width: 150px;
    height: auto;
    opacity: 0.15;
    filter: grayscale(20%);
    display: block;
    margin: 0 auto;
}

.error-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.error-title {
    font-size: 6rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.error-text {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.error-links {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.error-links h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.error-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-links li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.error-links li a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ============================================
   Legal Pages (Privacy, Terms, Cookie Policy)
   ============================================ */

.legal-content {
    padding: 3rem 0;
}

.legal-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.legal-meta {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.legal-meta p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text-light);
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.legal-section h3 {
    color: var(--text-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.legal-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.legal-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-section li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: var(--text-color);
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.legal-section a:hover {
    text-decoration: underline;
}

.contact-list {
    list-style: none;
    padding-left: 0;
}

.contact-list li {
    margin-bottom: 0.5rem;
}

.legal-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* Cookie Policy Specific Styles */

.cookie-type {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--primary-color);
}

.cookie-type h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.cookie-type p {
    margin-bottom: 0.75rem;
}

.warning-note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    color: #856404;
}

/* ============================================
   Responsive: Special Pages
   ============================================ */

@media (max-width: 768px) {
    /* 404 Error Page */
    .error-title {
        font-size: 4rem;
    }

    .error-content h2 {
        font-size: 1.5rem;
    }

    .error-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .error-actions .btn {
        width: 100%;
    }

    .error-links ul {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Legal Pages */
    .legal-section h2 {
        font-size: 1.25rem;
    }

    .legal-section h3 {
        font-size: 1rem;
    }

    .legal-meta {
        padding: 1rem;
    }

    .legal-section ul {
        padding-left: 1.25rem;
    }

    .cookie-type {
        padding: 1rem;
    }
}

/* ============================================
   Courses System Styles
   ============================================ */

/* Course Grid */
.courses-section {
    background-color: var(--white);
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.section-intro h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-intro p {
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1.7;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Course Card */
.course-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.course-card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

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

.course-level-badge {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    background: var(--white);
    color: var(--primary-color);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
}

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

.course-category {
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.course-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.course-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 1rem;
}

.course-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.course-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.course-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.course-meta-item svg {
    color: var(--primary-color);
}

.course-prerequisites {
    font-size: 0.875rem;
    color: var(--text-light);
    padding: 0.75rem;
    background: #f7fafc;
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.course-prerequisites strong {
    color: var(--text-dark);
}

.course-details-btn {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ============================================
   Course Detail Page
   ============================================ */

.course-header {
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 8rem 0 4rem;
    position: relative;
}

.course-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(2, 6, 23, 0.75) 100%);
}

.course-header .container {
    position: relative;
    z-index: 1;
}

.course-header .breadcrumb {
    margin-bottom: 2rem;
}

.course-header .breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.course-header .breadcrumb a:hover {
    color: var(--white);
}

.course-header .breadcrumb-separator {
    color: rgba(255, 255, 255, 0.5);
}

.course-header-content {
    max-width: 800px;
}

.course-header-content .course-category {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.course-header-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--white);
}

.course-subtitle-large {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.course-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
}

.course-header-meta .course-level-badge {
    position: static;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.course-header-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.course-header-meta-item svg {
    color: var(--secondary-color);
}

.course-header-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Course Content Layout */
.course-overview {
    background: var(--white);
}

.course-content-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

.course-main-content {
    min-width: 0;
}

.content-block {
    margin-bottom: 3rem;
}

.content-block h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.content-block .lead {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-light);
}

.objectives-list,
.features-list {
    list-style: none;
    padding: 0;
}

.objectives-list li,
.features-list li {
    padding: 0.75rem 0 0.75rem 2.5rem;
    position: relative;
    color: var(--text-light);
    line-height: 1.6;
}

.objectives-list li::before,
.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: bold;
}

/* Curriculum */
.curriculum-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.curriculum-module {
    background: var(--gray-light);
    border-radius: 8px;
    padding: 1.5rem;
}

.curriculum-module h3 {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.module-number {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.curriculum-module ul {
    list-style: none;
    padding: 0;
}

.curriculum-module li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: var(--text-light);
}

.curriculum-module li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Sidebar */
.course-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
}

.sidebar-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-item strong {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    font-weight: 600;
}

.info-item span {
    color: var(--text-dark);
    font-weight: 500;
}

.certifications {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--gray-light);
    border-radius: 8px;
}

.certifications strong {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-size: 0.875rem;
}

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

.certifications li {
    padding: 0.5rem 0;
    color: var(--text-light);
    font-size: 0.875rem;
    position: relative;
    padding-left: 1.25rem;
}

.certifications li::before {
    content: '📜';
    position: absolute;
    left: 0;
    font-size: 0.875rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 0.75rem;
}

.btn-block:last-child {
    margin-bottom: 0;
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.cta-section .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

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

.cta-section .btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   Responsive: Courses
   ============================================ */

@media (max-width: 992px) {
    .course-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }

    .course-content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .course-sidebar {
        position: static;
    }

    .course-header-content h1 {
        font-size: 2.25rem;
    }
}

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

    .section-intro h2 {
        font-size: 1.75rem;
    }

    .course-header {
        padding: 6rem 0 3rem;
    }

    .course-header-content h1 {
        font-size: 1.875rem;
    }

    .course-subtitle-large {
        font-size: 1rem;
    }

    .course-header-meta {
        font-size: 0.875rem;
    }

    .course-header-actions {
        flex-direction: column;
        width: 100%;
    }

    .course-header-actions .btn {
        width: 100%;
    }

    .cta-content h2 {
        font-size: 1.875rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

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

@media (max-width: 480px) {
    .course-card-image {
        height: 200px;
    }

    .course-meta {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
}

/* ============================================
   REGISTRATION PAGE & MODAL STYLES
   ============================================ */

/* Registration Section */
.registration-section {
    padding: var(--spacing-2xl) 0;
}

.registration-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

.registration-info h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.registration-intro {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
}

.registration-benefits {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.benefit-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.benefit-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--gray-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.benefit-text h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.benefit-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.registration-contact {
    padding: var(--spacing-lg);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    text-align: center;
}

.registration-contact p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-muted);
}

/* Registration Form Wrapper */
.registration-form-wrapper {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.registration-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.registration-form .form-group {
    margin-bottom: var(--spacing-md);
}

.registration-form label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
}

.registration-form .input-wrapper {
    position: relative;
}

.registration-form .input-wrapper svg {
    position: absolute;
    left: var(--spacing-sm);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.registration-form input,
.registration-form select {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-sm) 2.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

.registration-form input:focus,
.registration-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.registration-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.registration-form .btn-block {
    width: 100%;
    margin-top: var(--spacing-md);
}

.form-disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--spacing-md);
}

.form-disclaimer a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ============================================
   MODAL STYLES
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.modal-container {
    position: relative;
    background: white;
    border-radius: var(--radius-xl);
    max-width: 560px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
    margin: var(--spacing-lg);
}

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

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: white;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    z-index: 1;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    padding: var(--spacing-xs);
    cursor: pointer;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.modal-body {
    padding: var(--spacing-xl);
}

.modal-subtitle {
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
}

.modal-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.modal-form .form-group {
    margin-bottom: var(--spacing-md);
}

.modal-form label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    font-size: 0.875rem;
}

.modal-form .input-wrapper {
    position: relative;
}

.modal-form .input-wrapper svg {
    position: absolute;
    left: var(--spacing-sm);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.modal-form input,
.modal-form select {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-sm) 2.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

.modal-form input:focus,
.modal-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-color: white;
    padding-right: 2.5rem;
}

.modal-footer {
    padding: var(--spacing-md) var(--spacing-xl);
    border-top: 1px solid var(--border-color);
    text-align: center;
    background: var(--bg-light);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.modal-footer p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.modal-footer a {
    color: var(--primary-color);
    font-weight: 500;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 95vh;
        margin: var(--spacing-sm);
    }

    .modal-form .form-row {
        grid-template-columns: 1fr;
    }

    .modal-header {
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .modal-body {
        padding: var(--spacing-lg);
    }

    .modal-footer {
        padding: var(--spacing-md) var(--spacing-lg);
    }
}

/* Registration Page Responsive */
@media (max-width: 992px) {
    .registration-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .registration-info {
        text-align: center;
    }

    .benefit-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .registration-form .form-row {
        grid-template-columns: 1fr;
    }

    .registration-form-wrapper {
        padding: var(--spacing-lg);
    }
}
