/* ==========================================================================
   GLOBAL RESPONSIVE RESET & BASE TWEAKS
   ========================================================================== */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* Horizontal scrollbar aane se rokega */
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
}

/* ==========================================================================
   DESKTOP DEFAULT ADJUSTMENTS (> 1024px)
   ========================================================================== */
.hamburger-btn {
  display: none; /* Desktop par hamburger icon band */
}

/* ==========================================================================
   TABLET & IPAD BREAKPOINT (Max-Width: 1024px)
   ========================================================================== */
@media screen and (max-width: 1024px) {
  /* Container Padding */
  .header-container,
  .cards-row,
  .services-grid,
  .main-content,
  .team-container,
  .solutions-container,
  .testimonials-container,
  .events-container,
  .contact-container,
  .blog-container,
  .partners-grid,
  .footer-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Navigation adjustments for tablets */
  .nav-menu {
    gap: 12px;
  }
  .nav-link {
    font-size: 13px;
  }

  /* Grid Reductions */
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .testimonials-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .solutions-grid {
    grid-template-columns: 1fr !important;
  }
  .partners-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* ==========================================================================
   MOBILE & TABLET VERTICAL (Max-Width: 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {
  
  /* 1. TOP UTILITY BAR */
  .top-bar {
    flex-direction: column !important;
    text-align: center !important;
    gap: 6px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
  }
  .top-contact {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
  }
  #live-date {
    display: none !important; /* Mobile top bar se lambi date chupa di space bachane ke liye */
  }

  /* 2. HEADER & NAVIGATION */
  .header-container {
    padding: 10px 16px !important;
    position: relative;
  }
  .logo-img {
    max-height: 55px !important; /* Mobile friendly logo */
  }

  /* Hamburger Menu Toggle Button */
  .hamburger-btn {
    display: flex !important;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 0;
  }
  .hamburger-btn span {
    width: 100%;
    height: 3px;
    background: var(--dark, #212934);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* Mobile Drawer Menu */
  nav {
    position: relative;
  }
  .nav-menu {
    display: none !important; /* By default hidden on mobile */
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 280px !important;
    height: 100vh !important;
    background: #ffffff !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 70px 20px 30px 20px !important;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.15) !important;
    overflow-y: auto !important;
    gap: 0 !important;
    z-index: 1001 !important;
  }
  .nav-menu.active {
    display: flex !important; /* Active state pe drawer khulega */
  }
  .nav-item {
    width: 100% !important;
    border-bottom: 1px solid #f1f5f9;
  }
  .nav-link {
    width: 100% !important;
    padding: 14px 0 !important;
    font-size: 15px !important;
    display: flex !important;
    justify-content: space-between !important;
  }
  .dropdown-menu {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    padding-left: 14px !important;
    background: #f8fafc !important;
    border-radius: 4px !important;
    width: 100% !important;
  }

  /* 3. HERO & BANNER SECTIONS */
  .hero {
    min-height: 300px !important;
    padding: 40px 16px !important;
    background-attachment: scroll !important; /* iOS mobile pe fixed background freeze karta hai */
  }
  .hero h1 {
    font-size: 26px !important;
    line-height: 1.25 !important;
  }
  .hero p {
    font-size: 16px !important;
  }
  .page-banner {
    padding: 35px 16px !important;
  }
  .page-banner h1 {
    font-size: 26px !important;
  }
  .section-title {
    font-size: 22px !important;
  }

  /* 4. FEATURE CARDS & GRIDS */
  .cards-row,
  .services-grid,
  .testimonials-grid,
  .blog-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    margin: 24px auto !important;
    padding: 0 16px !important;
  }
  .feature-card,
  .service-box,
  .testimonial-card,
  .blog-card {
    padding: 20px !important;
  }

  /* 5. TEAM CARDS (WHO WE ARE) */
  .team-card {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 20px 16px !important;
  }
  .team-photo {
    width: 120px !important;
    height: 150px !important;
    margin-bottom: 12px;
  }
  .team-info ul {
    text-align: left !important;
    display: inline-block !important;
    margin: 0 auto 12px auto !important;
  }

  /* 6. BUSINESS SOLUTIONS CHECKLIST */
  .solutions-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .solutions-list {
    grid-template-columns: 1fr !important; /* Single column on mobile */
  }
  .solution-item {
    font-size: 13.5px !important;
    padding: 10px 12px !important;
  }

  /* 7. CONTACT US & FORMS */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    margin-top: 20px !important;
  }
  .contact-form-card,
  .sidebar-info,
  .appointment-box {
    padding: 20px 16px !important;
  }
  /* Forms inputs stack to full width */
  form div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .form-control, input, select, textarea {
    font-size: 16px !important; /* iOS Safari zoom issue ko prevent karta hai */
    min-height: 44px; /* Touch target minimum height */
  }
  .btn-submit {
    width: 100% !important; /* Mobile friendly full-width CTA */
    padding: 14px 20px !important;
  }

  /* 8. PARALLAX CALL TO ACTION */
  .cta-parallax {
    background-attachment: scroll !important;
    padding: 45px 16px !important;
  }
  .cta-parallax h2 {
    font-size: 24px !important;
  }
  .cta-parallax p {
    font-size: 15px !important;
  }
  .btn-white {
    width: 100% !important;
    max-width: 280px;
    padding: 12px 20px !important;
  }

  /* 9. PARTNER LOGOS SHOWCASE */
  .partners-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* 2 logos per row on mobile */
    gap: 12px !important;
  }
  .partner-item {
    padding: 8px !important;
  }
  .partner-item img {
    max-height: 38px !important;
  }

  /* 10. FOOTER STACKING */
  .footer-container {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    text-align: left !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 8px !important;
  }

  .sessions-grid {
    grid-template-columns: 1fr !important;; /* 1 column me stack hoga */
    gap: 16px;                  /* mobile screens ke liye balanced spacing */
  
}
}

/* ==========================================================================
   EXTRA SMALL DEVICES (< 400px - iPhone SE / Galaxy Z Fold)
   ========================================================================== */
@media screen and (max-width: 400px) {
  .logo-img {
    max-height: 46px !important;
  }
  .hero h1 {
    font-size: 22px !important;
  }
  .partners-grid {
    grid-template-columns: 1fr !important; /* 1 logo per row on extremely small screens */
  }
  .btn-submit, .btn-white {
    font-size: 14px !important;
  }
}