/* ========================================
   RESPONSIVE DESIGN - Mobile First
   ======================================== */

/* Tablet & Small Desktop */
@media (max-width: 992px) {
    :root {
        --section-padding: 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text-modern h1 {
        font-size: 40px;
    }

    .section-header h2 {
        font-size: 32px;
    }

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

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

/* Mobile & Tablet - Show Mobile Menu */
@media (max-width: 768px) {
    :root {
        --section-padding: 50px;
    }

    /* Fix container width for tablets and mobile */
    .container {
        width: 100% !important;
        padding: 0 20px !important;
    }

    /* Ensure container is full width on mobile */
    .navbar .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 20px !important;
    }

    /* Fix navbar layout for mobile */
    .nav-wrapper {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 16px 0 !important;
    }

    .logo {
        flex-shrink: 0;
        margin-right: auto;
    }

    /* Show mobile menu toggle - positioned at far right */
    .mobile-menu-toggle {
        display: flex !important;
        flex-shrink: 0;
        margin-left: auto !important;
        position: relative !important;
        right: 0 !important;
    }

    /* Hide desktop nav, show as mobile menu */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 30px 30px;
        gap: 20px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right var(--transition);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 12px 0;
        font-size: 16px;
        border-bottom: 1px solid #F0F4F8;
    }

    .nav-links a::after {
        display: none;
    }

    /* Mobile menu overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
        z-index: 998;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Hero Section */
    .hero-content {
        text-align: center;
    }

    .hero-text-modern h1 {
        font-size: 36px;
    }

    .hero-text-modern p {
        font-size: 16px;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .trust-bar {
        justify-content: center;
    }

    /* Sections */
    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 16px;
    }

    .course-grid-modern,
    .why-grid-modern {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .cta-content h2 {
        font-size: 32px;
    }

    .cta-content p {
        font-size: 16px;
    }

    /* Floating Actions */
    .floating-actions {
        bottom: 20px;
        right: 20px;
    }

    .fab-whatsapp,
    .fab-call {
        width: 50px;
        height: 50px;
    }
}

/* Mobile Only */
@media (max-width: 576px) {
    :root {
        --section-padding: 40px;
        --card-padding: 20px;
    }

    /* Fix container width for mobile - this was causing the menu button to appear in center */
    .container {
        width: 100% !important;
        padding: 0 16px !important;
    }

    .navbar .container {
        padding: 0 16px !important;
    }

    .logo {
        font-size: 20px;
    }

    .hero-modern {
        padding: 40px 0 50px;
    }

    .hero-text-modern h1 {
        font-size: 28px;
    }

    .hero-text-modern p {
        font-size: 15px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .btn-primary-large,
    .btn-secondary-large,
    .btn-outline-large {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 12px;
    }

    .trust-bar {
        flex-wrap: wrap;
        gap: 16px;
    }

    .trust-number {
        font-size: 24px;
    }

    .trust-label {
        font-size: 12px;
    }

    .trust-divider {
        display: none;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .section-header p {
        font-size: 14px;
    }

    .course-card-modern h3,
    .why-card-modern h3 {
        font-size: 18px;
    }

    .course-icon,
    .why-icon {
        font-size: 40px;
    }

    .cta-content h2 {
        font-size: 26px;
    }

    .cta-content p {
        font-size: 15px;
    }

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

    .floating-actions {
        bottom: 16px;
        right: 16px;
        gap: 10px;
    }

    .fab-whatsapp,
    .fab-call {
        width: 48px;
        height: 48px;
    }

    .fab-whatsapp svg,
    .fab-call svg {
        width: 20px;
        height: 20px;
    }
}

/* Legacy Support for Other Pages */
@media (max-width: 768px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .course-grid,
    .why-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .final-cta h2 {
        font-size: 26px;
    }

    .final-cta p {
        font-size: 15px;
    }
}

/* ========================================
   RESPONSIVE - NEW SECTIONS
   ======================================== */

/* Tablet */
@media (max-width: 992px) {

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

    .testimonial-nav {
        width: 40px;
        height: 40px;
    }

    .testimonial-prev {
        left: 10px;
    }

    .testimonial-next {
        right: 10px;
    }
}

/* Mobile */
@media (max-width: 768px) {

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

    .testimonial-card {
        padding: 28px 20px;
    }

    .testimonial-text {
        font-size: 15px;
    }

    .testimonial-nav {
        width: 36px;
        height: 36px;
    }

    .testimonial-nav svg {
        width: 20px;
        height: 20px;
    }

    .author-avatar {
        width: 50px;
        height: 50px;
        font-size: 40px;
    }

    .author-info h4 {
        font-size: 16px;
    }

    .author-info p {
        font-size: 13px;
    }

    .success-avatar {
        font-size: 56px;
    }

    .feature-number {
        font-size: 36px;
    }
}

/* Mobile Small */
@media (max-width: 576px) {
    .testimonial-card {
        padding: 24px 16px;
    }

    .testimonial-stars {
        font-size: 20px;
    }

    .testimonial-text {
        font-size: 14px;
    }

    .success-rank {
        font-size: 14px;
        padding: 6px 16px;
    }

    .success-avatar {
        font-size: 48px;
    }

    .success-card h3 {
        font-size: 18px;
    }

    .success-quote {
        font-size: 13px;
    }

    .feature-icon {
        font-size: 40px;
    }

    .feature-card h3 {
        font-size: 18px;
    }

    .feature-card p {
        font-size: 14px;
    }
}