/* ========================================
   RESPONSIVE CSS FOR INDEX PAGE
   Mobile & Tablet Optimized
   ======================================== */

/* ========================================
   TABLET VIEW (768px - 991px)
   ======================================== */

/* Override border-left on why-tab-btn for tablet range (768px–1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .why-tab-navigation {
    flex-direction: row !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
  }

  .why-tab-btn {
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: 3px solid transparent !important;
  }

  .why-tab-btn.active {
    border-left-color: transparent !important;
    border-bottom-color: #0C3365 !important;
  }

  /* Global stats: keep 3-column feature grid on tablet */
  .global-features-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
  }

  .global-feature-card:nth-child(3) {
    grid-column: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  /* Stats rows stay horizontal */
  .stats-top-row,
  .stats-bottom-row {
    flex-direction: row !important;
    align-items: center !important;
  }

  .stat-card-global {
    min-width: 0 !important;
  }

  /* Keep title large on tablet */
  .global-stats-title {
    font-size: 32px !important;
  }
}

@media (max-width: 991px) {
  /* Global Adjustments */
  body {
    font-size: 15px;
    padding-top: 65px;
  }

  section, .section {
    padding: 50px 0 !important;
  }

  /* Trusted Companies Section */
  .trusted-companies-section {
    padding: 50px 0 0 0;
  }

  .trusted-title {
    font-size: 36px;
  }

  .trusted-logo-item {
    width: 140px;
    height: 70px;
  }

  /* Why Choose Us Section */
  .why-choose-us-section {
    padding: 80px 0;
  }

  .why-main-title {
    font-size: 36px;
  }

  .why-content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .why-content-left {
    padding-right: 0;
  }

  .why-content-left h3 {
    font-size: 28px;
  }

  .why-tab-navigation {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .why-tab-btn {
    justify-content: center;
    border-bottom: none;
    border-left: 3px solid transparent;
    padding: 12px 20px;
  }

  .why-tab-btn.active {
    border-left-color: #0C3365;
    border-bottom-color: transparent;
  }

  .why-content-card {
    padding: 40px 30px;
  }

  .why-image-container {
    margin: 0;
    height: auto;
  }

  /* Global Stats Section */
  .global-stats-section {
    padding: 80px 0;
  }

  .global-stats-title {
    font-size: 32px;
  }

  .global-features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 50px;
  }

  /* DO NOT override stats rows/cards here — mobile grid handled in global-stats.css */
  /* .stats-top-row, .stats-bottom-row — intentionally not overridden */

  .globe-video-background {
    max-width: 600px;
  }

  /* Newsletter Section */
  .newsletter-inner {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
    gap: 28px;
  }

  .newsletter-content {
    text-align: center;
  }

  .newsletter-form-wrapper {
    min-width: 100%;
    max-width: 500px;
  }

  .newsletter-title {
    font-size: 1.4rem;
  }

  .newsletter-subtitle {
    font-size: 0.95rem;
  }

  .newsletter-note {
    justify-content: center;
    margin-left: 0;
  }

  /* Testimonials Section */
  .creative-testimonials-section {
    padding: 80px 0;
  }

  .testimonial-main-title {
    font-size: 36px;
  }

  .testimonial-creative-card {
    padding: 32px;
    min-width: 380px;
    max-width: 380px;
  }

}

/* ========================================
   MOBILE VIEW (576px - 767px)
   ======================================== */
@media (max-width: 767px) {
  /* Global Adjustments */
  body {
    font-size: 14px;
    padding-top: 65px;
  }

  section, .section {
    padding: 40px 0 !important;
  }

  .section-title {
    padding-bottom: 40px;
  }

  .section-title h2 { font-size: 26px; }
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  h4 { font-size: 18px; }
  h5 { font-size: 16px; }
  h6 { font-size: 14px; }

  /* Trusted Companies Section */
  .trusted-companies-section {
    padding: 40px 0 0 0;
  }

  .trusted-title {
    font-size: 28px;
  }

  .trusted-subtitle {
    font-size: 15px;
  }

  .trusted-logo-item {
    width: 120px;
    height: 60px;
    padding: 15px;
  }

  .trusted-logos-track {
    gap: 25px;
  }

  /* Why Choose Us Section */
  .why-choose-us-section {
    padding: 60px 0;
  }

  .why-main-title {
    font-size: 28px;
  }

  .why-subtitle {
    font-size: 15px;
  }

  .why-content-left h3 {
    font-size: 24px;
  }

  .why-content-description {
    font-size: 14px;
  }

  .why-feature-text strong {
    font-size: 14px;
  }

  .why-feature-text span {
    font-size: 13px;
  }

  .why-tab-btn {
    font-size: 14px;
    padding: 10px 16px;
  }

  .why-content-card {
    padding: 30px 20px;
  }

  .why-cta-button {
    padding: 10px 24px;
    font-size: 13px;
  }

  /* Global Stats Section */
  .global-stats-section {
    padding: 60px 0;
  }

  .global-stats-header {
    margin-bottom: 40px;
  }

  .global-stats-title {
    font-size: 28px;
  }

  .global-stats-subtitle {
    font-size: 14px;
  }

  .global-feature-card {
    padding: 24px;
    gap: 16px;
  }

  .global-feature-icon {
    width: 45px;
    height: 45px;
  }

  .global-feature-icon i {
    font-size: 20px;
  }

  .global-feature-content h3 {
    font-size: 16px;
  }

  .global-feature-content p {
    font-size: 13px;
  }

  .stat-card-global {
    padding: 20px 12px !important;
  }

  .stat-number-global {
    font-size: 26px !important;
  }

  .stat-label-global {
    font-size: 11px;
  }

  .globe-video-background {
    max-width: 420px !important;
    top: auto !important;
    bottom: 60px !important;
  }

  /* Newsletter Section */
  #premium-newsletter {
    margin: 40px 0 0 0;
  }

  .newsletter-inner {
    padding: 35px 20px;
    gap: 25px;
  }

  .newsletter-icon {
    width: 65px;
    height: 65px;
  }

  .newsletter-logo {
    width: 38px;
    height: 38px;
  }

  .newsletter-title {
    font-size: 1.3rem;
  }

  .newsletter-subtitle {
    font-size: 0.9rem;
  }

  .newsletter-form-wrapper {
    max-width: 100%;
  }

  .newsletter-submit-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  /* Testimonials Section */
  .creative-testimonials-section {
    padding: 60px 0;
  }

  .testimonial-main-title {
    font-size: 28px;
  }

  .testimonial-creative-card {
    padding: 28px;
    min-width: 340px;
    max-width: 340px;
  }

  .testimonial-avatar {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .author-name {
    font-size: 16px;
  }

  .author-position {
    font-size: 13px;
  }

  .testimonial-text {
    font-size: 14px;
  }

}

/* ========================================
   SMALL MOBILE VIEW (max-width: 575px)
   ======================================== */
@media (max-width: 575px) {
  /* Global Adjustments */
  body {
    font-size: 14px;
  }

  section, .section {
    padding: 35px 0 !important;
  }

  .section-title {
    padding-bottom: 35px;
  }

  .section-title h2 { font-size: 24px; }
  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }

  /* Trusted Companies Section */
  .trusted-title {
    font-size: 24px;
  }

  .trusted-subtitle {
    font-size: 14px;
  }

  .trusted-logo-item {
    width: 100px;
    height: 50px;
  }

  .trusted-logos-track {
    gap: 20px;
  }

  /* Why Choose Us Section */
  .why-main-title {
    font-size: 24px;
  }

  .why-subtitle {
    font-size: 14px;
  }

  .why-content-left h3 {
    font-size: 20px;
  }

  .why-content-description {
    font-size: 13px;
  }

  .why-tab-btn {
    font-size: 13px;
    padding: 10px 14px;
  }

  .why-content-card {
    padding: 25px 18px;
  }

  .why-feature-icon {
    width: 18px;
    height: 18px;
  }

  .why-feature-text strong {
    font-size: 13px;
  }

  .why-feature-text span {
    font-size: 12px;
  }

  .why-cta-button {
    padding: 10px 20px;
    font-size: 12px;
  }

  /* Global Stats Section */
  .global-stats-title {
    font-size: 24px;
  }

  .global-stats-subtitle {
    font-size: 13px;
  }

  .global-feature-card {
    padding: 20px;
  }

  .global-feature-icon {
    width: 40px;
    height: 40px;
  }

  .global-feature-icon i {
    font-size: 18px;
  }

  .global-feature-content h3 {
    font-size: 15px;
  }

  .global-feature-content p {
    font-size: 12px;
  }

  .stat-card-global {
    padding: 16px 12px !important;
    min-width: 0 !important;
  }

  .stat-number-global {
    font-size: 22px !important;
  }

  .stat-label-global {
    font-size: 10px;
  }

  /* Newsletter Section */
  .newsletter-inner {
    padding: 30px 20px;
    gap: 20px;
  }

  .newsletter-icon {
    width: 60px;
    height: 60px;
  }

  .newsletter-logo {
    width: 36px;
    height: 36px;
  }

  .newsletter-title {
    font-size: 1.2rem;
  }

  .newsletter-subtitle {
    font-size: 0.85rem;
  }

  .form-group-inline {
    flex-direction: column;
    padding: 8px;
    gap: 8px;
  }

  .newsletter-input {
    width: 100%;
    padding: 10px 14px;
    text-align: center;
  }

  .newsletter-submit-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 20px;
  }

  .newsletter-note {
    text-align: center;
    font-size: 0.75rem;
  }

  /* Testimonials Section */
  .testimonial-main-title {
    font-size: 24px;
  }

  .testimonial-creative-card {
    padding: 24px;
    min-width: 300px;
    max-width: 300px;
  }

  .quote-icon {
    font-size: 42px;
    top: 20px;
    right: 20px;
  }

  .testimonial-avatar {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }

  .author-name {
    font-size: 15px;
  }

  .author-position {
    font-size: 12px;
  }

  .testimonial-text {
    font-size: 13px;
  }

  .rating i {
    font-size: 14px;
  }
}

/* ========================================
   EXTRA SMALL MOBILE (max-width: 400px)
   ======================================== */
@media (max-width: 400px) {
  section, .section {
    padding: 30px 0 !important;
  }

  .section-title h2 {
    font-size: 22px;
  }

  .why-main-title,
  .global-stats-title,
  .testimonial-main-title {
    font-size: 22px;
  }

  .trusted-title {
    font-size: 22px;
  }

  .newsletter-title {
    font-size: 1.1rem;
  }

  .stat-card-global {
    padding: 14px 10px !important;
    min-width: 0 !important;
  }

  .stat-number-global {
    font-size: 20px !important;
  }

  .testimonial-creative-card {
    min-width: 280px;
    max-width: 280px;
    padding: 20px;
  }
}

/* ========================================
   LANDSCAPE MOBILE OPTIMIZATION
   ======================================== */
@media (max-width: 767px) and (orientation: landscape) {
  section, .section {
    padding: 30px 0 !important;
  }

  .why-content-card {
    padding: 25px 20px;
  }

  .global-stats-section {
    padding: 40px 0;
  }

  .newsletter-inner {
    padding: 25px 20px;
  }
}

/* ========================================
   TOUCH DEVICE OPTIMIZATIONS
   ======================================== */
@media (hover: none) and (pointer: coarse) {
  /* Increase touch targets */
  .why-tab-btn,
  .newsletter-submit-btn,
  .why-cta-button {
    min-height: 44px;
  }

  /* Remove hover effects on touch devices */
  .trusted-logo-item:hover,
  .global-feature-card:hover,
  .testimonial-creative-card:hover {
    transform: none;
  }

  /* Simplify animations */
  * {
    animation-duration: 0.3s !important;
    transition-duration: 0.3s !important;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  header,
  .newsletter-inner,
  .footer-bottom-bar {
    display: none;
  }

  section {
    page-break-inside: avoid;
  }

  body {
    padding-top: 0;
  }
}

/* ========================================
   LAPTOP VIEW (1025px - 1440px)
   Card stretches full width on homepage
   (handled per-section in why-choose-us.css)
   ======================================== */



