/*
 ═══════════════════════════════════════════════════════════════
  MORILE TECH ACADEMY — COMPREHENSIVE RESPONSIVE SYSTEM
  Covers: index.html (style.css), signup.html, payment.html
  Breakpoints:
    xs   : 0 – 359px      (tiny phones)
    sm   : 360 – 479px    (small phones)
    md   : 480 – 767px    (phones / phablets)
    lg   : 768 – 1023px   (tablets)
    xl   : 1024 – 1279px  (laptops)
    2xl  : 1280 – 1535px  (desktops)
    3xl  : 1536px+        (large screens)
 ═══════════════════════════════════════════════════════════════
*/

/* ─────────────────────────────────────────
   3XL — 1536px and above
───────────────────────────────────────── */
@media (min-width: 1536px) {
  /* Navbar */
  .navbar { padding: 0 8%; height: 80px; }
  .nav-logo { font-size: 1.5rem; }
  .nav-links { gap: 3rem; }
  .nav-links a { font-size: 1rem; }

  /* Hero */
  .hero-content { max-width: 960px; }
  .hero-heading { font-size: 4.8rem; }
  .hero-desc { font-size: 1.2rem; max-width: 680px; }

  /* About */
  .about { padding: 9rem 8%; }
  .about-container { max-width: 1400px; gap: 7rem; }
  .about-img-main { height: 520px; }

  /* Programs */
  .programs { padding: 9rem 8%; }
  .programs-inner { max-width: 1400px; }

  /* News */
  .news-section { padding: 9rem 8%; }
  .news-section-inner { max-width: 1400px; }

  /* Lecturer */
  .lecturer { padding: 9rem 8%; }
  .lecturer-inner { max-width: 1300px; gap: 7rem; }
  .lecturer-img-col { flex: 0 0 480px; }
  .lec-name { font-size: 3.2rem; }

  /* Contact */
  .contact { padding: 9rem 8%; }
  .contact-inner { max-width: 1300px; }
  .contact-right { flex: 0 0 540px; }

  /* Footer */
  .footer-inner { max-width: 1400px; padding: 5rem 8% 3.5rem; }
}

/* ─────────────────────────────────────────
   2XL — 1280px – 1535px
───────────────────────────────────────── */
@media (min-width: 1280px) and (max-width: 1535px) {
  .navbar { padding: 0 6%; }
  .about { padding: 8rem 6%; }
  .programs { padding: 8rem 6%; }
  .news-section { padding: 8rem 6%; }
  .lecturer { padding: 8rem 6%; }
  .contact { padding: 8rem 6%; }
  .footer-inner { padding: 4.5rem 6% 3rem; }
}

/* ─────────────────────────────────────────
   XL — 1024px – 1279px (laptops)
───────────────────────────────────────── */
@media (min-width: 1024px) and (max-width: 1279px) {
  .navbar { padding: 0 4%; }
  .nav-links { gap: 1.8rem; }

  .about-container { gap: 3.5rem; }
  .about-img-main { height: 400px; }

  .lecturer-inner { gap: 3.5rem; }
  .lecturer-img-col { flex: 0 0 360px; }

  .contact-inner { gap: 3rem; }
  .contact-right { flex: 0 0 420px; }

  .prog-grid { gap: 1.2rem; }
  .news-cards-grid { gap: 1.2rem; }
}

/* ─────────────────────────────────────────
   LG — 768px – 1023px (tablets)
───────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Navbar */
  .navbar { padding: 0 4%; height: 64px; }
  .nav-links { gap: 1.3rem; }
  .nav-links a { font-size: 0.82rem; }
  .btn-signup { font-size: 0.82rem; padding: 0.45rem 1rem; }

  /* Hero */
  .hero { background-attachment: scroll; }
  .hero-content { max-width: 680px; }
  .hero-heading { font-size: 2.8rem; }

  /* About */
  .about { padding: 5rem 4%; }
  .about-container { gap: 3rem; }
  .about-img-main { height: 340px; }
  .about-card-left, .about-card-right { display: none; }

  /* Showcase */
  .showcase { padding: 5rem 4%; }
  .laptop { width: 240px; }
  .laptop-screen { height: 152px; }
  .laptop-left  { transform: translateX(44px) rotateY(20deg) scale(0.78); margin-right: -44px; }
  .laptop-right { transform: translateX(-44px) rotateY(-20deg) scale(0.78); margin-left: -44px; }
  .screen-preview iframe { transform: scale(0.182); }

  /* Programs */
  .programs { padding: 5rem 4%; }
  .prog-grid { grid-template-columns: 1fr 1fr; }
  .prog-featured { transform: scale(1); }
  .prog-featured:hover { transform: translateY(-6px); }

  /* News */
  .news-section { padding: 5rem 4%; }
  .news-cards-grid { grid-template-columns: repeat(2, 1fr); }

  /* Lecturer */
  .lecturer { padding: 5rem 4%; }
  .lecturer-inner { gap: 3rem; }
  .lecturer-img-col { flex: 0 0 300px; }
  .lec-photo { aspect-ratio: 3/4; }

  /* Contact */
  .contact { padding: 5rem 4%; }
  .contact-inner { gap: 3rem; }
  .contact-right { flex: 0 0 360px; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-newsletter-col { grid-column: span 2; }
  .footer-newsletter-form { flex-direction: row; }
  .footer-newsletter-form input { flex: 1; }
  .footer-newsletter-form button { width: auto; }
}

/* ─────────────────────────────────────────
   MD — 480px – 767px (phones / phablets)
───────────────────────────────────────── */
@media (max-width: 767px) {
  /* Navbar */
  .navbar { padding: 0 5%; height: 62px; }
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: block; }

  /* Hero */
  .hero { background-attachment: scroll; padding-top: 62px; }
  .hero-content { padding: calc(62px + 1.5rem) 1.25rem 2rem; max-width: 100%; }
  .hero-heading { font-size: 2rem; line-height: 1.2; }
  .hero-desc { font-size: 0.92rem; max-width: 100%; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-primary { width: 100%; max-width: 320px; text-align: center; }
  .icon-5, .icon-6, .icon-7, .icon-8, .icon-9, .icon-10 { display: none; }

  /* About */
  .about { padding: 4rem 5%; }
  .about-container { flex-direction: column; gap: 2.5rem; }
  .about-img-main { height: 260px; }
  .about-desc { max-width: 100%; }
  .about-card-left, .about-card-right { display: none; }

  /* Showcase */
  .showcase { padding: 4rem 5%; }
  .laptop-stage { flex-direction: column; align-items: center; perspective: none; min-height: auto; }
  .laptop-left, .laptop-right { display: none; }
  .laptop-center { transform: none !important; margin: 0; }
  .laptop { width: 290px; }
  .laptop-screen { height: 183px; }
  .screen-preview iframe { transform: scale(0.22); }
  .graph-labels { gap: 1.2rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }

  /* Programs */
  .programs { padding: 4rem 5%; }
  .prog-grid { grid-template-columns: 1fr; }
  .prog-featured { transform: scale(1); }
  .prog-featured:hover { transform: translateY(-6px); }

  /* News */
  .news-section { padding: 4rem 5%; }
  .news-cards-grid { grid-template-columns: 1fr; }
  .news-section-header { flex-direction: column; align-items: flex-start; }

  /* Lecturer */
  .lecturer { padding: 4rem 5%; }
  .lecturer-inner { flex-direction: column; gap: 2.5rem; }
  .lecturer-img-col { flex: unset; width: 100%; max-width: 320px; margin: 0 auto; }
  .lec-highlights { grid-template-columns: 1fr; }
  .lec-badge { left: 10px; }

  /* Contact */
  .contact { padding: 4rem 5%; }
  .contact-inner { flex-direction: column; gap: 2.5rem; }
  .contact-right { flex: unset; width: 100%; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; padding: 3rem 5% 2rem; }
  .footer-newsletter-col { grid-column: span 2; }
  .footer-newsletter-form { flex-direction: column; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 0.6rem; }

  /* News modal */
  .news-modal { padding: 1.5rem; }
  .news-modal-title { font-size: 0.95rem; }
  .news-modal-body { font-size: 0.8rem; }
}

/* ─────────────────────────────────────────
   SM — 360px – 479px (small phones)
───────────────────────────────────────── */
@media (max-width: 479px) {
  .navbar { height: 58px; }
  .nav-logo { font-size: 1rem; }

  .hero-heading { font-size: 1.75rem; }
  .hero-desc { font-size: 0.88rem; }
  .tagline { font-size: 0.68rem; }
  .floating-icons { display: none; }

  .about { padding: 3.5rem 5%; }
  .about-heading { font-size: 1.6rem; }
  .about-img-main { height: 220px; }

  .showcase { padding: 3.5rem 5%; }
  .showcase-heading { font-size: 1.7rem; }
  .laptop { width: 260px; }
  .laptop-screen { height: 164px; }
  .screen-preview iframe { transform: scale(0.197); }

  .programs { padding: 3.5rem 5%; }
  .programs-title { font-size: 1.7rem; }

  .news-section { padding: 3.5rem 5%; }
  .news-section-title { font-size: 1.6rem; }
  .news-card-img-wrap { height: 180px; }

  .lecturer { padding: 3.5rem 5%; }
  .lec-name { font-size: 1.8rem; }
  .lecturer-img-col { max-width: 280px; }

  .contact { padding: 3.5rem 5%; }
  .contact-title { font-size: 1.7rem; }
  .contact-card { padding: 1.5rem 1.2rem; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-newsletter-col { grid-column: span 1; }
}

/* ─────────────────────────────────────────
   XS — 0 – 359px (tiny phones)
───────────────────────────────────────── */
@media (max-width: 359px) {
  .navbar { height: 54px; padding: 0 4%; }
  .nav-logo { font-size: 0.9rem; }

  .hero-heading { font-size: 1.5rem; }
  .tagline { font-size: 0.62rem; padding: 0.3rem 0.7rem; }
  .btn-primary { font-size: 0.82rem; padding: 0.72rem 1rem; }

  .about-heading { font-size: 1.4rem; }
  .about-img-main { height: 190px; }
  .step-icon { width: 36px; height: 36px; min-width: 36px; }
  .step-body h4 { font-size: 0.85rem; }
  .step-body p  { font-size: 0.75rem; }

  .laptop { width: 230px; }
  .laptop-screen { height: 145px; }
  .screen-preview iframe { transform: scale(0.174); }

  .programs-title { font-size: 1.5rem; }
  .prog-card-body { padding: 1.1rem; }
  .prog-name { font-size: 0.95rem; }

  .news-section-title { font-size: 1.4rem; }
  .news-card-img-wrap { height: 160px; }

  .lec-name { font-size: 1.5rem; }
  .lecturer-img-col { max-width: 240px; }

  .contact-title { font-size: 1.5rem; }
  .contact-card { padding: 1.2rem 1rem; }
  .cf-field input, .cf-field textarea { font-size: 0.78rem; }
}

/* ─────────────────────────────────────────
   LANDSCAPE PHONES (height-constrained)
───────────────────────────────────────── */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .hero { background-attachment: scroll; align-items: flex-start; }
  .hero-content { padding-top: calc(62px + 0.8rem); }
  .hero-heading { font-size: 1.6rem; margin-bottom: 0.6rem; }
  .hero-desc { font-size: 0.85rem; margin-bottom: 1rem; }
  .floating-icons { display: none; }

  .laptop-left, .laptop-right { display: none; }
  .laptop-center { transform: none !important; }
  .laptop { width: 240px; }
  .laptop-screen { height: 152px; }

  .about-container { flex-direction: row; gap: 2rem; }
  .about-img-main { height: 200px; }
  .about-card-left, .about-card-right { display: none; }

  .lecturer-inner { flex-direction: row; gap: 2rem; }
  .lecturer-img-col { flex: 0 0 200px; }
  .lec-photo { aspect-ratio: 3/4; }
}

/* ─────────────────────────────────────────
   HIGH-DPI / RETINA
───────────────────────────────────────── */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero {
    background-image: url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?w=2400&q=90');
  }
}

/* ─────────────────────────────────────────
   REDUCED MOTION
───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   SIGNUP.HTML RESPONSIVE
═══════════════════════════════════════════════════════════════ */

/* LG — tablets: hide Spline, full-width form */
@media (max-width: 1023px) {
  .left-panel { display: none; }
  .right-panel {
    width: 100%;
    min-width: unset;
    padding: 2.5rem 2rem;
    overflow-y: auto;
    align-items: flex-start;
    padding-top: 3rem;
  }
  .form-box { max-width: 520px; margin: 0 auto; }
  html:has(.signup-page), body.signup-page { overflow: auto; height: auto; }
  .page-wrap { height: auto; min-height: 100vh; overflow: auto; }
}

/* MD — phones */
@media (max-width: 767px) {
  .right-panel { padding: 2rem 1.5rem; }
  .form-heading { font-size: 1.3rem; }
  .form-sub { font-size: 0.78rem; }
  .field { margin-bottom: 0.75rem; }
  .field input, .field textarea, .select-wrap select {
    font-size: 0.8rem;
    padding: 0.58rem 0.85rem;
  }
  .apply-btn { font-size: 0.85rem; padding: 0.7rem 1rem; }
}

/* SM — small phones */
@media (max-width: 479px) {
  .right-panel { padding: 1.5rem 1rem; }
  .form-heading { font-size: 1.15rem; }
  .form-box { max-width: 100%; }
  .apply-btn { font-size: 0.82rem; }
}

/* XS — tiny phones */
@media (max-width: 359px) {
  .right-panel { padding: 1.2rem 0.8rem; }
  .form-heading { font-size: 1rem; }
  .field label { font-size: 0.7rem; }
  .field input, .field textarea, .select-wrap select { font-size: 0.75rem; }
}


/* ═══════════════════════════════════════════════════════════════
   PAYMENT.HTML RESPONSIVE
═══════════════════════════════════════════════════════════════ */

/* LG — tablets */
@media (min-width: 768px) and (max-width: 1023px) {
  .pay-main { max-width: 600px; padding: 2rem 1.5rem 4rem; }
  .pay-congrats { font-size: 1.8rem; }
  .pay-step-line { width: 32px; }
}

/* MD — phones */
@media (max-width: 767px) {
  .pay-nav { padding: 0 4%; height: 56px; }
  .pay-logo { font-size: 0.95rem; }
  .pay-main { padding: 1.5rem 1rem 3rem; }
  .pay-header-card { padding: 2rem 1.5rem 1.5rem; border-radius: 16px; }
  .pay-congrats { font-size: 1.6rem; }
  .pay-congrats-sub { font-size: 0.82rem; }
  .pay-step-line { width: 20px; }
  .pay-step i { width: 30px; height: 30px; font-size: 0.72rem; }
  .pay-step span { font-size: 0.58rem; }
  .pay-card { border-radius: 16px; }
  .pay-section { padding: 1.2rem; }
  .section-heading { font-size: 0.85rem; }
  .bank-label { min-width: 100px; font-size: 0.72rem; }
  .bank-value { font-size: 0.82rem; }
  .amount-value { font-size: 0.95rem; }
  .confirm-btn { width: calc(100% - 2.4rem); margin: 1.2rem; font-size: 0.88rem; }
  .confirmed-state { margin: 0 1.2rem 1.2rem; font-size: 0.78rem; }
  .help-section { padding: 1.2rem; }
  .help-contacts { gap: 0.5rem; }
  .help-item { font-size: 0.72rem; padding: 0.45rem 0.75rem; }
  .instructions-list li { font-size: 0.78rem; }
  .important-list li { font-size: 0.78rem; }
  .program-badge { padding: 0.8rem 1.2rem; font-size: 0.8rem; }
  .amount-tag { font-size: 0.75rem; padding: 0.25rem 0.7rem; }
  .welcome-section { flex-direction: column; gap: 0.7rem; }
  .welcome-icon { width: 36px; height: 36px; min-width: 36px; font-size: 0.9rem; }
}

/* SM — small phones */
@media (max-width: 479px) {
  .pay-steps-bar { gap: 0; }
  .pay-step-line { width: 14px; }
  .pay-step span { display: none; }
  .pay-congrats { font-size: 1.4rem; }
  .bank-label { min-width: 85px; }
  .copy-btn { padding: 0.25rem 0.4rem; font-size: 0.7rem; }
  .newsletter-section { padding: 1.5rem 1rem; }
  .back-btn { font-size: 0.78rem; }
}

/* XS — tiny phones */
@media (max-width: 359px) {
  .pay-main { padding: 1rem 0.75rem 2.5rem; }
  .pay-header-card { padding: 1.5rem 1rem 1.2rem; }
  .pay-congrats { font-size: 1.2rem; }
  .pay-section { padding: 1rem 0.9rem; }
  .confirm-btn { width: calc(100% - 1.8rem); margin: 1rem 0.9rem; font-size: 0.82rem; }
  .bank-label { min-width: 75px; font-size: 0.68rem; }
  .bank-value { font-size: 0.75rem; }
}

/* Landscape payment */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .pay-main { padding: 1rem 1.5rem 2rem; }
  .pay-header-card { padding: 1.2rem 1.5rem; }
  .pay-congrats { font-size: 1.4rem; }
  .pay-steps-bar { display: none; }
}
