/* ==========================================================================
   Competent Medical System (India) Pvt. Ltd. - Responsive Adjustments
   ========================================================================== */

/* Extra Small & Small screens (<768px) */
@media (max-width: 767.98px) {
  .cms-topbar {
    display: none;
  }

  .hero-slide {
    padding: 60px 0 70px 0;
    min-height: 480px;
  }

  .hero-headline {
    font-size: 1.95rem;
  }

  .hero-lead {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .section-header {
    margin-bottom: 2.25rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .page-header-banner {
    padding: 45px 0;
  }

  .page-header-banner h1 {
    font-size: 1.85rem;
  }

  .mobile-sticky-cta {
    display: flex;
    gap: 8px;
  }

  .mobile-sticky-cta .btn {
    flex: 1;
    padding: 0.55rem 0.5rem;
    font-size: 0.85rem;
  }

  body {
    padding-bottom: 60px; /* Space for sticky mobile bar */
  }

  .floating-actions {
    bottom: 75px;
    right: 16px;
  }

  .cms-card {
    padding: 1.5rem;
  }

  .cta-banner {
    padding: 2.25rem 1.5rem;
  }
}

/* Medium Devices (Tablets, 768px - 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-headline {
    font-size: 2.35rem;
  }
  
  .section-title {
    font-size: 1.9rem;
  }
}

/* Large Devices (Desktops, 992px - 1199.98px) */
@media (min-width: 992px) {
  .hero-slider-section .carousel-item {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

/* Extra Large Devices (1200px+) */
@media (min-width: 1200px) {
  .container {
    max-width: 1180px;
  }
}

/* Ultra-wide Displays (1400px+) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .hero-headline {
    font-size: 3.25rem;
  }
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print Styles */
@media print {
  .cms-topbar,
  .cms-header,
  .floating-actions,
  .mobile-sticky-cta,
  .back-to-top,
  .cms-footer {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }
}
