/* =========================================================================
   MegaTech Technologies Academy
   Responsive Stylesheet - css/responsive.css
   Breakpoints: 1200, 992, 768, 576, 480, 360
   ========================================================================= */

/* ============================ 1200px ============================ */
@media (max-width: 1200px) {
    .container {
        padding: 0 32px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .nav-link {
        padding: 8px 11px;
        font-size: 0.9rem;
    }

    .day-cards {
        gap: 20px;
    }
}

/* ============================ 992px (Tablet) ============================ */
@media (max-width: 992px) {
    .section {
        padding: 64px 0;
    }

    .section-head {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    /* Mobile nav */
    .menu-btn {
        display: flex;
    }

    #nav-menu {
        position: fixed;
        top: 78px;
        right: 0;
        width: 280px;
        max-width: 85vw;
        height: calc(100vh - 78px);
        background: var(--bg);
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        padding: 24px 0;
        border-left: 1px solid rgba(16, 39, 71, 0.08);
    }

    #nav-menu.open {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 0 16px;
    }

    .nav-link {
        display: block;
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: var(--radius-sm);
    }

    .nav-cta {
        margin-top: 8px;
        text-align: center;
    }

    /* Hero */
    .hero {
        padding: 56px 0 72px;
    }

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

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-image-wrap {
        max-width: 560px;
        margin: 0 auto;
    }

    /* Two column layouts stack */
    .two-col,
    .trainer-col {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .about-image {
        height: 320px;
    }

    .trainer-image {
        height: 400px;
    }

    /* Day cards: 2 columns then 1 */
    .day-cards {
        grid-template-columns: 1fr 1fr;
    }

    .day-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 600px;
        margin: 0 auto;
    }

    /* Gains */
    .gains-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Courses single column */
    .courses-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 40px;
    }

    /* Requirements */
    .req-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 18px;
    }

    /* Support */
    .support-wrap {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* Details */
    .details-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .fee-panel {
        position: static;
        max-width: 460px;
        margin: 0 auto;
    }

    /* Register */
    .register-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .register-contact {
        max-width: 460px;
        margin: 0 auto;
        width: 100%;
    }
}

/* ============================ 768px (Tablet/Mobile) ============================ */
@media (max-width: 768px) {
    :root {
        --max-width: 720px;
    }

    .container {
        padding: 0 24px;
    }

    .section {
        padding: 52px 0;
    }

    .section-head {
        margin-bottom: 36px;
    }

    .section-title {
        font-size: 1.55rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    /* Hero */
    .hero {
        padding: 48px 0 60px;
        text-align: center;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-intro {
        font-size: 0.9rem;
    }

    .hero-indicators {
        justify-content: center;
    }

    .indicator {
        font-size: 0.82rem;
        padding: 8px 14px;
    }

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

    .hero-image-badge {
        left: 12px;
        bottom: -16px;
        padding: 12px 18px;
    }

    .badge-amount {
        font-size: 1.35rem;
    }

    /* Day cards single column */
    .day-cards {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .day-card:nth-child(3) {
        grid-column: auto;
        max-width: none;
    }

    .day-card-header {
        padding: 22px 20px;
    }

    .day-card-body {
        padding: 20px;
    }

    /* Gains single column */
    .gains-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .gain-card {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 18px;
        padding: 22px 20px;
    }

    .gain-icon {
        flex-shrink: 0;
        margin-bottom: 0;
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    /* Course meta grid single column */
    .course-meta-grid {
        grid-template-columns: 1fr;
    }

    /* Download notice stack */
    .download-notice {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px 20px;
    }

    .notice-icon {
        text-align: left;
        font-size: 2.2rem;
    }

    /* Requirements single column */
    .req-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        max-width: 440px;
        margin: 0 auto;
    }

    .req-card {
        padding: 28px 22px;
    }

    /* Details rows stack */
    .detail-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 14px 0;
    }

    .detail-label {
        font-size: 0.82rem;
    }

    /* Footer */
    .footer {
        padding: 36px 0;
    }

    .footer-brand {
        font-size: 1.15rem;
    }
}

/* ============================ 576px (Mobile) ============================ */
@media (max-width: 576px) {
    .container {
        padding: 0 18px;
    }

    .section {
        padding: 44px 0;
    }

    .section-head {
        margin-bottom: 30px;
    }

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

    .nav-container {
        padding: 12px 18px;
    }

    .logo-img {
        height: 40px;
    }

    #nav-menu {
        top: 68px;
        height: calc(100vh - 68px);
    }

    /* Hero */
    .hero {
        padding: 40px 0 52px;
    }

    .hero-title {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-intro {
        font-size: 0.86rem;
    }

    .hero-indicators {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .indicator {
        justify-content: center;
        text-align: center;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta-group .btn {
        width: 100%;
    }

    .hero-image-badge {
        position: static;
        margin-top: 16px;
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        border-left: 4px solid var(--accent);
        max-width: 100%;
    }

    .badge-amount {
        font-size: 1.2rem;
    }

    /* Buttons */
    .btn {
        padding: 13px 22px;
        font-size: 0.95rem;
        width: 100%;
    }

    .btn-small {
        width: auto;
        display: inline-flex;
    }

    /* About / trainer */
    .about-image,
    .trainer-image {
        height: 280px;
    }

    .trainer-name-card {
        bottom: 14px;
        left: 14px;
        right: 14px;
        padding: 12px 16px;
    }

    /* Day cards */
    .day-title {
        font-size: 1.05rem;
    }

    /* Course cards */
    .course-image-wrap {
        height: 180px;
    }

    .course-card-body {
        padding: 20px;
    }

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

    /* Download notice */
    .notice-content h3 {
        font-size: 1.1rem;
    }

    .notice-password {
        font-size: 0.92rem;
    }

    /* Fee panel */
    .fee-amount {
        font-size: 2.4rem;
    }

    .fee-panel {
        padding: 28px 22px;
    }

    /* Form */
    .register-form-wrap {
        padding: 26px 20px;
    }

    .form-group input,
    .form-group select {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    /* FAQ */
    .faq-question {
        padding: 16px 18px;
        font-size: 0.92rem;
        gap: 10px;
    }

    .faq-answer p {
        padding: 0 18px 18px;
        font-size: 0.9rem;
    }

    /* Floating WhatsApp */
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 18px;
        right: 18px;
    }

    .whatsapp-float-icon {
        font-size: 1.45rem;
    }
}

/* ============================ 480px (Small Mobile) ============================ */
@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .section {
        padding: 38px 0;
    }

    .section-title {
        font-size: 1.28rem;
    }

    .section-tag {
        font-size: 0.72rem;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-eyebrow {
        font-size: 0.76rem;
    }

    /* Ensure no overflow */
    body {
        overflow-x: hidden;
    }

    .hero-image,
    .about-image,
    .trainer-image,
    .course-image {
        width: 100%;
    }

    /* Day card headers */
    .day-card-header {
        padding: 20px 18px;
    }

    .day-title {
        font-size: 1rem;
    }

    .day-meta {
        font-size: 0.8rem;
    }

    .day-card-body {
        padding: 18px;
    }

    .topics-list li {
        font-size: 0.88rem;
    }

    /* Course cards */
    .course-card-body {
        padding: 18px;
    }

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

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

    /* Download notice */
    .download-notice {
        padding: 20px 16px;
    }

    .notice-content h3 {
        font-size: 1.02rem;
    }

    .notice-content p {
        font-size: 0.9rem;
    }

    /* Details panel */
    .details-panel {
        padding: 6px 18px;
    }

    .fee-amount {
        font-size: 2.1rem;
    }

    /* Form */
    .register-form-wrap {
        padding: 22px 16px;
    }

    .register-contact {
        padding: 28px 20px;
    }

    /* Footer */
    .footer-brand {
        font-size: 1.05rem;
    }

    .footer-course,
    .footer-location,
    .footer-phone {
        font-size: 0.84rem;
    }
}

/* ============================ 360px (Very Small) ============================ */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .section {
        padding: 32px 0;
    }

    .section-title {
        font-size: 1.18rem;
    }

    .nav-container {
        padding: 10px 12px;
    }

    .logo-img {
        height: 34px;
    }

    #nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
        width: 100%;
        max-width: 100vw;
    }

    .hero-title {
        font-size: 1.25rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-intro {
        font-size: 0.82rem;
    }

    .indicator {
        font-size: 0.76rem;
        padding: 7px 12px;
    }

    .btn {
        padding: 12px 16px;
        font-size: 0.88rem;
    }

    .about-image,
    .trainer-image {
        height: 240px;
    }

    .course-image-wrap {
        height: 160px;
    }

    .day-card-header {
        padding: 18px 14px;
    }

    .day-title {
        font-size: 0.95rem;
    }

    .day-card-body {
        padding: 16px 14px;
    }

    .topics-list li {
        font-size: 0.84rem;
        padding-left: 20px;
    }

    .course-card-body {
        padding: 16px 14px;
    }

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

    .download-notice {
        padding: 16px 12px;
    }

    .notice-content h3 {
        font-size: 0.96rem;
    }

    .notice-password {
        font-size: 0.86rem;
        padding: 8px 14px;
    }

    .fee-amount {
        font-size: 1.9rem;
    }

    .fee-panel {
        padding: 24px 18px;
    }

    .register-form-wrap {
        padding: 20px 14px;
    }

    .register-contact {
        padding: 24px 18px;
    }

    .faq-question {
        padding: 14px 14px;
        font-size: 0.86rem;
    }

    .faq-answer p {
        padding: 0 14px 16px;
        font-size: 0.84rem;
    }

    .footer {
        padding: 28px 0;
    }

    .footer-brand {
        font-size: 1rem;
    }

    .whatsapp-float {
        width: 48px;
        height: 48px;
        bottom: 14px;
        right: 14px;
    }

    .whatsapp-float-icon {
        font-size: 1.3rem;
    }
}
