/* ===== Responsive Styles ===== */

/* Large Desktop */
@media (max-width: 1400px) {
  :root { --container-max: 1140px; }
  .specialty-grid { grid-template-columns: repeat(6, 1fr); }
}

/* Desktop */
@media (max-width: 1200px) {
  :root { --container-max: 960px; }
  .specialty-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .doctor-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* Tablet */
@media (max-width: 992px) {
  :root { --container-max: 720px; --header-height: 64px; }

  /* Mobile Navigation */
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-lg);
    gap: 0;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
    z-index: 999;
  }
  .main-nav.active { transform: translateX(0); }
  .nav-link { padding: var(--space-md) 0; border-bottom: 1px solid var(--color-border); }
  .nav-item { width: 100%; }
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0 0 0 var(--space-lg);
    display: none;
  }
  .nav-item.expanded .nav-dropdown { display: block; }

  /* Grids */
  .grid-4, .grid-5, .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .specialty-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
  .doctor-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .map-container { flex-direction: column; }
  .map-info { flex: none; width: 100%; }

  /* Hero */
  .hero-title { font-size: var(--font-size-2xl); }
  .hero-subtitle { font-size: var(--font-size-base); }
  .hero-arrow { display: none; }

  /* Section spacing */
  .section { padding: var(--space-2xl) 0; }
  .section-title { font-size: var(--font-size-xl); }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --container-max: 100%; }

  .container, .container-fluid { padding: 0 var(--space-md); }

  /* Grids */
  .grid-2, .grid-3, .grid-4, .grid-5, .grid-6 { grid-template-columns: 1fr; }
  .specialty-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .doctor-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }

  /* Hero */
  .hero { min-height: 500px; }
  .hero-title { font-size: var(--font-size-xl); }
  .hero-subtitle { font-size: var(--font-size-sm); }
  .scroll-indicator { display: none; }

  /* News */
  .news-item { flex-direction: column; }
  .news-date { width: 100%; border-right: none; border-bottom: 2px solid var(--color-border); padding: 0 0 var(--space-md) 0; display: flex; gap: var(--space-md); align-items: baseline; }
  .news-date .day { font-size: var(--font-size-lg); }

  /* Page banner */
  .page-banner { height: 300px; }
  .page-banner h1 { font-size: var(--font-size-2xl); }

  /* Footer */
  .footer-bottom { flex-direction: column; gap: var(--space-md); text-align: center; }
  .footer-qr { justify-content: center; }

  /* Detail */
  .detail-header h1 { font-size: var(--font-size-xl); }

  /* Doctor avatar */
  .doctor-avatar { width: 120px; height: 120px; }

  /* Stats */
  .stat-item .number { font-size: var(--font-size-2xl); }

  /* Tabs */
  .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tab { white-space: nowrap; padding: var(--space-md); }
}

/* Small Mobile */
@media (max-width: 480px) {
  .specialty-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .doctor-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: var(--font-size-lg); }
  .section-title { font-size: var(--font-size-lg); }
  .btn { padding: var(--space-sm) var(--space-lg); font-size: var(--font-size-sm); }
}
