/* =====================================================
   0. GLOBAL
===================================================== */

:root {
  --brand: #63b4d0;
  --brand-dark: #4a9bb7;
  --nav-text: #111111;
  --muted: #555555;
  --line: #dddddd;
  --soft-bg: #f8f8f8;
  --mobile-menu-bg: #dddddd;
  --mobile-line: #cccccc;

  /* ===== DROPDOWN COLORS (change these two) ===== */
  --dropdown-bg: #fff;          /* dropdown background */
  --dropdown-hover-bg: #fff;    /* item background on hover / active (desktop) */
}

*,
*::before,
*::after { box-sizing: border-box; }

html,
body { margin: 0; padding: 0; }

body { background: #ffffff; }

/* Stops images / maps from ever overflowing the screen */
img,
iframe { max-width: 100%; }
img { height: auto; }

/* Shared diagonal background used by several sections */
.doctor-profile-section,
.doctor-info-section,
.appointment-section,
.doctor-section {
  background-color: #EBEBEB;
  background-image: repeating-linear-gradient(135deg,
      rgba(0, 0, 0, 0.025) 0, rgba(0, 0, 0, 0.025) 1px,
      transparent 1px, transparent 6px);
}


/* =====================================================
   1. HEADER
===================================================== */

.site-header {
  position: relative;
  z-index: 1030;
  font-family: "Open Sans", sans-serif;
}

.header-top { min-height: 112px; }

/* Logo */
.header-logo img { display: block; width: 200px; max-width: 100%; height: auto; }

/* Appointment button (Bootstrap button variables) */
.btn-brand {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: var(--brand);
  --bs-btn-hover-bg: #ffffff;
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-color: var(--brand);
  --bs-btn-active-bg: #ffffff;
  --bs-btn-active-border-color: var(--brand);
  --bs-btn-focus-shadow-rgb: 99, 180, 208;
  min-width: 186px;
  height: 40px;
  font-size: 14px;
}

/* Hamburger (right side on mobile) */
.mobile-menu-toggle {
  width: 42px; height: 38px; padding: 7px;
  background: var(--brand); border: 0;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 4px; cursor: pointer;
}
.mobile-menu-toggle:focus-visible { outline: none; box-shadow: 0 0 0 0.2rem rgba(99, 180, 208, 0.45); }
.mobile-menu-toggle span { display: block; width: 22px; height: 2px; background: #ffffff; transition: transform 0.3s ease, opacity 0.3s ease; }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Nav links + active state */
.main-navbar .nav-link {
  position: relative; padding: 12px 0 8px;
  color: var(--nav-text); font-size: 15px;
  transition: color 0.3s ease, background 0.3s ease;
}
.main-navbar .nav-link::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 0; height: 3px; background: var(--brand);
  transition: width 0.3s ease;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link:focus-visible,
.main-navbar .nav-link.active,
.main-navbar .nav-link.show { color: var(--brand); }
.main-navbar .nav-link:hover::before,
.main-navbar .nav-link.active::before { width: 100%; }
.main-navbar .nav-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.main-navbar .dropdown-toggle::after { margin-left: 6px; vertical-align: 0.15em; transition: transform 0.3s ease; }
.main-navbar .dropdown-toggle.show::after { transform: rotate(180deg); }

.services-menu {
  --bs-dropdown-bg: var(--dropdown-bg);
  --bs-dropdown-border-color: var(--line);
  --bs-dropdown-border-radius: 0;
  --bs-dropdown-padding-y: 0.5rem;
  --bs-dropdown-link-color: #333333;
  --bs-dropdown-link-hover-color: var(--brand);
  --bs-dropdown-link-hover-bg: var(--dropdown-hover-bg);
  --bs-dropdown-link-active-color: var(--brand);
  --bs-dropdown-link-active-bg: var(--dropdown-hover-bg);

  background: var(--dropdown-bg);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
}
.services-menu li { border-bottom: 1px solid var(--line); transition: border-color 0.3s ease; }
.services-menu li:last-child { border-bottom: 0; }
.services-menu li:hover { border-bottom-color: var(--brand); }
.services-menu li:last-child:hover { border-bottom-color: transparent; }
.services-menu .dropdown-item {
  padding: 10px 10px; font-size: 14px; line-height: 1.4;
  white-space: normal; transition: color 0.3s ease, background 0.3s ease;
}
.services-menu .dropdown-item.active { font-weight: 600; }

/* Contact details */
.header-contact a { color: var(--muted); font-size: 14px; text-decoration: none; white-space: nowrap; transition: color 0.3s ease; }
.header-contact a:hover,
.header-contact a:hover i { color: var(--brand); }
.header-contact strong { color: #333333; }
.header-contact i { margin-right: 5px; color: #333333; transition: color 0.3s ease; }

/* Desktop */
@media (min-width: 992px) {
  .main-navbar .dropdown > .dropdown-menu {
    top: 100%; left: 50%; width: 320px; margin-top: 0;
    transform: translateX(-50%); border-top: 3px solid var(--brand);
  }
}
@media (min-width: 992px) and (hover: hover) {
  .main-navbar .dropdown:hover > .dropdown-menu { display: block; }
  .main-navbar .dropdown:hover > .dropdown-toggle::after { transform: rotate(180deg); }
}
@media (min-width: 992px) and (max-width: 1100px) {
  .main-navbar .nav-link { font-size: 14px; }
  .header-contact a { font-size: 13px; }
}

/* Mobile + tablet menu */
@media (max-width: 991.98px) {
  .header-top { min-height: auto; }
  .main-navbar .navbar-collapse {
    background: var(--mobile-menu-bg);
    border-top: 1px solid var(--mobile-line);
    border-bottom: 1px solid var(--mobile-line);
  }
  .main-navbar .nav-link {
    min-height: 42px; padding: 10px 15px;
    display: flex; justify-content: center; align-items: center;
    font-size: 14px; color: #333333; border-bottom: 1px solid var(--mobile-line);
  }
  .main-navbar .nav-link:hover,
  .main-navbar .nav-link:focus-visible { background: var(--brand); color: #ffffff; }
  .main-navbar .nav-link.active,
  .main-navbar .nav-link.show { background: var(--brand); color: #ffffff; }

  .services-menu { width: 100%; padding: 0; border: 0; box-shadow: none; background: var(--dropdown-bg); }
  .services-menu li,
  .services-menu li:last-child { border-bottom: 1px solid var(--mobile-line); }
  .services-menu .dropdown-item { padding: 8px 15px; text-align: center; font-size: 13px; background: var(--dropdown-bg); }
  .services-menu .dropdown-item:hover,
  .services-menu .dropdown-item:focus,
  .services-menu .dropdown-item.active { background: var(--brand); color: #ffffff; }
}

@media (max-width: 575.98px) { .header-logo img { width: 150px; } }
@media (max-width: 480px) {
  .main-navbar .nav-link { min-height: 40px; font-size: 13px; }
  .services-menu .dropdown-item { font-size: 12px; }
  .header-contact a { font-size: 12px; }
  .btn-brand { min-width: 180px; font-size: 13px; }
}


/* =====================================================
   SERVICES: link + arrow button
===================================================== */

.services-item { position: relative; }

.services-arrow {
  background: none;
  border: 0;
  padding: 12px 0 8px 6px;
  color: var(--nav-text);
  cursor: pointer;
  transition: color 0.3s ease;
}
.main-navbar .services-arrow::after { margin-left: 0; }
.services-arrow:hover,
.services-arrow:focus-visible,
.services-arrow.show { color: var(--brand); }
.services-arrow:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Desktop: hovering anywhere on Services highlights it and opens the menu */
@media (min-width: 992px) and (hover: hover) {
  .services-item:hover > .nav-link,
  .services-item:hover > .services-arrow { color: var(--brand); }
  .services-item:hover > .nav-link::before { width: 100%; }
}

/* Mobile + tablet */
@media (max-width: 991.98px) {
  .services-item { flex-wrap: wrap; }
  .services-item > .nav-link { flex: 1 1 auto; }

  /* Arrow: full brand color, white arrow */
  .services-arrow {
    min-height: 41px;
    padding: 0 20px;
    background: var(--brand);
    color: #ffffff;
    border: 0;
    border-bottom: 1px solid var(--mobile-line);
  
  }
  .services-arrow:hover,
  .services-arrow:focus-visible {
    background: var(--brand-dark);
    color: #ffffff;
  }

  /* When the dropdown is open: darker color, arrow turns up */
  .services-arrow.show {
    background: var(--brand-dark);
    color: #ffffff;
  }

  .services-item > .dropdown-menu { flex: 0 0 100%; }
}

/* Mobile + tablet: open dropdown when the cursor goes over it */
@media (max-width: 991.98px) and (hover: hover) {
  .services-item:hover > .dropdown-menu {
    display: block;
  }

  .services-item:hover > .services-arrow {
    background: var(--brand);
    color: #ffffff;
  }

  .services-item:hover > .services-arrow::after {
    transform: rotate(180deg);
  }
}


/* Floating contact buttons */
.floating-contact-buttons { right: 20px; bottom: 20px; z-index: 1040; }
.floating-whatsapp,
.floating-phone {
  width: 42px; height: 42px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}
.floating-whatsapp { background: #00b63f; border-radius: 6px; font-size: 27px; }
.floating-whatsapp:hover { color: #ffffff; background: #009f37; transform: scale(1.08); }
.floating-phone { background: #0799e8; border-radius: 50%; font-size: 20px; }
.floating-phone:hover { color: #ffffff; background: #078bd2; transform: scale(1.08); }
@media (max-width: 767.98px) { .floating-contact-buttons { right: 15px; bottom: 15px; } }

@media (prefers-reduced-motion: reduce) {
  .site-header *,
  .floating-contact-buttons * { transition: none !important; }
}
/* =====================================================
   2. FOOTER
===================================================== */

.site-footer {
  width: 100%; background: #f7f7f7; color: #555555;
  font-family: "Open Sans", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.footer-main {
  width: 100%; min-height: 270px;
  display: grid; grid-template-columns: 1.25fr 1.25fr 0.85fr; gap: 50px;
  padding: 32px 38px 30px; margin-top: 100px; background: #f7f7f7;
}
.footer-column { min-width: 0; }
.footer-column h3 { margin: 0 0 22px; font-size: 18px; font-weight: 400; color: #777777; line-height: 1.3; }
.footer-about p { margin: 0; max-width: 500px; font-size: 15px; line-height: 1.55; letter-spacing: 0.2px; color: #888888; }
.footer-address { padding-right: 10px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 8px; font-size: 12px; line-height: 1.35; color: #444444; }
.footer-contact-item i { width: 16px; min-width: 16px; margin-top: 1px; font-size: 17px; color: #555555; text-align: center; }
.footer-contact-item span { display: block; flex: 1; overflow-wrap: anywhere; }
.footer-contact-item strong { font-weight: 700; color: #333333; }
.footer-contact-item a { color: #444444; text-decoration: none; overflow-wrap: anywhere; transition: color 0.3s ease; }
.footer-contact-item a:hover { color: #63b4d0; }
.footer-contact-item a strong { color: #333333; }

.footer-map { width: 100%; }
.map-container { width: 100%; max-width: 300px; height: 150px; overflow: hidden; background: #eeeeee; }
.map-container iframe { display: block; width: 100%; height: 150px; border: 0; }

.footer-bottom {
  width: 100%; min-height: 80px; display: flex; align-items: center; justify-content: center;
  padding: 0 8%; background: #f7f7f7; border-top: 1px solid #eeeeee; text-align: center;
}
.footer-copyright { width: 100%; font-size: 12px; font-weight: 600; color: #333333; line-height: 1.6; text-align: center; }
.footer-copyright span { margin: 0 5px; color: #555555; }
.footer-copyright strong { font-weight: 700; font-size: 15px; color: #333333; }
.footer-copyright a:hover strong { color: rgb(125, 182, 211); }

@media (max-width: 1100px) {
  .footer-main { grid-template-columns: 1fr 1fr 0.8fr; gap: 30px; padding: 30px 25px; }
  .footer-column h3 { font-size: 17px; }
  .footer-about p { font-size: 14px; }
  .footer-contact-item { font-size: 12px; }
  .map-container { max-width: 100%; }
  .footer-bottom { padding: 0 5%; }
}

/* Tablet: 2 columns, map full width underneath */
@media (max-width: 991px) {
  .footer-main { grid-template-columns: 1fr 1fr; margin-top: 60px; }
  .footer-map { grid-column: 1 / -1; }
  .map-container,
  .map-container iframe { height: 220px; }
  .footer-contact-item { font-size: 13px; }
}

@media (max-width: 767px) {
  .footer-main { display: flex; flex-direction: column; gap: 35px; padding: 35px 20px 30px; margin-top: 40px; }
  .footer-column { width: 100%; text-align: left; }
  .footer-column h3 { margin-bottom: 15px; font-size: 18px; }
  .footer-about p { max-width: 100%; font-size: 14px; line-height: 1.6; }
  .footer-address { padding-right: 0; }
  .footer-contact-item { width: 100%; font-size: 13px; line-height: 1.45; margin-bottom: 10px; gap: 8px; }
  .footer-contact-item i { width: 18px; min-width: 18px; font-size: 16px; }
  .footer-bottom { min-height: 90px; padding: 20px 15px; }
  .footer-copyright { font-size: 11px; line-height: 1.8; }
}

@media (max-width: 480px) {
  .footer-main { padding: 30px 16px 25px; gap: 30px; margin-top: 30px; }
  .footer-column h3 { font-size: 17px; margin-bottom: 13px; }
  .footer-about p { font-size: 13px; }
  .footer-contact-item { font-size: 12px; gap: 7px; }
  .footer-contact-item i { font-size: 15px; }
  .map-container,
  .map-container iframe { height: 200px; }
  .footer-bottom { min-height: auto; padding: 18px 12px; }
  .footer-copyright { font-size: 10px; }
  .footer-copyright span { margin: 0 2px; }
}

@media (max-width: 360px) {
  .footer-main { padding: 25px 12px 20px; gap: 25px; }
  .footer-column h3 { font-size: 16px; }
  .footer-about p { font-size: 12px; }
  .footer-contact-item { font-size: 11px; }
  .footer-contact-item i { font-size: 14px; }
  .map-container,
  .map-container iframe { height: 180px; }
  .footer-copyright { font-size: 9px; }
}


/* =====================================================
   3. PAGE TITLE BANNER (inner pages)
===================================================== */

.page-title-banner {
  width: 100%; height: 90px; background: #7DB6D3;
  display: flex; align-items: center; position: relative;
  border: 3px solid #ffffff; border-bottom: 0;
}
.page-title-content { width: 100%; height: 100%; padding: 0 38px; display: flex; align-items: center; justify-content: space-between; }
.page-title-content h1 { margin: 0; color: #ffffff; font-family: "Open Sans", sans-serif; font-size: 28px; font-weight: 300; line-height: 1.2; }
.breadcrumb { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; color: #ffffff; font-family: "Open Sans", sans-serif; font-size: 13px; font-weight: 400; }
.breadcrumb a { color: #ffffff; text-decoration: none; transition: opacity 0.3s ease; }
.breadcrumb a:hover { opacity: 0.75; }
.breadcrumb span { color: #ffffff; }

@media (max-width: 1100px) {
  .page-title-banner { height: 85px; }
  .page-title-content { padding: 0 25px; }
  .page-title-content h1 { font-size: 26px; }
}
@media (max-width: 767px) {
  .page-title-banner { height: auto; min-height: 100px; border-width: 2px; border-bottom: 0; }
  .page-title-content { padding: 20px; flex-direction: column; justify-content: center; gap: 10px; }
  .page-title-content h1 { font-size: 25px; text-align: center; }
  .breadcrumb { font-size: 12px; justify-content: center; text-align: center; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .page-title-banner { min-height: 95px; }
  .page-title-content { padding: 18px 15px; gap: 8px; }
  .page-title-content h1 { font-size: 22px; }
  .breadcrumb { font-size: 11px; }
}


/* =====================================================
   4. ABOUT PAGE
===================================================== */

/* ---------- Doctor profile ---------- */

.doctor-profile-section { width: 100%; margin-top: 20px; padding: 15px 0 18px; }
.doctor-profile-container { width: 95%; max-width: 1500px; margin: 0 auto; }
.doctor-profile-title { margin: 0; padding: 0; font-family: Arial, sans-serif; font-size: 40px; font-weight: 400; line-height: 1.2; color: #0074bd; text-align: left; }
.doctor-profile-title-line { width: 450px; max-width: 100%; height: 1px; background-color: #333333; margin: 12px 0 39px; }
.doctor-profile-row { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 50px; }
.doctor-profile-content { width: calc(100% - 530px); padding-left: 105px; }
.doctor-profile-points { margin: 0; padding-left: 22px; list-style-type: circle; color: #536273; font-family: Arial, sans-serif; font-size: 16px; line-height: 1.5; }
.doctor-profile-points li { margin-bottom: 10px; padding-left: 2px; }
.doctor-expertise-list li a { color: #000000; text-decoration: none; transition: color 0.3s ease; }
.doctor-expertise-list li a:hover { color: #63b4d0; }
.doctor-expertise-area { margin-top: 27px; }
.doctor-expertise-heading { margin: 0 0 27px; font-family: Arial, sans-serif; font-size: 16px; font-weight: 400; color: #536273; }
.doctor-expertise-list { margin: 0; padding-left: 22px; color: #536273; font-family: Arial, sans-serif; font-size: 16px; line-height: 1.5; }
.doctor-expertise-list li { margin-bottom: 9px; padding-left: 1px; }
.doctor-profile-image-area { width: 395px; flex-shrink: 0; text-align: center; }
.doctor-profile-image { display: block; width: 395px; max-width: 100%; height: 350px; object-fit: cover; margin: 0 auto; border: none; }
.doctor-profile-name { margin: 30px 0 13px; font-family: Arial, sans-serif; font-size: 24px; font-weight: 400; color: #00a5e5; line-height: 1.2; }
.doctor-profile-degree { margin: 0; font-family: Arial, sans-serif; font-size: 16px; font-weight: 600; color: #536273; }

@media (max-width: 1100px) {
  .doctor-profile-section { margin-top: 50px; }
  .doctor-profile-title { font-size: 34px; }
  .doctor-profile-row { gap: 30px; }
  .doctor-profile-content { width: calc(100% - 430px); padding-left: 40px; }
  .doctor-profile-image-area { width: 350px; }
  .doctor-profile-image { width: 350px; height: 320px; }
  .doctor-profile-title-line { width: 400px; }
}

/* Tablet + mobile: stack text above / below image so text never gets squeezed */
@media (max-width: 991px) {
  .doctor-profile-row { flex-direction: column; gap: 35px; }
  .doctor-profile-content { width: 100%; padding-left: 0; }
  .doctor-profile-image-area { width: 100%; display: flex; flex-direction: column; align-items: center; }
  .doctor-profile-image { width: 100%; max-width: 395px; height: auto; aspect-ratio: 395 / 350; }
}

@media (max-width: 767px) {
  .doctor-profile-section { margin-top: 35px; padding: 30px 0 35px; }
  .doctor-profile-container { width: 92%; }
  .doctor-profile-title { font-size: 28px; line-height: 1.3; }
  .doctor-profile-title-line { max-width: 320px; margin: 10px 0 30px; }
  .doctor-profile-points,
  .doctor-expertise-list { padding-left: 20px; font-size: 15px; line-height: 1.6; }
  .doctor-profile-points li { margin-bottom: 12px; }
  .doctor-expertise-area { margin-top: 25px; }
  .doctor-expertise-heading { margin-bottom: 20px; font-size: 15px; }
  .doctor-expertise-list li { margin-bottom: 10px; }
  .doctor-profile-name { margin: 20px 0 10px; font-size: 22px; }
  .doctor-profile-degree { font-size: 15px; }
}

@media (max-width: 480px) {
  .doctor-profile-section { margin-top: 30px; padding: 25px 0 30px; }
  .doctor-profile-title { font-size: 24px; }
  .doctor-profile-title-line { max-width: 280px; margin-bottom: 25px; }
  .doctor-profile-points,
  .doctor-expertise-heading,
  .doctor-expertise-list { font-size: 14px; }
  .doctor-expertise-list li { margin-bottom: 9px; }
  .doctor-profile-name { margin-top: 18px; font-size: 21px; }
  .doctor-profile-degree { font-size: 14px; }
}

@media (max-width: 360px) {
  .doctor-profile-section { margin-top: 25px; }
  .doctor-profile-title { font-size: 22px; }
  .doctor-profile-points,
  .doctor-expertise-heading,
  .doctor-expertise-list { font-size: 13px; }
  .doctor-profile-name { font-size: 20px; }
}

/* ---------- Doctor information cards ---------- */

.doctor-info-section { width: 100%; padding: 35px 0 30px; margin-bottom: 30px; }
.doctor-info-container { width: 95%; max-width: 1500px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 65px; row-gap: 35px; }
.doctor-info-card { position: relative; min-height: 230px; background-color: #F7F7F7; padding: 35px 35px 30px 50px; box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03); display: flex; align-items: flex-start; }
.doctor-info-icon { position: absolute; left: -18px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; background-color: #51466b; color: #ffffff; border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: 20px; z-index: 2; }
.doctor-info-icon i { font-size: 20px; line-height: 1; }
.doctor-info-content { width: 100%; }
.doctor-info-content h3 { margin: 0 0 12px; font-family: Arial, sans-serif; font-size: 24px; font-weight: 300; line-height: 1.3; color: #333333; }
.doctor-info-content ul { margin: 0; padding-left: 28px; font-family: Arial, sans-serif; font-size: 16px; line-height: 1.9; color: #536273; list-style-type: disc; }
.doctor-info-content ul li { margin: 0; padding-left: 1px; }

@media (max-width: 1100px) {
  .doctor-info-container { width: 92%; column-gap: 40px; row-gap: 30px; }
  .doctor-info-card { padding: 30px 25px 30px 45px; min-height: 220px; }
  .doctor-info-content h3 { font-size: 22px; }
  .doctor-info-content ul { font-size: 15px; line-height: 1.8; padding-left: 25px; }
}
@media (max-width: 767px) {
  .doctor-info-section { padding: 30px 0 35px; }
  .doctor-info-container { grid-template-columns: 1fr; gap: 25px; }
  .doctor-info-card { min-height: auto; padding: 28px 25px 28px 35px; }
  .doctor-info-icon { left: -15px; width: 34px; height: 34px; font-size: 18px; }
  .doctor-info-icon i { font-size: 18px; }
  .doctor-info-content h3 { font-size: 22px; margin-bottom: 10px; }
  .doctor-info-content ul { padding-left: 22px; }
}
@media (max-width: 480px) {
  .doctor-info-section { padding: 25px 0 30px; }
  .doctor-info-container { width: 90%; gap: 22px; }
  .doctor-info-card { padding: 25px 18px 25px 30px; }
  .doctor-info-icon { left: -14px; width: 32px; height: 32px; }
  .doctor-info-icon i { font-size: 16px; }
  .doctor-info-content h3 { font-size: 21px; }
  .doctor-info-content ul { padding-left: 20px; font-size: 14px; }
}
@media (max-width: 360px) {
  .doctor-info-card { padding: 22px 15px 22px 27px; }
  .doctor-info-content h3 { font-size: 19px; }
  .doctor-info-content ul { font-size: 13px; line-height: 1.7; }
  .doctor-info-icon { left: -13px; width: 30px; height: 30px; }
}


/* =====================================================
   5. TESTIMONIALS PAGE
===================================================== */

.testimonials-section { font-family: "Open Sans", sans-serif; background: #ffffff; color: #6b5d4f; margin: 0 auto; padding: 0 60px; border-top: 3px dotted #F7F7F7; }
.page-title-wrap { text-align: center;  }
.page-title { display: inline-block; font-size: 36px; font-weight: 400; padding: 14px 40px; font-family: "Open Sans", sans-serif; }
.testimonial { margin-bottom: 50px; }
.testimonial-name { display: inline-block; color: rgb(90, 90, 90); font-size: 24px; font-weight: 400; margin-bottom: 10px; }
.testimonial-name.plain { background: none; padding: 0; font-size: 24px; }
.testimonial-text { font-size: 15px; line-height: 1.8; color: rgb(90, 90, 90); margin: 0; font-family: "Open Sans", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif; }

@media (max-width: 1024px) { .testimonials-section { padding: 0 40px; } }
@media (max-width: 768px) {
  .testimonials-section { padding: 0 20px; }
  .page-title { font-size: 24px; padding: 10px 24px; }
  .testimonial-name { font-size: 20px; }
  .testimonial-name.plain { font-size: 18px; }
  .testimonial-text { line-height: 1.6; }
  .testimonial { margin-bottom: 36px; }
}
@media (max-width: 480px) {
  .page-title { font-size: 20px; padding: 8px 18px; }
  .testimonial-name { font-size: 16px; }
  .testimonial-text { font-size: 14px; }
}


/* =====================================================
   6. SERVICE / INNER CONTENT PAGES
   (shared base for every content section)
===================================================== */

.ortho-section, .who-section, .intro-section, .desc-anatomy-section,
.hip-section, .trauma-info-section, .trauma-section, .knee-section,
.causes-desc-section, .candidates-section, .cas-section, .cas-info-section,
.arthro-section, .arthro-info-section, .joint-section, .joint-info-section,
.mis-section, .mis-info-section, .shoulder-section, .injuries-section, .sports-section {
  font-family: "Open Sans", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif;
  max-width: 1564px;
  margin: 0 auto;
  padding: 40px 30px;
}

/* section-specific padding / borders */
.who-section { padding: 20px 30px 0; }
.intro-section { padding: 30px 30px 40px; }
.cas-section { border-top: 3px dotted #e5e5e5; }
.cas-info-section, .arthro-info-section, .joint-info-section,
.mis-info-section, .sports-section { padding: 20px 30px 40px; }
.shoulder-section { padding: 30px 30px 40px; border-top: 2px solid #7db6d3; }

/* ---------- Two-column rows (text + image) ---------- */

.ortho-row, .hip-row, .trauma-row, .knee-row, .candidates-row, .cas-row,
.arthro-row, .joint-row, .mis-row, .injuries-row, .sports-row { display: flex; flex-wrap: wrap; }

.hip-row, .trauma-row, .knee-row, .candidates-row, .cas-row,
.arthro-row, .joint-row, .mis-row, .sports-row { align-items: flex-start; }
.ortho-row, .injuries-row { align-items: center; }

.ortho-row { gap: 40px; }


.hip-row-text, .trauma-row-text, .knee-row-text, .candidates-row-text, .cas-row-text,
.arthro-row-text, .joint-row-text, .mis-row-text, .sports-row-text, .injuries-row-text { flex: 1 1 500px; }
.ortho-row-text { flex: 1 1 400px; font-size: 15px; line-height: 1.8; color: #8a9199; margin: 0; }

.ortho-image, .hip-image, .trauma-image, .knee-image, .candidates-image, .cas-image,
.arthro-image, .joint-image, .mis-image, .injuries-image, .sports-image { display: flex; justify-content: center; }
.ortho-image { flex: 1 1 300px; }
.hip-image, .trauma-image, .candidates-image, .cas-image, .mis-image { flex: 1 1 350px; }
.knee-image, .arthro-image, .joint-image, .sports-image { flex: 1 1 400px; }
.injuries-image { flex: 1 1 450px; }

.ortho-image img, .hip-image img, .trauma-image img, .knee-image img, .candidates-image img,
.cas-image img, .arthro-image img, .joint-image img, .mis-image img,
.injuries-image img, .sports-image img { max-width: 100%; height: auto; display: block; }

/* ---------- Two-column info rows (text + text) ---------- */

.desc-anatomy-row, .trauma-info-row, .causes-desc-row, .cas-info-row,
.arthro-info-row, .joint-info-row, .mis-info-row { display: flex; gap: 20px; flex-wrap: wrap; }
.desc-anatomy-col, .trauma-info-col, .causes-desc-col, .cas-info-col,
.arthro-info-col, .joint-info-col, .mis-info-col { flex: 1 1 400px; }

/* ---------- Titles ---------- */

.ortho-title, .who-title, .services-title, .sports-title, .hip-title {
  font-size: 40px; font-weight: 400; margin: 0 0 20px;
}
.ortho-title, .who-title, .services-title { color: #1a1a1a; }
.who-title { margin-bottom: 16px; }
.sports-title, .hip-title { color: #5DBDC4; }
.hip-title { line-height: 1.5; }

.trauma-title, .knee-title, .cas-title, .arthro-title, .joint-title, .mis-title, .candidates-title {
  font-size: 34px; font-weight: 400; color: #5DBDC4; margin: 0 0 20px;
}
.cas-title { margin-top: 20px; }

.desc-anatomy-title, .trauma-info-title, .causes-desc-title, .cas-info-title,
.arthro-info-title, .joint-info-title, .mis-info-title {
  font-size: 34px; font-weight: 400; color: #5DBDC4; margin: 0 0 16px;
}
.desc-anatomy-title { font-weight: 700; }
.arthro-info-subtitle { font-size: 30px; font-weight: 400; color: #5DBDC4; margin: 0 0 16px; }

.intro-title { text-align: center; font-size: 34px; font-weight: 700; color: #4d4d4d; margin: 10px 0 25px; }
.shoulder-title { font-size: 34px; font-weight: 400; color: #4d4d4d; margin: 20px 0 20px; }
.shoulder-subtitle { font-size: 24px; font-weight: 400; color: rgb(90, 90, 90); margin: 0 0 14px; }

/* ---------- Body text ---------- */

.hip-text, .trauma-text, .knee-text, .candidates-text, .cas-text, .arthro-text, .joint-text,
.mis-text, .trauma-info-text, .causes-desc-text, .arthro-info-text, .joint-info-text,
.mis-info-text, .sports-text, .injuries-text {
  font-size: 15px; line-height: 1.7; color: #4d4d4d; margin: 0 0 20px;
}
.mis-text, .trauma-info-text, .causes-desc-text, .arthro-info-text,
.joint-info-text, .mis-info-text, .sports-text { margin-bottom: 16px; }

.hip-text:last-of-type, .trauma-text:last-of-type, .knee-text:last-of-type,
.candidates-text:last-of-type, .cas-text:last-of-type, .arthro-text:last-of-type,
.joint-text:last-of-type, .mis-text:last-of-type, .arthro-info-text:last-of-type,
.joint-info-text:last-of-type, .mis-info-text:last-of-type, .injuries-text:last-of-type,
.trauma-info-text:last-child, .causes-desc-text:last-child { margin-bottom: 0; }

.trauma-info-text, .injuries-text { text-align: justify; }

.desc-anatomy-text { font-size: 15px; line-height: 1.7; color: #666b71; margin: 0 0 16px; }
.desc-anatomy-text:last-child { margin-bottom: 0; }

.ortho-intro-text { font-size: 15px; line-height: 1.8; color: #8a9199; margin: 0 0 30px; }

.who-text { font-size: 15px; line-height: 1.8; color: #8a9199; margin: 0 0 24px; }
.who-text:last-of-type { margin-bottom: 40px; }
.who-text .link-strong { color: rgb(51, 204, 204); font-weight: 700; }
.who-text a.link-strong { text-decoration: none; }
.who-text .link-italic { color: #8a9199; font-style: italic; }

.intro-text { font-size: 15px; line-height: 1.8; color: #8a9199; margin: 0; }
.intro-text strong { color: #4d4d4d; font-weight: 700; }

.shoulder-text { font-size: 15px; line-height: 1.7; color: #8a9199; margin: 0 0 24px; }
.shoulder-text:last-of-type { margin-bottom: 0; }
.shoulder-text strong { color: #4d4d4d; font-weight: 700; }
.shoulder-text a.shoulder-link { color: #4d4d4d; font-weight: 700; text-decoration: none; }
.shoulder-text a.shoulder-link:hover { color: rgb(125, 182, 211); }

/* highlights + links */
.hip-text .highlight { color: #998a8a; text-decoration: none; }
.hip-text .highlight:hover { color: rgb(125, 182, 211); }
.knee-text .highlight, .candidates-text .highlight, .cas-text .highlight,
.cas-info-list li .highlight, .arthro-text .highlight, .arthro-info-text .highlight,
.arthro-info-list li .highlight, .joint-text .highlight, .joint-info-text .highlight,
.mis-info-text .highlight, .sports-list li .highlight, .injuries-text .highlight { color: #998a8a; }
.joint-text .link-blue { color: #000000; }
.joint-text .link-blue:hover { color: rgb(125, 182, 211); }

.causes-desc-text strong, .causes-list li strong, .joint-info-text strong, .sports-text strong { color: #1a1a1a; font-weight: 700; }
.mis-text strong { color: #1a1a1a; font-weight: 700; display: block; margin-bottom: 16px; }

/* ---------- Lists ---------- */

.desc-list, .causes-list, .cas-info-list, .arthro-info-list,
.joint-info-list, .sports-list, .services-list { list-style: disc; }

.desc-list { margin: 0; padding-left: 85px; }
.desc-list li { font-size: 15px; line-height: 1.7; color: #1a1a1a; margin-bottom: 14px; }
.desc-list li:last-child { margin-bottom: 0; }

.causes-list { margin: 0; padding-left: 20px; }
.causes-list li { font-size: 15px; line-height: 1.7; color: #4d4d4d; margin-bottom: 16px; }
.causes-list li:last-child { margin-bottom: 0; }

.cas-info-list { margin: 0; padding-left: 20px; }
.cas-info-list li { font-size: 15px; line-height: 1.7; color: #1a1a1a; margin-bottom: 14px; }
.cas-info-list li:last-child { margin-bottom: 0; }

.arthro-info-list { margin: 0 0 30px; padding-left: 20px; }
.arthro-info-list:last-child { margin-bottom: 0; }
.arthro-info-list li { font-size: 15px; line-height: 1.4; color: #1a1a1a; margin-bottom: 12px; }
.arthro-info-list li:last-child { margin-bottom: 0; }

.joint-info-list { margin: 25px; padding-left: 50px; }
.joint-info-list li { font-size: 15px; line-height: 1.4; color: #1a1a1a; margin-bottom: 20px; }
.joint-info-list li:last-child { margin-bottom: 0; }

.sports-list { margin: 0; padding-left: 50px; }
.sports-list li { font-size: 15px; line-height: 1.9; color: #1a1a1a; }

.services-list { margin: 0; padding-left: 60px; }
.services-list li { font-size: 15px; line-height: 2; color: #4d4d4d; }

/* ---------- Special images ---------- */

.arthro-info-images { display: flex; justify-content: flex-start; margin-top: 30px; }
.arthro-info-images img { max-width: 450px; width: 100%; height: auto; display: block; }
.mis-info-image { margin-top: 50px; margin-left: 70px; }
.mis-info-image img { max-width: 260px; width: 100%; height: auto; display: block; }
.mis-info-gap { margin-top: 100px; }

/* ---------- Tablet (<= 1024px) ---------- */

@media (max-width: 1024px) {
  .ortho-title, .who-title, .services-title { font-size: 30px; }
  .hip-title, .sports-title,
  .trauma-title, .knee-title, .cas-title, .arthro-title, .joint-title, .mis-title, .candidates-title,
  .desc-anatomy-title, .trauma-info-title, .causes-desc-title, .cas-info-title,
  .arthro-info-title, .joint-info-title, .mis-info-title { font-size: 28px; }
  .arthro-info-subtitle { font-size: 26px; }
  .intro-title, .shoulder-title { font-size: 30px; }
  .shoulder-subtitle { font-size: 22px; }
  .intro-section { padding: 26px 24px 34px; }
}

/* ---------- Stack columns (<= 900px) ---------- */

@media (max-width: 900px) {
 

 

  .hip-image, .trauma-image, .knee-image, .candidates-image, .cas-image,
  .arthro-image, .joint-image, .mis-image, .sports-image { order: -1; margin-bottom: 20px; }
  .ortho-image { order: -1; margin-bottom: 10px; }

  /* fixes sideways scrolling caused by the 70px left margin */
  .mis-info-image { margin: 24px 0 0; }
  .mis-info-gap { margin-top: 28px; }
}

/* ---------- Mobile (<= 768px) ---------- */

@media (max-width: 768px) {
  .ortho-section, .desc-anatomy-section, .hip-section, .trauma-info-section, .trauma-section,
  .knee-section, .causes-desc-section, .candidates-section, .cas-section, .arthro-section,
  .joint-section, .mis-section, .injuries-section { padding: 10px 20px; }

  .who-section { padding: 16px 20px 0; }
  .intro-section { padding: 24px 20px 30px; }
  .cas-info-section, .arthro-info-section, .joint-info-section,
  .mis-info-section, .sports-section { padding: 16px 20px 30px; }
  .shoulder-section { padding: 24px 20px 30px; }

  .ortho-title, .who-title, .intro-title, .shoulder-title { font-size: 26px; }
  .services-title { font-size: 24px; margin-bottom: 16px; }
  .ortho-title, .shoulder-title { margin-bottom: 16px; }
  .who-title { margin-bottom: 14px; }
  .intro-title { margin-bottom: 18px; }

  .hip-title, .sports-title, .trauma-title, .knee-title, .cas-title, .arthro-title,
  .joint-title, .mis-title, .candidates-title { font-size: 24px; margin-bottom: 16px; }
  .desc-anatomy-title, .trauma-info-title, .causes-desc-title, .cas-info-title,
  .arthro-info-title, .joint-info-title, .mis-info-title { font-size: 24px; margin-bottom: 12px; }
  .arthro-info-subtitle { font-size: 22px; }
  .shoulder-subtitle { font-size: 20px; margin-bottom: 12px; }

  .ortho-intro-text, .ortho-row-text, .who-text, .intro-text, .shoulder-text,
  .desc-anatomy-text, .hip-text, .trauma-text, .knee-text, .candidates-text, .cas-text,
  .arthro-text, .joint-text, .mis-text, .trauma-info-text, .causes-desc-text,
  .arthro-info-text, .joint-info-text, .mis-info-text, .sports-text, .injuries-text,
  .desc-list li, .causes-list li, .cas-info-list li, .arthro-info-list li,
  .joint-info-list li, .sports-list li, .services-list li { font-size: 14px; line-height: 1.6; }
  .sports-list li, .services-list li { line-height: 1.8; }
  .shoulder-text { margin-bottom: 20px; }
  .trauma-info-text, .injuries-text { text-align: left; }

  /* lists: smaller indents so text isn't squeezed */
  .desc-list { padding-left: 30px; }
  .sports-list { padding-left: 30px; }
  .joint-info-list { margin: 15px 0; padding-left: 30px; }

  .arthro-info-images img { max-width: 320px; }
  .mis-info-image img { max-width: 200px; }
}

/* ---------- Small mobile (<= 480px) ---------- */

@media (max-width: 480px) {
  .ortho-title, .who-title, .services-title, .intro-title, .shoulder-title,
  .hip-title, .sports-title, .trauma-title, .knee-title, .cas-title, .arthro-title,
  .joint-title, .mis-title, .candidates-title, .desc-anatomy-title, .trauma-info-title,
  .causes-desc-title, .cas-info-title, .arthro-info-title, .joint-info-title,
  .mis-info-title { font-size: 20px; }
  .arthro-info-subtitle { font-size: 18px; }
  .shoulder-subtitle { font-size: 17px; }

  .ortho-intro-text, .ortho-row-text, .who-text, .intro-text, .shoulder-text,
  .desc-anatomy-text, .hip-text, .trauma-text, .knee-text, .candidates-text, .cas-text,
  .arthro-text, .joint-text, .mis-text, .trauma-info-text, .causes-desc-text,
  .arthro-info-text, .joint-info-text, .mis-info-text, .sports-text, .injuries-text,
  .desc-list li, .causes-list li, .cas-info-list li, .arthro-info-list li,
  .joint-info-list li, .sports-list li, .services-list li { font-size: 13px; }

  .desc-list { padding-left: 24px; }
  .services-list { padding-left: 40px; }
  .arthro-info-images img { max-width: 100%; }
  .mis-info-image img { max-width: 160px; }
}


/* =====================================================
   7. CONTACT PAGE
===================================================== */

.appointment-section {
  font-family: "Open Sans", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif;
  width: 100%;
  margin: 20px auto 0;
  padding: 16px 19px;
}
.appointment-row { display: flex; gap: 60px; flex-wrap: wrap; padding: 25px 0 22px; }
.appointment-col { flex: 1 1 400px; min-width: 0; }
.appointment-title { font-size: 26px; font-weight: 400; color: rgb(51, 102, 255); margin: 0 0 20px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; }
.form-group input,
.form-group textarea { width: 100%; padding: 10px 12px; font-size: 14px; font-family: inherit; border: 1px solid #d9d9d9; border-radius: 2px; background: #ffffff; color: #333333; }
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: #5b8fd4; }
.form-group textarea { min-height: 100px; resize: vertical; }
.field-error { display: none; color: #e05252; font-size: 13px; margin-top: 6px; }
.form-group.has-error input,
.form-group.has-error textarea { border-color: #e05252; }
.form-group.has-error .field-error { display: block; }

.submit-btn { display: inline-block; background: #ffffff; border: 1px solid #cfcfcf; color: #333333; font-size: 14px; font-weight: 600; padding: 10px 22px; cursor: pointer; border-radius: 2px; }
.submit-btn:hover { background: #7DB6D3; color: #ffffff; }
.validation-summary { display: none; margin-top: 18px; padding: 12px 16px; border: 1px solid #e0a83c; color: #8a6d1f; font-size: 14px; border-radius: 2px; background: #fffdf7; }
.validation-summary.show { display: block; }

.address-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; font-size: 15px; color: #4d4d4d; line-height: 1.6; }
.address-item .icon { flex-shrink: 0; width: 18px; text-align: center; margin-top: 3px; color: #1a1a1a; font-size: 16px; }
.address-item a { color: inherit; text-decoration: none; transition: color 0.3s ease; overflow-wrap: anywhere; }
.address-item a:hover { color: #0074bd; }
.address-contacts { margin-bottom: 18px; }
.address-contacts .address-item { margin-bottom: 8px; align-items: center; }
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }

@media (max-width: 900px) { .appointment-row { flex-direction: column; gap: 30px; } }
@media (max-width: 768px) {
  .appointment-title { font-size: 22px; }
  .map-embed iframe { height: 220px; }
}
@media (max-width: 480px) {
  .appointment-title { font-size: 19px; }
  .form-group label,
  .form-group input,
  .form-group textarea { font-size: 13px; }
  .address-item { font-size: 14px; }
  .map-embed iframe { height: 180px; }
}


/* =====================================================
   8. HOME PAGE
===================================================== */

/* ---------- Slider ---------- */

.home-slider { position: relative; width: 100%; height: auto; overflow: hidden; background: #ffffff; }
.slider-wrapper { position: relative; width: 100%; height: auto; overflow: hidden; }
.home-slide { position: absolute; top: 0; left: 0; width: 100%; opacity: 0; visibility: hidden; z-index: 1; transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out; }
.home-slide.active { position: relative; opacity: 1; visibility: visible; z-index: 2; }
.home-slide img { display: block; width: 100%; height: auto; max-width: 100%; object-fit: cover; }

.rs-progress { position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: rgba(255, 255, 255, 0.35); z-index: 20; overflow: hidden; }
.rs-progress-bar { width: 0%; height: 100%; transform-origin: left center; }
.rs-progress-bar.animate { animation: rsProgress 5s linear forwards; }
@keyframes rsProgress { from { width: 0%; } to { width: 100%; } }
@media (max-width: 991px) { .rs-progress { height: 3px; } }

/* ---------- About banner ---------- */

.doctor-section { position: relative; padding: 40px 6% 80px; overflow: hidden; }
.doctor-heading { position: relative; text-align: center; color: #29a8d4; font-family: "Open Sans", sans-serif; font-size: 36px; margin: 0 0 55px; line-height: 1.3; }
.doctor-content { position: relative; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 60px; flex-wrap: wrap; }
.doctor-info { flex: 1 1 560px; min-width: 280px; }
.doctor-info h2 { color: #5a5a5a; font-size: 1.6rem; font-weight: 700; margin: 0 0 20px; }
.doctor-info ul { list-style: disc; font-family: HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif; }
.doctor-info li { color: #3d3d3d; font-size: 1.05rem; line-height: 1.85; }
.doctor-info li b { color: #1a1a1a; font-weight: 700; }
.doctor-info ul li a { color: #000000; text-decoration: none; font-weight: 600; transition: color 0.3s ease; }
.doctor-info ul li a:hover { color: #63b4d0; }
.doctor-info ul li a:focus { outline: 2px solid #0074bd; outline-offset: 3px; }
.muted-text { color: #9b9b9b; font-weight: 400; }

.read-more-btn {
  display: inline-block; background-color: #262626;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 8px);
  color: #d9d9d9; text-decoration: none; font-size: 0.95rem; letter-spacing: 0.2px;
  padding: 15px 36px; border: none; cursor: pointer; transition: background-color 0.2s ease;
}
.read-more-btn:hover { background-color: #141414; }

.doctor-photo-wrap { flex: 0 0 auto; }
.doctor-photo-wrap img { display: block; width: 310px; max-width: 60vw; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border: 9px solid #262626; }

@media (max-width: 900px) {
  .doctor-content { flex-direction: column-reverse; align-items: center; }
  .doctor-info { text-align: left; }
  .doctor-photo-wrap img { width: 260px; max-width: 65vw; }
}
@media (max-width: 767px) { .doctor-heading { font-size: 28px; } }
@media (max-width: 480px) {
  .doctor-section { padding: 45px 6% 55px; }
  .doctor-heading { font-size: 22px; margin-bottom: 30px; }
  .doctor-info h2 { font-size: 1.35rem; }
  .doctor-info li { font-size: 0.95rem; line-height: 1.75; }
  .doctor-photo-wrap img { width: 220px; max-width: 72vw; }
  .read-more-btn { width: 100%; text-align: center; padding: 14px 0; }
}

/* ---------- Specialist ---------- */

.specialist-section { position: relative; width: 100%; min-height: 388px; background-image: url("../images/specialist.jpg"); background-size: cover; background-position: center; background-repeat: no-repeat; overflow: hidden; color: #ffffff; }
.specialist-overlay { position: absolute; inset: 0; z-index: 1; }
.specialist-container { position: relative; z-index: 2; width: 100%; max-width: 1545px; margin: 0 auto; padding: 8px 40px 30px; }
.specialist-top-title { width: 100%; text-align: center; font-family: "Open Sans", sans-serif; font-size: 34px; font-weight: 300; line-height: 1.3; color: #ffffff; margin-bottom: 25px; }
.specialist-line { width: 100%; height: 2px; background: rgba(255, 255, 255, 0.85); margin-bottom: 45px; }
.specialist-heading { text-align: center; margin: 0 0 42px; font-family: "Open Sans", sans-serif; font-size: 40px; font-weight: 700; line-height: 1.1; color: #ffffff; }
.specialist-items { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); align-items: start; column-gap: 35px; }
.specialist-item { text-align: center; display: flex; flex-direction: column; align-items: center; }
.specialist-icon { width: 100px; height: 100px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; position: relative; font-size: 46px; transition: all 0.3s ease; }
.specialist-icon-1 { background: #ffffff; border: 7px solid #ffb27a; color: #ff7200; }
.specialist-icon-2 { background: transparent; color: #ffad00; border: none; font-size: 58px; }
.specialist-icon-3 { background: #ffae00; color: #555555; border: none; font-size: 48px; }
.specialist-icon-4 { background: #d71919; color: #ffffff; border: 4px solid #ffffff; box-shadow: 0 0 0 2px #d71919; font-size: 48px; }
.specialist-icon:hover { transform: translateY(-6px) scale(1.05); }
.specialist-item h3 { margin: 0; font-family: "Open Sans", sans-serif; font-size: 18px; font-weight: 600; line-height: 1.4; color: #00b8d4; text-align: center; }

@media (max-width: 991px) {
  .specialist-section { min-height: auto; }
  .specialist-container { padding: 20px 25px 35px; }
  .specialist-top-title { font-size: 30px; margin-bottom: 20px; }
  .specialist-line { margin-bottom: 35px; }
  .specialist-heading { font-size: 34px; margin-bottom: 35px; }
  .specialist-items { grid-template-columns: repeat(2, 1fr); row-gap: 40px; column-gap: 30px; }
  .specialist-item h3 { font-size: 17px; }
}
@media (max-width: 767px) {
  .specialist-container { padding: 20px 15px 40px; }
  .specialist-top-title { font-size: 27px; margin-bottom: 18px; }
  .specialist-line { height: 1px; margin-bottom: 30px; }
  .specialist-heading { font-size: 32px; }
  .specialist-items { grid-template-columns: 1fr; row-gap: 35px; }
  .specialist-icon { width: 90px; height: 90px; margin-bottom: 12px; }
  .specialist-icon-1 { border-width: 6px; }
  .specialist-icon-2 { font-size: 52px; }
  .specialist-icon-3, .specialist-icon-4 { font-size: 43px; }
  .specialist-item h3 { line-height: 1.5; max-width: 330px; }
}
@media (max-width: 480px) {
  .specialist-container { padding: 18px 12px 35px; }
  .specialist-top-title { font-size: 25px; }
  .specialist-heading { font-size: 29px; }
  .specialist-icon { width: 85px; height: 85px; }
  .specialist-item h3 { font-size: 16px; }
}

/* ---------- Home services grid ---------- */

.services-heading { width: 100%; text-align: center; margin-bottom: 35px; }
.services-heading h2 { margin: 0; padding: 0; font-size: 40px; font-weight: 500; line-height: 1.2; position: relative; display: inline-block; }

.services-section { width: 100%; padding: 30px 34px; background: #ffffff; }
.services-container { width: 100%; max-width: 1600px; margin: 0 auto; }
.services-grid { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 30px; row-gap: 34px; }
.service-card { width: 100%; background: #ffffff; overflow: hidden; cursor: pointer; }
.service-link { display: block; width: 100%; text-decoration: none; color: inherit; }
.service-link:hover { text-decoration: none; color: inherit; }
.service-image { position: relative; width: 100%; height: 337px; overflow: hidden; background: #eeeeee; }
.service-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 0.6s ease; }
.service-card:hover .service-image img { transform: scale(1.04); }
.service-hover { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.48); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s ease; }
.service-card:hover .service-hover { opacity: 1; visibility: visible; }
.service-hover p { width: 88%; margin: 0 0 25px; padding: 0; color: #ffffff; text-align: center; font-size: 17px; font-weight: 400; line-height: 1.45; transform: translateY(120px); transition: transform 0.6s ease; }
.service-card:hover .service-hover p { transform: translateY(0); }
.service-title { position: relative; width: 100%; height: 76px; background: #f1f1f1; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.service-title h3 { margin: 0; padding: 0 10px; color: #008dcc; font-size: 24px; font-weight: 400; line-height: 1.3; }

@media (max-width: 1199px) {
  .services-section { padding: 30px 25px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); column-gap: 25px; row-gap: 30px; }
  .service-image { height: 320px; }
  .service-title { height: 75px; }
  .service-title h3 { font-size: 23px; }
  .service-hover p { width: 85%; font-size: 15px; }
}
@media (max-width: 991px) {
  .services-section { padding: 25px 20px; }
  .services-grid { column-gap: 22px; row-gap: 28px; }
  .service-image { height: 300px; }
  .service-title { height: 72px; }
  .service-title h3 { font-size: 21px; }
  .service-hover p { width: 88%; margin-bottom: 20px; font-size: 14px; line-height: 1.5; }
}
@media (max-width: 767px) {
  .services-section { padding: 25px 18px; }
  .services-grid { column-gap: 18px; row-gap: 22px; }
  .service-image { height: 270px; }
  .service-title { height: 68px; }
  .service-title h3 { font-size: 19px; padding: 0 7px; }
  .service-hover p { margin-bottom: 18px; font-size: 13px; line-height: 1.45; }
}
@media (max-width: 575px) {
  .services-heading { margin-bottom: 28px; }
  .services-heading h2 { font-size: 30px; }
  .services-section { padding: 20px 15px; }
  .services-grid { grid-template-columns: 1fr; column-gap: 0; row-gap: 20px; }
  .service-image { height: 280px; }
  .service-title { height: 70px; }
  .service-title h3 { font-size: 21px; padding: 0 10px; }
  .service-hover p { margin-bottom: 20px; font-size: 14px; line-height: 1.5; }
}
@media (max-width: 375px) {
  .services-section { padding: 15px 12px; }
  .services-grid { row-gap: 18px; }
  .service-image { height: 250px; }
  .service-title { height: 65px; }
  .service-title h3 { font-size: 19px; }
  .service-hover p { width: 90%; margin-bottom: 15px; font-size: 13px; }
}
@media (hover: none) and (pointer: coarse) {
  .service-card:hover .service-image img { transform: none; }
  .service-hover { opacity: 0; visibility: hidden; }
}

/* ---------- Home appointment banner ---------- */

.appointment-container { width: 100%; min-height: 138px; background: #2fa3dc; border-radius: 5px; border-bottom: 6px solid #008fd3; display: flex; align-items: center; padding: 25px 28px; }
.appointment-content { width: 100%; display: flex; align-items: center; }
.appointment-text { margin-right: 35px; }
.appointment-text h2 { margin: 0 0 8px; padding: 0; color: #ffffff; font-size: 24px; font-weight: 300; line-height: 1.3; }
.appointment-text p { margin: 0; padding: 0; color: #ffffff; font-size: 16px; font-weight: 400; line-height: 1.4; }
.appointment-button { display: flex; align-items: center; }
.appointment-button a { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 189px; height: 44px; padding: 0 17px; background: #333333; color: #ffffff; border-radius: 5px; text-decoration: none; font-size: 14px; font-weight: 400; transition: all 0.3s ease; }
.appointment-button a i { font-size: 13px; color: #ffffff; }
.appointment-button a:hover { background: #222222; color: rgb(125, 182, 211); }
.appointment-button a:hover i { color: rgb(125, 182, 211); }

@media (max-width: 991px) {
  .appointment-section { padding: 15px; }
  .appointment-container { min-height: 135px; padding: 25px; }
  .appointment-text { margin-right: 25px; }
  .appointment-text h2 { font-size: 22px; }
}
@media (max-width: 767px) {
  .appointment-container { min-height: auto; padding: 25px 20px; }
  .appointment-content { flex-direction: column; align-items: flex-start; gap: 18px; }
  .appointment-text { margin-right: 0; }
  .appointment-text h2 { font-size: 21px; }
  .appointment-text p { font-size: 15px; }
  .appointment-button a { min-width: 185px; height: 43px; }
}
@media (max-width: 375px) {
  .appointment-section { padding: 12px; }
  .appointment-container { padding: 22px 18px; }
  .appointment-text h2 { font-size: 19px; }
  .appointment-text p { font-size: 14px; }
  .appointment-button a { min-width: 175px; font-size: 13px; }
}


/* =====================================================
   9. GALLERY PAGE
===================================================== */

.gallery-section { width: 100%; padding: 40px; background: #ffffff; }
.gallery-container { width: 100%; max-width: 1600px; margin: 0 auto; }
.gallery-grid { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.gallery-item { width: 100%; height: 500px; overflow: hidden; background: #eeeeee; cursor: pointer; }
.gallery-image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover .gallery-image { transform: scale(1.04); }

.gallery-lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh; background: rgba(0, 0, 0, 0.92); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; z-index: 99999; transition: opacity 0.3s ease, visibility 0.3s ease; }
.gallery-lightbox.active { opacity: 1; visibility: visible; }
.lightbox-image-container { width: 80%; height: 85vh; display: flex; align-items: center; justify-content: center; }
.lightbox-image-container img { display: block; max-width: 100%; max-height: 85vh; width: auto; height: auto; object-fit: contain; }

.lightbox-close { position: absolute; top: 20px; right: 30px; width: 45px; height: 45px; border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.15); color: #ffffff; font-size: 35px; line-height: 40px; cursor: pointer; z-index: 10; transition: 0.3s ease; }
.lightbox-close:hover { background: #ffffff; color: #222222; }
.lightbox-prev,
.lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); width: 55px; height: 55px; border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.18); color: #ffffff; font-size: 22px; cursor: pointer; z-index: 10; transition: 0.3s ease; }
.lightbox-prev:hover,
.lightbox-next:hover { background: #ffffff; color: #222222; }
.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }
.lightbox-counter { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); color: #ffffff; font-size: 16px; background: rgba(0, 0, 0, 0.5); padding: 7px 15px; border-radius: 20px; }

@media (max-width: 991px) {
  .gallery-section { padding: 30px 20px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item { height: 400px; }
  .lightbox-image-container { width: 85%; }
  .lightbox-prev { left: 15px; }
  .lightbox-next { right: 15px; }
}
@media (max-width: 575px) {
  .gallery-section { padding: 20px 15px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item { height: 300px; }
  .lightbox-image-container { width: 90%; height: 75vh; }
  .lightbox-image-container img { max-height: 75vh; }
  .lightbox-close { top: 15px; right: 15px; width: 40px; height: 40px; font-size: 30px; }
  .lightbox-prev,
  .lightbox-next { width: 42px; height: 42px; font-size: 17px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-counter { bottom: 15px; font-size: 14px; }
}