/* ============================================================
   FikrTech - Main Stylesheet
   Dark Theme with Starry Background
   ============================================================ */

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

:root {
    --primary-color: #00B4D8;
    --primary-dark: #0096C7;
    --primary-light: #48CAE4;
    --secondary-color: #0077B6;
    --accent-color: #FFD700;
    --bg-dark: #0a1929;
    --bg-darker: #06141d;
    --text-light: #ffffff;
    --text-muted: #b0bec5;
    --text-dark: #263238;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --success-color: #4caf50;
    --error-color: #f44336;
    --warning-color: #ff9800;
}

html {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto; /* Allow normal window scrolling */
    scroll-behavior: auto; /* Prevent smooth scroll from interfering */
    background-image: radial-gradient(ellipse at top, #080e21 0%, #1b2735 95%);
}

body {
    min-height: 100vh;
    height: auto; /* Allow body to grow beyond viewport */
    overflow-x: hidden;
    overflow-y: auto; /* Allow scrolling on touch and mouse */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a1929;
    color: var(--text-light);
    line-height: 1.6;
    position: relative;
    /* Ensure smooth scrolling behavior */
    scroll-behavior: auto; /* Prevent smooth scroll from interfering */
    overscroll-behavior: auto; /* Allow normal scroll behavior */
    /* Allow normal gestures (including pinch-zoom) */
    touch-action: auto;
    scroll-snap-type: none; /* Disable scroll snapping */
}

/* ============================================================
   CUSTOM SCROLLBAR - Built from scratch
   ============================================================ */

/* Custom styled scrollbar - Firefox */
html {
    scrollbar-width: 14px !important; /* Show custom scrollbar with specific width */
    scrollbar-color: var(--primary-color) rgba(10, 25, 41, 0.2) !important;
}

/* Custom styled scrollbar - Webkit browsers (Chrome, Safari, Edge, Opera) */
html::-webkit-scrollbar {
    width: 14px !important; /* Increased width for easier interaction */
    display: block !important; /* Ensure it's visible */
    background: transparent !important; /* Transparent track background */
    appearance: auto !important;
    -webkit-appearance: auto !important;
}

html::-webkit-scrollbar-track {
    background: rgba(10, 25, 41, 0.2) !important; /* Slightly visible track */
    border-radius: 7px;
}

html::-webkit-scrollbar-thumb {
    background: var(--primary-color) !important;
    border-radius: 7px;
    border: 2px solid rgba(10, 25, 41, 0.2) !important; /* Smaller border for larger thumb */
    min-height: 50px !important; /* Minimum thumb height for easier grabbing */
    transition: background 0.2s ease;
    cursor: pointer; /* Show pointer cursor */
}

html::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light) !important;
    border-color: rgba(0, 180, 216, 0.3) !important;
}

html::-webkit-scrollbar-thumb:active {
    background: var(--primary-dark) !important;
    border-color: rgba(0, 180, 216, 0.5) !important;
}

/* Smooth scrolling - disabled for HTML to prevent scroll issues */
/* Smooth scroll is handled programmatically for anchor links only */

/* Accessibility: Focus Styles */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    z-index: 1000;
    border-radius: 0 0 8px 0;
    font-weight: 600;
}

.skip-to-content:focus {
    top: 0;
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Space Background Container */
.space-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden; /* Prevent flickering */
    contain: layout style paint; /* Isolate repaints */
}

/* ============================================================
   ANIMATED STARS AND METEORS BACKGROUND
   ============================================================ */
html {
    background-color: #141922;
    min-height: 100vh;
}

#stars-meteors-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

#stars-meteors-container .meteor {
    background-image: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
    opacity: 1;
    transform: rotate(-45deg);
    width: 300px;
}

#stars-meteors-container .meteor:before {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    box-shadow: 0 0 15px 3px #fff;
    content: "";
    height: 5px;
    margin-top: -2px;
    position: fixed;
    width: 4px;
}

#stars-meteors-container .meteor,
#stars-meteors-container .stars {
    height: 1px;
    position: fixed;
    z-index: 0;
}

#stars-meteors-container .stars {
    background: transparent;
    width: 1px;
}




/* Glowing effect behind hero title */
.hero-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

main {
    position: relative;
    z-index: 1;
    padding-top: 100px; /* Account for fixed header */
    background: 
        linear-gradient(to bottom, rgba(10, 25, 41, 0.4) 0%, rgba(10, 25, 41, 0.6) 50%, rgba(10, 25, 41, 0.8) 100%),
        radial-gradient(ellipse at center top, rgba(0, 180, 216, 0.08) 0%, transparent 60%);
    transform: translateZ(0); /* Hardware acceleration */
    backface-visibility: hidden; /* Prevent flickering */
}

main,
section,
.container {
    position: relative;
    z-index: 2;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.main-header {
    background: #0a1929;
    backdrop-filter: none;
    border-bottom: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transition: background 0.2s ease, backdrop-filter 0.2s ease;
    will-change: background, backdrop-filter;
    transform: translateZ(0); /* Hardware acceleration */
    backface-visibility: hidden; /* Prevent flickering */
    z-index: 1000;
    padding: 1.25rem 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-header.scrolled {
    background: rgba(10, 25, 41, 0.95);
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none !important;
    color: var(--text-light);
    z-index: 10;
    border: none !important;
}

.logo:hover {
    text-decoration: none !important;
}

.logo::after,
.logo::before {
    display: none !important;
}

.logo-icon {
    flex-shrink: 0;
    width: auto;
    height: 70px;
    max-width: 250px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    gap: 0.1rem;
}

.logo-arabic {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.2;
}

.logo-english {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.2px;
    line-height: 1.2;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 2rem;
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 44px; /* Ensure proper touch target */
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px; /* Add padding for better touch target */
    z-index: 1002;
    position: relative;
}

.mobile-menu-close {
    display: none !important;
    pointer-events: auto;
    touch-action: manipulation;
}

@media (min-width: 769px) {
    .mobile-menu-close {
        display: none !important;
        visibility: hidden !important;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .mobile-menu-close {
        display: flex !important;
    }
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
    display: block !important;
    visibility: visible !important;
}

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

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
    display: block;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Dropdown arrow */
.dropdown .nav-link {
    padding-right: 1.25rem;
    position: relative;
}

.dropdown .nav-link::after {
    content: '▼';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.65rem;
    color: #ffffff;
    transition: transform 0.3s ease, color 0.3s ease;
    pointer-events: none;
    line-height: 1;
    display: inline-block;
}

.dropdown:hover .nav-link::after {
    transform: translateY(-50%) rotate(180deg);
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: rgba(10, 25, 41, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    list-style: none;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    padding: 0.5rem 0;
    margin: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

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

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: rgba(0, 180, 216, 0.2);
    color: var(--primary-color);
}

/* Nested Dropdown (Submenu) */
.dropdown-submenu {
    position: relative;
}

.submenu-trigger {
    position: relative;
    padding-right: 2rem !important;
}

.submenu-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown-submenu:hover .submenu-arrow {
    transform: translateY(-50%) rotate(90deg);
}

.submenu {
    position: absolute;
    left: 100%;
    top: 0;
    background: rgba(10, 25, 41, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    list-style: none;
    min-width: 250px;
    max-width: 300px;
    max-height: 500px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    padding: 0.5rem 0;
    margin: 0;
    margin-left: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 1002;
}

.dropdown-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.submenu li {
    margin: 0;
    padding: 0;
}

.submenu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.submenu a:hover {
    background: rgba(0, 180, 216, 0.2);
    color: var(--primary-color);
}

/* Adjust submenu position on right edge - use JavaScript if needed */
/* For now, submenu appears on the right side */

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-left: auto;
}

.language-switcher {
    display: flex;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.lang-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.notification-icon-btn {
    position: relative;
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.notification-icon-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--error-color);
    color: var(--text-light);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-login {
    background: transparent;
    color: #ffffff;
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    white-space: nowrap;
}

.btn-login:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(0, 180, 216, 0.1);
}

.btn-contact {
    background: transparent;
    color: #ffffff;
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-contact:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(0, 180, 216, 0.1);
}

.btn-contact svg,
.btn-login svg,
.btn-tutor-login svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-tutor-login {
    background: transparent;
    color: #ffffff;
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    white-space: nowrap;
}

.btn-tutor-login:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(0, 180, 216, 0.1);
}

.btn-icon {
    display: none;
}

.btn-text {
    display: inline;
}

.btn-login-register {
    background: transparent;
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: inline-block;
    white-space: nowrap;
}

.btn-login-register:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    background: 
        radial-gradient(ellipse at center, rgba(0, 180, 216, 0.05) 0%, transparent 70%);
}

.hero-container {
    max-width: 1600px;
    width: 100%;
    z-index: 2;
}

/* Hero Content Layout - Text on Left, Robot on Right */
.hero-content {
    display: flex;
    flex-direction: row; /* Text left, robot right */
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    width: 100%;
    position: relative;
    z-index: 2;
    min-width: 0; /* Allow flex items to shrink below their content size */
}

/* Text content on the left */
.hero-left-content {
    flex: 0 1 50%; /* Don't grow, can shrink, base size 50% */
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    z-index: 2;
    order: 1; /* Appears on left */
    min-width: 0; /* Allow flex shrinking but maintain layout */
    max-width: 50%; /* Prevent left content from expanding too much */
    width: 50%; /* Fixed width to prevent expansion */
    box-sizing: border-box; /* Include padding in width calculation */
    overflow: visible; /* Allow content to be visible */
    contain: layout style; /* Isolate layout calculations but allow content overflow */
    will-change: auto; /* Don't optimize for changes */
}

.hero-mascot-left {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.9;
    animation: float 3s ease-in-out infinite;
    cursor: pointer;
}

/* Robot on the right */
.hero-right-content {
    flex: 0 0 auto; /* Don't grow or shrink, use content size */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    order: 2; /* Appears on right */
    flex-shrink: 0; /* Prevent robot from shrinking */
    flex-grow: 0; /* Prevent robot from growing */
    min-width: 200px; /* Minimum width to maintain position */
    max-width: 50%; /* Prevent robot from taking too much space */
    width: auto; /* Use content width */
    contain: layout style; /* Isolate layout calculations */
}

/* Position text between robot and FikrTech on wide screens */
@media (min-width: 1400px) {
    .hero-content {
        justify-content: space-around;
        gap: 4rem;
    }
    
    .hero-left-content {
        flex: 0 1 auto;
        max-width: 50%;
}

.hero-right-content {
        flex: 0 1 auto;
        max-width: 50%;
    }
}

.hero-title-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 0.5rem;
    position: relative;
    width: 100%;
}

.hero-mascot {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.9;
    animation: float 3s ease-in-out infinite;
    cursor: pointer;
}

.hero-mascot-left {
    animation-delay: 1.5s;
    position: relative;
    z-index: 1;
}

.hero-mascot-right {
    animation-delay: 1.5s;
    position: relative;
    z-index: 1;
}

.hero-robot-image {
    width: 400px;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    transition: transform 0.3s ease;
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
    cursor: pointer;
}

/* Larger robot image on wide screens */
@media (min-width: 1400px) {
    .hero-robot-image {
        width: 600px;
        max-height: 700px;
    }
}

.hero-robot-image.vibrate {
    animation: vibrate 0.5s ease;
}

@keyframes vibrate {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(-2px, -2px) rotate(-1deg); }
    20% { transform: translate(2px, 2px) rotate(1deg); }
    30% { transform: translate(-2px, 2px) rotate(-1deg); }
    40% { transform: translate(2px, -2px) rotate(1deg); }
    50% { transform: translate(-2px, -2px) rotate(-1deg); }
    60% { transform: translate(2px, 2px) rotate(1deg); }
    70% { transform: translate(-2px, 2px) rotate(-1deg); }
    80% { transform: translate(2px, -2px) rotate(1deg); }
    90% { transform: translate(-2px, -2px) rotate(-1deg); }
}

.hero-robot-flipped {
    transform: scaleX(-1);
}

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

@keyframes vibrate {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(-2px, -2px); }
    20% { transform: translate(2px, 2px); }
    30% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    50% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    70% { transform: translate(-2px, 2px); }
    80% { transform: translate(2px, -2px); }
    90% { transform: translate(-2px, -2px); }
}

.hero-robot-image.vibrating {
    animation: vibrate 0.5s ease-in-out;
}

.hero-title {
    font-size: 6rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 0 40px rgba(0, 180, 216, 0.6);
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-decoration: none;
    position: relative;
    display: inline-block;
    text-align: left;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--primary-color) 50%,
        transparent 100%);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 180, 216, 0.6);
    animation: underlineReveal 1.2s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes underlineReveal {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 100%;
        opacity: 1;
    }
}

.hero-typing-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 1rem 0;
    min-height: 2.5rem; /* Fixed height to prevent layout shift */
    height: auto; /* Allow height to adjust for content */
    width: 100%; /* Fixed width - take full width of parent */
    max-width: 100%; /* Prevent expansion beyond container */
    text-align: left;
    font-weight: 400;
    letter-spacing: 0.02em;
    display: block; /* Use block instead of flex to prevent expansion */
    position: relative;
    overflow: visible; /* Allow text to wrap */
    box-sizing: border-box; /* Include padding in width calculation */
    word-wrap: break-word; /* Break long words if needed */
    word-break: break-word; /* Break words to prevent overflow */
    hyphens: auto; /* Add hyphens for better wrapping */
    line-height: 1.5; /* Better line height for readability */
    opacity: 0;
    animation: fadeInUp 1.2s ease-out 0.5s forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.typing-text {
    display: inline-block;
    min-width: 1px;
    width: auto; /* Let it grow naturally but constrained by parent */
    max-width: calc(100% - 30px); /* Account for cursor space */
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden; /* Hide overflow text */
    text-overflow: ellipsis; /* Show ellipsis if text overflows (safety) */
    vertical-align: top; /* Align to top */
    position: relative; /* Create stacking context */
    isolation: isolate; /* Isolate from parent layout */
}

.typing-cursor {
    display: inline-block;
    margin-left: 2px;
    vertical-align: top;
}

.typing-cursor {
    display: inline-block;
    color: var(--primary-color);
    font-weight: bold;
    animation: blink-cursor 0.75s step-end infinite;
    margin-left: 2px;
    font-size: 1.2rem;
    position: relative;
}

@keyframes blink-cursor {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.typing-cursor {
    display: inline-block;
}

.hero-tagline {
    font-size: 1.25rem;
    color: #b0bec5;
    margin: 0.5rem 0 1rem 0;
    text-align: left;
    font-weight: 400;
}

.hero-rating {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Rating stars container - must override background stars CSS */
.hero-rating .stars,
.tutor-rating .stars,
.match-card .stars,
.rating-stars,
.course-rating .stars {
    display: inline-flex !important;
    gap: 0.25rem !important;
    align-items: center !important;
    white-space: nowrap !important;
    position: static !important;
    height: auto !important;
    width: auto !important;
    z-index: auto !important;
    background: transparent !important;
}

/* Rating stars - more specific to avoid conflict with background stars */
.hero-rating .stars .star,
.tutor-rating .star,
.match-card .star,
.rating-stars .star,
.course-rating .star {
    color: var(--text-muted);
    font-size: 1.5rem;
    display: inline-block !important;
    line-height: 1;
    unicode-bidi: bidi-override;
    direction: ltr;
    white-space: nowrap;
    word-break: keep-all;
    overflow: visible;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    z-index: auto !important;
}

.hero-rating .stars .star.filled,
.tutor-rating .star.filled,
.match-card .star.filled {
    color: #FFD700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.rating-text {
    color: #b0bec5;
    font-size: 1rem;
    font-weight: 500;
    display: inline-block;
    margin-left: 0.5rem;
    white-space: nowrap;
}

.hero-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    visibility: visible;
    opacity: 1;
}

.cta-button {
    display: inline-block !important;
    background: transparent;
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: 2px solid #ffffff;
    visibility: visible !important;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.5s forwards;
    margin-bottom: 3rem;
    cursor: pointer;
    min-height: 44px; /* Ensure proper touch target */
    min-width: 120px; /* Ensure proper touch target */
}

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

.cta-button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(255, 255, 255, 0.25);
}

.cta-button:active {
    transform: translateY(-1px);
}

/* Service Cards Section */
.services-cards-section {
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* Service card hover effects */
.service-card:hover,
.feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 180, 216, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.service-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Consistent typography for service/feature cards */
.service-card h3,
.feature-card h3,
.service-title {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p,
.feature-card p,
.service-description {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
}

/* CTA Section Main */
.cta-section-main {
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
}

.cta-box h2 {
    color: var(--text-light);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-box p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.btn-join-community {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: 2px solid var(--primary-color);
}

.btn-join-community:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 180, 216, 0.3);
}

.btn-learn-more {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: 2px solid var(--border-color);
}

.btn-learn-more:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: calc(2rem + 1cm);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-muted);
    z-index: 2;
    cursor: pointer;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    animation: none !important;
    display: block;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    will-change: opacity;
    backface-visibility: hidden; /* Prevent flickering */
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.scroll-indicator:hover {
    opacity: 0.8;
}

.scroll-indicator span {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    animation: none !important;
}

.mouse-icon {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    margin: 0 auto;
    position: relative;
    animation: none !important;
}

.mouse-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    animation: none !important;
}

/* Mobile responsive styles for scroll indicator */
@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 1.5rem;
        padding: 0.5rem;
        min-height: 60px; /* Ensure proper touch target */
        min-width: 60px;
    }
    
    .scroll-indicator span {
        font-size: 0.75rem;
    }
    
    .mouse-icon {
        width: 20px;
        height: 32px;
    }
}

/* ============================================================
   FLASH MESSAGES & ALERTS
   ============================================================ */
.flash-message-container {
    max-width: 1600px;
    margin: 2rem auto;
    padding: 0 2rem;
    z-index: 10;
    position: relative;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
}

.alert-success {
    border-color: var(--success-color);
    color: var(--success-color);
}

.alert-success::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
}

.alert-error {
    border-color: var(--error-color);
    color: var(--error-color);
}

.alert-error::before {
    content: '⚠';
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
}

.alert-warning {
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.alert-warning::before {
    content: '⚠';
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
}

.alert-info {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.alert-info::before {
    content: 'ℹ';
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
}

/* ============================================================
   CONTAINER & SECTIONS
   ============================================================ */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Page Specific Styles */
.about-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.about-word {
    color: var(--text-light);
}

.fikrtech-word {
    color: var(--primary-color);
}

.mission-statement {
    text-align: center;
    color: var(--text-light);
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   FORMS
   ============================================================ */
.login-section,
.contact-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.login-form-container {
    max-width: 450px;
    margin: 0 auto;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.login-form,
.contact-form {
    margin-top: 2rem;
}

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

.login-form input[type="email"],
.login-form input[type="password"],
.login-form input[type="text"] {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
    outline: 2px solid #00B4D8;
    outline-offset: 2px;
    border-color: #00B4D8;
    background: rgba(255, 255, 255, 0.08);
}

.login-form label {
    display: block;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.login-form .cta-button {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    background: #00B4D8;
    color: white;
    border: 2px solid #00B4D8;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-form .cta-button:hover {
    background: #0096C7;
    border-color: #0096C7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

.forgot-password-link {
    text-align: center;
    margin-top: 1.5rem;
}

.forgot-password-link a {
    color: #00B4D8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password-link a:hover {
    color: #0096C7;
    text-decoration: underline;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    display: block;
    visibility: visible;
    opacity: 1;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

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

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Account Creation Section */
.account-creation-section {
    margin-top: 2rem;
    padding-top: 2rem;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 1rem;
    font-size: 0.9rem;
}

.create-account-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-create-account-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-create-account-option:hover {
    background: rgba(0, 180, 216, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.2);
}

.btn-create-account-option svg {
    flex-shrink: 0;
}

.btn-create-account-option.btn-tutor {
    background: rgba(0, 180, 216, 0.1);
    border-color: var(--primary-color);
}

.btn-create-account-option.btn-tutor:hover {
    background: rgba(0, 180, 216, 0.2);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s;
}

.contact-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.2);
}

.contact-item svg {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

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

.contact-form-container {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
}

.contact-form-container h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.contact-map {
    margin-top: 2.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}

.contact-map h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.map-embed {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.map-embed iframe {
    width: 100%;
    height: 360px;
    border: 0;
    display: block;
}

.map-link {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.map-link:hover {
    text-decoration: underline;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.main-footer {
    background: rgba(10, 25, 41, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-logo-column {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo-image {
    height: 80px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.footer-description {
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-heading {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-contact li {
    color: var(--text-muted);
    line-height: 1.8;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact li svg {
    flex-shrink: 0;
    color: var(--primary-color);
}

.social-media {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
    transition: all 0.3s;
}

.social-icon:hover:not([aria-disabled="true"]) {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
}

.social-icon[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-schedule-consultation {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s;
}

.btn-schedule-consultation:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

/* Footer CTA Section */
.footer-cta-section {
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

.footer-cta-box {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
}

.footer-cta-box h2 {
    color: var(--text-light);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-cta-box p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

/* Footer Update Section */
.footer-update-section {
    background: rgba(10, 25, 41, 0.5);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
}

.update-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.update-text h4 {
    color: var(--text-light);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.update-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.subscribe-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.subscribe-form input {
    flex: 1;
    min-width: 250px;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
}

.subscribe-form input::placeholder {
    color: var(--text-muted);
}

.subscribe-form input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-color: var(--primary-color);
}

.btn-subscribe {
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-subscribe:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(10, 25, 41, 0.95);
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-bottom-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-logo-small {
    display: flex;
    align-items: center;
}

.footer-bottom-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex: 1;
    text-align: center;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-left-content {
        width: 100%;
        order: 1;
    }
    
    .hero-right-content {
        width: 100%;
        order: 2;
        text-align: center;
        align-items: center;
    }
    
    .hero-title {
        text-align: center;
        font-size: 4rem;
    }
    
    .hero-tagline {
        text-align: center;
    }
    
    .hero-typing-text {
        justify-content: center;
        text-align: center;
        min-height: auto; /* Remove fixed height on mobile */
        height: auto; /* Allow flexible height */
        line-height: 1.6; /* Better line spacing */
        padding: 0 1rem; /* Add horizontal padding */
        word-wrap: break-word;
        word-break: break-word;
    }
    
    .hero-rating {
        justify-content: center;
    }
    
    .hero-mascot-left,
    .hero-mascot-right {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
    }
    
    .hero-mascot .hero-robot-image {
        width: 300px;
        height: auto;
        max-height: 375px;
        min-width: 200px; /* Ensure minimum touch target */
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        padding: 0.5rem 1rem;
        position: relative;
        align-items: center;
        min-height: 80px;
    }

    .logo-icon {
        height: 50px;
        max-width: 160px;
        order: 1;
    }

    .mobile-menu-toggle {
        display: flex !important;
        order: 2;
        margin-left: auto;
        position: relative;
        z-index: 1003;
        visibility: visible !important;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        max-width: 90vw;
        height: 100vh;
        background: rgba(10, 25, 41, 0.98);
        backdrop-filter: blur(20px);
        margin: 0;
        padding: 6rem 1.5rem 2rem 1.5rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 9999;
        overflow-y: auto;
        overflow-x: hidden;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    }

    .main-nav.active {
        transform: translateX(0);
        display: block !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    .main-nav.active .mobile-menu-close {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        z-index: 10002 !important;
        position: absolute !important;
    }

    /* Mobile menu close button - hidden by default */
    .mobile-menu-close {
        display: none !important;
    }
    
    /* Show and position when menu is active */
    body.menu-open .mobile-menu-close,
    .main-nav.active ~ .mobile-menu-close,
    #mainNav.active ~ .mobile-menu-close {
        display: flex !important;
        position: fixed !important;
        top: 1rem !important;
        right: 1rem !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        background: rgba(0, 0, 0, 0.7) !important;
        border: 2px solid rgba(255, 255, 255, 0.6) !important;
        color: white !important;
        font-size: 2rem !important;
        font-weight: bold !important;
        line-height: 1 !important;
        cursor: pointer !important;
        border-radius: 50% !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.2s ease !important;
        z-index: 10003 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.5) !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .mobile-menu-close:hover,
    .mobile-menu-close:active,
    .mobile-menu-close:focus {
        background: rgba(255, 255, 255, 0.2) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
        transform: scale(1.1) !important;
        outline: 2px solid rgba(0, 180, 216, 0.5) !important;
        outline-offset: 2px !important;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        width: 100%;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        margin-bottom: 0.25rem;
        transition: background 0.2s ease;
    }

    .nav-link:hover {
        background: rgba(0, 180, 216, 0.1);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 0.5rem;
        margin-left: 0;
        width: 100%;
        display: none;
        box-shadow: none;
        border: none;
        background: rgba(0, 180, 216, 0.1);
        border-radius: 8px;
    }
    
    .dropdown:hover .dropdown-menu,
    .nav-item.dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 0.75rem 1.5rem;
    }
    
    /* Mobile submenu styles */
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 0.5rem;
        margin-left: 1rem;
        margin-right: 0;
        max-height: 300px;
        display: none;
        box-shadow: none;
        border: none;
        background: rgba(0, 180, 216, 0.1);
        border-radius: 8px;
    }
    
    .dropdown-submenu:hover .submenu,
    .dropdown-submenu.active .submenu {
        display: block;
    }
    
    .submenu a {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .submenu-arrow {
        right: 1rem;
    }
    
    .header-actions {
        order: 3;
        margin-left: 0.5rem;
        gap: 0.25rem;
        flex-wrap: wrap;
        justify-content: flex-end;
        max-width: calc(100vw - 200px);
        align-items: center;
    }

    .language-switcher {
        order: 1;
    }

    .notification-icon-btn,
    .btn-login-register,
    .btn-login,
    .btn-tutor-login,
    .btn-contact {
        order: 2;
    }
    
    .btn-login .btn-text,
    .btn-contact .btn-text,
    .btn-tutor-login .btn-text {
        display: none;
    }
    
    .btn-login .btn-icon,
    .btn-contact .btn-icon,
    .btn-tutor-login .btn-icon {
        display: block;
    }
    
    .btn-login,
    .btn-contact,
    .btn-tutor-login {
        padding: 0.625rem;
        min-width: 44px;
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }
    
    .btn-login svg,
    .btn-contact svg,
    .btn-tutor-login svg {
        width: 24px;
        height: 24px;
    }

    body.menu-open {
        overflow: hidden;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 2rem;
        min-height: auto;
    }

    .hero-left-content {
        width: 100%;
        order: 1;
    }

    .hero-right-content {
        width: 100%;
        order: 2;
        text-align: center;
        align-items: center;
    }
    
    .hero-title {
        font-size: 3rem;
        text-align: center;
    }
    
    .hero-typing-text {
        font-size: 0.95rem;
        margin: 0.75rem 0;
        justify-content: center;
        text-align: center;
        min-height: auto; /* Remove fixed height on tablet */
        height: auto; /* Allow flexible height */
        line-height: 1.6; /* Better line spacing for readability */
        padding: 0 1rem; /* Add horizontal padding */
        word-wrap: break-word;
        word-break: break-word;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .hero-rating {
        justify-content: center;
    }
    
    .hero-mascot-left,
    .hero-mascot-right {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        display: flex;
    }

    .hero-mascot {
        display: flex;
    }
    
    .hero-mascot .hero-robot-image {
        width: 250px;
        height: auto;
        max-height: 300px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .login-form-container {
        padding: 2rem;
        margin: 2rem 1rem;
    }
    
    .create-account-buttons {
        gap: 0.75rem;
    }
    
    .btn-create-account-option {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .btn-create-account-option svg {
        width: 18px;
        height: 18px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .courses-filters {
        padding: 1rem;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .btn-filter-apply,
    .btn-filter-clear {
        flex: 1;
    }
    
    .tutors-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-container {
        grid-template-columns: 1fr;
    }
    
    .tutoring-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    /* Header responsiveness for small phones */
    .header-container {
        padding: 0 0.75rem;
        gap: 0.5rem;
    }

    .logo-icon {
        height: 50px;
        max-width: 150px;
    }

    .lang-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
        min-width: auto;
    }

    .header-actions {
        gap: 0.25rem;
        flex-wrap: wrap;
        max-width: 200px; /* Prevent overflow on very small screens */
    }

    /* User profile button specific mobile styles */
    .btn-login-register {
        font-size: 0.75rem !important;
        padding: 0.375rem 0.5rem !important;
        max-width: 120px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
        flex-shrink: 1;
    }

    .hero-left-content {
        text-align: center;
        align-items: center;
        width: 100%;
    }

    .hero-title {
        text-align: center;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .btn-login,
    .btn-contact,
    .btn-tutor-login {
        padding: 0.5rem;
        min-width: 40px;
    }

    .btn-login svg,
    .btn-contact svg,
    .btn-tutor-login svg {
        width: 20px;
        height: 20px;
    }

    /* Notification icons on mobile */
    .notification-icon-btn {
        padding: 0.375rem !important;
        min-width: 40px !important;
        font-size: 0.8rem;
    }

    .notification-badge {
        font-size: 0.6rem !important;
        min-width: 16px !important;
        height: 16px !important;
        line-height: 16px !important;
    }

    /* Very small screens */
    @media (max-width: 480px) {
        .header-container {
            padding: 0.5rem;
            min-height: 70px;
        }

        .logo-icon {
            height: 45px;
            max-width: 140px;
        }

        .mobile-menu-toggle {
            width: 40px;
            height: 40px;
            min-width: 40px;
            min-height: 40px;
        }

        .header-actions {
            max-width: calc(100vw - 180px);
            gap: 0.125rem;
        }

        .lang-btn {
            padding: 0.25rem 0.5rem;
            font-size: 0.75rem;
            min-width: auto;
        }

        .notification-icon-btn {
            width: 36px;
            height: 36px;
        }

        .btn-login-register {
            font-size: 0.7rem !important;
            padding: 0.25rem 0.375rem !important;
        }

        .main-nav {
            width: 280px;
            max-width: 95vw;
            padding: 5.5rem 1rem 2rem 1rem;
        }

        .mobile-menu-toggle {
            display: flex !important;
            opacity: 1 !important;
            visibility: visible !important;
        }

        /* Hide user name on mobile - target the profile link specifically */
        a[href="profile.php"].btn-login-register {
            display: none !important;
        }

        .hero-title {
            text-align: center;
            width: 100%;
        }
    }

    .mobile-menu-toggle {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: var(--primary-color);
        border: none;
        border-radius: 8px;
        color: white;
        cursor: pointer;
        z-index: 1003;
        position: relative;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        transition: all 0.2s ease;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .mobile-menu-toggle:hover {
        background: #0096C7;
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .mobile-menu-toggle:active {
        transform: scale(0.95);
    }

    .mobile-menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: currentColor;
        margin: 3px 0;
        transition: all 0.3s;
        border-radius: 1px;
    }

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

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

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

    .hero-title {
        font-size: 2rem;
    }
    
    .hero-typing-text {
        font-size: 0.85rem;
        margin: 0.5rem 0;
        padding: 0 1rem; /* Increased padding for better spacing */
        min-height: auto; /* Remove fixed height on mobile */
        height: auto; /* Allow flexible height */
        line-height: 1.6; /* Better line spacing for readability */
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        min-height: 44px; /* Ensure proper touch target on mobile */
        min-width: 120px;
    }
    
    .robot-mascot svg {
        width: 300px;
        height: 375px;
    }
    
    .login-form-container,
    .register-form-container,
    .contact-form-container {
        padding: 1.5rem;
    }
}

/* ============================================================
   COURSES PAGE
   ============================================================ */
.courses-section {
    padding: 4rem 0;
}

.courses-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.intro-text {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Course Filters and Sorting */
.courses-filters {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 3rem;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 150px;
}

.filter-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.filter-input,
.filter-select {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s;
    width: 100%;
}

.filter-input:focus,
.filter-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.filter-input::placeholder {
    color: var(--text-muted);
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.btn-filter-apply,
.btn-filter-clear {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    min-width: 100px;
}

.btn-filter-apply {
    background: var(--primary-color);
    color: var(--text-light);
}

.btn-filter-apply:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-filter-clear {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.btn-filter-clear:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

/* Course Rating Display */
.course-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0;
    padding: 0.5rem 0;
}

.rating-stars {
    display: inline-flex !important;
    gap: 0.125rem !important;
    align-items: center !important;
    position: static !important;
    height: auto !important;
    width: auto !important;
    z-index: auto !important;
    background: transparent !important;
}

.rating-stars .star {
    color: var(--text-muted);
    font-size: 1rem;
    display: inline-block !important;
    line-height: 1;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    z-index: auto !important;
}

.rating-stars .star.filled {
    color: #FFD700;
}

.rating-stars .star.half {
    background: linear-gradient(90deg, #FFD700 50%, var(--text-muted) 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-value {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.875rem;
}

.review-count {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Course Grade Badge */
.course-grade-badge {
    margin: 0.5rem 0;
}

.grade-label {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 180, 216, 0.2);
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Screen Reader Only */
.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;
}

/* UX Improvements: Reading Support */
body.reading-mode-large {
    font-size: 1.125rem;
}

body.reading-mode-extra-large {
    font-size: 1.25rem;
}

body.reading-mode-spacing-wide {
    line-height: 2;
}

body.reading-mode-spacing-extra-wide {
    line-height: 2.5;
}

body.reading-mode-spacing-normal {
    line-height: 1.6;
}

body.reading-mode-letter-spacing-wide {
    letter-spacing: 0.1em;
}

body.dyslexia-font {
    font-family: 'Comic Sans MS', 'Trebuchet MS', 'Arial', sans-serif;
}

/* Visual Clarity Improvements */
button,
.btn,
a.btn {
    min-height: 44px;
    min-width: 44px;
    padding: 0.75rem 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-light);
}

.form-group input[required] + label::after,
.form-group label[for*="required"]::after {
    content: ' *';
    color: var(--error-color);
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 0.8s linear infinite;
}

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

.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

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

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}

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

.course-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.coaching-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s;
    text-align: center;
}

.course-card:hover,
.coaching-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.2);
}

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

.coaching-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.coaching-card h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.coaching-card p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.coaching-features {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 1.5rem;
}

.coaching-features li {
    color: var(--text-muted);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.coaching-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.course-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-dark);
    background-repeat: no-repeat;
}

/* Image optimization - ensure images don't cause layout shift */
.course-image,
.course-image-placeholder {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.course-content {
    padding: 1.5rem;
}

.course-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.course-description {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.course-instructors {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.instructors-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.instructor-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.instructor-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
}

.more-instructors {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
}

.instructor-count {
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

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

.course-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    margin-top: 1rem;
}

.course-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.course-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============================================================
   TUTORING PAGE
   ============================================================ */
.tutoring-section {
    padding: 4rem 0;
}

.tutor-project-section {
    margin-bottom: 4rem;
    padding: 3rem 0;
}

.tutor-project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.tutor-project-header .section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 0;
}

.tutor-project-links {
    display: flex;
    gap: 1rem;
}

.tutor-project-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.3);
}

.category-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.category-icon svg {
    width: 64px;
    height: 64px;
}

.category-card h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.category-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.category-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
}

.category-link:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateX(5px);
}

.tutoring-intro {
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 3rem;
}

.tutoring-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-highlight {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s;
}

.feature-highlight:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.2);
}

.feature-icon {
    flex-shrink: 0;
}

.feature-highlight h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.feature-highlight p {
    color: var(--text-muted);
    line-height: 1.6;
}

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

.tutor-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.tutor-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.2);
}

.tutor-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: var(--bg-dark);
    border: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.tutor-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.tutor-avatar-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
}

.tutor-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.tutor-name-link {
    color: inherit;
    text-decoration: none;
}

.tutor-name-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.tutor-specialization {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.tutor-bio {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tutor-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tutor-rate {
    color: var(--text-muted);
    font-size: 1.125rem;
    font-weight: 600;
}

.tutor-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.tutor-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.profile-section {
    padding: 4rem 0;
}

.profile-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.profile-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
}

.profile-card h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* ============================================================
   REGISTER PAGE
   ============================================================ */
.register-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.register-form-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   COACHING & OTHER PAGES
   ============================================================ */
.coaching-section,
.teaching-section,
.about-section,
.tutoring-section,
.courses-section {
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

/* Ensure all main content sections have consistent styling */
main > section {
    position: relative;
    z-index: 1;
}

.content-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s;
}

.content-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.2);
}

.content-card h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.content-card h3 {
    color: var(--primary-light);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-card p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-card ul {
    list-style: none;
    padding-left: 0;
}

.content-card li {
    color: var(--text-muted);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

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

/* Teaching Section Styles */
.teaching-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.intro-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Consistent styling for all feature/service grids */
.features-grid,
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.2);
}

.feature-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-card h3,
.service-title {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p,
.service-description {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
}

/* Pricing Section */
.pricing-section {
    margin: 4rem 0;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.section-description {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.2);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    border-width: 2px;
    background: rgba(0, 180, 216, 0.1);
}

.pricing-card h3 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.pricing-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    text-align: left;
}

.pricing-features li {
    color: var(--text-muted);
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.cta-section {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

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

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary,
.btn-join-community {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.2);
}

.btn-primary:hover,
.btn-join-community:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.4);
    border-color: var(--primary-light);
}

.btn-primary:active,
.btn-join-community:active {
    transform: translateY(-1px);
}

.btn-secondary,
.btn-learn-more {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    border: 2px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover,
.btn-learn-more:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.3);
}

.btn-secondary:active,
.btn-learn-more:active {
    transform: translateY(-1px);
}

/* ============================================================
   AI MATCHING STYLES
   ============================================================ */
.matching-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.profile-prompt {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.ai-matches-section {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.match-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.match-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.2);
}

.match-score {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.score-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

.match-reasons {
    margin: 1rem 0;
    text-align: left;
    background: rgba(0, 180, 216, 0.1);
    padding: 1rem;
    border-radius: 8px;
}

.match-reasons ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.match-reasons li {
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.match-reasons li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Profile Form Styles */
.profile-section {
    padding: 4rem 0;
}

.profile-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
}

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

.form-group label {
    display: block;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
}

.form-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-weight: normal;
    cursor: pointer;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.alert-error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid var(--error-color);
    color: var(--error-color);
}

/* ============================================================
   COMMUNITIES STYLES
   ============================================================ */
.communities-section {
    padding: 4rem 0;
}

.communities-intro {
    text-align: center;
    margin-bottom: 3rem;
}

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

.community-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.community-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.2);
}

.community-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-dark);
}

.community-image.default {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 180, 216, 0.1);
}

.community-content {
    padding: 1.5rem;
}

.community-name {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.community-description {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.community-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.community-members,
.community-privacy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.community-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.community-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.community-detail-section {
    padding: 4rem 0;
}

.community-header {
    margin-bottom: 3rem;
}

.community-header-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.community-title {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.community-description-full {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.community-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.community-stats {
    display: flex;
    gap: 2rem;
    color: var(--text-muted);
}

.community-posts-section {
    margin-top: 3rem;
}

.create-post-form {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 600;
}

.post-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: block;
}

.post-title {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.post-content {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.post-image {
    margin: 1rem 0;
}

.post-image img {
    max-width: 100%;
    border-radius: 8px;
}

.post-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.post-action-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.post-action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.community-members-section {
    margin-top: 3rem;
}

.members-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.member-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 600;
}

.member-info {
    display: flex;
    flex-direction: column;
}

.member-role {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.create-community-section {
    padding: 4rem 0;
}

.create-community-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* ============================================================
   SUBSCRIPTION & PAYMENT STYLES
   ============================================================ */
.subscription-section {
    padding: 4rem 0;
}

.current-subscription {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary-color);
    border-radius: 16px;
}

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

.subscription-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.subscription-dates {
    color: var(--text-muted);
    margin: 0.5rem 0;
}

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

.plan-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s;
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.2);
}

.plan-card.current-plan {
    border-color: var(--primary-color);
    border-width: 2px;
    background: rgba(0, 180, 216, 0.1);
}

.plan-name {
    font-size: 1.75rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.plan-price {
    margin: 1.5rem 0;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-period {
    color: var(--text-muted);
    font-size: 1rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
}

.plan-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
}

.plan-btn {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.plan-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.plan-btn.current {
    background: var(--text-muted);
    cursor: not-allowed;
}

.payment-section {
    padding: 4rem 0;
}

.payment-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
}

.payment-summary {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    height: fit-content;
}

.payment-summary h2 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 2px solid var(--primary-color);
    font-size: 1.25rem;
    color: var(--text-light);
}

.payment-form-container {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}

.payment-form {
    margin-top: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-pay {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1.25rem;
    font-size: 1.125rem;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.stat-card h3 {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.admin-filters {
    margin-bottom: 1.5rem;
}

.filter-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-success {
    background: rgba(76, 175, 80, 0.2);
    color: var(--success-color);
}

.badge-warning {
    background: rgba(255, 152, 0, 0.2);
    color: var(--warning-color);
}

.badge-danger {
    background: rgba(244, 67, 54, 0.2);
    color: var(--error-color);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-dark);
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
}

.close:hover {
    color: var(--text-light);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-small.btn-secondary {
    background: var(--text-muted);
    color: var(--text-light);
}

.btn-small.btn-danger {
    background: var(--error-color);
    color: var(--text-light);
}

.btn-small:hover {
    opacity: 0.8;
}

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

/* ============================================================
   COURSE DETAIL & LESSONS STYLES
   ============================================================ */
.course-detail-section {
    padding: 4rem 0;
}

.course-header {
    margin-bottom: 3rem;
}

.course-hero-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    margin-bottom: 2rem;
}

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

.course-category-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 180, 216, 0.2);
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.course-title {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.course-description-full {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

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

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.level-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.level-beginner {
    background: rgba(76, 175, 80, 0.2);
    color: var(--success-color);
}

.level-intermediate {
    background: rgba(255, 152, 0, 0.2);
    color: var(--warning-color);
}

.level-advanced {
    background: rgba(244, 67, 54, 0.2);
    color: var(--error-color);
}

.course-price-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.course-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.enrolled-badge {
    padding: 0.5rem 1rem;
    background: rgba(76, 175, 80, 0.2);
    color: var(--success-color);
    border-radius: 8px;
    font-weight: 600;
}

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

.course-lessons {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}

.lessons-list {
    margin-top: 1.5rem;
}

.lesson-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.lesson-item:hover {
    border-color: var(--primary-color);
}

.lesson-item.locked {
    opacity: 0.6;
}

.lesson-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.lesson-content {
    flex: 1;
}

.lesson-title {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.lesson-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.lesson-action {
    flex-shrink: 0;
}

.lesson-btn {
    padding: 0.5rem 1.5rem;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.lesson-btn:hover {
    background: var(--primary-dark);
}

.lesson-locked {
    font-size: 1.5rem;
}

.course-progress {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    height: fit-content;
}

.progress-bar-container {
    width: 100%;
    height: 30px;
    background: var(--bg-dark);
    border-radius: 15px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s;
}

.progress-text {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.875rem;
}

.progress-info {
    color: var(--text-muted);
    text-align: center;
}

.completion-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(76, 175, 80, 0.2);
    color: var(--success-color);
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 600;
}

.lesson-section {
    padding: 4rem 0;
}

.lesson-header {
    margin-bottom: 2rem;
}

.lesson-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.lesson-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.lesson-breadcrumb a:hover {
    text-decoration: underline;
}

.lesson-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.nav-btn {
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lesson-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.lesson-main-content {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
}

.lesson-title {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.lesson-meta-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.lesson-type-badge {
    padding: 0.5rem 1rem;
    background: rgba(0, 180, 216, 0.2);
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
}

.lesson-duration {
    color: var(--text-muted);
}

.lesson-body {
    margin-top: 2rem;
}

.video-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 2rem;
    border-radius: 12px;
}

.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.lesson-text-content {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.125rem;
}

.quiz-section,
.assignment-section {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--bg-dark);
    border-radius: 12px;
}

.lesson-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.lessons-sidebar-list {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.lessons-sidebar-list h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.sidebar-lesson-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.3s;
}

.sidebar-lesson-item:hover {
    border-color: var(--primary-color);
    color: var(--text-light);
}

.sidebar-lesson-item.active {
    border-color: var(--primary-color);
    background: rgba(0, 180, 216, 0.1);
    color: var(--primary-color);
}

.sidebar-lesson-item .lesson-number {
    width: 30px;
    height: 30px;
    font-size: 0.875rem;
}

.lesson-title-text {
    flex: 1;
    font-size: 0.9rem;
}

.current-indicator {
    color: var(--primary-color);
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .course-content-grid,
    .lesson-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .lesson-sidebar {
        position: static;
    }
}

/* ============================================================
   COURSE ENROLLMENT FLOW STYLES
   ============================================================ */

/* Step Container */
.course-step-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
    background: var(--bg-dark);
    padding: 0 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.2);
}

.step.completed .step-number {
    background: var(--success-color);
    border-color: var(--success-color);
    color: var(--text-light);
}

.step-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.step.completed .step-label {
    color: var(--success-color);
}

.step-title {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-align: center;
}

/* Instructors Grid */
.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.instructor-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.instructor-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.15);
}

.instructor-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 3px solid var(--primary-color);
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.instructor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.instructor-name {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.instructor-specialization {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.instructor-bio {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.instructor-price {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 180, 216, 0.1);
    border-radius: 8px;
    width: 100%;
}

.price-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-free {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--success-color);
}

.btn-select-instructor {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-select-instructor:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

.no-instructors {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.no-instructors p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Payment Step Styles */
.payment-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
}

.selected-instructor-summary {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    height: fit-content;
}

.selected-instructor-summary h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.instructor-summary-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(0, 180, 216, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.summary-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.summary-info h4 {
    color: var(--text-light);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.summary-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.payment-summary {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.payment-summary h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item span {
    color: var(--text-muted);
    font-size: 1rem;
}

.summary-item strong {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
}

.summary-item.price-item {
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--primary-color);
    border-bottom: none;
}

.summary-item.price-item span {
    font-size: 1.125rem;
    font-weight: 600;
}

.total-price {
    font-size: 1.5rem !important;
    color: var(--primary-color) !important;
    font-weight: 700 !important;
}

.payment-form {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}

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

.payment-form label {
    display: block;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.payment-form input[type="text"],
.payment-form input[type="email"],
.payment-form input[type="tel"] {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.payment-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
}

.payment-form input.error {
    border-color: var(--error-color);
    background: rgba(244, 67, 54, 0.1);
}

.error-message {
    display: block;
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
}

/* Enhanced Form Validation Styles */
.form-group {
    position: relative;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--error-color) !important;
    background: rgba(244, 67, 54, 0.1) !important;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1) !important;
}

.form-group input.success,
.form-group select.success,
.form-group textarea.success {
    border-color: var(--success-color) !important;
    background: rgba(76, 175, 80, 0.1) !important;
}

.field-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(244, 67, 54, 0.1);
    border-left: 3px solid var(--error-color);
    border-radius: 4px;
}

.field-error::before {
    content: '⚠';
    font-size: 1rem;
}

.field-success {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--success-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(76, 175, 80, 0.1);
    border-left: 3px solid var(--success-color);
    border-radius: 4px;
}

.field-success::before {
    content: '✓';
    font-size: 1rem;
}

.payment-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-proceed-payment {
    flex: 1;
    min-width: 200px;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-proceed-payment:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

.btn-proceed-payment:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Styles for Course Flow */
@media (max-width: 768px) {
    .course-step-container {
        padding: 1.5rem 1rem;
    }
    
    .step-indicator {
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .step-indicator::before {
        left: 15%;
        right: 15%;
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .step-title {
        font-size: 1.5rem;
    }
    
    .instructors-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .instructor-card {
        padding: 1.5rem;
    }
    
    .instructor-avatar {
        width: 100px;
        height: 100px;
    }
    
    .instructor-name {
        font-size: 1.25rem;
    }
    
    .payment-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .selected-instructor-summary,
    .payment-summary,
    .payment-form {
        padding: 1.5rem;
    }
    
    .payment-actions {
        flex-direction: column;
    }
    
    .btn-proceed-payment,
    .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .course-step-container {
        padding: 1rem 0.75rem;
    }
    
    .step-indicator {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .step-indicator::before {
        display: none;
    }
    
    .step {
        flex: 1;
        min-width: 120px;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .step-title {
        font-size: 1.25rem;
    }
    
    .instructors-grid {
        gap: 1rem;
    }
    
    .instructor-card {
        padding: 1.25rem;
    }
    
    .instructor-avatar {
        width: 80px;
        height: 80px;
    }
    
    .instructor-name {
        font-size: 1.125rem;
    }
    
    .price-amount {
        font-size: 1.5rem;
    }
    
    .selected-instructor-summary,
    .payment-summary,
    .payment-form {
        padding: 1.25rem;
    }
    
    .summary-avatar {
        width: 60px;
        height: 60px;
    }
    
    .summary-info h4 {
        font-size: 1.125rem;
    }
    
    .total-price {
        font-size: 1.25rem !important;
    }
}

/* ============================================================
   REFERRAL STYLES
   ============================================================ */
.referral-section {
    padding: 4rem 0;
}

.referral-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.referral-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.referral-code-section {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 3rem;
}

.referral-code-box {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.referral-code-box input {
    flex: 1;
    padding: 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 2px;
}

.referral-link-box {
    margin-top: 2rem;
}

.referral-link-box label {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.link-container {
    display: flex;
    gap: 1rem;
}

.link-container input {
    flex: 1;
    padding: 0.75rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.referral-history {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}

.history-table {
    margin-top: 1.5rem;
    overflow-x: auto;
}

.history-table table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th,
.history-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.history-table th {
    color: var(--primary-color);
    font-weight: 600;
}

.history-table td {
    color: var(--text-muted);
}

.no-referrals {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

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

/* ============================================================
   SCHOOLS STYLES
   ============================================================ */
.schools-section {
    padding: 4rem 0;
}

.schools-intro {
    text-align: center;
    margin-bottom: 3rem;
}

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

.school-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.school-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.2);
}

.school-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.school-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.school-logo.default {
    background: rgba(0, 180, 216, 0.1);
}

.school-name {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.school-description {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.school-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.school-students,
.school-plan {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.school-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.school-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.school-detail-section {
    padding: 4rem 0;
}

.school-header {
    margin-bottom: 3rem;
}

.school-logo-large {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-dark);
}

.school-logo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.school-title {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-align: center;
}

.school-description-full {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: center;
}

.school-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
}

.info-item {
    color: var(--text-muted);
}

.school-students-section {
    margin-top: 3rem;
}

.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.student-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.register-school-section {
    padding: 4rem 0;
}

.register-school-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
}

/* ============================================================
   MESSAGING & NOTIFICATIONS STYLES
   ============================================================ */
.messages-section {
    padding: 4rem 0;
}

.messages-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.messages-sidebar {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    height: fit-content;
    max-height: 80vh;
    overflow-y: auto;
}

.messages-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.messages-filter {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.conversations-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s;
    position: relative;
}

.conversation-item:hover {
    border-color: var(--primary-color);
}

.conversation-item.active {
    border-color: var(--primary-color);
    background: rgba(0, 180, 216, 0.1);
}

.conversation-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 600;
    flex-shrink: 0;
}

.conversation-info {
    flex: 1;
    min-width: 0;
}

.conversation-preview {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.unread-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--error-color);
    color: var(--text-light);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.messages-main {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

.conversation-view {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.conversation-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.messages-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

.message-item {
    max-width: 70%;
    padding: 1rem;
    border-radius: 12px;
}

.message-item.sent {
    align-self: flex-end;
    background: var(--primary-color);
    color: var(--text-light);
}

.message-item.received {
    align-self: flex-start;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-light);
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

.message-compose {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.new-message-form {
    max-width: 600px;
}

.no-conversation-selected,
.no-messages {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem;
}

.notifications-section {
    padding: 4rem 0;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.notifications-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s;
}

.notification-item.unread {
    border-left: 4px solid var(--primary-color);
    background: rgba(0, 180, 216, 0.05);
}

.notification-item:hover {
    border-color: var(--primary-color);
}

.notification-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.notification-message {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.notification-time {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.notification-actions {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.no-notifications {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem;
}

@media (max-width: 768px) {
    .messages-container {
        grid-template-columns: 1fr;
    }
    
    .messages-sidebar {
        max-height: 300px;
    }
}

/* ============================================================
   TUTORING SECTIONS STYLES
   ============================================================ */
.university-section,
.projects-section,
.assignments-section,
.adhd-section {
    margin: 4rem 0;
    padding: 3rem 0;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem 2rem;
}

.university-section h2,
.projects-section h2,
.assignments-section h2,
.adhd-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 1rem;
}

/* Specific styling for "Find Your Coach" heading */
#coaching-filter h2,
.coaching-section #coaching-filter h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 1.5rem;
}

#coaching-filter h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* ============================================================
   FIND YOUR COACH SECTION STYLING
   ============================================================ */
#coaching-filter .subject-categories-container {
    margin-top: 2.5rem;
}

.subject-category-card {
    margin-bottom: 1.25rem;
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.subject-category-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0, 180, 216, 0.2);
    transform: translateY(-2px);
}

.category-toggle {
    width: 100%;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.1) 0%, rgba(0, 180, 216, 0.05) 100%);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 180, 216, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-toggle:hover::before {
    left: 100%;
}

.category-toggle:hover {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.15) 0%, rgba(0, 180, 216, 0.1) 100%);
}

.category-toggle.active {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.2) 0%, rgba(0, 180, 216, 0.15) 100%);
    border-bottom: 2px solid var(--primary-color);
}

.category-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    text-transform: capitalize;
}

.toggle-icon {
    font-size: 1rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    font-weight: bold;
}

.category-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.category-subjects {
    padding: 2rem;
    background: rgba(10, 25, 41, 0.6);
    max-height: 500px;
    overflow-y: auto;
    border-top: 1px solid var(--border-color);
}

.category-subjects::-webkit-scrollbar {
    width: 8px;
}

.category-subjects::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 4px;
}

.category-subjects::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.category-subjects::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

#coaching-filter .subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.subject-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.subject-checkbox-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 180, 216, 0.1), transparent);
    transition: left 0.4s ease;
}

.subject-checkbox-label:hover::before {
    left: 100%;
}

.subject-checkbox-label:hover {
    border-color: var(--primary-color);
    background: rgba(0, 180, 216, 0.08);
    transform: translateX(5px);
}

.subject-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.subject-checkbox-label .subject-link {
    color: var(--text-light);
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
}

.subject-checkbox-label input[type="checkbox"]:checked ~ .subject-link {
    color: var(--primary-light);
    font-weight: 600;
}

.subject-checkbox-label:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(0, 180, 216, 0.15);
    box-shadow: 0 0 0 2px rgba(0, 180, 216, 0.2);
}

.other-subject-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 180, 216, 0.05);
    border: 2px dashed var(--primary-color);
    border-radius: 12px;
}

.other-subject-section label {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
}

.other-subject-section input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.other-subject-section input[type="text"] {
    margin-top: 1rem;
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.other-subject-section input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
}

#selected-subjects-indicator {
    display: none;
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.15) 0%, rgba(0, 180, 216, 0.1) 100%);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 1.05rem;
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.2);
}

#selected-subjects-indicator strong {
    color: var(--primary-color);
    font-weight: 600;
}

#selected-subjects-indicator #selected-subjects-count {
    color: var(--primary-light);
    font-weight: 700;
    font-size: 1.2rem;
}

#clear-selections {
    margin-left: 1rem;
    padding: 0.625rem 1.25rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 180, 216, 0.3);
}

#clear-selections:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.4);
}

.tutoring-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    flex-wrap: wrap;
}

.btn-filter-tutors,
.btn-view-all {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-filter-tutors {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
}

.btn-filter-tutors::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-filter-tutors:hover::before {
    left: 100%;
}

.btn-filter-tutors:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.4);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
}

.btn-view-all {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-view-all:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.4);
}

.university-benefits,
.projects-benefits,
.assignments-benefits,
.adhd-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-item {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
    text-align: center;
}

.benefit-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.2);
}

.benefit-item h4 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.benefit-item p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* ============================================================
   TEACHING SCHOOL STUDENTS STYLES
   ============================================================ */
.teaching-school-section {
    padding: 4rem 0;
}

.teaching-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.curriculum-section,
.methods-section {
    margin: 4rem 0;
    padding: 3rem 0;
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.curriculum-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
}

.curriculum-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.2);
}

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

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

.curriculum-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
}

.curriculum-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

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

.method-item {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.method-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.2);
}

.method-item h4 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.method-item p {
    color: var(--text-muted);
    line-height: 1.8;
}

.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-top: 4rem;
}

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

.cta-section p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center {
    text-align: center;
}

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

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

/* ============================================================
   WHATSAPP FLOATING BUTTON - HIDDEN
   ============================================================ */
.whatsapp-float {
    display: none !important;
}

/* ============================================================
   CHATBOT WIDGET
   ============================================================ */
.chatbot-toggle {
    position: fixed;
    width: 70px;
    height: 70px;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.6), 
                0 0 0 0 rgba(0, 180, 216, 0.7),
                inset 0 2px 4px rgba(255, 255, 255, 0.2);
    z-index: 9998;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse-chatbot 2s infinite;
    overflow: visible;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    pointer-events: auto !important;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0, 180, 216, 0.3);
    touch-action: manipulation;
}

.chatbot-toggle:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: scale(1.12) translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 180, 216, 0.8), 
                0 0 0 10px rgba(0, 180, 216, 0.15),
                inset 0 2px 6px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.chatbot-toggle:active {
    transform: scale(1.05) translateY(0);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.6), 
                0 0 0 4px rgba(0, 180, 216, 0.2);
}

.chatbot-toggle svg,
.chatbot-toggle-icon {
    width: 60px;
    height: 60px;
    max-width: 90%;
    max-height: 90%;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
    pointer-events: none; /* Allow clicks to pass through to button */
}

.chatbot-toggle:hover svg,
.chatbot-toggle:hover .chatbot-toggle-icon {
    transform: scale(1.05) rotate(5deg);
}

@keyframes pulse-chatbot {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(0, 180, 216, 0.6), 
                    0 0 0 0 rgba(0, 180, 216, 0.7),
                    inset 0 2px 4px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 8px 24px rgba(0, 180, 216, 0.6), 
                    0 0 0 12px rgba(0, 180, 216, 0),
                    inset 0 2px 4px rgba(255, 255, 255, 0.2);
    }
}

    .chatbot-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background: #f44336;
        color: #ffffff;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        font-weight: bold;
        border: 2px solid var(--bg-dark);
    }
    
    @media (max-width: 768px) {
        .chatbot-badge {
            width: 20px;
            height: 20px;
            font-size: 0.65rem;
            top: -3px;
            right: -3px;
            border-width: 1.5px;
        }
    }

.chatbot-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 600px;
    max-height: calc(100vh - 120px);
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: none;
    flex-direction: column;
    z-index: 997;
    overflow: hidden;
    pointer-events: auto !important;
}

.chatbot-container.active {
    display: flex;
    z-index: 9999; /* Ensure chatbot is above other elements when active */
}

    .chatbot-container.minimized {
        height: 60px;
        overflow: hidden;
    }
    
    @media (max-width: 768px) {
        .chatbot-container.minimized {
            height: 60px;
            border-radius: 20px;
            bottom: 90px;
            right: 20px;
            left: auto;
            width: calc(100% - 40px);
            max-width: 400px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
        }
        
        .chatbot-container.minimized .chatbot-header {
            border-radius: 20px;
            cursor: pointer;
        }
    }
    
    @media (max-width: 480px) {
        .chatbot-container.minimized {
            width: calc(100% - 32px);
            right: 16px;
            bottom: 80px;
        }
    }

.chatbot-header {
    background: var(--primary-color);
    color: #ffffff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.chatbot-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: auto;
    z-index: 10001;
    position: relative;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chatbot-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chatbot-avatar i {
    font-size: 1.5rem;
    color: #ffffff;
}

.chatbot-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.chatbot-status {
    margin: 0;
    font-size: 0.75rem;
    opacity: 0.9;
}

.chatbot-minimize,
.chatbot-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    transition: opacity 0.3s, transform 0.2s;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto !important;
    z-index: 10001;
    position: relative;
    user-select: none;
}

.chatbot-minimize:hover,
.chatbot-close:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.chatbot-close {
    font-size: 1.75rem;
    font-weight: 300;
}

.chatbot-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    gap: 1rem;
    background: var(--bg-darker);
}

.chatbot-message {
    display: flex;
    gap: 0.75rem;
    animation: fadeIn 0.3s ease;
}

.chatbot-message.user-message {
    flex-direction: row-reverse;
}

.chatbot-message.user-message .message-content {
    background: var(--primary-color);
    color: #ffffff;
}

.chatbot-message.bot-message .message-content {
    background: var(--card-bg);
    color: var(--text-light);
}

.message-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.message-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-avatar i {
    font-size: 1.2rem;
    color: #ffffff;
}

.user-message .message-avatar {
    background: var(--primary-dark);
}

.message-content {
    max-width: 75%;
    padding: 0.875rem 1.125rem;
    border-radius: 16px;
    word-wrap: break-word;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.message-content:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.message-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.chatbot-quick-replies {
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    background: var(--bg-dark);
    pointer-events: auto;
    border-top: 1px solid var(--border-color);
}

.quick-reply-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    pointer-events: auto !important;
    cursor: pointer;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quick-reply-btn:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.4);
}

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

.chatbot-input-container {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    pointer-events: auto;
}

#chatbotInput {
    flex: 1;
    background: var(--bg-darker);
    border: 1.5px solid var(--border-color);
    border-radius: 24px;
    padding: 0.875rem 1.25rem;
    color: var(--text-light);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
}

#chatbotInput:focus {
    border-color: var(--primary-color);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 
                0 0 0 3px rgba(0, 180, 216, 0.1);
    background: var(--bg-dark);
}

.chatbot-send-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    pointer-events: auto !important;
    cursor: pointer;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 180, 216, 0.3);
}

.chatbot-send-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 16px rgba(0, 180, 216, 0.5);
}

.chatbot-send-btn:active {
    transform: scale(1.05) rotate(0deg);
}

.chatbot-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

/* RTL Support for Chatbot */
body.rtl .chatbot-toggle {
    right: auto;
    left: 20px;
}

body.rtl .chatbot-container {
    right: auto;
    left: 20px;
}

body.rtl .chatbot-message {
    flex-direction: row-reverse;
}

body.rtl .chatbot-message.user-message {
    flex-direction: row;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        display: none !important;
    }
    
    .chatbot-toggle {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
        z-index: 9999 !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
        pointer-events: auto !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .chatbot-toggle svg,
    .chatbot-toggle-icon {
        width: 56px;
        height: 56px;
        max-width: 93%;
        max-height: 93%;
    }
    
    .chatbot-container {
        bottom: 90px;
        right: 0;
        left: 0;
        width: 100%;
        height: calc(100vh - 100px);
        max-height: calc(100vh - 100px);
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
        border-left: none;
        border-right: none;
        border-top: 2px solid var(--primary-color);
    }
    
    .chatbot-container.active {
        animation: slideUpMobile 0.3s ease-out;
    }
    
    @keyframes slideUpMobile {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    .chatbot-header {
        padding: 1rem;
        flex-shrink: 0;
        border-radius: 20px 20px 0 0;
        position: sticky;
        top: 0;
        z-index: 10;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .chatbot-header-content {
        gap: 0.875rem;
    }
    
    .chatbot-avatar {
        width: 42px;
        height: 42px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .chatbot-avatar i {
        font-size: 1.4rem;
    }
    
    .chatbot-info {
        flex: 1;
        min-width: 0;
    }
    
    .chatbot-info h4 {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.125rem;
    }
    
    .chatbot-status {
        font-size: 0.75rem;
        opacity: 0.95;
        display: flex;
        align-items: center;
        gap: 0.375rem;
    }
    
    .chatbot-status::before {
        content: '';
        width: 8px;
        height: 8px;
        background: #4ade80;
        border-radius: 50%;
        display: inline-block;
        box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
    }
    
    .chatbot-header-actions {
        gap: 0.5rem;
    }
    
    .chatbot-minimize,
    .chatbot-close {
        font-size: 1.5rem;
        padding: 0.375rem;
        min-width: 40px;
        min-height: 40px;
        border-radius: 8px;
    }
    
    .chatbot-close {
        font-size: 1.75rem;
    }
    
    .chatbot-messages {
        padding: 1rem 0.875rem;
        gap: 1rem;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Custom scrollbar for mobile */
    .chatbot-messages::-webkit-scrollbar {
        width: 4px;
    }
    
    .chatbot-messages::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .chatbot-messages::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 2px;
    }
    
    .chatbot-message {
        gap: 0.625rem;
    }
    
    .message-avatar {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }
    
    .message-avatar i {
        font-size: 1.1rem;
    }
    
    .message-content {
        max-width: 82%;
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
        line-height: 1.5;
        border-radius: 18px;
        word-wrap: break-word;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }
    
    .message-content p {
        font-size: 0.9375rem;
        line-height: 1.6;
        margin: 0;
    }
    
    .chatbot-message.user-message .message-content {
        border-radius: 18px 18px 4px 18px;
    }
    
    .chatbot-message.bot-message .message-content {
        border-radius: 18px 18px 18px 4px;
    }
    
    .chatbot-quick-replies {
        padding: 0.875rem;
        gap: 0.5rem;
        flex-shrink: 0;
        border-top: 1px solid var(--border-color);
        background: var(--bg-dark);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .chatbot-quick-replies::-webkit-scrollbar {
        display: none;
    }
    
    .quick-reply-btn {
        padding: 0.625rem 1.125rem;
        font-size: 0.875rem;
        border-radius: 20px;
        min-height: 44px;
        min-width: auto;
        white-space: nowrap;
        flex-shrink: 0;
        font-weight: 500;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
    }
    
    .quick-reply-btn:active {
        transform: scale(0.96);
    }
    
    .chatbot-input-container {
        padding: 0.875rem;
        gap: 0.625rem;
        flex-shrink: 0;
        background: var(--bg-dark);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    }
    
    #chatbotInput {
        padding: 0.75rem 1rem;
        /* Prevent iOS Safari input-focus zoom (Safari zooms when font-size < 16px) */
        font-size: 16px;
        border-radius: 24px;
        border-width: 2px;
        min-height: 48px;
    }
    
    #chatbotInput:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
    }
    
    .chatbot-send-btn {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        flex-shrink: 0;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0, 180, 216, 0.3);
        transition: all 0.2s ease;
    }
    
    .chatbot-send-btn:active {
        transform: scale(0.92);
        box-shadow: 0 1px 4px rgba(0, 180, 216, 0.2);
    }
    
    .chatbot-send-btn svg {
        width: 20px;
        height: 20px;
    }
    
    body.rtl .chatbot-toggle {
        left: 20px;
        right: auto;
    }
    
    body.rtl .chatbot-container {
        left: 0;
        right: 0;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .chatbot-toggle {
        width: 56px;
        height: 56px;
        bottom: 16px;
        right: 16px;
        z-index: 9999 !important;
        pointer-events: auto !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .chatbot-toggle svg,
    .chatbot-toggle-icon {
        width: 52px;
        height: 52px;
    }
    
    .chatbot-container {
        bottom: 80px;
        right: 0;
        left: 0;
        width: 100%;
        height: calc(100vh - 90px);
        max-height: calc(100vh - 90px);
        border-radius: 18px 18px 0 0;
    }
    
    .chatbot-header {
        padding: 0.875rem;
    }
    
    .chatbot-avatar {
        width: 38px;
        height: 38px;
    }
    
    .chatbot-avatar i {
        font-size: 1.3rem;
    }
    
    .chatbot-info h4 {
        font-size: 0.9375rem;
    }
    
    .chatbot-status {
        font-size: 0.7rem;
    }
    
    .chatbot-minimize,
    .chatbot-close {
        min-width: 36px;
        min-height: 36px;
        font-size: 1.4rem;
    }
    
    .chatbot-close {
        font-size: 1.6rem;
    }
    
    .chatbot-messages {
        padding: 0.875rem 0.75rem;
        gap: 0.875rem;
    }
    
    .message-avatar {
        width: 30px;
        height: 30px;
    }
    
    .message-avatar i {
        font-size: 1rem;
    }
    
    .message-content {
        max-width: 85%;
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }
    
    .message-content p {
        font-size: 0.875rem;
        line-height: 1.55;
    }
    
    .chatbot-quick-replies {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .quick-reply-btn {
        padding: 0.5625rem 1rem;
        font-size: 0.8125rem;
        min-height: 42px;
        min-width: auto;
    }
    
    .chatbot-input-container {
        padding: 0.75rem;
        gap: 0.5625rem;
    }
    
    #chatbotInput {
        padding: 0.6875rem 0.9375rem;
        /* Prevent iOS Safari input-focus zoom */
        font-size: 16px;
        min-height: 46px;
    }
    
    .chatbot-send-btn {
        width: 46px;
        height: 46px;
        min-width: 46px;
        min-height: 46px;
    }
    
    .chatbot-send-btn svg {
        width: 19px;
        height: 19px;
    }
    
    body.rtl .chatbot-toggle {
        left: 16px;
    }
    
    body.rtl .chatbot-container {
        left: 8px;
        right: 8px;
    }
}

/* Prevent iOS Safari input-focus zoom across forms (font-size must be >= 16px) */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    input[type="search"],
    input[type="url"],
    input[type="date"],
    select,
    textarea {
        font-size: 16px;
    }
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.faq-header {
    text-align: center;
    margin-bottom: 4rem;
}

.faq-header .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-header .section-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.faq-category {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.faq-category:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.1);
}

.faq-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.faq-category-icon {
    flex-shrink: 0;
    color: var(--primary-color);
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 12px rgba(0, 180, 216, 0.15);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.25rem 1.5rem;
    text-align: left;
    color: var(--text-light);
    font-size: 1.0625rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question span {
    flex: 1;
    line-height: 1.6;
}

.faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-question {
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.faq-answer ul li {
    margin-bottom: 0.5rem;
}

.faq-answer ul li:last-child {
    margin-bottom: 0;
}

/* Mobile Responsive for FAQ */
@media (max-width: 768px) {
    .faq-section {
        padding: 4rem 0;
    }
    
    .faq-header .section-title {
        font-size: 2rem;
    }
    
    .faq-header .section-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .faq-container {
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .faq-category {
        padding: 1.5rem;
    }
    
    .faq-category-title {
        font-size: 1.25rem;
    }
    
    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 1rem;
        min-height: 44px; /* Ensure proper touch target on mobile */
        display: flex;
        align-items: center;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.25rem 1.25rem 1.25rem;
    }
    
    .faq-answer {
        padding: 0 1.25rem;
    }
}

/* ============================================================
   TUTORING PACKAGES STYLES
   ============================================================ */

.packages-section {
    padding: 4rem 0;
    max-width: 1600px;
    margin: 0 auto;
}

.packages-section .section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.packages-section .section-description {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.package-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.package-tab {
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.package-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.package-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}

.packages-container {
    position: relative;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.packages-grid.active {
    opacity: 1;
    max-height: 5000px;
}

.package-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 180, 216, 0.2);
    border-color: var(--primary-color);
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.package-name {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin: 0;
}

.package-badge {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.package-badge.online {
    background: var(--success-color);
}

.package-badge.bestseller {
    background: var(--primary-color);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.bestseller-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.package-price {
    margin-bottom: 1.5rem;
    text-align: center;
}

.price-amount {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.price-note {
    display: block;
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
}

.package-details {
    flex: 1;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item.highlight {
    background: rgba(0, 180, 216, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin: 0.5rem 0;
    border-bottom: none;
}

.detail-item.rate {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--primary-color);
    font-weight: 600;
}

.detail-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.detail-value {
    color: var(--text-light);
    font-weight: 600;
}

.detail-item.rate .detail-value {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.package-btn {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-height: 44px; /* Ensure proper touch target */
}

.package-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

/* Mobile Responsive for Packages */
@media (max-width: 768px) {
    .packages-section {
        padding: 2rem 0;
    }
    
    .packages-section .section-title {
        font-size: 2rem;
    }
    
    .packages-section .section-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .package-tabs {
        flex-direction: column;
        padding: 0 1rem;
    }
    
    .package-tab {
        width: 100%;
        min-height: 44px; /* Ensure proper touch target on mobile */
        padding: 1rem 1.5rem; /* Increase padding for better touch target */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 1.5rem;
    }
    
    .package-card {
        padding: 1.5rem;
    }
    
    .package-name {
        font-size: 1.5rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
}

/* ============================================================
   SUBJECTS SECTION STYLING
   ============================================================ */
.subjects-section {
    padding: 4rem 0;
    margin: 4rem 0;
}

.subjects-section h2 {
    font-size: 2.5rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.subject-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-light);
    font-size: 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 180, 216, 0.2), transparent);
    transition: left 0.5s ease;
}

.subject-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.3);
    background: rgba(0, 180, 216, 0.1);
}

.subject-card:hover::before {
    left: 100%;
}

/* ============================================================
   TUTORS LIST SECTION STYLING
   ============================================================ */
.tutors-list {
    padding: 4rem 0;
    margin: 4rem 0;
    /* When navigating to #tutors / #available-coaches, keep the title visible below the fixed header */
    scroll-margin-top: 120px;
}

.tutors-list h2 {
    font-size: 2.5rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tutors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.no-tutors {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    border-style: dashed;
}

.no-tutors p {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin: 0;
    padding: 2rem;
    background: rgba(0, 180, 216, 0.05);
    border-radius: 12px;
    display: inline-block;
}

/* ============================================================
   COACHING SECTION ENHANCEMENTS
   ============================================================ */
.coaching-section {
    padding: 4rem 0;
}

.coaching-intro {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.coaching-intro .intro-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.coaching-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.coaching-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.coaching-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 32px rgba(0, 180, 216, 0.25);
    background: rgba(0, 180, 216, 0.05);
}

.coaching-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

.coaching-card h3 {
    color: var(--text-light);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.coaching-card p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    flex-grow: 1;
}

.coaching-features {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 1.5rem;
    background: rgba(0, 180, 216, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.coaching-features li {
    color: var(--text-light);
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.coaching-features li:hover {
    color: var(--primary-color);
}

.coaching-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.25rem;
}

.coaching-process {
    margin: 4rem 0;
    padding: 4rem 0;
    background: rgba(0, 180, 216, 0.03);
    border-radius: 24px;
}

.coaching-process h2 {
    font-size: 2.5rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.process-step {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.2);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

.process-step h4 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.process-step p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
}

.cta-section {
    margin: 4rem 0;
    padding: 4rem 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-section p {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

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

/* Instructor Filter Section Styles */
.instructor-filter-section {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.08) 0%, rgba(0, 151, 199, 0.12) 100%);
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 180, 216, 0.2);
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.1), 
                0 0 0 1px rgba(0, 180, 216, 0.05) inset;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.instructor-filter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color) 20%, 
        var(--primary-light) 50%, 
        var(--primary-color) 80%, 
        transparent 100%);
    animation: shimmer 3s ease-in-out infinite;
}

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

.instructor-filter-title {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 180, 216, 0.3);
    position: relative;
    display: inline-block;
}

.instructor-filter-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

.instructor-filter-description {
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.instructor-filter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.instructor-filter-label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-light);
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

.instructor-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    max-height: 350px;
    overflow-y: auto;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(10, 25, 41, 0.6) 0%, rgba(6, 20, 29, 0.8) 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 180, 216, 0.15);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2) inset,
                0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.instructor-courses-grid::-webkit-scrollbar {
    width: 8px;
}

.instructor-courses-grid::-webkit-scrollbar-track {
    background: rgba(10, 25, 41, 0.3);
    border-radius: 4px;
}

.instructor-courses-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    border-radius: 4px;
    transition: background 0.3s;
}

.instructor-courses-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-light), var(--primary-color));
}

.course-category-group {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 180, 216, 0.05);
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.course-category-group:hover {
    background: rgba(0, 180, 216, 0.08);
    transform: translateX(3px);
}

.course-category-title {
    color: var(--primary-light);
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.9rem;
    opacity: 0.95;
}

.course-category-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.course-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    position: relative;
}

.course-checkbox-label::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 1px;
    background: linear-gradient(135deg, var(--primary-color), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-checkbox-label:hover {
    background: rgba(0, 180, 216, 0.1);
    border-color: rgba(0, 180, 216, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.15);
}

.course-checkbox-label:hover::before {
    opacity: 1;
}

.course-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.course-checkbox-label input[type="checkbox"]:checked {
    transform: scale(1.1);
}

.course-checkbox-label span {
    color: var(--text-light);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    flex: 1;
}

.course-checkbox-label input[type="checkbox"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.course-checkbox-label:has(input[type="checkbox"]:checked) {
    background: rgba(0, 180, 216, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 180, 216, 0.2),
                0 4px 12px rgba(0, 180, 216, 0.2);
}

.course-checkbox-label:has(input[type="checkbox"]:checked)::before {
    opacity: 1;
}

.instructor-filter-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 180, 216, 0.2);
}

.instructor-filter-btn {
    padding: 0.875rem 2.5rem;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3),
                0 0 0 0 rgba(0, 180, 216, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.instructor-filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.instructor-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.4),
                0 0 0 4px rgba(0, 180, 216, 0.1);
}

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

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

.instructor-clear-btn {
    padding: 0.875rem 1.75rem;
    background: transparent;
    border: 1px solid rgba(0, 180, 216, 0.4);
    color: var(--text-light);
    transition: all 0.3s ease;
}

.instructor-clear-btn:hover {
    background: rgba(0, 180, 216, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.2);
}

.filtered-instructors-section {
    margin-top: 2rem;
}

.filtered-instructors-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.filtered-instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.instructor-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.instructor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 180, 216, 0.2);
    border-color: var(--primary-color);
}

.instructor-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.instructor-card-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.instructor-card-info {
    flex: 1;
}

.instructor-card-name {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.instructor-card-specialization {
    margin: 0.25rem 0 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.instructor-card-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.instructor-card-rating .star {
    color: #666;
    font-size: 1.2rem;
    display: inline-block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    z-index: auto !important;
}

.instructor-card-rating .star.filled {
    color: #FFD700;
}

.instructor-card-rating .rating-value {
    margin-left: 0.5rem;
    color: var(--text-muted);
}

.instructor-card-button {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    text-align: center;
    width: 100%;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    transition: all 0.3s;
}

.instructor-card-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.no-instructors-message {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Wide Screen Styles for Instructor Filter */
@media (min-width: 1400px) {
    .instructor-courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .course-category-items {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .filtered-instructors-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

/* Responsive Styles for Instructor Filter */
@media (max-width: 768px) {
    .instructor-filter-section {
        padding: 1.5rem;
    }
    
    .instructor-filter-title {
        font-size: 1.3rem;
    }
    
    .instructor-courses-grid {
        grid-template-columns: 1fr;
        max-height: 400px;
    }
    
    .course-category-items {
        grid-template-columns: 1fr;
    }
    
    .instructor-filter-actions {
        flex-direction: column;
    }
    
    .instructor-filter-btn,
    .instructor-clear-btn {
        width: 100%;
    }
    
    .filtered-instructors-grid {
        grid-template-columns: 1fr;
    }
    
    .instructor-card {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .instructor-filter-section {
        padding: 1rem;
    }
    
    .instructor-filter-title {
        font-size: 1.2rem;
    }
    
    .instructor-card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .instructor-card-avatar {
        width: 80px;
        height: 80px;
    }
}

/* Responsive Styles for New Sections */
@media (max-width: 768px) {
    .hero-robot-image {
        width: 250px;
        max-height: 300px;
        min-width: 200px; /* Ensure minimum touch target */
        min-height: 200px;
    }
    
    .subjects-section h2,
    .tutors-list h2,
    .coaching-process h2,
    .cta-section h2 {
        font-size: 2rem;
    }
    
    #coaching-filter h2,
    .coaching-section #coaching-filter h2 {
        font-size: 2rem;
    }
    
    .university-section h2,
    .projects-section h2,
    .assignments-section h2,
    .adhd-section h2 {
        font-size: 1.75rem;
    }
    
    .subjects-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
        padding: 0 1rem;
    }
    
    #coaching-filter .subjects-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }
    
    .subject-card {
        padding: 1.5rem 1rem;
        font-size: 1.1rem;
    }
    
    .category-toggle {
        padding: 1.25rem 1.5rem;
    }
    
    .category-name {
        font-size: 1.15rem;
    }
    
    .category-subjects {
        padding: 1.5rem;
    }
    
    .subject-checkbox-label {
        padding: 0.875rem 1rem;
    }
    
    .subject-checkbox-label .subject-link {
        font-size: 1rem;
    }
    
    .tutoring-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-filter-tutors,
    .btn-view-all {
        width: 100%;
        padding: 1rem 2rem;
    }
    
    .tutors-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .coaching-types {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .coaching-card {
        padding: 2rem 1.5rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .cta-section {
        padding: 3rem 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons a {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-robot-image {
        width: 200px;
        max-height: 250px;
        min-width: 150px; /* Ensure minimum touch target on small devices */
        min-height: 150px;
    }
    
    .subjects-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    #coaching-filter .subjects-grid {
        grid-template-columns: 1fr;
    }
    
    .subject-card {
        padding: 1.25rem 0.75rem;
        font-size: 1rem;
    }
    
    .category-toggle {
        padding: 1rem 1.25rem;
    }
    
    .category-name {
        font-size: 1rem;
    }
    
    .category-subjects {
        padding: 1rem;
    }
    
    .subject-checkbox-label {
        padding: 0.75rem;
    }
    
    .subject-checkbox-label .subject-link {
        font-size: 0.95rem;
    }
    
    #selected-subjects-indicator {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    #clear-selections {
        margin-left: 0.5rem;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* ============================================================
   CUSTOM NOTIFICATION SYSTEM
   ============================================================ */

/* Notification Container */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    pointer-events: none;
}

/* Individual Notification */
.notification {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 100%;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.hide {
    opacity: 0;
    transform: translateX(400px);
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-message {
    flex: 1;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.notification-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.notification-close:hover {
    color: var(--text-light);
}

/* Notification Types */
.notification-success {
    border-left: 4px solid var(--success-color);
}

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

.notification-error {
    border-left: 4px solid var(--error-color);
}

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

.notification-warning {
    border-left: 4px solid var(--warning-color);
}

.notification-warning .notification-icon {
    color: var(--warning-color);
}

.notification-info {
    border-left: 4px solid var(--primary-color);
}

.notification-info .notification-icon {
    color: var(--primary-color);
}

/* Confirmation Modal */
.confirmation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.confirmation-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.confirmation-overlay.hide {
    opacity: 0;
}

.confirmation-modal {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.confirmation-overlay.show .confirmation-modal {
    transform: scale(1);
}

.confirmation-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.confirmation-header h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin: 0;
}

.confirmation-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.confirmation-close:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.1);
}

.confirmation-body {
    padding: 1.5rem;
}

.confirmation-body p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.confirmation-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-confirm-cancel,
.btn-confirm-ok {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-confirm-cancel {
    background: var(--text-muted);
    color: var(--text-light);
}

.btn-confirm-cancel:hover {
    background: #666;
    transform: translateY(-2px);
}

.btn-confirm-ok {
    background: var(--primary-color);
    color: var(--text-light);
}

.btn-confirm-ok:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Responsive Notification Styles */
@media (max-width: 768px) {
    #notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    .notification.hide {
        transform: translateY(-100px);
    }
    
    .confirmation-modal {
        width: 95%;
        margin: 1rem;
    }
    
    .confirmation-footer {
        flex-direction: column-reverse;
    }
    
    .btn-confirm-cancel,
    .btn-confirm-ok {
        width: 100%;
    }
}

/* ============================================================
   TERMS & CONDITIONS AGREEMENT SECTION
   ============================================================ */
.agreement-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(0, 180, 216, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.terms-toggle-container {
    margin-bottom: 1rem;
}

.terms-toggle-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.terms-toggle-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

.toggle-icon {
    font-size: 0.9rem;
    transition: transform 0.3s;
}

.terms-content-wrapper {
    margin: 1.5rem 0;
    max-height: 600px;
    overflow-y: auto;
    padding: 1.5rem;
    background: rgba(10, 25, 41, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.terms-agreement-section {
    color: var(--text-light);
    line-height: 1.8;
}

.terms-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.terms-header h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

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

.terms-intro {
    font-weight: 500;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(0, 180, 216, 0.1);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

.terms-section {
    margin: 2rem 0;
}

.terms-section h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.terms-subsection {
    margin: 1.5rem 0;
    padding-left: 1rem;
}

.terms-subsection h5 {
    color: var(--primary-light);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.terms-subsection p {
    margin: 0.75rem 0;
    color: var(--text-light);
}

.terms-subsection ul {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
    color: var(--text-light);
}

.terms-subsection ul li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.terms-subsection strong {
    color: var(--primary-light);
}

.agreement-checkboxes {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.agreement-checkbox {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.3s;
}

.agreement-checkbox:hover {
    border-color: var(--primary-color);
    background: rgba(0, 180, 216, 0.05);
}

.agreement-checkbox input[type="checkbox"]:checked ~ span {
    color: var(--primary-light);
    font-weight: 500;
}

.agreement-checkbox input[type="checkbox"]:checked ~ .agreement-checkbox {
    border-color: var(--primary-color);
    background: rgba(0, 180, 216, 0.1);
}

.required {
    color: #ff6b6b;
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .agreement-section {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .terms-content-wrapper {
        max-height: 500px;
        padding: 1rem;
    }
    
    .terms-header h3 {
        font-size: 1.3rem;
    }
    
    .terms-section h4 {
        font-size: 1.2rem;
    }
    
    .terms-subsection {
        padding-left: 0.5rem;
    }
    
    .agreement-checkbox {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
}

/* ============================================================
   ONBOARDING PAGE STYLES
   ============================================================ */
.onboarding-section {
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
    position: relative;
    z-index: 1;
    background: transparent; /* Inherit from main */
}

.onboarding-section .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.onboarding-section .page-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile Showcase */
.mobile-showcase {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.mobile-screen {
    width: 320px;
    height: 640px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.mobile-header {
    height: 40px;
    background: var(--bg-dark);
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.mobile-status-bar {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.mobile-content {
    height: calc(100% - 60px);
    background: var(--bg-dark);
    border-radius: 0 0 12px 12px;
    padding: 1.5rem;
    overflow-y: auto;
    color: var(--text-light);
}

.mobile-nav {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.course-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.course-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.2);
}

.course-item span {
    flex: 1;
    color: var(--text-light);
}

.course-item small {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
    font-size: 1.5rem;
}

/* Signup Screen */
.signup-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-mobile {
    margin-bottom: 2rem;
}

.logo-text-mobile {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.welcome-text {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-align: center;
}

.signup-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.signup-form .form-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.signup-form .form-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 180, 216, 0.2);
}

.signup-form .form-group svg {
    flex-shrink: 0;
}

.signup-form .form-group input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 0.9rem;
    outline: none;
}

.signup-form .form-group input::placeholder {
    color: var(--text-muted);
}

.signup-btn {
    padding: 0.875rem;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.signup-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

.login-link {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 1rem;
}

.login-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Tutor Match Screen */
.tutor-match {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.tutor-title {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.tutor-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tutor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.5rem;
}

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

.tutor-category {
    display: block;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.tutor-name {
    color: var(--text-light);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tutor-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 0.875rem;
}

.start-lesson-btn {
    padding: 0.875rem 2rem;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.start-lesson-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

/* Platform Showcase */
.platform-showcase {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 4rem;
}

.laptop-mockup {
    width: 800px;
    max-width: 100%;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.laptop-screen {
    background: var(--bg-dark);
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.website-preview {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.website-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

.website-logo {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.website-nav {
    display: flex;
    gap: 1.5rem;
}

.website-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.website-nav a:hover {
    color: var(--primary-color);
}

.website-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
}

.website-hero h2 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.get-started-btn {
    padding: 0.875rem 2rem;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.get-started-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

.mobile-mockup-small {
    width: 280px;
    height: 560px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.mobile-screen-small {
    height: 100%;
    background: var(--bg-dark);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mobile-content-small h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.topics-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.topic-item {
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    text-align: center;
    transition: all 0.3s ease;
}

.topic-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .onboarding-section .page-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .mobile-showcase {
        flex-direction: column;
        align-items: center;
    }
    
    .platform-showcase {
        flex-direction: column;
    }
    
    .laptop-mockup {
        width: 100%;
        max-width: 100%;
    }
    
    .mobile-mockup-small {
        width: 100%;
        max-width: 320px;
    }
}

/* ============================================
   Scroll Animations - Fade, Slide Effects
   ============================================ */

/* Base animation class - elements start hidden */
.scroll-animate {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Fade in animation */
.scroll-fade {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.scroll-fade.animate {
    opacity: 1;
}

/* Slide up animation */
.scroll-slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-slide-up.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Slide down animation */
.scroll-slide-down {
    opacity: 0;
    transform: translateY(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-slide-down.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Slide left animation */
.scroll-slide-left {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-slide-left.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Slide right animation */
.scroll-slide-right {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-slide-right.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Scale up animation */
.scroll-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Stagger delay classes for sequential animations */
.scroll-delay-1 {
    transition-delay: 0.1s;
}

.scroll-delay-2 {
    transition-delay: 0.2s;
}

.scroll-delay-3 {
    transition-delay: 0.3s;
}

.scroll-delay-4 {
    transition-delay: 0.4s;
}

.scroll-delay-5 {
    transition-delay: 0.5s;
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-animate,
    .scroll-fade,
    .scroll-slide-up,
    .scroll-slide-down,
    .scroll-slide-left,
    .scroll-slide-right,
    .scroll-scale {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Mobile optimizations - faster animations */
@media (max-width: 768px) {
    .scroll-fade,
    .scroll-slide-up,
    .scroll-slide-down,
    .scroll-slide-left,
    .scroll-slide-right,
    .scroll-scale {
        transition-duration: 0.5s;
    }
}

/* ============================================
   Legal Pages (Privacy Policy, Terms, etc.)
   ============================================ */

.legal-page-section {
    padding: 4rem 0;
    min-height: 80vh;
    position: relative;
    z-index: 1;
}

.legal-page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.legal-page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-page-meta {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin: 0;
}

.legal-page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.legal-intro {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    border-left: 4px solid var(--primary-color);
}

.legal-intro p {
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1.8;
    margin: 0;
}

.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    margin-top: 0;
}

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

.legal-section ul {
    color: var(--text-light);
    line-height: 1.8;
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-section li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.legal-section li strong {
    color: var(--primary-light);
    font-weight: 600;
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-section a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Responsive Styles for Legal Pages */
@media (max-width: 768px) {
    .legal-page-section {
        padding: 2rem 0;
    }
    
    .legal-page-title {
        font-size: 2.25rem;
    }
    
    .legal-page-meta {
        font-size: 0.875rem;
    }
    
    .legal-page-content {
        padding: 0 1rem;
    }
    
    .legal-intro {
        padding: 1.5rem;
    }
    
    .legal-intro p {
        font-size: 1rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section p,
    .legal-section li {
        font-size: 0.9375rem;
    }
    
    .legal-section ul {
        padding-left: 1.5rem;
    }
}

@media (max-width: 480px) {
    .legal-page-title {
        font-size: 1.875rem;
    }
    
    .legal-intro {
        padding: 1.25rem;
    }
    
    .legal-section h2 {
        font-size: 1.375rem;
    }
    
    .legal-section ul {
        padding-left: 1.25rem;
    }
}


