/* ============================================

   RESPONSIVE STYLES - trytechcareers.com

   Breakpoints: 1200px, 1024px, 768px, 480px, 360px

   ============================================ */



/* ===== LARGE DESKTOP (<=1200px) ===== */

@media (max-width: 1200px) {

  .container { padding: 0 32px; }

  .hero-title { font-size: 52px; }

  .uni-grid { grid-template-columns: repeat(2, 1fr); }

}



/* ===== TABLET LANDSCAPE (<=1024px) ===== */

@media (max-width: 1024px) {

  .container { padding: 0 28px; }

  .nav-phone { display: none; }

  .hero { min-height: auto; padding: 110px 0 70px; }

  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }

  .hero-visual { display: none; }

  .hero-title { font-size: 46px; }

  .hero-subtitle { font-size: 17px; max-width: 600px; margin: 0 auto; }

  .hero-flags { justify-content: center; }

  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }

  .hero-actions { justify-content: center; }

  .why-india-grid { grid-template-columns: 1fr; gap: 40px; }

  .why-india-visual { order: -1; }

  .uni-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }

  .process-steps::before { display: none; }

  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .benefit-cards { grid-template-columns: repeat(2, 1fr); }

  .cost-grid { grid-template-columns: 1fr; gap: 40px; }

  .cost-cards { grid-template-columns: repeat(2, 1fr); }

  .cost-breakdown { grid-template-columns: 1fr; }

  .india-features { grid-template-columns: repeat(2, 1fr); }

  .section-title { font-size: 34px; }



  /* ===== TABLET + MOBILE: hamburger + vertical drawer (no horizontal scrolling link strip) ===== */

  .nav-container {

    max-width: 100%;

    overflow-x: hidden;

    overflow-y: visible;

  }



  .nav-cta { display: none !important; }



  .hamburger {

    display: flex;

    position: relative;

    z-index: 10050;

    flex-shrink: 0;

  }



  .nav-drawer-only {

    display: list-item;

  }



  .nav-links {

    display: flex !important;

    flex-direction: column !important;

    flex-wrap: nowrap !important;

    align-items: stretch !important;

    gap: 0 !important;

    position: fixed;

    top: var(--nav-height);

    right: 0;

    left: auto;

    bottom: auto;

    width: 50vw;

    max-width: 100%;

    min-width: 0;

    height: fit-content;

    max-height: none;

    transform: translateX(100%);

    background: linear-gradient(160deg, #0A1628 0%, #112240 55%, #0D2137 100%);

    padding: 8px 0 max(10px, env(safe-area-inset-bottom));

    margin: 0;

    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);

    box-shadow: -12px 0 40px rgba(0,0,0,0.35);

    border-top-left-radius: 16px;

    border-bottom-left-radius: 16px;

    z-index: 10040;

    overflow: visible;

    list-style: none;

    pointer-events: none;

    white-space: normal;

  }



  .nav-links.open {

    transform: translateX(0);

    pointer-events: auto;

  }



  .nav-links > li {

    flex-shrink: 0;

    min-width: 0;

    max-width: 100%;

  }



  .nav-drawer-phone {

    border-bottom: 1px solid rgba(255,255,255,0.06);

  }



  .nav-drawer-phone-link {

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 10px 18px;

    color: #F5C55A;

    font-size: 13px;

    font-weight: 600;

    text-decoration: none;

    white-space: normal;

    overflow-wrap: anywhere;

  }



  .nav-drawer-phone-link:hover {

    background: rgba(232,160,32,0.08);

    color: #F5C55A;

  }



  .nav-drawer-cta {

    list-style: none;

    padding-top: 10px;

  }



  .nav-drawer-cta .nav-mobile-cta {

    display: flex;

    flex-direction: column;

    gap: 8px;

    padding: 12px 16px 4px;

    border-top: 1px solid rgba(255,255,255,0.08);

  }



  .nav-overlay {

    display: none;

    position: fixed;

    inset: 0;

    background: rgba(0,0,0,0.55);

    z-index: 998;

    backdrop-filter: blur(2px);

    -webkit-backdrop-filter: blur(2px);

  }

  .nav-overlay.show { display: block; }



  .nav-links li.nav-main > a {

    display: flex;

    align-items: center;

    gap: 10px;

    color: rgba(255,255,255,0.8);

    font-size: 14px;

    font-weight: 500;

    padding: 12px 18px;

    border-bottom: 1px solid rgba(255,255,255,0.05);

    border-radius: 0;

    transition: all 0.2s ease;

    position: relative;

    white-space: normal;

    overflow-wrap: anywhere;

  }



  .nav-links li.nav-main > a::before {

    content: '';

    position: absolute;

    left: 0; top: 0; bottom: 0;

    width: 3px;

    background: #E8A020;

    border-radius: 0 3px 3px 0;

    transform: scaleY(0);

    transition: transform 0.2s ease;

  }



  .nav-links li.nav-main > a:hover,

  .nav-links li.nav-main > a.active {

    color: #F5C55A;

    background: rgba(232,160,32,0.08);

    padding-left: 22px;

  }



  .nav-links li.nav-main > a:hover::before,

  .nav-links li.nav-main > a.active::before { transform: scaleY(1); }



  .nav-mobile-cta {

    display: flex;

    flex-direction: column;

    gap: 10px;

  }



  .nav-mobile-cta a {

    display: flex !important;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 11px 14px !important;

    border-radius: 10px !important;

    font-size: 13px !important;

    font-weight: 600 !important;

    border-bottom: none !important;

    text-decoration: none;

    white-space: normal;

    text-align: center;

  }



  .nav-mobile-cta a::before { display: none !important; }

  .nav-mobile-cta a:hover { padding-left: 14px !important; padding-right: 14px !important; }



  .nav-mobile-cta .btn-apply {

    background: linear-gradient(135deg, #E8A020, #F5A623);

    color: #0A1628 !important;

  }



  .nav-mobile-cta .btn-whatsapp {

    background: rgba(37,211,102,0.12);

    color: #25D366 !important;

    border: 1px solid rgba(37,211,102,0.3) !important;

  }



  .hamburger span {

    transition: all 0.35s cubic-bezier(0.77, 0, 0.175, 1);

  }

  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }

  .hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); }

  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

}



/* ===== TABLET PORTRAIT (<=768px) ===== */

@media (max-width: 768px) {



  /* HERO */

  .hero { padding: 100px 0 60px; }

  .hero-title { font-size: 36px; line-height: 1.2; }

  .hero-subtitle { font-size: 15px; }

  .hero-badge { margin: 0 auto; }

  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }

  .hero-actions { flex-direction: column; align-items: center; gap: 12px; }

  .hero-actions a,

  .hero-actions button { width: 100%; max-width: 320px; text-align: center; justify-content: center; }



  /* STATS BAR */


  .stats-bar-inner { flex-wrap: nowrap; justify-content: space-between; gap: 4px; }

  .stats-bar-divider { display: none; }

  .stats-bar-item { flex-direction: column; text-align: center; gap: 2px; flex: 1; }



  /* SECTIONS */

  .section-title { font-size: 28px; }

  .section-subtitle { font-size: 15px; }

  .uni-grid { grid-template-columns: 1fr; }

  .process-steps { grid-template-columns: 1fr; gap: 20px; }

  .testimonial-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .form-row { grid-template-columns: 1fr; }

  .benefit-cards { grid-template-columns: 1fr; }

  .india-features { grid-template-columns: 1fr; }

  .cost-cards { grid-template-columns: repeat(2, 1fr); }

  .page-hero { padding: 120px 0 60px; }

  .page-hero h1 { font-size: 32px; }

  .page-hero p { font-size: 15px; }

  .cta-features { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 12px; 
    justify-content: center;
    max-width: 400px;
    margin: 48px auto 0;
  }

  .cta-buttons { flex-direction: column; align-items: center; }

  .cta-buttons a { width: 100%; max-width: 300px; text-align: center; justify-content: center; }

  .comparison-table { font-size: 13px; }

  .comparison-table th,

  .comparison-table td { padding: 10px 12px; }

  .contact-info-grid { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

}



/* ===== MOBILE (<=480px) ===== */

@media (max-width: 480px) {

  .container { padding: 0 16px; }

  .nav-links { width: 50vw; }

  .hero-title { font-size: 30px; }

  .hero-flags { flex-wrap: wrap; justify-content: center; gap: 8px; }

  .hero-stat .number { font-size: 24px; }

  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }

  .lead-form { padding: 24px 16px; }

  /* STATS BAR */

  .stats-bar-inner { flex-wrap: nowrap; justify-content: space-between; gap: 2px; }

  .stats-bar-divider { display: none; }

  .stats-bar-item { flex-direction: column; text-align: center; gap: 1px; flex: 1; }

  .cost-cards { grid-template-columns: 1fr; }

  .section-title { font-size: 24px; }

  .page-hero h1 { font-size: 26px; }

  .uni-card { padding: 20px; }

  .benefit-card { padding: 20px; }

  .process-step { padding: 24px 20px; }

  .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  .comparison-table { min-width: 500px; }

}



/* ===== SMALL MOBILE (<=360px) ===== */

@media (max-width: 360px) {

  .container { padding: 0 12px; }

  .hero-title { font-size: 26px; }

  .nav-logo .logo-tagline { display: none; }

  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 4px; }

  .cost-cards { grid-template-columns: 1fr; }

  /* STATS BAR */

  .stats-bar-inner { flex-wrap: nowrap; justify-content: space-between; gap: 2px; }

  .stats-bar-divider { display: none; }

  .stats-bar-item { flex-direction: column; text-align: center; gap: 1px; flex: 1; }

}



/* ===== PRINT ===== */

@media print {

  nav, .whatsapp-float, .cta-section, .hamburger { display: none; }

  .hero { min-height: auto; padding: 40px 0; }

  body { color: #000; }

}



/* ===== OVERFLOW FIX - prevents white gap on mobile (never use 100vw for max-width) ===== */

html, body {

  overflow-x: hidden !important;

  width: 100% !important;

  max-width: 100% !important;

}



section, header, footer {

  max-width: 100%;

  overflow-x: hidden;

}



/* Do not clip the mobile slide-out panel */

nav {

  max-width: 100%;

  overflow-x: visible;

  overflow-y: visible;

}



.table-wrapper {

  max-width: 100%;

  overflow-x: auto;

  -webkit-overflow-scrolling: touch;

}



/* Nav drawer: horizontal strip prevention already applied at 1024px */

@media (max-width: 768px) {

  /* Grid/flex defaults (min-width: auto) can force wider-than-screen columns */

  .hero-grid > *,

  .why-india-grid > *,

  .uni-grid > *,

  .contact-grid > *,

  .footer-grid > *,

  .testimonial-grid > *,

  .process-steps > *,

  .form-row > * {

    min-width: 0;

  }

  /* Ensure hero and all sections don't overflow */

  .hero, .stats-bar, .why-india, .universities-preview,

  .universities, .process, .testimonials, .contact-section, .cta-section, .footer,

  .page-hero, .benefits-section, .comparison-section,

  .cost-section {

    overflow-x: hidden;

    max-width: 100%;

  }

}
