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

@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

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

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-visual {
        height: 400px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .course-card {
        max-height: none;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    body {
        padding-top: 60px;
    }

    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    p {
        font-size: 0.95rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        margin-bottom: 2rem;
    }

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

    .section-title p {
        font-size: 1rem;
    }

    /* ====== HEADER MOBILE ====== */
    .header-content {
        height: 60px;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(5, 8, 16, 0.95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(99, 102, 241, 0.1);
        padding: 1rem 0;
    }

    nav ul.active {
        display: flex;
    }

    nav li {
        width: 100%;
    }

    nav a {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(99, 102, 241, 0.05);
    }

    nav a::after {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .header-right {
        gap: 1rem;
    }

    .header-right .btn {
        display: none;
    }

    /* ====== HERO MOBILE ====== */
    .hero {
        min-height: 60vh;
        padding: 2rem 0;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

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

    .hero-visual {
        display: none;
    }

    /* ====== CONTENT MOBILE ====== */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

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

    /* ====== FORM MOBILE ====== */
    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.75rem 0.875rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* ====== FOOTER MOBILE ====== */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* ====== FILTER TABS MOBILE ====== */
    .filter-tabs {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
    }

    /* ====== COURSE CARD MOBILE ====== */
    .course-image {
        height: 180px;
    }

    .course-body {
        padding: 1.5rem;
    }

    .course-meta {
        gap: 1rem;
        font-size: 0.85rem;
    }

    /* ====== REVIEW CARD MOBILE ====== */
    .review-card {
        padding: 1.5rem;
    }

    .review-header {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .review-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .review-info h4 {
        font-size: 0.9rem;
    }

    .review-info p {
        font-size: 0.8rem;
    }

    /* ====== ACCORDION MOBILE ====== */
    .accordion-header {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .accordion-content {
        padding: 0 1rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    p {
        font-size: 0.9rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    .section {
        padding: 2rem 0;
    }

    .section-title {
        margin-bottom: 1.5rem;
    }

    .section-title h2 {
        font-size: 1.4rem;
    }

    .section-title p {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }

    .card {
        padding: 1rem;
    }

    nav a {
        padding: 0.875rem 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .hero-buttons {
        gap: 0.75rem;
    }

    .filter-tabs {
        gap: 0.3rem;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .course-card {
        margin: 0 auto;
        max-width: 100%;
    }

    .course-title {
        font-size: 1.1rem;
    }

    .course-description {
        font-size: 0.9rem;
    }

    .review-text {
        font-size: 0.9rem;
    }

    .footer-content {
        gap: 1rem;
    }

    .footer-section h4 {
        font-size: 0.95rem;
    }

    .footer-section a {
        font-size: 0.8rem;
    }

    .footer-bottom {
        font-size: 0.75rem;
    }
}

/* ====== LANDSCAPE MODE ====== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
    }
}

/* ====== EXTRA LARGE SCREENS ====== */
@media (min-width: 1920px) {
    h1 {
        font-size: 5rem;
    }

    h2 {
        font-size: 3rem;
    }

    .section {
        padding: 8rem 0;
    }

    .stats-grid {
        gap: 3rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        gap: 3rem;
    }

    .card {
        padding: 2.5rem;
    }

    .container {
        max-width: 1600px;
    }
}

/* ====== PRINT STYLES ====== */
@media print {
    header,
    footer,
    .btn {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    a {
        color: blue;
    }
}
