/* Responsive Design */
@media (max-width: 1200px) {
  .about-clinic-wrapper {
    padding-left: 30px;
    padding-right: 30px;
    box-sizing: border-box;
  }

  .testimonials-wrapper {
    padding: 0 20px;
    box-sizing: border-box;
  }

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

  .cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 968px) {
  .about-clinic-wrapper {
    flex-direction: column;
    padding-left: 0;
  }

  .about-clinic-content {
    width: 100%;
    padding: 48px 30px;
  }

  .clinic-image-wrapper {
    width: 100%;
    height: 400px;
  }

  .testimonials-wrapper {
    flex-direction: column;
  }

  .testimonial-image-wrapper {
    width: 100%;
    height: 300px;
  }

  .testimonials-content {
    width: 100%;
    padding: 30px;
    height: auto;
  }

  .testimonial-card {
    padding: 0 16px;
  }

  .slider-arrow {
    width: 32px;
    height: 32px;
  }

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

  /* Navigation adjustments for tablets */
  .nav-menu {
    gap: 0;
  }

  .nav-link {
    padding: 12px 15px;
    font-size: 13px;
  }

  /* Footer - Stack columns on tablets */
  .footer .footer-content {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 40px;
  }

  .footer .footer-column {
    width: 100%;
  }

  .footer-services,
  .footer-contact {
    text-align: center;
  }

  .social-media {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* Top Header */
  .top-header {
    display: none;
  }

  .top-header-content {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .top-header-right {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  .contact-info-top {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .contact-item-top {
    font-size: 12px;
  }

  .appointment-btn {
    width: 100%;
    font-size: 12px;
    padding: 8px 16px;
  }

  /* Navigation */
  .main-nav {
    padding: 15px 0;
  }

  .main-nav .container {
    padding: 0;
    box-sizing: border-box;
  }

  .mobile-menu-toggle {
    display: flex;
    order: 0;
    position: relative;
    z-index: 10000;
  }

  .nav-content {
    flex-wrap: wrap;
    gap: 15px;
    position: static;
  }

  .logo {
    order: 1;
    margin: 0 auto;
    z-index: 10000;
    position: relative;
  }

  .logo {
    min-width: auto;
    max-width: 150px;
  }

  .logo img {
    max-height: 45px;
  }

  .nav-menu {
    order: 3;
    flex-direction: column;
    display: none;
    gap: 0;
    background: var(--white);
    padding: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    height: 100vh;
    transform: none;
    margin: 0;
    border-radius: 0;
    z-index: 9999;
    overflow-y: auto;
    justify-content: flex-start;
    padding-top: 80px;
  }

  .nav-menu.active {
    display: flex;
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
  }

  .nav-link {
    padding: 15px 20px;
    text-align: right;
    width: 100%;
    border-bottom: 1px solid var(--mercury);
    justify-content: space-between;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  .nav-link:active {
    background-color: var(--mercury);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link.home-link {
    color: var(--tundora);
  }

  .has-dropdown {
    width: 100%;
  }

  .has-dropdown .nav-link {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    min-width: 100%;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    opacity: 1;
    transform: none;
    background: var(--mercury);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .has-dropdown.active .dropdown-menu {
    display: block;
    max-height: 1000px;
    padding: 8px 0;
    background: var(--mercury);
  }

  .dropdown-menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .dropdown-menu a {
    padding: 12px 40px;
    font-size: 13px;
  }

  /* Hero Section */
  .hero-slide img {
    object-position: 60% center;
  }

  .hero-slide.slide-2 img {
    object-position: 45% center;
  }

  .hero-slide.slide-3 img {
    object-position: 85% center;
  }

  .hero-overlay {
    align-items: flex-start;
    padding-top: 120px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-cta-btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  /* Hero Services Cards */
  .hero-services {
    margin-top: -100px;
    max-width: 100%;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
  }

  .service-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
    max-width: 100%;
    box-sizing: border-box;
    width: 100%;
  }

  .service-card {
    width: 100%;
    max-width: 100%;
    padding: 24px 20px;
    box-sizing: border-box;
    min-width: 0;
  }

  .service-card h3 {
    font-size: 18px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .service-card p {
    font-size: 13px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .service-icon {
    width: 80px;
    height: 80px;
  }

  .service-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    aspect-ratio: 286 / 105;
    margin-top: 10px;
  }

  .service-btn {
    font-size: 15px;
    padding: 16px 30px;
  }

  .contact-branches {
    gap: 16px;
  }

  .branch-box {
    padding: 20px 16px;
    flex-direction: column;
    text-align: center;
  }

  .branch-icon {
    margin: 0 auto 4px;
    font-size: 24px;
  }

  .branch-content {
    text-align: center;
  }

  .branch-title {
    font-size: 16px;
  }

  .branch-phone {
    font-size: 14px;
  }

  .branch-address {
    font-size: 12px;
  }

  .whatsapp-btn {
    font-size: 15px;
    padding: 16px 30px;
  }

  .whatsapp-btn i {
    font-size: 18px;
  }

  /* Cases & Doctor Section */
  .cases-doctor-section {
    padding: 40px 20px;
    box-sizing: border-box;
    width: 100%;
  }

  .cases-doctor-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cases-column {
    width: 100%;
  }

  .cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  /* About Clinic Section */
  .about-clinic {
    padding: 40px 0;
  }

  .about-clinic-wrapper {
    flex-direction: column;
    padding: 0 20px;
    padding-left: 0;
    box-sizing: border-box;
    width: 100%;
  }

  .about-clinic-content {
    width: 100%;
    max-width: 100%;
    padding: 30px 0;
    box-sizing: border-box;
  }

  .clinic-image-wrapper {
    width: 100%;
    max-width: 100%;
    height: 350px;
    order: -1;
    margin-bottom: 20px;
    box-sizing: border-box;
  }

  .stats-row {
    flex-wrap: wrap;
    gap: 20px;
  }

  .stat-item {
    min-width: calc(50% - 10px);
  }

  /* Testimonials Section */
  .testimonials-section {
    padding: 40px 0;
  }

  .testimonials-wrapper {
    flex-direction: column;
    padding: 0 20px;
    padding-right: 0;
    box-sizing: border-box;
    width: 100%;
  }

  .testimonial-image-wrapper {
    width: 100%;
    height: 300px;
  }

  .testimonials-content {
    width: 100%;
    max-width: 100%;
    padding: 30px 0;
    padding-right: 0;
    height: auto;
    box-sizing: border-box;
  }

  /* Services Section */
  .services-section {
    padding: 40px 0;
  }

  .services-container {
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
  }

  .services-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card-item {
    padding: 24px;
  }

  .service-card-image {
    height: 160px;
  }

  /* Footer */
  .footer {
    padding: 40px 0 20px;
  }

  .footer-container {
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
  }

  .footer .footer-content {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 40px;
  }

  .footer .footer-column {
    width: 100%;
  }

  .footer-services,
  .footer-contact {
    text-align: center;
  }

  .social-media {
    justify-content: center;
  }

  /* Floating Buttons */
  .whatsapp-float {
    position: fixed !important;
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 20px;
    right: 20px;
    z-index: 9999 !important;
  }

  .scroll-to-top {
    width: 35px;
    height: 35px;
    font-size: 14px;
    bottom: 20px;
    left: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-slide img {
    object-position: 65% center;
  }

  .hero-slide.slide-2 img {
    object-position: 50% center;
  }

  .hero-slide.slide-3 img {
    object-position: 90% center;
  }

  .hero-overlay {
    padding-top: 160px;
  }

  .hero-title {
    font-size: 35px;
  }

  .hero-subtitle {
    font-size: 12px;
  }

  .section-title {
    font-size: 20px;
  }

  .stat-number {
    font-size: 32px;
  }

  .stat-label {
    font-size: 14px;
  }

  .service-card-title {
    font-size: 16px;
  }

  .service-card-description {
    font-size: 13px;
  }

  .appointment-text {
    font-size: 20px;
  }

  .footer-title {
    font-size: 16px;
  }

  .hero-services {
    margin-top: -80px;
    max-width: 100%;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
  }

  .service-cards {
    gap: 15px;
    padding: 0 15px;
    box-sizing: border-box;
    width: 100%;
  }

  .service-card {
    padding: 20px 15px;
    min-width: 0;
  }

  .service-card h3 {
    font-size: 16px;
  }

  .service-card p {
    font-size: 12px;
  }

  .cases-gallery-title {
    font-size: 17px;
  }

  .cases-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-icon {
    width: 70px;
    height: 70px;
  }

  .service-image {
    max-width: 200px;
  }

  .service-card-image {
    height: 140px;
  }

  .cases-title {
    font-size: 18px;
  }

  .testimonials-title {
    font-size: 20px;
  }

  .services-title {
    font-size: 20px;
  }

  .about-clinic-wrapper,
  .testimonials-wrapper,
  .services-container,
  .footer-container {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    width: 100%;
  }

  .stats-row {
    gap: 15px;
  }

  .stat-item {
    min-width: calc(50% - 7.5px);
  }

  .logo {
    min-width: auto;
    max-width: 120px;
  }

  .logo img {
    max-height: 40px;
  }
}
