/* ==========================================================================
   INDOHEALTHSUPPORT MASTER RESPONSIVE DESIGN SYSTEM
   Supports: Mobile (320px-575px), Tablet (576px-991px), Desktop (992px+)
   ========================================================================== */

/* Global Container Limit */
.container {
  max-width: 1200px;
}

/* Horizontal Scroll Container for Filter Pills on Mobile */
.filter-pills-scrollable {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  margin-bottom: 1.25rem;
  scrollbar-width: thin;
}

.filter-pills-scrollable::-webkit-scrollbar {
  height: 4px;
}

.filter-pills-scrollable::-webkit-scrollbar-thumb {
  background: rgba(0, 184, 217, 0.4);
  border-radius: 4px;
}

.filter-pills-scrollable .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Desktops & Large Displays (1200px and above) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 3.25rem;
  }
}

/* Laptops & Medium Desktops (992px - 1199.98px) */
@media (max-width: 1199.98px) {
  .hero-title {
    font-size: 2.75rem;
  }
  .display-4 {
    font-size: 2.5rem;
  }
}

/* Tablets & Mobile Navigation Collapse (991.98px and below) */
@media (max-width: 991.98px) {
  /* Navbar Flex Container Wrapping for Mobile Dropdown */
  .navbar .container {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  /* Full Width Mobile Dropdown Menu */
  .navbar-collapse {
    width: 100% !important;
    flex-basis: 100% !important;
    flex-grow: 1 !important;
    background: linear-gradient(135deg, #001f4d 0%, #00122e 100%) !important;
    padding: 1.25rem !important;
    border-radius: 16px !important;
    margin-top: 0.75rem !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
  }

  .navbar-nav .nav-link {
    color: #ffffff !important;
    padding: 0.65rem 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }

  /* Full Width Book Appointment Button inside Mobile Dropdown */
  .navbar-collapse .btn-appointment-glow,
  .navbar-collapse .btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    margin-top: 0.75rem !important;
  }

  .hero-full-bg-section {
    min-height: 80vh;
    padding-top: 2rem;
    padding-bottom: 3rem;
  }
  .hero-title {
    font-size: 2.35rem;
  }
  .text-light-90 {
    font-size: 1rem;
  }
  .glass-stat-card {
    padding: 0.85rem !important;
  }
  .contact-quick-card {
    margin-bottom: 1rem;
  }
}

/* Mobile Devices (767.98px and below) - Fixes Top Header & Navbar Row Alignment */
@media (max-width: 767.98px) {
  /* Top Announcement Bar Layout Fix */
  .top-header-bar {
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
    font-size: 0.8rem;
  }
  .top-header-bar .container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.35rem !important;
  }
  .top-header-bar .container > div {
    margin: 0 !important;
  }
  .top-header-bar a, .top-header-bar span {
    font-size: 0.78rem !important;
    white-space: nowrap !important;
  }
  .custom-language-selector {
    padding: 1px 6px !important;
    border-radius: 14px !important;
  }
  .custom-language-selector .language-dropdown {
    font-size: 0.75rem !important;
    padding: 1px 16px 1px 2px !important;
  }

  /* Sticky Navbar Brand & Toggler Row Alignment */
  .navbar-brand {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    max-width: 78%;
  }
  .brand-logo {
    width: 36px !important;
    height: 36px !important;
  }
  .brand-name {
    font-size: 1.1rem !important;
    line-height: 1 !important;
  }
  .brand-tagline {
    font-size: 0.58rem !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .navbar-toggler {
    padding: 4px 8px !important;
    margin: 0 !important;
    flex-shrink: 0;
  }

  /* Hero Section */
  .hero-full-bg-section {
    min-height: auto;
    padding-top: 2.2rem;
    padding-bottom: 2.2rem;
  }
  .hero-title {
    font-size: 1.85rem;
    line-height: 1.25;
  }
  .hero-lead, .text-light-90 {
    font-size: 0.95rem;
  }
  .search-card {
    padding: 1.25rem !important;
    border-radius: 20px !important;
  }

  /* Card Layouts & Badges */
  .hospital-card-custom, .doctor-card-custom, .specialty-card-custom {
    border-radius: 18px !important;
  }
  .hospital-img-header img, .doctor-img-header img {
    height: 200px !important;
  }
  .hospital-badge-region, .badge {
    font-size: 0.72rem !important;
    padding: 4px 8px !important;
  }

  /* Button Touch Targets & Responsive Sizing */
  .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .btn-lg {
    padding: 0.75rem 1.25rem !important;
    font-size: 0.95rem !important;
  }

  /* Floating WhatsApp Button on Mobile */
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }
}

/* Extra Small Mobile Devices (480px and below) */
@media (max-width: 480px) {
  body {
    font-size: 0.92rem;
  }
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .top-header-bar .container {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  .brand-tagline {
    display: none !important;
  }
  .hero-title {
    font-size: 1.65rem;
  }
  .display-4, .display-5 {
    font-size: 1.75rem !important;
  }
  h2 {
    font-size: 1.45rem !important;
  }
  h3 {
    font-size: 1.25rem !important;
  }
  .btn-group-responsive {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .p-4, .p-md-5 {
    padding: 1.15rem !important;
  }
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .footer-main-custom {
    text-align: center;
  }
  .footer-main-custom .d-flex {
    justify-content: center !important;
  }
}
