/* ======= Responsive Design ======= */

/* Enhanced Smooth Scroll for All Screen Sizes */
html {
  scroll-behavior: smooth !important;
  scroll-padding-top: 100px !important;
}

* {
  scroll-behavior: smooth !important;
}

body {
  scroll-behavior: smooth !important;
  overflow-x: hidden !important;
}

/* Smooth scroll for navigation links */
a[href^="#"] {
  scroll-behavior: smooth !important;
}

/* Enhanced scroll behavior for all screen sizes */
section {
  scroll-margin-top: 100px !important;
  scroll-behavior: smooth !important;
}

/* Smooth scroll for buttons and CTAs */
.btn, .cta-button, .btn-appointment, .btn-advanced {
  scroll-behavior: smooth !important;
}

/* Mobile scroll optimization */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 80px !important;
  }
  
  section {
    scroll-margin-top: 80px !important;
  }
}

@media (max-width: 480px) {
  html {
    scroll-padding-top: 60px !important;
  }
  
  section {
    scroll-margin-top: 60px !important;
  }
}

/* Laptop/Desktop (1024px and below) */
@media (max-width: 1024px) {
  /* Header adjustments for 1024px */
  header {
    padding: 0 3rem;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .logo {
    width: 240px;
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
  }

  .logo img {
    height: 180px;
    margin-top: 15px;
    margin-bottom: -15px;
    object-position: left;
    width: auto;
    object-fit: contain;
  }

  nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    flex: 1;
    justify-content: flex-end;
  }

  nav ul {
    list-style: none;
    display: flex;
    gap: 2.2rem;
    align-items: center;
    margin-left: auto;
    height: 100%;
  }

  nav a {
    font-size: 1.1rem;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    padding: 0.8rem 0;
    position: relative;
    transition: color 0.3s ease;
    text-decoration: none;
    color: #222;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
  }

  nav a i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    line-height: 1;
  }

  nav a:hover i {
    color: green;
  }

  nav li a.active i {
    color: #059669;
  }

  nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 8px;
    width: 0%;
    height: 2px;
    background: green;
    transition: width 0.3s ease;
  }

  nav a:hover {
    color: green;
  }

  nav a:hover::after {
    width: 100%;
  }

  /* Active state for current section */
  nav li a.active {
    color: #059669;
  }

  nav li a.active::after {
    width: 100%;
  }

  /* Hide hamburger menu at 1024px - show full navigation */
  .hamburger {
    display: none;
  }

  .mobile-nav {
    display: none;
  }

  /* Ensure navigation doesn't overflow */
  nav ul {
    max-width: 100%;
    overflow: visible;
  }

  /* Additional space optimization */
  header {
    min-width: 0;
  }

  /* Contact section adjustments */
  .contact-methods {
    gap: 1.8rem;
    margin-bottom: 2.5rem;
  }

  .contact-cards-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    max-width: 1000px;
  }

  .contact-header .section-title {
    font-size: 2.8rem;
  }

  .contact-header .section-description {
    font-size: 1.1rem;
    max-width: 600px;
  }

  /* Services section adjustments */
  .services-section .container {
    max-width: 1000px;
    padding: 0 2rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* About section adjustments */
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }

  .about-content h2 {
    font-size: 2.2rem;
  }

  .about-content p {
    font-size: 1rem;
  }

  /* Testimonials section adjustments */
  .testimonials-section {
    padding: 80px 0;
  }

  .testimonials-header h2 {
    font-size: 2.2rem;
  }

  .testimonials-grid {
    gap: 1.5rem;
  }
  
  .testimonial-card {
    padding: 25px;
  }

  /* Floating buttons adjustments */
  .floating-contact-buttons {
    padding: 0 30px;
    bottom: 30px;
  }
  
  .floating-btn {
    width: 55px;
    height: 55px;
  }
  
  .floating-btn i {
    font-size: 22px;
  }

  .floating-appointment-btn {
    bottom: 30px;
    right: 100px;
  }

  .floating-appointment-btn a {
    padding: 12px 18px;
    font-size: 14px;
  }

  /* Stats section adjustments */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .stats-row {
    margin-left: 0%;
  }

  /* Equipment section adjustments */
  .equipment-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: start;
  }

  /* Center the TENS Therapy card in its row */
  .equipment-grid .equipment-card:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 400px;
  }

  /* Center text content inside equipment cards */
  .equipment-card {
    text-align: center;
  }

  /* Make last two service cards same size and stack nicely */
  .service-card[onclick="showServiceDetail('cardio-respiratory-rehab')"],
  .service-card[onclick="showServiceDetail('pediatric-rehab')"] {
    width: 100% !important;
    max-width: 500px !important;
    margin: 0 auto 2rem auto !important;
    display: block !important;
  }

  /* Move cardio card to the right using transform */
  .service-card[onclick="showServiceDetail('cardio-respiratory-rehab')"] {
    transform: translateX(50%) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Make statistics numbers bigger and text smaller */
  .stat-number {
    font-size: 2rem !important;
    font-weight: 700 !important;
  }

  .stat-label {
    font-size: 0.8rem !important;
    font-weight: 500 !important;
  }

  .equipment-card h3,
  .equipment-card p,
  .equipment-card .equipment-tags {
    text-align: center;
  }

  /* Center equipment tags specifically */
  .card-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .feature-tag {
    text-align: center;
  }

  /* Hero section adjustments */
  .hero-section {
    padding: 100px 0 60px;
  }

  /* Fix extra gap between header and home section */
  .home {
    margin-top: 90px;
    height: calc(100vh - 90px);
  }

  .hero-content-container {
    width: 95%;
    max-width: 1000px;
    gap: 2rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .overlay {
    width: 50%;
    max-width: none;
    text-align: center;
  }

  .overlay h1 {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
  }

  .overlay p {
    font-size: 1rem;
    margin-bottom: 1.8rem;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .btn {
    font-size: 0.95rem;
    padding: 10px 20px;
  }

  /* Contact form adjustments for 1024px */
  .hero-contact-form {
    width: 45%;
    max-width: none;
    padding: 1.2rem;
    margin-top: 0;
  }

  .hero-contact-form h3 {
    font-size: 20px;
  }

  .form-subtitle {
    font-size: 0.9rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 8px 12px 8px 40px !important;
    font-size: 14px;
  }

  .submit-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  /* Stats grid adjustments */
  .stats-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.6rem;
    margin-top: 0.8rem;
  }

  .stat-item {
    padding: 10px 6px;
  }

  .stat-number {
    font-size: 0.6rem;
  }

  .stat-text {
    font-size: 0.75rem;
  }

  /* Section padding adjustments */
  .section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .section-description {
    font-size: 1.1rem;
    max-width: 700px;
  }

  /* Container adjustments */
  .container {
    max-width: 1000px;
    padding: 0 2rem;
  }

  /* Footer adjustments */
  .footer-content {
    gap: 2rem;
  }

  .footer-section h3 {
    font-size: 1.2rem;
  }

  .footer-section p,
  .footer-section a {
    font-size: 0.95rem;
  }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
  /* Show hamburger menu for tablet */
  .hamburger {
    display: flex !important;
  }
  
  header {
    padding: 0 2rem;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    width: 320px;
  }

  .logo img {
    margin-top: 15px;
    height: 200px;
    margin-bottom: -15px;
  }

  nav ul {
    display: none !important; /* Hide main nav links on mobile */
  }

  nav a {
    font-size: 1rem;
  }

  /* Classic Clinic Hamburger for 768px */
  .hamburger {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 45px !important;
    height: 45px !important;
    background: linear-gradient(135deg, #059669, #047857) !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 3px 12px rgba(5, 150, 105, 0.25) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    z-index: 1001 !important;
  }

  .hamburger:hover {
    background: linear-gradient(135deg, #047857, #065f46) !important;
    box-shadow: 0 5px 18px rgba(5, 150, 105, 0.35) !important;
    transform: translateY(-1px) !important;
  }

  .hamburger span {
    display: block !important;
    width: 18px !important;
    height: 2px !important;
    background: white !important;
    margin: 2px 0 !important;
    transition: all 0.3s ease !important;
    border-radius: 1px !important;
  }

  /* Transform hamburger into X when active */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px) !important;
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0 !important;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px) !important;
  }

  /* Classic Clinic Mobile Navigation for 768px */
  .mobile-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    z-index: 1000 !important;
    display: none !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    opacity: 0 !important;
    transition: all 0.4s ease !important;
  }

  .mobile-nav.active {
    display: flex !important;
    opacity: 1 !important;
  }

  /* Mobile nav header removed - using hamburger for both open/close */

  /* Mobile nav cancel button removed - using hamburger for both open/close */

  .mobile-nav-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2rem !important;
  }

  .mobile-nav-links a {
    color: white !important;
    text-decoration: none !important;
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
  }

  .mobile-nav-links a:hover {
    color: #10b981 !important;
    background: rgba(16, 185, 129, 0.2) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3) !important;
  }

  .mobile-nav-links a i {
    margin-right: 0.8rem !important;
    font-size: 1.2rem !important;
  }

  .mobile-nav-footer {
    position: absolute !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    text-align: center !important;
  }

  .mobile-nav-footer p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem !important;
    font-weight: 300 !important;
    letter-spacing: 0.5px !important;
  }

  /* Move home section up a bit for 768px */
  .home {
    margin-top: 80px;
  }

  /* Hero content container adjustments for 768px */
  .hero-content-container {
    width: 90%;
    max-width: 800px;
    gap: 1.5rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .overlay {
    padding: 1.5rem;
    width: 48%;
    text-align: center;
  }

  .overlay h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .overlay p {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
  }

  /* Contact form adjustments for 768px */
  .hero-contact-form {
    width: 48%;
    padding: 1rem;
    margin-top: 0;
  }

  .hero-contact-form h3 {
    font-size: 18px;
    margin-bottom: 0.3rem;
  }

  .form-subtitle {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 8px 12px 8px 35px !important;
    font-size: 13px;
  }

  .submit-btn {
    padding: 8px 16px;
    font-size: 12px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.2rem;
    margin-top: 0.4rem;
  }

  .stat-item {
    padding: 2px 1px;
    border-radius: 3px;
  }

  .stat-number {
    font-size: 0.6rem !important;
    margin-bottom: 0px;
  }

  .stat-text {
    font-size: 0.7rem;
    line-height: 1.0;
  }

  .btn {
    font-size: 0.9rem;
    padding: 10px 18px;
  }

  /* About section adjustments for 768px */
  .about-section {
    padding: 4rem 1.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
  }

  /* Why Choose section at top */
  .why-choose-section {
    order: 1;
    margin-bottom: 2rem;
  }

  /* Content blocks in column */
  .about-content {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .content-block {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  /* About image at bottom */
  .about-image {
    order: 3;
    margin-top: 2rem;
  }

  .image-container {
    max-width: 500px;
    margin: 0 auto;
  }

  .image-container img {
    height: 400px;
  }

  /* Make tech-stats cards align in single row for 768px */
  .tech-stats {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 1rem !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
  }

  .tech-stats .stat-item {
    flex: 1 !important;
    max-width: 200px !important;
    margin: 0 !important;
  }

  /* Contact cards in single row for 768px */
  .contact-cards-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    gap: 1.5rem !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
  }

  .contact-cards-row .contact-card {
    flex: 1 !important;
    max-width: none !important;
    margin: 0 !important;
  }

  /* Map below contact cards */
  .map-section {
    margin-top: 2rem !important;
    order: 2 !important;
  }

  /* Make contact button text single line for 768px */
  .contact-card .contact-btn {
    white-space: nowrap !important;
    font-size: 0.8rem !important;
    padding: 0.6rem 1rem !important;
  }

  /* Make contact card text single line */
  .contact-card p {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Testimonials section form centering for 768px */
  .testimonials-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .testimonials-section .feedback-form-container {
    max-width: 700px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  .testimonials-section .feedback-form {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
  }

  /* Service section proper alignment for 768px */
  .services-section {
    padding: 4rem 1.5rem;
  }

  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
  }

  .service-card {
    width: 100%;
    margin: 0 auto !important;
    justify-self: center !important;
    align-self: center !important;
  }

  /* Fix any specific positioning issues */
  .service-card[onclick="showServiceDetail('cardio-respiratory-rehab')"] {
    margin: 0 auto !important;
    transform: none !important;
    float: none !important;
  }
}

/* Phones (480px and below) */
@media (max-width: 480px) {
  header {
    padding: 0 1rem;
    height: 100px;
    position: fixed;
    background-color: white; /* ✅ Add background color here */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Optional: subtle shadow */
    z-index: 999;
  }

  .logo {
    width: 140px;
  }

  .logo img {
    margin-top: 50px;
    height: 180px;
    margin-bottom: 10px;
  }

  nav {
    display: none; /* Hide main nav */
  }

  /* Modern Hamburger Menu for Small Screens */
  .hamburger {
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 10001;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
  }

  .hamburger:hover {
    background: rgba(5, 150, 105, 0.1);
  }

  .hamburger span {
    height: 4px;
    width: 35px;
    background: white;
    border-radius: 2px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  }

  .hamburger:hover span {
    background: white;
  }

  /* Transform hamburger into X when active */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px) !important;
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0 !important;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px) !important;
  }

  /* Full-Screen Mobile Navigation for Small Screens */
  .mobile-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
    z-index: 99999;
    padding: 0;
    transform: translateX(-100%);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
  }

  .mobile-nav.active {
    display: flex !important;
    transform: translateX(0) !important;
    animation: slideInFromLeft 0.5s ease-out;
  }

  @keyframes slideInFromLeft {
    0% {
      transform: translateX(-100%);
      opacity: 0;
    }
    100% {
      transform: translateX(0);
      opacity: 1;
    }
  }

  /* Navigation Header */
  .mobile-nav-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 2rem 2rem 1rem;
    position: relative;
  }

  /* Mobile nav cancel button - using consistent green clinic style */

  .mobile-nav-logo {
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }

  .mobile-nav-close {
    display: none !important;
  }

  .mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: rotate(45deg) scale(1.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
  }

  .mobile-nav-close:active {
    transform: rotate(90deg) scale(0.95);
  }

  /* Navigation Links */
  .mobile-nav-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    gap: 1.5rem;
  }

  .mobile-nav a {
    font-size: 1.6rem;
    font-weight: 500;
    padding: 1rem 2rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    min-width: 220px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .mobile-nav a:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
  }

  .mobile-nav a:active {
    transform: translateY(0);
  }

  .mobile-nav a i {
    margin-right: 1rem;
    font-size: 1.3rem;
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
  }

  .mobile-nav a:hover i {
    transform: scale(1.1);
  }

  /* Navigation Footer */
  .mobile-nav-footer {
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-nav-footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 300;
  }

  /* Other responsive styles */
  .overlay h1 {
    font-size: 1.5rem;
  }

  .overlay p {
    font-size: 0.9rem;
  }

  .btn {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  #about {
    scroll-margin-top: 0px !important; /* No margin, use JavaScript positioning */
    padding-top: 0px !important; /* No padding to align with header bottom */
  }

  #services {
    scroll-margin-top: 0px !important; /* No margin, use JavaScript positioning */
    padding-top: 0px !important; /* No padding to align with header bottom */
  }

  #testimonials {
    scroll-margin-top: 0px !important; /* No margin, use JavaScript positioning */
    padding-top: 0px !important; /* No padding to align with header bottom */
  }

  #contact {
    scroll-margin-top: 0px !important; /* No margin, use JavaScript positioning */
    padding-top: 0px !important; /* No padding to align with header bottom */
  }

  /* Mobile Styles - 480px and below */
  /* Show hamburger menu for mobile */
  .hamburger {
    display: flex !important;
  }
  
  /* Header adjustments for mobile */
  header {
    padding: 0 1rem;
    height: 70px;
  }

  .logo {
    width: 180px;
  }

  .logo img {
    height: 140px;
    margin-top: 10px;
    margin-bottom: -10px;
  }

  /* Home section adjustments for mobile - extend space to prevent cropping */
  .home {
    margin-top: -10px;
    min-height: 200vh;
    padding: 3rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }

  /* Reduce background image height for mobile screens */
  .slide {
    background-size: 100% 50% !important;
    background-position: center top !important;
  }

  /* Adjust floating contact buttons for mobile */
  .floating-contact-buttons {
    padding: 0 20px !important;
    bottom: 30px !important;
  }

  .floating-btn {
    width: 50px !important;
    height: 50px !important;
  }

  .floating-btn i {
    font-size: 20px !important;
  }

  /* Position floating appointment button between phone and WhatsApp for mobile */
  .floating-appointment-btn {
    bottom: 30px !important;
    right: 50% !important;
    transform: translateX(50%) !important;
  }

  .floating-appointment-btn a {
    padding: 10px 16px !important;
    font-size: 12px !important;
  }

  .hero-content-container {
    width: 100%;
    max-width: 450px;
    gap: 2rem;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0 auto;
    padding-top: 2rem;
  }

  .overlay {
    margin-top: 10%;
    padding: 1.2rem;
    width: 90%;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    margin-bottom: 1rem;
  }

  .overlay h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
  }

  .overlay p {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
  }

  /* Contact form styling for mobile - make it fit properly */
  .hero-contact-form {
    position: static !important;
    display: block !important;
    width: 100% !important;
    max-width: 450px !important;
    margin: 0 auto !important;
    padding: 1.8rem !important;
    background: white !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    transform: none !important;
  }

  .hero-contact-form h3 {
    font-size: 1.4rem !important;
    margin-bottom: 0.5rem !important;
    text-align: center !important;
  }

  .hero-contact-form .form-subtitle {
    font-size: 0.8rem !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
  }

  .hero-contact-form .contact-form input,
  .hero-contact-form .contact-form textarea {
    padding: 12px 12px 12px 40px !important;
    font-size: 14px !important;
    margin-bottom: 1rem !important;
    height: 48px !important;
    line-height: 1.4 !important;
  }

  /* Fix input icon alignment for mobile */
  .hero-contact-form .input-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
  }

  .hero-contact-form .input-icon {
    position: absolute !important;
    left: 14px !important;
    top: 40% !important;
    transform: translateY(-50%) !important;
    color: #64748b !important;
    font-size: 16px !important;
    z-index: 2 !important;
    pointer-events: none !important;
  }

  .hero-contact-form .submit-btn {
    padding: 8px 16px !important;
    font-size: 12px !important;
    width: 100% !important;
  }

  /* Statistics cards in form for mobile */
  .stats-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.2rem;
    margin-top: 0.5rem;
  }

  .stat-item {
    padding: 2px 1px;
    border-radius: 3px;
  }

  .stat-number {
    font-size: 0.6rem !important;
    margin-bottom: 0px;
  }

  .stat-text {
    font-size: 0.7rem;
    line-height: 1.0;
  }

  /* About section for mobile - compact layout */
  .about-section {
    padding: 2rem 1rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: center;
  }

  .why-choose-section {
    order: 1;
    margin-bottom: 1rem;
  }

  .why-choose-section h2,
  .why-choose-section .content-intro h3 {
    font-size: 1.2rem !important;
    margin-bottom: 0.8rem !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    text-align: center !important;
    word-break: keep-all !important;
    overflow: hidden !important;
  }

  /* Make "Your Trusted Partner in Recovery" display in two lines */
  .about-section h2 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }

  .why-choose-section p {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
  }

  .about-content {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }

  .about-content .feature-card {
    width: 100% !important;
    max-width: 350px !important;
    margin: 0 auto 1rem auto !important;
    background: white !important;
    border-radius: 12px !important;
    padding: 1.2rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #f1f5f9 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.8rem !important;
    transition: none !important;
    transform: none !important;
    position: relative !important;
  }

  .about-content .feature-card::before {
    display: none !important;
  }

  .about-content .feature-card:hover {
    transform: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border-color: #f1f5f9 !important;
  }

  .about-content .feature-icon {
    width: 50px !important;
    height: 50px !important;
    margin-bottom: 0 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #059669, #047857) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    order: 1 !important;
    position: relative !important;
    z-index: 2 !important;
  }

  .about-content .feature-icon i {
    font-size: 20px !important;
    color: white !important;
  }

  .about-content .feature-content {
    order: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
  }

  .about-content .feature-content h4 {
    font-size: 1.2rem !important;
    margin-bottom: 0.6rem !important;
    color: #1e293b !important;
    font-weight: 600 !important;
    order: 1 !important;
    text-align: center !important;
  }

  .about-content .feature-content p {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    color: #64748b !important;
    margin: 0 0 0.8rem 0 !important;
    order: 2 !important;
    text-align: center !important;
  }

  .about-content .feature-benefits {
    order: 4 !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .about-content .feature-benefits li {
    font-size: 0.75rem !important;
    color: #64748b !important;
    margin-bottom: 0.3rem !important;
  }

  /* Send Message Button - Mobile Styling */
  .hero-contact-form .contact-form .submit-btn,
  .contact-form .submit-btn {
    width: 100% !important;
    padding: 16px 24px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    border: none !important;
    color: white !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3) !important;
    transition: all 0.3s ease !important;
    margin-top: 1rem !important;
  }

  .hero-contact-form .contact-form .submit-btn:hover,
  .contact-form .submit-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4) !important;
  }

  .about-image {
    order: 3;
    margin-top: 1rem;
  }

  .image-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 0.5rem;
  }

  .image-container img {
    width: 100% !important;
    height: 400px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
  }

  /* Stats row for mobile */
  .stats-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 0.8rem !important;
    flex-wrap: wrap !important;
    margin-top: 2rem !important;
    padding: 0 0.5rem !important;
  }

  .stats-row .stat-item {
    flex: 1 !important;
    min-width: 110px !important;
    max-width: 130px !important;
    margin: 0 !important;
    text-align: center !important;
    padding: 1.5rem 0.8rem !important;
    background: white !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
  }

  .stats-row .stat-item::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #059669, #10b981) !important;
    transform: scaleX(0) !important;
    transition: transform 0.3s ease !important;
  }

  .stats-row .stat-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
  }

  .stats-row .stat-item:hover::before {
    transform: scaleX(1) !important;
  }

  .stats-row .stat-number {
    font-size: 2.2rem !important;
    font-weight: 900 !important;
    color: #059669 !important;
    margin-bottom: 0.5rem !important;
    line-height: 1 !important;
    text-shadow: 0 2px 4px rgba(5, 150, 105, 0.2) !important;
  }

  .stats-row .stat-label {
    font-size: 0.65rem !important;
    color: #64748b !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    text-align: center !important;
    margin: 0 !important;
  }

  /* Equipment Section - Complete Mobile Redesign */
  .equipment-section {
    padding: 3rem 1rem !important;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    position: relative !important;
  }

  .equipment-section::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #059669, #10b981, #059669) !important;
  }

  .equipment-section h2 {
    font-size: 2rem !important;
    text-align: center !important;
    margin-bottom: 0.5rem !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    position: relative !important;
  }

  .equipment-section h2::after {
    content: '' !important;
    position: absolute !important;
    bottom: -8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60px !important;
    height: 3px !important;
    background: linear-gradient(90deg, #059669, #10b981) !important;
    border-radius: 2px !important;
  }

  .equipment-section p {
    font-size: 1rem !important;
    text-align: center !important;
    margin-bottom: 2.5rem !important;
    color: #64748b !important;
    line-height: 1.6 !important;
    max-width: 300px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .equipment-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    max-width: 380px !important;
    margin: 0 auto !important;
  }

  .equipment-card {
    background: white !important;
    border-radius: 20px !important;
    padding: 0 !important;
    text-align: center !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    transform: translateY(0) !important;
  }

  .equipment-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #059669, #10b981) !important;
    transform: scaleX(0) !important;
    transition: transform 0.3s ease !important;
  }

  .equipment-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
  }

  .equipment-card:hover::before {
    transform: scaleX(1) !important;
  }

  .equipment-card img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    border-radius: 20px 20px 0 0 !important;
    margin-bottom: 0 !important;
    transition: transform 0.3s ease !important;
  }

  .equipment-card:hover img {
    transform: scale(1.05) !important;
  }

  .equipment-card-content {
    padding: 1.5rem !important;
    position: relative !important;
  }

  .equipment-card h3 {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-bottom: 0.8rem !important;
    margin-top: 0 !important;
    line-height: 1.3 !important;
    text-align: center !important;
  }

  .equipment-card p {
    font-size: 0.9rem !important;
    color: #64748b !important;
    line-height: 1.5 !important;
    margin-bottom: 1.2rem !important;
    text-align: center !important;
    display: block !important;
    -webkit-line-clamp: none !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
  }

  .equipment-features {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    justify-content: center !important;
    margin-top: 0 !important;
  }

  .equipment-features .feature-tag {
    background: linear-gradient(135deg, #059669, #047857) !important;
    color: white !important;
    padding: 0.4rem 1rem !important;
    border-radius: 25px !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3) !important;
    transition: all 0.3s ease !important;
  }

  .equipment-features .feature-tag:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4) !important;
  }

  /* Contact section for mobile */
  .contact-cards-row {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1rem !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
  }

  .contact-cards-row .contact-card {
    flex: none !important;
    max-width: 300px !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .map-section {
    margin-top: 1.5rem !important;
    order: 2 !important;
  }

  .contact-card .contact-btn {
    white-space: nowrap !important;
    font-size: 0.7rem !important;
    padding: 0.5rem 0.8rem !important;
  }

  .contact-card p {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Services section for mobile */
  .services-section {
    padding: 3rem 1rem;
  }

  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 400px;
    margin: 0 auto;
  }

  .service-card {
    width: 100%;
    margin: 0 auto !important;
    justify-self: center !important;
    align-self: center !important;
  }

  /* Testimonials section for mobile */
  .testimonials-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
  }

  .testimonials-section .feedback-form-container {
    max-width: 350px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 20px !important;
  }

  .testimonials-section .feedback-form {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }

  /* Tech Stats - Modern Mobile Redesign */
  .tech-stats {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 0.8rem !important;
    flex-wrap: wrap !important;
    margin-top: 2rem !important;
    padding: 0 0.5rem !important;
  }

  .tech-stats .stat-item {
    flex: 1 !important;
    min-width: 110px !important;
    max-width: 130px !important;
    margin: 0 !important;
    text-align: center !important;
    padding: 1.5rem 0.8rem !important;
    background: white !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
  }

  .tech-stats .stat-item::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #059669, #10b981) !important;
    transform: scaleX(0) !important;
    transition: transform 0.3s ease !important;
  }

  .tech-stats .stat-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
  }

  .tech-stats .stat-item:hover::before {
    transform: scaleX(1) !important;
  }

  .tech-stats .stat-icon {
    width: 50px !important;
    height: 50px !important;
    background: linear-gradient(135deg, #059669, #047857) !important;
    border-radius: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 1rem !important;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3) !important;
    transition: all 0.3s ease !important;
  }

  .tech-stats .stat-item:hover .stat-icon {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4) !important;
  }

  .tech-stats .stat-icon i {
    font-size: 20px !important;
    color: white !important;
  }

  .tech-stats .stat-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .tech-stats .stat-number {
    font-size: 2.2rem !important;
    font-weight: 900 !important;
    color: #059669 !important;
    margin-bottom: 0.5rem !important;
    line-height: 1 !important;
    text-shadow: 0 2px 4px rgba(5, 150, 105, 0.2) !important;
  }

  .tech-stats .stat-label {
    font-size: 0.65rem !important;
    color: #64748b !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    text-align: center !important;
    margin: 0 !important;
  }

  /* Make "Transforming your health journey" display in two attractive lines */
  .services-section .section-title {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    font-size: 1.8rem !important;
    line-height: 1.3 !important;
    margin-bottom: 1.5rem !important;
    text-align: center !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    word-spacing: 0.1em !important;
    letter-spacing: 0.02em !important;
  }

  /* Service Detail Sections - Image Top, Content Below */
  .service-detail-section {
    padding: 2rem 1rem !important;
    background: #f8fafc !important;
  }

  .service-detail-section .detail-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    background: white !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    max-width: 100% !important;
  }

  .service-detail-section .detail-container img {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    border-radius: 20px 20px 0 0 !important;
    margin-bottom: 0 !important;
    order: 1 !important;
  }

  .service-detail-section .detail-text {
    padding: 1.5rem !important;
    order: 2 !important;
    width: 100% !important;
    text-align: center !important;
  }

  .service-detail-section .detail-text h3 {
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
    line-height: 1.3 !important;
  }

  .service-detail-section .detail-text p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: #64748b !important;
    text-align: center !important;
    margin-bottom: 1.5rem !important;
    max-width: 100% !important;
  }

  .service-detail-section .btn {
    width: 100% !important;
    max-width: 250px !important;
    padding: 12px 24px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #059669, #047857) !important;
    color: white !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3) !important;
  }

  .service-detail-section .btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4) !important;
  }

  .service-detail-section .btn i {
    font-size: 1.1rem !important;
  }
}

/* ==================== VERY SMALL SCREENS (320px and below) ==================== */
@media (max-width: 320px) {
  /* Header adjustments for very small screens */
  header {
    padding: 0 0.5rem !important;
    height: 60px !important;
  }

  .logo {
    width: 120px !important;
  }

  .logo img {
    height: 100px !important;
    margin-top: 5px !important;
    margin-bottom: -5px !important;
  }

  /* Hamburger menu for very small screens */
  .hamburger {
    width: 35px !important;
    height: 35px !important;
    padding: 6px !important;
  }

  .hamburger span {
    width: 15px !important;
    height: 1.5px !important;
    margin: 1.5px 0 !important;
  }

  /* Home section adjustments */
  .home {
    margin-top: -5px !important;
    min-height: 180vh !important;
    padding: 2rem 0.5rem !important;
  }

  /* Further reduce background image height for very small screens */
  .slide {
    background-size: 100% 50% !important;
    background-position: center top !important;
  }

  /* Adjust floating contact buttons for very small screens */
  .floating-contact-buttons {
    padding: 0 15px !important;
    bottom: 30px !important;
  }

  .floating-btn {
    width: 45px !important;
    height: 45px !important;
  }

  .floating-btn i {
    font-size: 18px !important;
  }

  /* Position floating appointment button between phone and WhatsApp for very small screens */
  .floating-appointment-btn {
    bottom: 30px !important;
    right: 50% !important;
    transform: translateX(50%) !important;
  }

  .floating-appointment-btn a {
    padding: 8px 14px !important;
    font-size: 11px !important;
  }

  .hero-content-container {
    width: 100% !important;
    max-width: 300px !important;
    gap: 1.5rem !important;
    padding-top: 1rem !important;
  }

  .overlay {
    margin-top: 5% !important;
    padding: 0.8rem !important;
    border-radius: 12px !important;
    width: 90% !important;
  }

  .overlay h1 {
    font-size: 1.5rem !important;
    margin-bottom: 0.6rem !important;
    line-height: 1.1 !important;
  }

  .overlay p {
    font-size: 0.8rem !important;
    margin-bottom: 0.6rem !important;
    line-height: 1.2 !important;
  }

  .btn {
    font-size: 0.75rem !important;
    padding: 6px 12px !important;
  }

  /* Contact form for very small screens */
  .hero-contact-form {
    max-width: 300px !important;
    padding: 1.2rem !important;
    border-radius: 12px !important;
  }

  .hero-contact-form h3 {
    font-size: 1.1rem !important;
    margin-bottom: 0.3rem !important;
  }

  .hero-contact-form .form-subtitle {
    font-size: 0.7rem !important;
    margin-bottom: 0.8rem !important;
  }

  .hero-contact-form .contact-form input,
  .hero-contact-form .contact-form textarea {
    padding: 10px 10px 10px 35px !important;
    font-size: 13px !important;
    margin-bottom: 0.8rem !important;
    height: 42px !important;
  }

  .hero-contact-form .input-icon {
    left: 12px !important;
    font-size: 14px !important;
  }

  .hero-contact-form .submit-btn {
    padding: 6px 12px !important;
    font-size: 11px !important;
  }

  /* Statistics in form for very small screens */
  .stats-grid {
    gap: 0.1rem !important;
    margin-top: 0.3rem !important;
  }

  .stat-item {
    padding: 1px 0.5px !important;
    border-radius: 2px !important;
  }

  .stat-number {
    font-size: 0.5rem !important;
  }

  .stat-text {
    font-size: 0.6rem !important;
    line-height: 0.9 !important;
  }

  /* About section for very small screens */
  .about-section {
    padding: 1.5rem 0.5rem !important;
  }

  .about-section h2 {
    font-size: 1.6rem !important;
    line-height: 1.1 !important;
    margin-bottom: 0.8rem !important;
  }

  .why-choose-section h2,
  .why-choose-section .content-intro h3 {
    font-size: 1rem !important;
    margin-bottom: 0.6rem !important;
    line-height: 1 !important;
  }

  .why-choose-section p {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
  }

  .about-content {
    gap: 0.6rem !important;
  }

  .about-content .feature-card {
    max-width: 280px !important;
    padding: 1rem !important;
    border-radius: 10px !important;
    gap: 0.6rem !important;
  }

  .about-content .feature-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
  }

  .about-content .feature-icon i {
    font-size: 16px !important;
  }

  .about-content .feature-content h4 {
    font-size: 1rem !important;
    margin-bottom: 0.4rem !important;
  }

  .about-content .feature-content p {
    font-size: 0.7rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.6rem !important;
  }

  .about-content .feature-benefits li {
    font-size: 0.65rem !important;
    margin-bottom: 0.2rem !important;
  }

  /* Send Message Button for very small screens */
  .hero-contact-form .contact-form .submit-btn,
  .contact-form .submit-btn {
    padding: 12px 18px !important;
    font-size: 0.9rem !important;
    border-radius: 10px !important;
  }

  /* Dr. Rohith image for very small screens */
  .image-container {
    padding: 0 0.3rem !important;
  }

  .image-container img {
    height: 300px !important;
    border-radius: 15px !important;
  }

  /* Stats row for very small screens */
  .stats-row {
    gap: 0.5rem !important;
    margin-top: 1.5rem !important;
    padding: 0 0.3rem !important;
  }

  .stats-row .stat-item {
    min-width: 90px !important;
    max-width: 100px !important;
    padding: 1rem 0.5rem !important;
    border-radius: 15px !important;
  }

  .stats-row .stat-number {
    font-size: 1.8rem !important;
    margin-bottom: 0.3rem !important;
  }

  .stats-row .stat-label {
    font-size: 0.55rem !important;
    letter-spacing: 0.6px !important;
  }

  /* Equipment Section for very small screens */
  .equipment-section {
    padding: 2rem 0.5rem !important;
  }

  .equipment-section h2 {
    font-size: 1.6rem !important;
    margin-bottom: 0.3rem !important;
  }

  .equipment-section h2::after {
    width: 40px !important;
    height: 2px !important;
    bottom: -6px !important;
  }

  .equipment-section p {
    font-size: 0.85rem !important;
    margin-bottom: 2rem !important;
    max-width: 250px !important;
    line-height: 1.4 !important;
  }

  .equipment-grid {
    max-width: 280px !important;
    gap: 1rem !important;
  }

  .equipment-card {
    border-radius: 15px !important;
  }

  .equipment-card img {
    height: 140px !important;
    border-radius: 15px 15px 0 0 !important;
  }

  .equipment-card-content {
    padding: 1rem !important;
  }

  .equipment-card h3 {
    font-size: 1rem !important;
    margin-bottom: 0.6rem !important;
  }

  .equipment-card p {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    margin-bottom: 1rem !important;
  }

  .equipment-features .feature-tag {
    padding: 0.3rem 0.8rem !important;
    font-size: 0.6rem !important;
    border-radius: 20px !important;
  }

  /* Contact section for very small screens */
  .contact-cards-row .contact-card {
    max-width: 250px !important;
  }

  .contact-card .contact-btn {
    font-size: 0.65rem !important;
    padding: 0.4rem 0.6rem !important;
  }

  /* Services section for very small screens */
  .services-section {
    padding: 2rem 0.5rem !important;
  }

  .services-grid {
    max-width: 280px !important;
    gap: 1rem !important;
  }

  .services-section .section-title {
    font-size: 1.4rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }

  /* Testimonials section for very small screens */
  .testimonials-section .feedback-form-container {
    max-width: 280px !important;
    padding: 15px !important;
  }

  .testimonials-section .feedback-form {
    max-width: 280px !important;
  }

  /* Tech Stats for very small screens */
  .tech-stats {
    gap: 0.5rem !important;
    margin-top: 1.5rem !important;
    padding: 0 0.3rem !important;
  }

  .tech-stats .stat-item {
    min-width: 90px !important;
    max-width: 100px !important;
    padding: 1rem 0.5rem !important;
    border-radius: 15px !important;
  }

  .tech-stats .stat-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    margin-bottom: 0.8rem !important;
  }

  .tech-stats .stat-icon i {
    font-size: 16px !important;
  }

  .tech-stats .stat-number {
    font-size: 1.8rem !important;
    margin-bottom: 0.3rem !important;
  }

  .tech-stats .stat-label {
    font-size: 0.55rem !important;
    letter-spacing: 0.6px !important;
  }

  /* Service Detail Sections for very small screens */
  .service-detail-section {
    padding: 1.5rem 0.5rem !important;
  }

  .service-detail-section .detail-container {
    border-radius: 15px !important;
  }

  .service-detail-section .detail-container img {
    height: 180px !important;
    border-radius: 15px 15px 0 0 !important;
  }

  .service-detail-section .detail-text {
    padding: 1rem !important;
  }

  .service-detail-section .detail-text h3 {
    font-size: 1.3rem !important;
    margin-bottom: 0.8rem !important;
  }

  .service-detail-section .detail-text p {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
  }

  .service-detail-section .btn {
    max-width: 200px !important;
    padding: 10px 18px !important;
    font-size: 0.9rem !important;
    border-radius: 10px !important;
  }

  .service-detail-section .btn i {
    font-size: 1rem !important;
  }

  /* Mobile navigation for very small screens */
  .mobile-nav-links {
    padding: 2rem 1rem !important;
    gap: 1rem !important;
  }

  .mobile-nav a {
    font-size: 1.3rem !important;
    padding: 0.8rem 1.5rem !important;
    min-width: 180px !important;
    border-radius: 12px !important;
  }

  .mobile-nav a i {
    margin-right: 0.8rem !important;
    font-size: 1.1rem !important;
    width: 16px !important;
  }

  .mobile-nav-header {
    padding: 1.5rem 1rem 0.8rem !important;
  }

  .mobile-nav-cancel {
    width: 35px !important;
    height: 35px !important;
    font-size: 1.4rem !important;
    padding: 0.6rem !important;
  }

  .mobile-nav-footer {
    padding: 1rem !important;
  }

  .mobile-nav-footer p {
    font-size: 0.8rem !important;
  }
}

/* ==================== ADMIN PANEL RESPONSIVE STYLES ==================== */

/* Tablet and Small Desktop (1024px and below) */
@media (max-width: 1024px) {
  .admin-sidebar {
    width: 220px;
  }
  
  .admin-main {
    padding: 25px;
  }
  
  .admin-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .admin-services-grid,
  .admin-equipment-grid,
  .admin-reports-grid,
  .admin-settings-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
  }
}

/* Tablet (768px and below) */
@media (max-width: 768px) {
  .admin-dashboard {
    flex-direction: column;
  }
  
  .admin-header {
    padding: 15px 20px;
  }
  
  .admin-dashboard-logo h1 {
    font-size: 1.5rem;
  }
  
  .admin-dashboard-logo i {
    font-size: 1.5rem;
  }
  
  .admin-content {
    flex-direction: column;
  }
  
  .admin-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .admin-nav {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
  }
  
  .admin-nav-item {
    flex-shrink: 0;
    padding: 10px 20px;
    border-left: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
  }
  
  .admin-nav-item:hover,
  .admin-nav-item.active {
    border-left: none;
    border-bottom-color: #2c5aa0;
  }
  
  .admin-main {
    padding: 20px;
  }
  
  .admin-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .admin-section-header h2 {
    font-size: 1.5rem;
  }
  
  .admin-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
  }
  
  .admin-stat-card {
    padding: 20px;
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .stat-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .stat-content h3 {
    font-size: 1.5rem;
  }
  
  .admin-table-container {
    overflow-x: auto;
  }
  
  .admin-table {
    min-width: 600px;
  }
  
  .admin-services-grid,
  .admin-equipment-grid,
  .admin-reports-grid,
  .admin-settings-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .admin-search-bar {
    flex-direction: column;
    gap: 10px;
  }
  
  .service-actions,
  .equipment-actions {
    flex-direction: column;
    gap: 8px;
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  .admin-login {
    padding: 15px;
  }
  
  .admin-login-container {
    padding: 30px 20px;
  }
  
  .admin-logo h2 {
    font-size: 1.5rem;
  }
  
  .admin-logo i {
    font-size: 2rem;
  }
  
  .admin-header {
    padding: 12px 15px;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .admin-dashboard-logo {
    flex-direction: column;
    gap: 8px;
  }
  
  .admin-dashboard-logo h1 {
    font-size: 1.3rem;
  }
  
  .admin-dashboard-logo i {
    font-size: 1.3rem;
  }
  
  .admin-logout-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
  
  .admin-main {
    padding: 15px;
  }
  
  .admin-section-header h2 {
    font-size: 1.3rem;
  }
  
  .admin-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .admin-stat-card {
    padding: 15px;
  }
  
  .stat-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .stat-content h3 {
    font-size: 1.3rem;
  }
  
  .admin-table th,
  .admin-table td {
    padding: 10px 12px;
    font-size: 0.8rem;
  }
  
  .admin-btn {
    padding: 8px 15px;
    font-size: 0.8rem;
  }
  
  .admin-btn.small {
    padding: 5px 10px;
    font-size: 0.7rem;
  }
  
  .admin-service-card,
  .admin-equipment-card,
  .admin-report-card,
  .admin-setting-card {
    padding: 20px;
  }
  
  .service-icon,
  .equipment-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .chart-placeholder {
    height: 150px;
  }
  
  .chart-placeholder i {
    font-size: 1.5rem;
  }
  
  .activity-item {
    padding: 12px;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .activity-icon {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}

/* Very Small Mobile (320px and below) */
@media (max-width: 320px) {
  .admin-login-container {
    padding: 25px 15px;
  }
  
  .admin-logo h2 {
    font-size: 1.3rem;
  }
  
  .admin-logo i {
    font-size: 1.8rem;
  }
  
  .admin-header {
    padding: 10px 12px;
  }
  
  .admin-dashboard-logo h1 {
    font-size: 1.2rem;
  }
  
  .admin-main {
    padding: 12px;
  }
  
  .admin-section-header h2 {
    font-size: 1.2rem;
  }
  
  .admin-stat-card {
    padding: 12px;
  }
  
  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .stat-content h3 {
    font-size: 1.2rem;
  }
  
  .admin-table th,
  .admin-table td {
    padding: 8px 10px;
    font-size: 0.75rem;
  }
  
  .admin-service-card,
  .admin-equipment-card,
  .admin-report-card,
  .admin-setting-card {
    padding: 15px;
  }
  
  .service-icon,
  .equipment-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .chart-placeholder {
    height: 120px;
  }
  
  .chart-placeholder i {
    font-size: 1.3rem;
  }
}

/* ==================== FOOTER MOBILE RESPONSIVE STYLES ==================== */

/* Mobile Footer Adjustments (768px and below) */
@media (max-width: 768px) {
  .footer-section {
    padding: 1.5rem 0;
  }
  
  .footer-container {
    padding: 0 1.5rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    align-items: center;
  }
  
  .footer-brand h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
  }
  
  .footer-brand h3 a {
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  
  /* Make clinic emoji larger on mobile */
  .footer-brand h3 a::after {
    content: "🏥";
    font-size: 1.6rem;
    display: inline-block;
    margin-left: 6px;
  }
  
  .footer-brand p {
    font-size: 0.9rem;
    margin-bottom: 0;
  }
  
  .footer-social {
    gap: 1.2rem;
    justify-content: center;
  }
  
  .footer-social a {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
  
  .footer-bottom {
    padding-top: 1rem;
    margin-top: 1rem;
  }
  
  .footer-bottom p {
    font-size: 0.85rem;
  }
}

/* Small Mobile Footer Adjustments (480px and below) */
@media (max-width: 480px) {
  .footer-section {
    padding: 1.2rem 0;
  }
  
  .footer-container {
    padding: 0 1rem;
  }
  
  .footer-content {
    gap: 1.2rem;
  }
  
  .footer-brand h3 {
    font-size: 1.3rem;
  }
  
  .footer-brand h3 a {
    font-size: 1.3rem;
  }
  
  /* Even larger clinic emoji for small screens */
  .footer-brand h3 a::after {
    font-size: 1.8rem;
    margin-left: 8px;
  }
  
  .footer-brand p {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  
  .footer-social {
    gap: 1rem;
  }
  
  .footer-social a {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
  
  .footer-bottom p {
    font-size: 0.8rem;
  }
}

/* Extra Small Mobile Footer Adjustments (320px and below) */
@media (max-width: 320px) {
  .footer-section {
    padding: 1rem 0;
  }
  
  .footer-container {
    padding: 0 0.8rem;
  }
  
  .footer-content {
    gap: 1rem;
  }
  
  .footer-brand h3 {
    font-size: 1.2rem;
  }
  
  .footer-brand h3 a {
    font-size: 1.2rem;
  }
  
  /* Maximum size clinic emoji for very small screens */
  .footer-brand h3 a::after {
    font-size: 2rem;
    margin-left: 10px;
  }
  
  .footer-brand p {
    font-size: 0.8rem;
  }
  
  .footer-social {
    gap: 0.8rem;
  }
  
  .footer-social a {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .footer-bottom p {
    font-size: 0.75rem;
  }
}
