/* ==========================================================================
   Dr. Morad Omar - Official Website Stylesheet
   Design Replica & Enhanced Bootstrap 5 RTL Implementation
   ========================================================================== */

:root {
  --primary-color: #17484c;
  --primary-dark: #103336;
  --primary-light: #1f6165;
  --accent-color: #85dadf;
  --accent-hover: #5ec4ca;
  --accent-soft: rgba(133, 218, 223, 0.15);
  --bg-light: #eeeff2;
  --bg-lighter: #f8f9fa;
  --text-dark: #212529;
  --text-muted: #4a4a4a;
  --border-color: #dde0e3;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 30px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(23, 72, 76, 0.12);
  --shadow-lg: 0 16px 40px rgba(23, 72, 76, 0.18);
  --transition-fast: 0.25s ease;
  --transition-smooth: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base & Typography */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Cairo', 'Poppins', sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.7;
  overflow-x: hidden;
  direction: rtl;
  text-align: right;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.35;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
}

.rounded-30 {
  border-radius: 30px !important;
}

.section-py {
  padding: 70px 0;
}

.sec-title h2,
.partners-h2,
#about h2,
.our-doctor h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-color);
  position: relative;
  margin-bottom: 25px;
  padding-right: 20px;
}

.sec-title h2::after,
.partners-h2::after,
#about h2::after,
.our-doctor h2::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 6px;
  background: var(--accent-color);
  border-radius: 4px;
}

/* ==========================================================================
   Header & Navbar (Fixed with Glassmorphism / Solid on scroll)
   ========================================================================== */
nav.jc-main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  padding: 12px 6%;
  background: transparent;
  transition: all 0.35s ease;
}

nav.jc-main-header.scrolled {
  background: rgba(23, 72, 76, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 8px 6%;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

nav.jc-main-header .nav-logo-link {
  display: inline-flex;
  align-items: center;
  margin-left: 25px;
  flex-shrink: 0;
}

nav.jc-main-header .nav-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

nav.jc-main-header .nav-logo:hover {
  transform: scale(1.03);
}

nav.jc-main-header .nav-ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

nav.jc-main-header .nav-ul li {
  position: relative;
}

nav.jc-main-header .nav-ul li a {
  display: inline-flex;
  align-items: center;
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
  padding: 7px 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

nav.jc-main-header .nav-ul li a:hover,
nav.jc-main-header .nav-ul li.active a {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #17484c;
}

/* Phone link in navbar */
nav.jc-main-header .nav-ul li a.tel {
  direction: ltr !important;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.5px;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

nav.jc-main-header .nav-ul li a.tel:hover {
  background-color: var(--accent-color);
  color: #17484c;
}

/* CTA "اتصل بنا" button in navbar */
nav.jc-main-header .nav-ul li a.contact-info-bttn {
  background-color: var(--accent-color);
  color: #17484c;
  border: 1.5px solid #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 7px 22px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(133, 218, 223, 0.3);
}

nav.jc-main-header .nav-ul li a.contact-info-bttn:hover {
  background-color: #ffffff;
  color: #17484c;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.3);
}

/* Dropdown Menu for Services */
nav.jc-main-header .nav-item-dropdown {
  position: relative;
}

nav.jc-main-header .nav-item-dropdown .sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #17484c;
  min-width: 280px;
  padding: 10px 0;
  margin: 12px 0 0;
  list-style: none;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(133, 218, 223, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1050;
}

nav.jc-main-header .nav-item-dropdown:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

nav.jc-main-header .sub-menu li {
  width: 100%;
  padding: 2px 10px;
}

nav.jc-main-header .sub-menu li a {
  display: block;
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.9);
  white-space: normal;
  line-height: 1.4;
}

nav.jc-main-header .sub-menu li a:hover {
  background: var(--accent-color);
  color: #17484c;
  padding-right: 18px;
}

/* Mobile Toggle Button */
.sm-nav-button {
  display: none;
  background: transparent;
  color: #ffffff;
  border: none;
  font-size: 26px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: var(--transition-fast);
}

.sm-nav-button:hover {
  color: var(--accent-color);
}

/* Mobile Offcanvas Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: -320px;
  width: 300px;
  background: #17484c;
  z-index: 1060;
  padding: 25px 20px;
  overflow-y: auto;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-nav-close {
  background: transparent;
  color: #ffffff;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-nav-links li a {
  display: block;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-fast);
}

.mobile-nav-links li a:hover,
.mobile-nav-links li a.active {
  background: var(--accent-color);
  color: #17484c;
  border-color: var(--accent-color);
}

.mobile-sub-menu {
  list-style: none;
  padding: 8px 12px 4px;
  margin: 6px 0 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-sub-menu li a {
  border: none !important;
  font-size: 13.5px !important;
  padding: 6px 8px !important;
}

/* ==========================================================================
   Hero Banner / Slider
   ========================================================================== */
.slidersca {
  position: relative;
  width: 100%;
}

.slider {
  width: 100%;
  min-height: 100vh;
  background: url('../images/slider.webp') center center / cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  color: #ffffff;
  padding: 140px 0 80px;
  overflow: hidden;
}

.slider::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(23, 72, 76, 0.85) 0%, rgba(10, 35, 38, 0.75) 50%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.slider .slider-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.slider h1.h1,
.slider h1 {
  font-size: 46px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 22px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slider h1 span {
  color: #f4feff;
}

.slider p {
  font-size: 18.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 35px;
  max-width: 650px;
}

.default-btn {
  background-color: var(--accent-color);
  color: #17484c;
  font-weight: 700;
  font-size: 18px;
  padding: 12px 36px;
  border-radius: 30px;
  border: 2px solid #ffffff;
  box-shadow: 0 8px 24px rgba(133, 218, 223, 0.35);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.default-btn:hover {
  background-color: #ffffff;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.4);
}

/* Inner Page Banner & Breadcrumb */
.slider.page-banner {
  min-height: 380px;
  height: 380px;
  padding: 130px 0 50px;
  display: flex;
  align-items: center;
}

.page-banner .breadcrumb {
  background: transparent;
  padding: 0;
  margin-top: 15px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  font-size: 17px;
  font-weight: 600;
}

.page-banner .breadcrumb-item a {
  color: #f4feff;
  text-decoration: none;
  transition: var(--transition-fast);
}

.page-banner .breadcrumb-item a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-banner .breadcrumb-item.active {
  color: #ffffff;
}

.page-banner .breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  color: rgba(255, 255, 255, 0.7);
  padding: 0 10px;
  float: right;
}

/* Page our-doctor section custom styles */
.about-hero-doctor {
  padding: 80px 0 60px;
  background: #ffffff;
}

.doctor-bio-box {
  background: #ffffff;
  padding: 10px 0;
}

.doctor-bio-box p {
  font-size: 16.5px;
  line-height: 1.9;
  color: #3f4448;
  margin-bottom: 20px;
  text-align: justify;
}

.doctor-bio-box p strong,
.doctor-bio-box p span.highlight {
  color: var(--primary-color);
  font-weight: 700;
}

.vision-mission-card {
  background: var(--bg-lighter);
  border-radius: 20px;
  padding: 30px 25px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
}

.vision-mission-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(133, 218, 223, 0.5);
}

.vision-icon {
  width: 55px;
  height: 55px;
  background: var(--primary-color);
  color: #ffffff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}


/* ==========================================================================
   Medical Services Section (#treat)
   ========================================================================== */
.treat {
  background-color: var(--bg-light);
  padding: 80px 0 70px;
}

.treat-box {
  background: #ffffff;
  border-radius: 24px;
  padding: 28px 24px;
  min-height: 250px;
  height: calc(100% - 30px);
  margin-bottom: 30px;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.treat-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 25px;
  width: 50px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 0 0 4px 4px;
  transition: width 0.3s ease;
}

.treat-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(23, 72, 76, 0.12);
  border-color: rgba(133, 218, 223, 0.4);
}

.treat-box:hover::before {
  width: 100px;
  background: var(--primary-color);
}

.treat-box h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--primary-color);
  line-height: 1.45;
}

.treat-box h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.treat-box p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 0;
  flex-grow: 1;
}

.treat-box .link.active {
  color: var(--primary-color);
  font-weight: 700;
  display: inline-block;
  margin-top: 10px;
  transition: var(--transition-fast);
}

.treat-box:hover .link.active {
  color: var(--primary-dark);
  padding-left: 6px;
}

/* Wide Pricing Card (treat-box3) */
.treat-box3 {
  background: linear-gradient(rgba(23, 72, 76, 0.8), rgba(23, 72, 76, 0.85)),
              url('../images/prices_card.webp') center center / cover no-repeat;
  border-radius: 30px;
  min-height: 250px;
  height: calc(100% - 30px);
  padding: 35px 35px;
  color: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 30px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.treat-box3 h3 {
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 25px;
  max-width: 450px;
}

.wwt-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 3px double #ffffff;
  background-color: var(--primary-color);
  color: #ffffff;
  font-weight: 700;
  padding: 10px 30px;
  font-size: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.wwt-button:hover {
  background-color: var(--accent-color);
  color: #17484c;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

/* Category Services Grid Cards (.post-item) */
.posts-container .post-item .blog {
  border-radius: 30px;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
  height: 100%;
}

.posts-container .post-item .blog:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(23, 72, 76, 0.12);
  border-color: rgba(133, 218, 223, 0.4);
}

.posts-container .blog-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.posts-container .blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  transition: transform 0.4s ease;
}

.posts-container .post-item .blog:hover .blog-img img {
  transform: scale(1.06);
}

.posts-container h3.h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.45;
}

.posts-container h3.h4 a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.25s ease;
}

.posts-container h3.h4 a:hover {
  color: var(--accent-hover);
}

.posts-container p {
  color: #555555;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 0;
}

.posts-container .link.active {
  color: var(--primary-color);
  font-weight: 700;
  display: inline-block;
  margin-top: 8px;
  transition: all 0.25s ease;
}

.posts-container .post-item .blog:hover .link.active {
  color: var(--accent-hover);
  padding-left: 6px;
}


/* ==========================================================================
   Why Choose Us Section (#about)
   ========================================================================== */
section.about {
  padding: 80px 0;
  background-color: #ffffff;
}

.about-box {
  border: 1px solid #e0e0e0;
  border-bottom: none;
  border-right: none;
  padding: 35px 30px;
  background: #ffffff;
  transition: all 0.3s ease;
  position: relative;
}

.about-box:first-of-type {
  border-right: 1px solid #e0e0e0;
}

.about-box:hover {
  background: var(--bg-lighter);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.about-box-icon {
  width: 58px;
  height: 58px;
  background: var(--accent-soft);
  color: var(--primary-color);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.about-box:hover .about-box-icon {
  background: var(--primary-color);
  color: #ffffff;
}

.about-box h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.about-box p {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.8;
  margin: 0;
}

/* ==========================================================================
   Doctor Profile & Biography Section (.our-doctor)
   ========================================================================== */
section.our-doctor {
  padding: 85px 0;
  background: rgba(23, 72, 76, 0.04);
}

.our-doctor-img {
  text-align: center;
  position: relative;
}

.our-doctor-img img {
  width: 100%;
  max-width: 520px;
  border-radius: 30px;
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.our-doctor-content h3 {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.our-doctor-content p {
  font-size: 16px;
  line-height: 1.85;
  color: #444444;
  margin-bottom: 16px;
}

.our-doctor-cert {
  margin-top: 25px;
}

.our-doctor-cert img {
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.our-doctor-numbers {
  background-color: #eeeff2;
  border-radius: 20px;
  padding: 20px 25px;
  margin-top: 25px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.our-doctor-numbers .stat-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
}

.our-doctor-numbers .num {
  font-size: 42px;
  font-weight: 800;
  color: #17484c;
  line-height: 1;
  font-family: 'Poppins', sans-serif;
  flex-shrink: 0;
}

.our-doctor-numbers .stat-desc {
  font-size: 14.5px;
  font-weight: 600;
  color: #495057;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Media & Videos Section (.gallery)
   ========================================================================== */
section.gallery {
  padding: 80px 0;
  background-color: #ffffff;
}

.media-box {
  height: 440px;
  border-radius: 30px;
  margin-top: 25px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.media-shadow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 60%, rgba(23,72,76,0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 20px;
  text-decoration: none;
  cursor: pointer;
}

.media-play-btn {
  width: 65px;
  height: 65px;
  background: #ffffff;
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.media-play-btn::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.4; }
  100% { transform: scale(1.25); opacity: 0; }
}

.media-box:hover .media-play-btn {
  transform: scale(1.12);
  background: var(--accent-color);
  color: var(--primary-color);
}

.media-heading {
  font-size: 32px;
  font-weight: 800;
  color: #1c1c1c;
  margin: 0 0 8px;
  text-align: right;
}

.before-after {
  background: #eef1f4;
  padding: 20px 0 80px;
}

.before-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.06);
  transition: transform 0.3s ease;
}

.before-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.before-card:hover {
  transform: translateY(-4px);
}

.media-box p {
  position: absolute;
  bottom: 25px;
  right: 25px;
  left: 25px;
  color: #ffffff;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.5;
  margin: 0;
  text-align: right;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Appointment / Contact Form (.get-quote)
   ========================================================================== */
section.get-quote {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.get-quote-img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  background: url('../images/slider.webp') no-repeat center center / cover;
  border-radius: 30px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.cta-form-card {
  background: #ffffff;
  border-radius: 30px;
  padding: 40px 35px;
  box-shadow: var(--shadow-md);
}

.cta-form-card h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 25px;
  color: var(--primary-color);
}

.form-group-custom {
  margin-bottom: 20px;
}

.form-group-custom label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
  color: #333333;
}

.form-control-custom {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 1.5px solid #dce2e2;
  border-radius: 12px;
  background: #fbfbfc;
  transition: var(--transition-fast);
}

.form-control-custom:focus {
  outline: none;
  border-color: var(--primary-color);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(23, 72, 76, 0.1);
}

.btn-submit-booking {
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  font-size: 17px;
  font-weight: 700;
  padding: 12px 36px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(23, 72, 76, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-submit-booking:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(23, 72, 76, 0.35);
}

/* ==========================================================================
   Patient Reviews / Testimonials Carousel (#reviews)
   ========================================================================== */
#reviews {
  padding: 85px 0;
  background-color: #ffffff;
}

.reviews-carousel-wrapper {
  position: relative;
  margin-top: 35px;
}

.review-card {
  background: var(--bg-lighter);
  border-radius: 24px;
  padding: 35px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.review-user-avatar {
  width: 64px;
  height: 64px;
  background: var(--primary-color);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 15px;
  box-shadow: 0 6px 16px rgba(23, 72, 76, 0.2);
}

.review-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.stars-icon-div {
  color: #ffc107;
  font-size: 16px;
  margin-bottom: 18px;
  display: flex;
  gap: 4px;
  justify-content: center;
}

.review-card p {
  font-size: 15.5px;
  line-height: 1.8;
  color: #555555;
  margin: 0;
  font-style: italic;
}

.carousel-indicators-custom {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.carousel-indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbccce;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.carousel-indicator-dot.active {
  background: var(--primary-color);
  width: 28px;
  border-radius: 6px;
}

/* ==========================================================================
   Blog Section (#blog)
   ========================================================================== */
#blog {
  padding: 85px 0;
  background-color: var(--bg-light);
}

.blog-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: calc(100% - 30px);
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.blog-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.blog-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-img-wrapper img {
  transform: scale(1.06);
}

.blog-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.45;
}

.blog-body h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.blog-body h3 a:hover {
  color: var(--accent-hover);
}

.blog-body p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 15px;
  flex-grow: 1;
}

.blog-body .read-more {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-card:hover .read-more {
  color: var(--accent-hover);
}

/* ==========================================================================
   Clinic Branches & Locations (.contact-area)
   ========================================================================== */
.contact-page-form {
  background: #f6f7f8;
}

.contact-area {
  padding: 85px 0;
  background-color: #ffffff;
}

.branch-card {
  background: var(--bg-lighter);
  border-radius: 30px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.branch-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.branch-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.branch-map-frame {
  border-radius: 20px;
  overflow: hidden;
  height: 240px;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.branch-map-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.branch-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.branch-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: #444444;
  line-height: 1.6;
}

.branch-info-item i {
  color: var(--primary-color);
  font-size: 17px;
  margin-top: 4px;
  flex-shrink: 0;
}

.branch-info-item a {
  color: #17484c;
  font-weight: 600;
  text-decoration: none;
  direction: ltr;
  display: inline-block;
}

.branch-info-item a:hover {
  color: var(--accent-hover);
}

.branch-schedule-badge {
  display: inline-flex;
  gap: 8px;
  margin-top: 8px;
}

.branch-schedule-badge span {
  background: var(--primary-color);
  color: #ffffff;
  padding: 4px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

/* ==========================================================================
   Footer (#footer)
   ========================================================================== */
.footer {
  background-color: #ffffff;
  border-top: 1px solid var(--accent-color);
  padding: 70px 0 30px;
}

.foot-brand img {
  width: 170px;
  margin-bottom: 18px;
}

.foot-brand .cofoot {
  color: #555555;
  font-size: 14.5px;
  line-height: 1.8;
  margin-bottom: 22px;
}

.social-links {
  display: flex;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.social-links li a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transition: all 0.3s ease;
}

.social-links li a:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-3px);
}

.foot h3 {
  font-size: 20px;
  font-weight: 800;
  color: #1f6165;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.foot h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 35px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
}

.foot-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-links-list li a {
  color: #495057;
  font-size: 14.5px;
  font-weight: 600;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.foot-links-list li a:hover {
  color: var(--primary-color);
  padding-right: 6px;
}

.foot-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14.5px;
  color: #495057;
  line-height: 1.6;
}

.foot-contact-item i {
  color: var(--primary-color);
  font-size: 16px;
  margin-top: 4px;
  flex-shrink: 0;
}

.foot-contact-item a {
  color: #17484c;
  font-weight: 700;
}

.foot-contact-item a[href^="tel"],
.foot-contact-item a[href^="mailto"] {
  direction: ltr;
}

.copyright-div {
  background: #f1f3f4;
  padding: 18px 0;
  margin-top: 40px;
  text-align: center;
  border-top: 1px solid #e2e5e8;
}

.copyright {
  margin: 0;
  font-size: 15px;
  color: #243033;
  font-weight: 600;
}

.copyright strong {
  color: var(--primary-color);
  font-weight: 800;
}

.copyright a {
  color: var(--primary-color);
  font-weight: 700;
}

/* ==========================================================================
   Sticky Floating Contact Widgets (Left Screen Center)
   ========================================================================== */
.sticky-contact-bar {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sticky-contact-btn {
  background: #17484c;
  color: #ffffff;
  display: flex;
  align-items: center;
  border-radius: 0 12px 12px 0;
  padding: 10px 14px;
  text-decoration: none;
  box-shadow: 2px 4px 14px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  overflow: hidden;
  max-width: 48px;
  white-space: nowrap;
}

.sticky-contact-btn i {
  font-size: 22px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.sticky-contact-btn span {
  font-size: 14px;
  font-weight: 700;
  margin-right: 10px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sticky-contact-btn:hover {
  max-width: 170px;
  background: var(--accent-hover);
  color: #17484c;
  padding-left: 18px;
}

.sticky-contact-btn:hover span {
  opacity: 1;
}

.sticky-contact-btn.whatsapp-btn {
  background: #25d366;
}

.sticky-contact-btn.whatsapp-btn:hover {
  background: #1ebc59;
  color: #ffffff;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 46px;
  height: 46px;
  background: var(--primary-color);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  border: 2px solid #ffffff;
  cursor: pointer;
  z-index: 1020;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-color);
  color: #17484c;
  transform: translateY(-4px);
}

/* ==========================================================================
   Video Modal Styling
   ========================================================================== */
.modal-video-dialog {
  max-width: 800px;
}

.modal-video-content {
  background: #000000;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-video-body {
  padding: 0;
  position: relative;
  aspect-ratio: 16 / 9;
}

.modal-video-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1200px) {
  nav.jc-main-header {
    padding: 10px 4%;
  }

  nav.jc-main-header .nav-ul li a {
    font-size: 13.5px;
    padding: 6px 10px;
  }

  .slider h1.h1,
  .slider h1 {
    font-size: 38px;
  }
}

@media (max-width: 991px) {
  .sm-nav-button {
    display: block;
  }

  nav.jc-main-header .nav-ul {
    display: none;
  }

  nav.jc-main-header {
    background: rgba(23, 72, 76, 0.98);
    padding: 10px 5%;
  }

  .slider {
    padding: 120px 0 60px;
    min-height: auto;
  }

  .slider h1.h1,
  .slider h1 {
    font-size: 32px;
  }

  .slider p {
    font-size: 16px;
  }

  .about-box {
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
    border-radius: 16px;
  }

  .media-box {
    height: 380px;
  }

  .get-quote-img {
    min-height: 320px;
    margin-bottom: 30px;
  }
}

@media (max-width: 576px) {
  .slider h1.h1,
  .slider h1 {
    font-size: 26px;
  }

  .sec-title h2,
  .partners-h2,
  #about h2,
  .our-doctor h2 {
    font-size: 1.8rem;
  }

  .default-btn {
    font-size: 16px;
    padding: 10px 28px;
  }

  .treat-box3 {
    padding: 25px 20px;
  }

  .treat-box3 h3 {
    font-size: 22px;
  }

  .our-doctor-numbers .stat-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .media-box {
    height: 320px;
  }
}

/* ==========================================================================
   Service Detail (blog layout)
   ========================================================================== */
.page-banner.page-banner-article {
  min-height: 320px;
  height: auto;
  padding-bottom: 40px;
}

.page-banner.page-banner-article h1.h1 {
  font-size: 34px;
  max-width: 920px;
}

.service-detail {
  background: #fff;
  padding: 36px 0 20px;
}

.post-hero {
  margin: 0 0 26px;
  border-radius: 10px;
  overflow: hidden;
}

.post-hero img {
  width: 100%;
  display: block;
}

.post-article .article-lead,
.post-article p,
.post-article li {
  color: #2b2f33;
  font-size: 17px;
  line-height: 2;
}

.post-article p {
  margin-bottom: 16px;
  text-align: justify;
}

.post-article a:not(.contact-pill):not(.share-btn),
.service-side-list a,
.posts-container h3.h4 a,
.posts-container .link.active {
  color: #85dadf !important;
  font-weight: 700;
}

.post-article a:not(.contact-pill):not(.share-btn):hover,
.service-side-list a:hover,
.posts-container h3.h4 a:hover,
.posts-container .link.active:hover {
  color: #17484c !important;
}

.post-article h2 {
  font-size: 32px;
  text-align: center;
  margin: 34px 0 16px;
  color: #1a1a1a;
}

.post-article h3 {
  font-size: 24px;
  text-align: center;
  margin: 26px 0 12px;
  color: #1a1a1a;
}

.post-article ul,
.post-article ol {
  padding-right: 22px;
  margin-bottom: 16px;
}

.toc-box {
  width: min(380px, 100%);
  margin: 8px 0 22px auto;
  border: 1px solid #e6e8ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.05);
}

.toc-head {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 14px 16px 8px;
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  cursor: pointer;
}

.toc-head i {
  position: absolute;
  left: 16px;
}

.toc-box ol {
  direction: rtl;
  text-align: right;
  list-style-position: inside;
  margin: 0;
  padding: 4px 18px 14px 16px;
}

.toc-box li {
  direction: rtl;
  text-align: right;
  margin-bottom: 6px;
  font-size: 15.5px;
  line-height: 1.7;
}

.toc-box a {
  color: #3a3f44;
  font-weight: 600;
}

.toc-box ol ol {
  direction: rtl;
  text-align: right;
  padding: 4px 16px 0 0;
}

.toc-box.is-collapsed ol {
  display: none;
}

.contact-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 22px 0 28px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 168px;
  background: #17484c;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  padding: 12px 26px;
  border-radius: 14px;
  line-height: 1;
}

.contact-pill i {
  font-size: 18px;
}

.contact-pill:hover {
  background: #103336;
  color: #fff;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-top: 8px;
}

.share-label {
  font-weight: 700;
  color: #222;
  margin-left: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d5d9de;
  border-radius: 10px;
  padding: 8px 14px;
  color: #222;
  background: #fff;
  font-weight: 700;
}

.share-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.side-widget {
  background: #fff;
  border: 1px solid #eceff2;
  border-radius: 26px;
  padding: 26px 22px 22px;
  margin-bottom: 22px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.04);
}

.side-widget h2 {
  text-align: center;
  font-size: 30px;
  margin-bottom: 18px;
  color: #1c1c1c;
}

.service-side-list {
  list-style: disc;
  margin: 0;
  padding-right: 20px;
}

.service-side-list li {
  margin-bottom: 10px;
}

.service-side-list a {
  color: #85dadf;
  font-weight: 700;
  line-height: 1.7;
}

.service-side-list a.is-current {
  color: var(--primary-color);
}

.side-contact-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.side-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  color: #333;
  line-height: 1.7;
}

.side-contact-list i {
  color: #1a7278;
  margin-top: 6px;
  width: 16px;
}

.side-form label {
  display: block;
  font-weight: 700;
  margin: 12px 0 6px;
  color: #222;
}

.side-form textarea.form-control-custom {
  min-height: 110px;
  resize: vertical;
}

.side-form .btn-submit-booking {
  margin-top: 16px;
}

.related-posts {
  background: #eef1f4;
  padding: 48px 0 70px;
}

.related-posts h2 {
  font-size: 32px;
  color: #1c1c1c;
  margin-bottom: 22px;
}

.related-card {
  display: block;
  height: 100%;
  background: #fff;
  border-radius: 22px;
  padding: 14px 14px 6px;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.05);
}

.related-card img {
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: cover;
  border-radius: 16px;
}

.related-card h3 {
  color: #149aa3;
  font-size: 22px;
  line-height: 1.55;
  margin: 14px 6px 16px;
}

@media (max-width: 991px) {
  .page-banner.page-banner-article h1.h1,
  .post-article h2,
  .related-posts h2,
  .side-widget h2 {
    font-size: 26px;
  }

  .toc-box {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .page-banner.page-banner-article h1.h1 {
    font-size: 22px;
  }

  .post-article h2 {
    font-size: 22px;
  }
}

.text-muted {
  color: #4a4a4a !important;
}

.text-white-50 {
  color: #f4f7f7 !important;
}

::placeholder {
  color: #4a4a4a;
  opacity: 1;
}
