/* ==========================================================================
   Sadguru Hospital - Optimized Mobile Responsive Stylesheet
   ========================================================================== */

@media screen and (max-width: 768px) {

  /* 1. Global Padding & Reset */
  .section-padding { 
    padding: 25px 0 !important; 
  }
  
  .container {
    width: 94% !important;
  }

  .grid-2 { 
    grid-template-columns: 1fr !important; 
    gap: 18px !important; 
  }

  /* 2. Typography Adjustments (Slightly Smaller & Compact) */
  .section-title {
    margin-bottom: 20px !important;
  }

  .section-title h2 { 
    font-size: 20px !important; 
    line-height: 1.3 !important;
  }

  .section-title span {
    font-size: 11px !important;
  }

  p {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  /* 3. Top Contact Bar */
  .top-bar {
    padding: 6px 0 !important;
    font-size: 11px !important;
  }

  .top-bar-content { 
    flex-direction: column !important; 
    text-align: center !important; 
    gap: 4px !important; 
  }

  .top-badges { 
    justify-content: center !important; 
  }

  .top-badges .badge {
    padding: 3px 10px !important;
    font-size: 10px !important;
  }

  /* 4. Hero Section & Banner */
  .hero-section { 
    height: auto !important; 
    min-height: 320px !important; 
    padding: 30px 15px !important; 
    text-align: center !important; 
  }

  .hero-subtitle {
    font-size: 11px !important;
    padding: 4px 12px !important;
    margin-bottom: 10px !important;
  }

  .hero-content h2 { 
    font-size: 22px !important; 
    line-height: 1.25 !important;
    margin-bottom: 10px !important;
  }

  .hero-content p { 
    font-size: 13px !important; 
    margin-bottom: 15px !important;
  }

  .hero-btns { 
    flex-direction: column !important; 
    gap: 8px !important;
  }

  .hero-btns .btn { 
    width: 100% !important; 
    justify-content: center !important; 
    padding: 10px 18px !important;
    font-size: 13px !important;
  }

  /* 5. Compact Cards & Information Boxes */
  .doctor-card, 
  .review-card, 
  .appointment-form-box, 
  .tracker-box, 
  .facility-card {
    padding: 16px !important;
    border-radius: 12px !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04) !important; /* Lighter Box Shadow */
    margin-bottom: 12px !important;
  }

  .doc-img-box img {
    height: 200px !important;
  }

  .doc-info {
    padding: 12px 5px !important;
  }

  .doc-info h3 {
    font-size: 17px !important;
  }

  /* 6. Form Elements */
  .form-group {
    margin-bottom: 12px !important;
  }

  .form-group label {
    font-size: 12px !important;
  }

  .form-group input, 
  .form-group select, 
  .tracker-form input {
    padding: 9px 12px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
  }

  /* 7. Stats Banner Adjustment */
  .stats-banner {
    padding: 18px 0 !important;
  }

  .stats-grid { 
    grid-template-columns: 1fr 1fr !important; 
    gap: 12px !important; 
  }

  .stat-item h3 {
    font-size: 18px !important;
  }

  .stat-item p {
    font-size: 11px !important;
  }

  /* 8. Admin Table Adjustments (Fixes Overflow) */
  table {
    display: block !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
  }

  th, td {
    padding: 8px 10px !important;
    font-size: 12px !important;
  }

}

/* Gallery Mobile Optimizations */
  .gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  .gallery-img-box {
    height: 190px !important;
  }

  .gallery-info {
    padding: 12px 10px !important;
  }

  .gallery-info h3 {
    font-size: 15px !important;
  }

  .gallery-info p {
    font-size: 11px !important;
  }

.logo-title-hi {
    font-size: 22px !important;
  }
  
  .logo-title-en {
    font-size: 14px !important;
  }

/* Doctors Page Mobile Optimization */
@media (max-width: 640px) {
  .dr-top-section {
    flex-direction: column;
    text-align: center;
  }
  
  .dr-highlights li {
    justify-content: center;
  }
  
  .dr-detail-card {
    padding: 20px 15px;
  }

  .doctors-header h1 {
    font-size: 24px;
  }
}

/* --- एडमिन पैनल मोबाइल और हाइब्रिड रिस्पॉन्सिव स्टाइल --- */
@media screen and (max-width: 768px) {
  /* बॉडी और कंटेनर का पैडिंग कम करना ताकि मोबाइल पर जगह बचे */
  body {
    padding: 10px;
    font-size: 14px;
  }

  .admin-container, .dashboard-wrapper {
    width: 100% !important;
    padding: 10px !important;
    margin: 0 !important;
  }

  /* टैब्स और नेविगेशन बटन को मोबाइल पर वर्टिकल या स्क्रॉल करने योग्य बनाना */
  .admin-tabs, .nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
  }

  .admin-tabs button, .nav-tabs .tab-btn {
    flex: 1 1 45%;
    font-size: 13px;
    padding: 8px 5px;
    margin-bottom: 5px;
  }

  /* डेटा टेबल को मोबाइल पर होरिजॉन्تال स्क्रॉल देना ताकि टूटे नहीं */
  .table-responsive, table {
    width: 100%;
    overflow-x: auto;
    display: block;
    white-space: nowrap;
  }

  /* फॉर्म इनपुट्स और सर्च बार को मोबाइल फ्रेंडली बनाना */
  input[type="text"], input[type="password"], select, button {
    width: 100% !important;
    margin-bottom: 10px;
    font-size: 16px; /* मोबाइल पर ज़ूम इन समस्या रोकने के लिए */
  }

  /* लॉगिन या कार्ड्स का लेआउट */
  .login-card, .admin-card {
    width: 95% !important;
    margin: 20px auto !important;
    padding: 15px !important;
  }
}