/* CSS Variables & Reset */
:root {
    --primary-color: #10b981;
    --secondary-color: #0d9488;
    --accent-color: #ffffff;
    --light-color: #f9fafb;
    --dark-color: #1f2937;
    --text-color: #374151;
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --card-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IRANSans', sans-serif;
    background-color: #f9fafb;
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Reduced Motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Skip to main content for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 10000;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
}

.skip-link:focus {
    top: 0;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar, .mobile-sidebar, .overlay, .cta, .footer {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .hero, .features, .courses, .blog, .teachers, .physical-academy, .stats, .exams {
        padding: 2rem 0 !important;
        background: white !important;
    }
}

/* Utility classes for better spacing */
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* Single card layout adjustments */
.courses-grid:has(.course-card:only-child),
.blog-grid:has(.blog-card:only-child) {
    max-width: 500px;
    margin: 0 auto;
}