/* ============================================================
   Homepage mobile polish — 2026-05-18
   Tightens every section on the index.html homepage for phones.
   Loaded AFTER styles.css so its overrides win on equal specificity.
   Scope is `.hero`, `.partners-strip`, `.about-section`, `.courses-section`,
   `.internship-section`, `.job-section`, `.consultation-section`,
   `.testimonials-section`, `.footer`. The `.platform-section` already has
   its own mobile block inline in index.html.
   ============================================================ */

/* -------- Tablet (≤900px) — tighten container side gutters -------- */
@media (max-width: 900px) {
    .container { padding-left: 1rem; padding-right: 1rem; }
}

/* =============================================================
   Phone (≤720px)
   ============================================================= */
@media (max-width: 720px) {

    /* ===== Section headers — uniform shrink ===== */
    .section-header { margin-bottom: 1.5rem; }
    .section-header h2 { font-size: 1.5rem !important; line-height: 1.25; }
    .section-header p { font-size: 0.9rem; line-height: 1.5; }

    /* ===== HERO ===== */
    .hero { padding-top: 5.5rem !important; padding-bottom: 2rem !important; }
    .hero-content { gap: 1.5rem !important; }
    .hero-eyebrow { font-size: 0.68rem !important; padding: 0.35rem 0.8rem !important; }
    .hero-text h1, .hero-content h1 { font-size: 1.55rem !important; line-height: 1.2 !important; }
    .hero-text p, .hero-content p { font-size: 0.92rem !important; line-height: 1.55 !important; }
    .hero-buttons { flex-direction: column !important; gap: 0.6rem !important; align-items: stretch !important; }
    .hero-buttons .btn, .hero-buttons a { width: 100%; justify-content: center; padding: 0.85rem 1rem !important; font-size: 0.92rem !important; }

    /* Hero stats bar — 2x2 grid, drop the dividers since they look weird wrapped */
    .hero-stats-bar { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; padding: 0.85rem !important; gap: 0.6rem 0.4rem !important; }
    .hs-divider { display: none !important; }
    .hs-stat { flex-direction: column; align-items: flex-start; gap: 0.1rem; }
    .hs-num { font-size: 1.1rem !important; }
    .hs-lbl { font-size: 0.72rem !important; }

    /* Hero console — keep but compact, drop the "Source" column to fit cleanly */
    .hero-console { margin-top: 1rem !important; border-radius: 12px !important; }
    .hc-chrome { padding: 0.5rem 0.7rem !important; gap: 0.3rem; }
    .hc-status { font-size: 0.6rem; }
    .hc-tabs { padding: 0.35rem !important; gap: 0.25rem !important; }
    .hc-tab { font-size: 0.62rem !important; padding: 0.3rem 0.5rem !important; gap: 0.2rem !important; }
    .hc-tab img { width: 12px !important; height: 12px !important; }
    .hc-body { font-size: 0.6rem !important; padding: 0.45rem !important; }
    .hc-row { grid-template-columns: 18px 1fr 0.7fr 0.7fr 0.7fr !important; gap: 0.25rem !important; padding: 0.35rem 0.4rem !important; }
    .hc-row > :nth-child(3) { display: none !important; } /* hide "Source" column on phones */
    .hc-row.hc-head > :nth-child(3) { display: none !important; }
    .hc-cell-name { font-size: 0.6rem; }
    .hc-pill, .hc-action { font-size: 0.55rem !important; padding: 0.1rem 0.3rem !important; }
    .hc-footer { padding: 0.5rem 0.7rem !important; font-size: 0.62rem !important; }
    .hp-trust-line { font-size: 0.72rem; margin-top: 0.6rem; text-align: center; }

    /* ===== PARTNERS STRIP ===== */
    .partners-strip { padding: 1.5rem 0 !important; }
    .ps-label { font-size: 0.72rem !important; margin-bottom: 0.9rem; }
    .ps-row { gap: 0.9rem 1.2rem !important; justify-content: center; }
    .ps-mark { font-size: 0.85rem !important; }
    .ps-tcs, .ps-ibm, .ps-csco { font-size: 0.95rem !important; }

    /* ===== ABOUT SECTION ===== */
    .about-section { padding: 2rem 0 !important; }
    .about-grid { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
    .about-content p { font-size: 0.93rem; line-height: 1.6; }
    .about-features { grid-template-columns: 1fr 1fr !important; gap: 0.7rem !important; }
    .about-feature { font-size: 0.78rem !important; padding: 0.7rem !important; gap: 0.5rem !important; }
    .about-feature .af-icon { width: 32px !important; height: 32px !important; }
    .about-feature .af-icon svg { width: 16px; height: 16px; }
    /* About stats — 2x2 grid (not 4-col, not 1-col) */
    .about-stats { grid-template-columns: repeat(2, 1fr) !important; gap: 0.7rem !important; }
    .stat-card { padding: 1rem 0.8rem !important; border-radius: 12px !important; text-align: center; }
    .stat-card h3 { font-size: 1.6rem !important; margin-bottom: 0.25rem !important; }
    .stat-card p { font-size: 0.78rem !important; }

    /* ===== COURSES SECTION ===== */
    .courses-section { padding: 2rem 0 !important; }
    .courses-grid { grid-template-columns: 1fr !important; gap: 1rem !important; }

    /* ===== INTERNSHIP + JOB SECTIONS (shared `.form-container`) ===== */
    .internship-section, .job-section { padding: 2rem 0 !important; }
    .form-container { grid-template-columns: 1fr !important; gap: 1.5rem !important; display: grid !important; }
    .form-info h3, .application-form h3 { font-size: 1.1rem !important; margin-bottom: 0.85rem !important; }
    .form-info ul { padding-left: 0; list-style: none; }
    .form-info li { font-size: 0.88rem; line-height: 1.6; }
    .application-form { padding: 1.25rem !important; border-radius: 12px !important; }
    .application-form .form-group { margin-bottom: 0.85rem !important; }
    .application-form label { font-size: 0.85rem !important; margin-bottom: 0.35rem !important; }
    .application-form input,
    .application-form select,
    .application-form textarea {
        padding: 0.7rem 0.85rem !important;
        font-size: 0.92rem !important;
        width: 100%;
        box-sizing: border-box;
    }
    .application-form .btn { width: 100%; padding: 0.85rem !important; font-size: 0.95rem !important; }

    /* ===== CONSULTATION SECTION ===== */
    .consultation-section { padding: 2rem 0 !important; }
    .consultation-section .consultation-content { padding: 1.5rem !important; border-radius: 14px !important; }
    .consultation-section h2 { font-size: 1.4rem !important; }
    .consultation-section p { font-size: 0.9rem; }

    /* ===== TESTIMONIALS ===== */
    .testimonials-section { padding: 2rem 0 !important; }
    .testimonials-grid { gap: 0.9rem !important; }
    .testi-card, .testimonial-card { padding: 1.1rem !important; border-radius: 12px !important; }
    .testi-text, .testimonial-text { font-size: 0.88rem !important; line-height: 1.6 !important; }
    .testi-author, .testimonial-author { gap: 0.6rem; }
    .testi-name, .testimonial-name { font-size: 0.92rem; }
    .testi-role, .testimonial-role { font-size: 0.75rem; }

    /* ===== FOOTER ===== */
    .footer { padding: 2rem 0 1rem !important; }
    .footer .footer-grid { gap: 1.5rem !important; }
    .footer-brand p { font-size: 0.85rem; }
    .footer-title { font-size: 0.72rem !important; margin-bottom: 0.6rem !important; }
    .footer .footer-links a { font-size: 0.85rem !important; padding: 0.15rem 0; }
    .footer-bottom { font-size: 0.75rem !important; margin-top: 1.25rem !important; }
}

/* =============================================================
   Tiny phones (≤380px) — squeeze the last bits
   ============================================================= */
@media (max-width: 380px) {
    .container { padding-left: 0.75rem; padding-right: 0.75rem; }
    .section-header h2 { font-size: 1.35rem !important; }
    .hero-text h1, .hero-content h1 { font-size: 1.35rem !important; }
    .hs-num { font-size: 1rem !important; }
    .stat-card h3 { font-size: 1.4rem !important; }
    /* Hero console — drop one more column on the tiniest screens */
    .hc-row { grid-template-columns: 16px 1fr 0.7fr 0.7fr !important; }
    .hc-row > :nth-child(4) { display: none !important; } /* hide "Dest" too */
    .hc-row.hc-head > :nth-child(4) { display: none !important; }
}
