/* Global Styles */

@font-face {
  font-family: 'Bukra';
  src: url('../fonts/bukra-light.woff2') format('opentype');
  font-style: normal;
}

@font-face {
  font-family: 'Bukra-bold';
  src: url('../fonts/bukra-bold.woff2') format('opentype');
  font-weight: 400;
  font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
  font-family: 'Bukra', sans-serif !important;
  overflow-x: hidden !important;
  width: 100%;
  margin: 0;
  padding: 0;
   display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.page-x{
	padding:30px;
}
body {
    color: #333;
    overflow-x: hidden;
}
main > section:first-of-type,
body > section:first-of-type,
.container-fluid > section:first-of-type {
    margin-top: 3rem !important;
    padding-top: 2rem !important;
}

main > div:first-of-type,
body > div:first-of-type {
    margin-top: 3rem !important;
    padding-top: 2rem !important;
}

.container-fluid {
  width: 100%;
  max-width: 90%;
  padding-left: 5vw;
  padding-right: 5vw;
  margin: 0 auto;
}
h1,h2,h3,h4,h5,h6{
  font-family: 'Bukra-bold', sans-serif !important;
	font-weight:400;
}
/* ################################## Navbar ################################### */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    padding: 0.5rem 1rem;
    z-index: 100;
}

.navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.lang-switcher-link {
    margin-right: 15px; /* تغيير من left إلى right */
    text-transform: uppercase;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.lang-switcher-link:hover {
    color: #007bff;
}
.navbar-nav .nav-link {
    color: #333 !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover {
    color: #cba662 !important;
}
.navbar-nav .separator {
    padding: 0 0.5rem;
    color: #888;
    cursor: default;
}

.navbar-toggler {
    font-size: 1.5rem;
    color: #333;
    display: block;
}

/* القائمة الجانبية */
.hamburger-menu {
  position: fixed;
  top: 0;
  left: -100%; /* تغيير من right إلى left */
  width: 70%;
  height: 100%;
  background: #fff;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-100%); /* تغيير من 100% إلى -100% */
  transition: all 0.4s ease;
}

/* القائمة عند الظهور */
.hamburger-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0); /* تغيير من 0 إلى 0 */
}
/* الخلفية الداكنة */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1500;
}

.menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* الروابط */
.hamburger-menu .nav-link {
  display: block;
  padding: 12px 0;
  color: #222;
  font-size: 1rem;
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.hamburger-menu.show .nav-link {
  opacity: 1;
  transform: translateY(0);
}

/* تأثير لطيف عند التحويم */
.hamburger-menu .nav-link:hover {
  color: var(--gold-color, #c9a14a);
}


.navbar {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: fixed !important;
  width: 100%;
  top: 0;
  z-index: 999;
  padding: 0.6rem 1rem;
}

.navbar .container-fluid  {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.navbar-brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.navbar-brand img {
  height: 80px;
  width: auto;
}

.left-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-lang {
  background: none;
  border: none;
  color: #333;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.btn-lang:hover {
  color: #cba662;
}

.navbar-toggler {
  font-size: 1.4rem;
  color: #333;
  background: none;
  border: none;
  cursor: pointer;
}

.right-menu {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* تغيير من flex-end إلى flex-start */
}

.right-menu .navbar-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.right-menu .nav-link {
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.4rem 0.6rem;
  transition: color 0.3s ease;
}

.right-menu .nav-link:hover {
  color: #cba662;
}

.right-menu .separator {
  color: #aaa;
}

.hamburger-menu {
  position: fixed;
  top: 0;
  left: -100%; /* تغيير من right إلى left */
  width: 260px;
  height: 100vh;
  background: #fff;
  box-shadow: 3px 0 15px rgba(0, 0, 0, 0.2); /* تغيير من -3px إلى 3px */
  padding: 80px 25px 25px;
  transition: left 0.35s ease; /* تغيير من right إلى left */
  z-index: 1000;
}

.hamburger-menu.show {
  left: 0; /* تغيير من right: 0 إلى left: 0 */
}

.hamburger-menu .nav-link {
  display: block;
  font-size: 1.1rem;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 999;
}

.menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 991.98px) {
  .right-menu ul.navbar-nav li:not(:first-child),
  .right-menu ul.navbar-nav .separator {
    display: none;
  }

  .right-menu ul.navbar-nav li:first-child {
    display: inline-block;
  }

  .navbar .container-fluid  {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .left-menu {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .navbar-toggler {
    order: 1;
    font-size: 1.4rem;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
  }

  .navbar-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    order: 2;
  }

  .navbar-brand img {
    height: 45px;
    width: auto;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 0.8rem;
  }

  .navbar-brand img {
    height: 45px;
  }

  .navbar-toggler {
    font-size: 1.2rem;
  }

  .right-menu ul.navbar-nav li:first-child a {
    font-size: 0.9rem;
  }
}
@media (max-width: 575.98px) {
  .navbar {
    padding: 0.5rem 0.8rem;
  }

  .navbar-brand img {
    height: 45px;
  }

  .navbar-toggler {
    font-size: 1.2rem;
  }

  .right-menu ul.navbar-nav li:first-child a {
    font-size: 0.9rem;
  }
}
/* 
@media (max-width: 1366px	) {
  .right-menu ul.navbar-nav li:not(:first-child),
  .right-menu ul.navbar-nav .separator {
    display: none;
  }

  .right-menu ul.navbar-nav li:first-child {
    display: inline-block;
  }

  .navbar .container-fluid  {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .left-menu {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .navbar-toggler {
    order: 1;
    font-size: 1.4rem;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
  }

  .navbar-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    order: 2;
  }

  .navbar-brand img {
    height: 45px;
    width: auto;
  }
} */

/* ===== Hero + Services Section - LTR ===== */

.hero-section {
  padding: 60px 10px 20px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-subtitle {
  font-size: 1rem;
  color: #cba662;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: 3.5rem;
  color: #cba662;
  margin: 0;
  line-height: 1.2;
}

.hero-tagline {
  font-size: 2.2rem;
  color: #333;
}

.hero-services-section {
  position: relative;
  overflow: hidden;
  background-blend-mode: lighten;
  /* padding: 80px 0; */
  width: 100%;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.hero-services-section .hero-subtitle {
  font-size: 1rem;
  color: #cba662;
}

.hero-services-section .hero-title {
  font-size: 3rem;
  color: #cba662;
}

.hero-services-section .hero-tagline {
  font-size: 2rem;
  color: #333;
}

/* ==== توجيه النص للغة الإنجليزية LTR ==== */
.hero-services-section .hero-content {
  text-align: left; /* تغيير من right إلى left */
  direction: ltr; /* تغيير من rtl إلى ltr */
}

.hero-services-section .service-card {
  text-align: left; /* تغيير من right إلى left */
}

.hero-services-section .service-image-wrapper {
  margin-left: auto; /* تغيير من auto إلى 0 */
  margin-right: auto; /* تغيير من 0 إلى auto */
}

/* ==== تأثيرات التوهج ==== */
.glow-orange {
  position: relative;
  display: inline-block;
  color: #d88a27;
  z-index: 1;
}

.glow-orange::before {
  content: "";
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle at 50% 50%, rgba(255,180,70,0.6), rgba(255,160,50,0.3), transparent 70%);
  filter: blur(50px);
  z-index: -1;
  border-radius: 50%;
}

.row.g-4.justify-content-center .col-6.col-md-4.col-lg-2:nth-child(5) {
  position: relative;
}

.row.g-4.justify-content-center .col-6.col-md-4.col-lg-2:nth-child(5)::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 200px;
  background: radial-gradient(
    ellipse at center top,
    rgba(70, 130, 255, 0.9) 0%,
    rgba(100, 160, 255, 0.6) 15%,
    rgba(120, 180, 255, 0.4) 30%,
    rgba(140, 200, 255, 0.2) 50%,
    transparent 80%
  );
  filter: blur(60px);
  z-index: 2;
  pointer-events: none;
  animation: float-glow 4s ease-in-out infinite;
}

@keyframes float-glow {
  0%, 100% {
    transform: translateX(-50%) translateY(0px);
    opacity: 0.8;
  }
  50% {
    transform: translateX(-50%) translateY(-20px);
    opacity: 1;
  }
}

.service-card {
  border-radius: 20px;
  padding: 20px;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-image-wrapper {
  /* position: relative;
  overflow: hidden;
  border-radius: 30%; */
  width: 200px;
  height: 200px;
  /* margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1; */
}

.service-image {
  width: 400px;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-image {
  transform: scale(1.05);
}

.service-title {
  font-size: 1rem;
  color: #555;
  margin-top: 1rem;
	text-align:center !important;
}

.service-title a {
  text-decoration: none;
  color: #555;
  transition: color 0.3s ease;
}

.service-title a:hover {
  color: #cba662;
}

/* ==== رسالة عدم وجود أقسام ==== */
.no-departments-message {
  padding: 40px 20px;
  text-align: center;
}

.no-departments-message i {
  color: #6c757d;
  margin-bottom: 1rem;
}

.no-departments-message h3 {
  color: #6c757d;
  margin-bottom: 1rem;
}

.no-departments-message p {
  color: #6c757d;
  margin: 0;
}

/* ==== تجاوب ==== */
@media (max-width: 1200px) {
  .service-image-wrapper {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 992px) {
  .hero-services-section {
    /* padding: 60px 0; */
  }
  
  .service-image-wrapper {
    width: 180px;
    height: 180px;
  }
  
  /* تعديل التوهج للشاشات المتوسطة */
  .row.g-4.justify-content-center .col-6.col-md-4.col-lg-2:nth-child(5)::before {
    width: 250px;
    height: 150px;
    top: -80px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-tagline {
    font-size: 1.5rem;
  }
  
  .hero-services-section .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-services-section .hero-tagline {
    font-size: 1.3rem;
  }
  
  .service-image-wrapper {
    width: 140px;
    height: 140px;
  }
  
  .service-card {
    padding: 15px;
  }
  
  /* تعديل التوهج للشاشات الصغيرة */
  .row.g-4.justify-content-center .col-6.col-md-4.col-lg-2:nth-child(5)::before {
    width: 200px;
    height: 120px;
    top: -60px;
    filter: blur(40px);
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 40px 10px 20px;
    min-height: 50vh;
  }
  
  .hero-services-section {
    /* padding: 40px 0; */
    min-height: 50vh;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-tagline {
    font-size: 1.2rem;
  }
  
  .hero-services-section .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-services-section .hero-tagline {
    font-size: 1.1rem;
  }
  
  .service-image-wrapper {
    width: 110px;
    height: 110px;
  }
  
  .service-card {
    padding: 10px;
  }
  
  .service-title {
    font-size: 0.9rem;
    margin-top: 0.8rem;
  }
  
  .glow-orange::before {
    inset: -20px;
    filter: blur(30px);
  }
  
  /* إخفاء التوهج على الأجهزة المحمولة الصغيرة */
  .row.g-4.justify-content-center .col-6.col-md-4.col-lg-2:nth-child(5)::before {
    display: none;
  }
}

/* ==== تحسينات إضافية للعرض ==== */
.hero-content {
  width: 100%;
}

.hero-services-section .container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

/* تحسينات للأعمدة */
.col-6.col-md-4.col-lg-2 {
  padding: 10px;
}

/* تحسينات للروابط */
.service-image-wrapper a {
  display: block;
  width: 100%;
  height: 100%;
}

/* تحسينات للتوهج على الأجهزة المحمولة */
@media (max-width: 768px) {
  .glow-orange::before {
    display: none;
  }
}

@media (max-width: 1366px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-tagline {
    font-size: 1.5rem;
  }
  
  .hero-services-section .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-services-section .hero-tagline {
    font-size: 1.3rem;
  }
  
  .service-image-wrapper {
    width: 140px;
    height: 140px;
  }
  
  .service-card {
    padding: 15px;
  }
  
  /* تعديل التوهج للشاشات الصغيرة */
  .row.g-4.justify-content-center .col-6.col-md-4.col-lg-2:nth-child(5)::before {
    width: 200px;
    height: 120px;
    top: -60px;
    filter: blur(40px);
  }
}
/* ############################## Doctors Section - LTR ############################## */
.doctors-section {
  margin-top: 0;
  padding-top: 0;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  /* تأثير Fade In للديسكتوب */
  opacity: 0;
  animation: fadeInSection 1.2s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes fadeInSection {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-title {
  font-size: 2rem;
  color: #ddcaa8;
  margin-bottom: 1rem;
  padding-top: 60px;
  /* تأثير Fade In للنص */
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.5s;
}

.contact-description {
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
  max-width: 800px;
  /* تأثير Fade In للنص */
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.7s;
}

/* ==== فلترة الأطباء ==== */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: left; /* تغيير من right إلى left */
  /* تأثير Fade In */
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.9s;
}

.filter-btn {
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
  color: #666;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  /* تأثير لكل زر */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.filter-btn:nth-child(1) { animation-delay: 1s; }
.filter-btn:nth-child(2) { animation-delay: 1.1s; }
.filter-btn:nth-child(3) { animation-delay: 1.2s; }
.filter-btn:nth-child(4) { animation-delay: 1.3s; }
.filter-btn:nth-child(5) { animation-delay: 1.4s; }

.filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  direction: ltr; /* تغيير من rtl إلى ltr */
}
.explorer-title{
  position: relative;
  font-size: 1rem;
  color: #666;
  margin-left: auto; /* تغيير من margin-right إلى margin-left */
  display: inline-block;
  padding-bottom: 8px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0s;
  animation-delay: 1.1s;
}
.explorer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0; /* تغيير من left إلى right */
  width: 25%;
  height: 2px;
  background-color: #cba662;
  transition: width 0.3s ease;
}

.explorer-title:hover::after {
  width: 100%;
  background-color: #cba662;
}
.explorer-title-link{
    display: flex;
    justify-content: flex-start; /* تغيير من flex-end إلى flex-start */
}
.filter-title {
  position: relative;
  font-size: 1rem;
  color: #666;
  margin-left: auto; /* تغيير من margin-right إلى margin-left */
  display: inline-block;
  padding-bottom: 8px;
  /* تأثير Fade In */
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 1.1s;
}

.filter-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0; /* تغيير من left إلى right */
  width: 25%;
  height: 2px;
  background-color: #cba662;
  transition: width 0.3s ease;
}

.filter-title:hover::after {
  width: 100%;
  background-color: #cba662;
}

/* ==== كروت الأطباء ==== */
.doctor-card {
  transition: transform 0.3s ease;
  /* تأثير Fade In للكروت */
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.doctor-card:hover {
  transform: translateY(-8px);
}

.doctor-card:nth-child(1) { animation-delay: 1.2s; }
.doctor-card:nth-child(2) { animation-delay: 1.3s; }
.doctor-card:nth-child(3) { animation-delay: 1.4s; }
.doctor-card:nth-child(4) { animation-delay: 1.5s; }
.doctor-card:nth-child(5) { animation-delay: 1.6s; }
.doctor-card:nth-child(6) { animation-delay: 1.7s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==== إعدادات الصورة ==== */
.doctor-image-wrapper {
  overflow: visible;
  border-radius: 12px;
  position: relative;
  background: transparent;
  box-shadow: none;
  /* تأثير للصورة */
  opacity: 0;
  transform: scale(0.9);
  animation: fadeInScale 0.8s ease-out forwards;
}

.doctor-card:nth-child(1) .doctor-image-wrapper { animation-delay: 1.3s; }
.doctor-card:nth-child(2) .doctor-image-wrapper { animation-delay: 1.4s; }
.doctor-card:nth-child(3) .doctor-image-wrapper { animation-delay: 1.5s; }
.doctor-card:nth-child(4) .doctor-image-wrapper { animation-delay: 1.6s; }
.doctor-card:nth-child(5) .doctor-image-wrapper { animation-delay: 1.7s; }
.doctor-card:nth-child(6) .doctor-image-wrapper { animation-delay: 1.8s; }

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.doctor-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
  border-radius: 12px;
}

.doctor-card:hover .doctor-image {
  transform: scale(1.05);
}

/* ==== توهج خلفي موحد لأول 3 كروت فقط ==== */
.doctors-swiper-wrapper {
  position: relative;
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 1s;
}

/* الخلفية الذهبية الموحدة لأول 3 كروت فقط */
.doctors-swiper-wrapper::before {
  content: "";
  position: absolute;
  top: 15%;
  left: 16.5%; /* تغيير من right إلى left */
  width: 50%;
  height: 70%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 215, 150, 0.8) 0%,
    rgba(255, 225, 170, 0.6) 20%,
    rgba(255, 235, 190, 0.4) 40%,
    rgba(255, 245, 210, 0.2) 60%,
    rgba(255, 255, 255, 0.0) 80%
  );
  filter: blur(45px);
  border-radius: 30px;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  animation: fadeInGlow 1.5s ease-out forwards;
  animation-delay: 1.2s;
  mask-image: linear-gradient(
    to bottom, 
    transparent 0%, 
    black 15%, 
    black 70%, 
    transparent 90%
  );
  -webkit-mask-image: linear-gradient(
    to bottom, 
    transparent 0%, 
    black 15%, 
    black 70%, 
    transparent 90%
  );
  transition: all 0.6s ease;
  animation: unifiedGlow 4s ease-in-out infinite alternate;
}

@keyframes fadeInGlow {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 0.85;
    transform: scale(1);
  }
}

/* تأثير متحرك للخلفية الموحدة */
@keyframes unifiedGlow {
  0% {
    opacity: 0.7;
    transform: scale(0.95);
  }
  100% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

/* تأثير أقوى عند التحويم */
.doctors-swiper-wrapper:hover::before {
  opacity: 1;
  filter: blur(55px);
}
.doctor-card-link {
  text-decoration: none;
}
/* ==== ضبط مواضع الكروت ==== */
.swiper-slide {
  position: relative;
  z-index: 2;
  padding: 15px 10px;
  transition: transform 0.3s ease;
}

.swiper-slide:hover {
  transform: translateY(-5px);
}

/* التأكد من أن التوهج يظهر فقط خلف أول 3 كروت */
.swiper-slide:nth-child(n+4) .doctor-image-wrapper {
  z-index: 3;
}

/* ==== الاسم والتخصص ==== */
.doctor-info {
  position: relative;
  z-index: 3;
  padding-top: 15px;
  margin-top: -5px;
  border-radius: 0 0 12px 12px;
  /* تأثير Fade In للمعلومات */
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.doctor-card:nth-child(1) .doctor-info { animation-delay: 1.4s; }
.doctor-card:nth-child(2) .doctor-info { animation-delay: 1.5s; }
.doctor-card:nth-child(3) .doctor-info { animation-delay: 1.6s; }
.doctor-card:nth-child(4) .doctor-info { animation-delay: 1.7s; }
.doctor-card:nth-child(5) .doctor-info { animation-delay: 1.8s; }
.doctor-card:nth-child(6) .doctor-info { animation-delay: 1.9s; }

.doctor-name {
  font-size: 1rem;
  color: #333;
  margin-top: 0.8rem;
  margin-bottom: 0.3rem;
  position: relative;
}

.doctor-name::after {
  content: "";
  display: block;
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #cba662, transparent);
  margin: 6px auto 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.doctor-card:hover .doctor-name::after {
  width: 80%;
  background: linear-gradient(90deg, transparent, #cba662, #e8c988, #cba662, transparent);
}

.doctor-specialty {
  font-size: 0.85rem;
  color: #cba662;
  margin: 0;
}

/* ==== بديل: استخدام pseudo-element على أول 3 كروت ==== */
.doctors-swiper .swiper-slide:nth-child(-n+3)::before {
  content: "";
  position: absolute;
  top: 15%;
  left: 50%; /* تغيير من right إلى left */
  transform: translateX(-50%); /* تغيير من 50% إلى -50% */
  width: 120%;
  height: 70%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 215, 150, 0.7) 0%,
    rgba(255, 225, 170, 0.5) 25%,
    rgba(255, 235, 190, 0.3) 45%,
    rgba(255, 245, 210, 0.15) 65%,
    rgba(255, 255, 255, 0.0) 85%
  );
  filter: blur(40px);
  border-radius: 30px;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  animation: fadeInGlow 1.5s ease-out forwards;
  animation-delay: 1.3s;
}

/* ==== تحسينات Swiper ==== */
.doctors-swiper {
  position: relative;
  z-index: 2;
}

.swiper-button-next,
.swiper-button-prev {
  z-index: 4;
  /* تأثير للأزرار */
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
  animation-delay: 1.5s;
}

.swiper-pagination {
  position: relative;
  z-index: 3;
  margin-top: 20px;
  /* تأثير للترقيم */
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
  animation-delay: 1.6s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ==== تجاوب - إيقاف التأثيرات في الشاشات الصغيرة ==== */
@media (max-width: 1200px) {
  .doctors-swiper-wrapper::before {
    width: 55%;
    height: 65%;
    top: 18%;
    left: 15%; /* تعديل للغة الإنجليزية */
  }
}

@media (max-width: 992px) {
  /* إيقاف تأثيرات Fade In في الشاشات الصغيرة */
  .doctors-section,
  .contact-title,
  .contact-description,
  .filter-buttons,
  .filter-btn,
  .filter-title,
  .doctor-card,
  .doctor-image-wrapper,
  .doctors-swiper-wrapper,
  .doctors-swiper-wrapper::before,
  .doctor-info,
  .swiper-button-next,
  .swiper-button-prev,
  .swiper-pagination {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  
  .doctors-swiper-wrapper::before {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 12%;
    filter: blur(35px);
  }
}

@media (max-width: 768px) {
  .filter-row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .filter-title {
    margin-left: 0;
    margin-bottom: 10px;
    align-self: flex-start;
  }
  
  .filter-buttons {
    justify-content: flex-start;
    width: 100%;
  }

  .doctors-swiper-wrapper::before {
    width: 70%;
    height: 55%;
    top: 22%;
    left: 8%; /* تعديل للغة الإنجليزية */
    filter: blur(30px);
  }
  
  .doctor-info {
    padding-top: 12px;
  }

  .doctor-image-wrapper {
    width: 100px;
    height: 100px;
  }

  .doctor-name {
    font-size: 0.9rem;
  }

  .doctor-specialty {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .doctors-swiper-wrapper::before {
    width: 80%;
    height: 50%;
    top: 25%;
    left: 5%; /* تعديل للغة الإنجليزية */
    filter: blur(25px);
  }
  
  .doctor-name {
    font-size: 0.9rem;
  }
  
  .doctor-specialty {
    font-size: 0.8rem;
  }

  .doctor-image-wrapper {
    width: 110px;
    height: 110px;
  }
}
/* ######################### English Features Section ######################### */

.feature {
  position: relative;
  height: 420px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  background:
    radial-gradient(circle, rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, #dfb7ff 0%, #ffffff 100%);
  background-size: 18px 18px, 100% 100%;
}

.feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 90px;
  background-color: #e8e0f8;
  border-radius: 15px 15px 0 0;
  z-index: 1;
}

.feature .feature-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 35px;
  text-align: left; /* تغيير من right إلى left */
  direction: ltr; /* تغيير من rtl إلى ltr */
  color: #000;
  margin-bottom: 100px;
  z-index: 10;
}

.feature .feature-img {
  position: absolute;
  bottom: 0;
  left: 22%; /* تغيير من right إلى left */
  transform: translateX(-50%) translateY(20px);
  height: 100%;
  width: auto;
  z-index: 2;
  transition: transform 0.3s ease;
}

.feature:hover .feature-img {
  transform: translateX(-50%) translateY(10px) scale(1.05);
}

.feature .feature-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature .feature-description {
  font-size: 1.15rem;
  color: #333;
  margin-bottom: 1.5rem;
}

.feature .btn-white {
  background: #fff;
  color: #000;
  border: 1px solid #ccc;
  border-radius: 25px;
  padding: 10px 28px;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.feature .btn-white:hover {
  background: #f2f2f2;
  transform: translateY(-2px);
}

@media (max-width: 991.98px) {
  .feature {
    height: auto;
    padding: 25px 20px;
    text-align: center;
  }

  .feature .feature-image {
    display: none;
  }

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

  .feature .btn-white {
    align-self: center;
  }
}

@media (max-width: 1366px) {
  .feature {
    height: auto;
    padding: 25px 20px;
    text-align: center;
  }

  .feature .feature-image {
    display: none;
  }

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

  .feature .btn-white {
    align-self: center;
  }
}

/* #################################### App Section ######################################### */
.app-card {
  background: radial-gradient(circle at top right, #fff4eb 0%, transparent 70%),
              radial-gradient(circle at bottom left, #e8e6f2 0%, transparent 70%);
  background-color: #ffffff;
  border-radius: 25px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  padding: 30px 30px;
  margin: 50px 0;
  position: relative;
  overflow: hidden;
}

.app-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  height: 350px;
}

.text-section {
  text-align: left; /* تغيير من right إلى left */
  direction: ltr; /* تغيير من rtl إلى ltr */
  padding-inline-start: 40px; /* تغيير من end إلى start */
}

.app-title {
  font-size: 2.6rem;
  color: #2d3748;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.app-description {
  font-size: 1.3rem;
  color: #555;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.app-download-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.app-badge {
  height: 60px !important;
  width: auto !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
  transition: transform 0.3s ease !important;
}

.app-badge:hover {
  transform: translateY(-5px) scale(1.05) !important;
}

/* 👇 إلغاء تأثير إليمنتور على صور القسم */
.main-app-img,
.cabahi,
.logo {
  border: none !important;
  border-radius: inherit !important;
  box-shadow: none !important;
  height: auto !important;
  max-width: none !important;
  display: block !important;
}

/* الصور الأساسية */
.image-section {
  position: relative;
  height: 100%;
  min-height: 400px;
  display: flex;
  justify-content: flex-end; /* تغيير من flex-start إلى flex-end */
  align-items: start;
}

.main-app-img {
  max-width: 520px !important;
  height: auto !important;
  position: relative !important;
  z-index: 2 !important;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.2)) !important;
  transition: all 0.4s ease !important;
  right: 150px !important; /* تغيير من left إلى right */
}

.main-app-img:hover {
  transform: translateY(-10px) scale(1.05) !important;
}

.cabahi {
  position: absolute !important;
  top: -150px !important;
  left: 300px !important; /* تغيير من right إلى left */
  z-index: 3 !important;
}

.cabahi:hover {
  transform: scale(1.1) !important;
  filter: grayscale(0) !important;
}

.bottom-logos {
  position: absolute !important;
  bottom: -10px !important;
  right: 20px !important; /* تغيير من left إلى right */
  z-index: 3 !important;
  display: flex !important;
  align-items: center !important;
}

.logo-box {
  height: 150px !important; 
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.logo {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  opacity: 0.9 !important;
  filter: grayscale(0.3) !important;
  transition: all 0.3s ease !important;
}

.logo:hover {
  transform: scale(1.05) !important;
  filter: grayscale(0) !important;
  opacity: 1 !important;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 991.98px) {
  .app-layout {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 25px 15px !important;
    gap: 25px !important;
    height: auto !important;
  }

  .image-section {
    display: none;
  }

  .cabahi {
    left: -130px !important; /* تغيير من right إلى left */
    transform: translateX(-50%) !important;
    max-width: 100% !important;
    height: auto !important;
    z-index: 5 !important;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2)) !important;
    opacity: 1 !important;
    display: block !important;
  }

  .main-app-img {
    width: 380px !important;
    height: auto !important;
    margin: 0 auto !important;
    z-index: 3 !important;
    border-radius: 20px !important;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15)) !important;
    object-fit: contain !important;
  }

  .bottom-logos {
    justify-content: center !important;
    margin-top: 30px !important;
  }

  .logo-box {
    height: 85px !important;     
    width: 130px !important;
  }

  .text-section {
    text-align: center !important;
    padding: 0 10px !important;
  }
}

@media (max-width: 575.98px) {
		.image-section{
		display:none;
	}
  .cabahi {
	  display:none;
   
  }

  .main-app-img {
	  display:none;
  }

  .logo-box {
    height: 70px !important;    
    width: 110px !important;
  }
}

@media (max-width: 1366px) {
		.image-section{
		  position: relative;
      height: 300px;
      width: 400px;
      display: flex;
      justify-content: flex-end; /* تغيير من flex-start إلى flex-end */
      align-items: start;
	}
  .cabahi {
	  display:none;
   
  }

  .main-app-img {
	  display:none;
  }

  .logo-box {
    height: 70px !important;    
    width: 110px !important;
  }
}

/* ################################### state ##################################### */
.stats-section {
  position: relative;
  padding-top: 70px; 
}

.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%; 
  height: 2px;
  background-color: #888888;
  border-radius: 2px;
}

.stat-number {
  font-size: 1.5rem;
  color: #222;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

@media (max-width: 991.98px) {
  .stats-section .col-6 {
    padding-left: 5px;
    padding-right: 5px;
  }
}

@media (max-width: 575.98px) {

  .stats-section .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 5px;
    padding-right: 5px;
    margin-bottom: 10px;
  }

  .stat-card {
    padding: 15px;
  }

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

  .stat-label {
    font-size: 0.9rem;
  }
}
@media (max-width: 1366px) {

  .stats-section .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 5px;
    padding-right: 5px;
    margin-bottom: 10px;
  }

  .stat-card {
    padding: 15px;
  }

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

  .stat-label {
    font-size: 0.9rem;
  }
}

/* ########################## Footer ########################################### */
.footer {
    background-color: #3A3A3A;
    color: #FFFFFF;
    direction: ltr; /* تغيير من rtl إلى ltr */
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #cba662; 
	margin-top: 20px;
}

.footer-text {
    font-size: 0.9rem;
    color: #CCCCCC;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #CCCCCC;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #cba662;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 35px;
    height: 35px;
    background-color: #ffffff; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a96d; 
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #cba662;
    color: #ffffff;
    transform: translateY(-3px);
}

/* Newsletter Form */
.newsletter-form .input-group {
    border-radius: 25px;
    overflow: hidden;
}

.newsletter-form .form-control {
    border: none;
    padding: 12px 20px;
    background-color: #555555;
    color: #FFFFFF;
}

.newsletter-form .form-control::placeholder {
    color: #AAAAAA;
}

.newsletter-form .form-control:focus {
    background-color: #555555;
    color: #FFFFFF;
    box-shadow: none;
}

/* ########################### newsletter ################################### */

.newsletter-form .btn-gold {
  border-radius: 25px 0 0 25px; /* تغيير من 0 25px 25px 0 إلى 25px 0 0 25px */
  background-color: #cba662;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.newsletter-form .btn-gold:hover {
  background-color: #d4b374;
  box-shadow: 
    0 0 8px #fff7e6,
    0 0 12px #cba662, 
    0 0 20px rgba(203, 166, 98, 0.4); 
}

.newsletter-form .btn-gold i {
    color: #ffffff; 
}

/* Footer copyright */
.footer-copyright {
    font-size: 0.9rem;
    color: #AAAAAA;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #555555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1.5rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .feature-card .row {
        flex-direction: column;
    }
    
    .feature-card .col-md-6 {
        text-align: center !important;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
    }
    
    .service-image-wrapper,
    .doctor-image-wrapper {
        width: 100%;
        height: auto;
    }
}

/* ############################# Section Doctors Archive ################################### */

/* Section Background */
.doctors-archive {
  position: relative;
  overflow: hidden;
  padding: 25% 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* تأثير التوهج البرتقالي المائل على اليسار - نسخة معدلة */
.doctors-archive::before {
  content: "";
  position: fixed;
  top: 30%;
  left: 5%; /* تغيير من right إلى left */
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle at center,
    rgba(255, 180, 70, 0.6) 0%,
    rgba(255, 160, 50, 0.3) 40%,
    transparent 70%
  );
  filter: blur(70px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
}

/* تأثير التوهج الأزرق المائل على اليمين - نسخة معدلة */
.doctors-archive::after {
  content: "";
  position: fixed;
  top: 70%;
  right: 5%; /* تغيير من left إلى right */
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
 background: radial-gradient( ellipse at 80% 50%, rgb(10, 73, 171) 0%, rgba(80, 140, 255, 0.4) 25%, rgba(60, 120, 255, 0.2) 45%, transparent 75% );
  filter: blur(70px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
}

.doctors-archive .container-fluid {
  position: relative;
  z-index: 2;
}
.doctor-link {
  text-decoration: none;
}
/* Titles */
.doctor-title {
  font-size: 2.5rem;
  color: #cba662;
  margin-bottom: 1rem;
}

.doctor-desc {
  max-width: 700px;
  margin: 0 auto 3rem;
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
}

.doctor-subtitle {
  font-size: 1.8rem;
  color: #b18b57;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.doctor-subtitle::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #cba662, #b18b57);
  border-radius: 2px;
}
/* Doctor Cards */
.doctors-card {
  background: transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doctors-card:hover {
  transform: translateY(-8px);
}

.doctors-image {
  width: 45%;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}
.doctors-archive .row {
  margin-left: -8px;
  margin-right: -8px;
}

.doctors-archive .row > [class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
}

/* تقليل المسافات الداخلية */
.doctor-name {
  margin-top: 12px !important;
  margin-bottom: 6px !important;
  font-size: 1rem;
}

.doctor-specialty {
  margin-bottom: 8px !important;
  font-size: 0.9rem;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
  .doctors-archive .row {
    margin-left: -6px;
    margin-right: -6px;
  }
  
  .doctors-archive .row > [class*="col-"] {
    padding-left: 6px;
    padding-right: 6px;
  }
  
  .doctors-image {
    width: 50%; /* حجم أكبر قليلاً في الموبايل */
  }
  
  .doctors-card {
    margin-bottom: 0px;
  }
}

/* إخفاء الخلفيات في الموبايل */
@media (max-width: 768px) {
  .doctors-archive::before,
  .doctors-archive::after {
    display: none;
  }
  
  .doctors-archive {
    padding: 80px 0; /* تقليل الـ padding في الموبايل */
  }
}
/* ############################# Section Services ################################### */

/* Section Background */
.services-section {
  position: relative;
  overflow: hidden;
  padding: 10% 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #fff8f0;
}

/* Titles */
.services-title {
  font-size: 2rem;
  color: #cba662;
  margin-bottom: 1rem;
}

.services-desc {
  max-width: 700px;
  margin: 0 auto 3rem;
  color: #666;
  font-size: 1rem;
}

/* Cards */
.services-card {
  background: transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 15px;
  border-radius: 16px;
}

.services-card:hover {
  transform: translateY(-8px);
}

/* Image */
.services-image {
  width: 60%;
  border-radius: 12px;
  margin: 0 auto;
  display: block;
}

/* Name */
.services-name {
  font-size: 1rem;
  color: #cba662;
  margin-top: 1rem;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}

.services-name::after {
  content: "";
  display: block;
  width: 40%;
  height: 2px;
  background-color: #cba662;
  margin: 6px auto 0;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.services-card:hover .services-name {
  color: #c9954a;
}

/* ############################# Section Devices ################################### */
/* Section Background */
.devices-section {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* تأثير التوهج البرتقالي الدائري على اليسار - نسخة معدلة */
.devices-section::before {
  content: "";
  position: absolute;
  top: 30%;
  left: 5%; /* تغيير من right إلى left */
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle at center,
    rgba(255, 180, 70, 0.6) 0%,
    rgba(255, 160, 50, 0.3) 40%,
    transparent 70%
  );
  filter: blur(50px);
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
}

/* تأثير التوهج الأزرق الدائري على اليمين - نسخة معدلة */
.devices-section::after {
  content: "";
  position: absolute;
  top: 70%;
  right: 5%; /* تغيير من left إلى right */
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle at center,
    rgba(100, 160, 255, 0.6) 0%,
    rgba(80, 140, 255, 0.3) 40%,
    transparent 70%
  );
  filter: blur(50px);
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
}
.devices-section .container-fluid {
  position: relative;
  z-index: 2;
}

/* Titles */
.devices-name {
  font-size: 1rem;
  color: #cba662;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}

.devices-name::after {
  content: "";
  display: block;
  width: 40%;
  height: 2px;
  background-color: #cba662;
  margin: 6px auto 0;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.devices-card:hover .devices-name {
  color: #cba662;
}

.devices-title {
  font-size: 1.8rem;
  color: #cba662;
  padding: 120px 0;
}

.devices-desc {
  max-width: 700px;
  margin: 0 auto;
  color: #666;
  font-size: 1rem;
}

.devices-subtitle {
  font-size: 1.4rem;
  color: #b18b57;
}

.devices-card {
  background: transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.devices-card:hover {
  transform: translateY(-8px);
}

.devices-image {
  width: 45%;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}
.devices-section .row.g-3 {
  margin-left: -8px;
  margin-right: -8px;
}

.devices-section .row.g-3 > [class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
}

/* تقليل المسافات للنصوص الإضافية */
.device-type,
.device-brand {
  margin-bottom: 0.25rem !important;
  line-height: 1.2;
}

/* إخفاء خلفيات التوهج في الموبايل */
@media (max-width: 768px) {
  .devices-section::before,
  .devices-section::after {
    display: none;
  }
  
  .devices-section {
    padding: 50px 0; /* تقليل من 60px */
  }
  
  /* تقليل التباعد أكثر في الموبايل */
  .devices-section .row.g-3 {
    margin-left: -6px;
    margin-right: -6px;
  }
  
  .devices-section .row.g-3 > [class*="col-"] {
    padding-left: 6px;
    padding-right: 6px;
  }
  
  .devices-image {
    width: 45%; /* تقليل حجم الصورة في الموبايل */
  }
  
  .devices-card {
    padding: 8px;
  }
}
/* ################### departments section #####################################*/
.departments-archive-section {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

/* تأثير التوهج البرتقالي المائل على اليسار */
.departments-archive-section::before {
  content: "";
  position: absolute; /* ثابت أثناء التمرير */
  top: 30%;
  left: 5%; /* تغيير من right إلى left */
  transform: translateY(-50%) rotate(-15deg); /* تغيير من 15 إلى -15 درجة */
  width: 30%;
  height: 60%;
  background: radial-gradient(
    ellipse at 20% 50%, /* تغيير من 80% إلى 20% */
    rgba(255, 180, 70, 0.7) 0%,
    rgba(255, 160, 50, 0.4) 25%,
    rgba(255, 140, 30, 0.2) 45%,
    transparent 75%
  );
  filter: blur(70px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.8;
}

/* تأثير التوهج الأزرق المائل على اليمين */
.departments-archive-section::after {
  content: "";
  position: absolute; /* ثابت أثناء التمرير */
  top: 70%;
  right: 5%; /* تغيير من left إلى right */
  transform: translateY(-50%) rotate(15deg); /* تغيير من -15 إلى 15 درجة */
  width: 30%;
  height: 60%;
  background: radial-gradient(
    ellipse at 80% 50%, /* تغيير من 20% إلى 80% */
    rgba(100, 160, 255, 0.7) 0%,
    rgba(80, 140, 255, 0.4) 25%,
    rgba(60, 120, 255, 0.2) 45%,
    transparent 75%
  );
  filter: blur(70px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.8;
}
.department-link {
  text-decoration: none;
  color: #cba662;
}
.departments-archive-section .container-fluid {
  position: relative;
  z-index: 2;
}

/* ############################# single Section ################################### */
.department-section {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

.department-section::before {
  content: "";
  position: absolute;
  top: 35%;
  left: 8%; /* تغيير من right إلى left */
  transform: translateY(-50%) rotate(-15deg); /* تغيير من 15 إلى -15 درجة */
  
  /* أصغر بكثير */
  width: 18%;
  height: 35%;
  
  background: radial-gradient(
    ellipse at 20% 50%, /* تغيير من 80% إلى 20% */
    rgba(255, 180, 70, 0.35) 0%,   /* كان 0.7 */
    rgba(255, 160, 50, 0.20) 25%,  /* كان 0.4 */
    rgba(255, 140, 30, 0.10) 45%,  /* كان 0.2 */
    transparent 75%
  );

  /* Blur أخف */
  filter: blur(40px); /* كان 70px */

  opacity: 0.5; /* كان 0.8 */
  z-index: 0;   /* خلف النص تماماً */
  pointer-events: none;
}

/* التوهج الأزرق */
.department-section::after {
  content: "";
  position: absolute;
  top: 65%;
  right: 8%; /* تغيير من left إلى right */
  transform: translateY(-50%) rotate(15deg); /* تغيير من -15 إلى 15 درجة */

  width: 18%;
  height: 35%;
  
  background: radial-gradient(
    ellipse at 80% 50%, /* تغيير من 20% إلى 80% */
    rgba(100, 160, 255, 0.35) 0%,
    rgba(80, 140, 255, 0.20) 25%,
    rgba(60, 120, 255, 0.10) 45%,
    transparent 75%
  );

  filter: blur(40px);
  opacity: 0.5;
  z-index: 0; /* خلف النص */
  pointer-events: none;
}

.section-section .container-fluid {
  position: relative;
  z-index: 2;
}
.service-subtitle{
  color:#555;
}
.service-image-related{
		width:50%;
	}
.section-image {
   display: block;
    margin: 0 auto;
    max-width: 350px;
    border-radius: 15px;
    position: sticky;
    top: 120px;
    margin-top: -10px;
    transition: transform 0.3s ease;
	width:50%;
}

.section-image:hover {
    transform: translateY(-5px);
}

.image-wrapper-section img:hover {
    transform: translateY(-5%);
}

.section-title {
    color: #cba662;
}

.section-subtitle {
    color: #cba662;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 3;
}

.doctors-card {
    border-radius: 15px;
    padding: 10px;
    transition: transform 0.3s ease;
}

.doctors-card:hover {
    transform: translateY(-5px);
}

.doctorsection-image {
    width: 220px;
    height: 220px;
    object-fit: contain;
    margin: 0 auto;
}
.department-subtitle{
      color: #cba662;
    font-size: 1.4rem;

}

.doctor-name {
    color: #cba662;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.doctor-section-name{
  font-size: 1rem;
   color: #808080;
  margin-top: 0.8rem;
  margin-bottom: 0.3rem;
  position: relative;
  margin-bottom: 20px;

}
.doctor-section-specialty {
    color: #cba662;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: bold;
}

@media (max-width: 991px) {
    .section-image {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }
    
    .btn-gold-section {
        transform: translateY(0);
        margin-top: 20px;
    }
    
    .section-title {
        padding-top: 0;
        text-align: center;
    }
    
    .doctors-card {
        margin-bottom: 0px;
    }
}

@media (max-width: 768px) {
    .section-image {
        max-width: 250px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* ############################# Single Article ################################### */

/* ===== Section ===== */
/* article Section Background */
.article-section {
  position: relative;
  overflow: hidden;
  padding: 100px 0; 
}
.article-section::after {
  content: "";
  position: absolute;
  bottom: -30%;
  right: -10%; /* تغيير من left إلى right */
  width: 70%;
  height: 120%;
  background: radial-gradient(
    circle at bottom right, /* تغيير من left إلى right */
    rgba(255, 245, 230, 0.3) 0%,
    rgba(255, 250, 240, 0.1) 40%,
    transparent 80%
  );
  z-index: 0;
  pointer-events: none;
}

.article-section .container-fluid {
  position: relative;
  z-index: 2;
}

.article-title {
  color: #cba662;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.article-subtitle {
  color: #cba662;
  font-size: 1.2rem;
}

.article-text {
  color: #666;
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* تنسيق محتوى المقال */
.article-content.wp-content {
  line-height: 1.8;
  color: #333;
  font-size: 1.1rem;
}

.article-content.wp-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.article-content.wp-content h1,
.article-content.wp-content h2,
.article-content.wp-content h3,
.article-content.wp-content h4,
.article-content.wp-content h5,
.article-content.wp-content h6 {
  color: #cba662;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-content.wp-content h1 { font-size: 1.8rem; }
.article-content.wp-content h2 { font-size: 1.6rem; }
.article-content.wp-content h3{ font-size: 1.4rem; }
.article-content.wp-content h4 { font-size: 1.2rem; }
.article-content.wp-content h5 { font-size: 1.1rem; }
.article-content.wp-content h6 { font-size: 0.9rem; }


.article-content.wp-content ul,
.article-content.wp-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem; /* تغيير من right إلى left */
}

.article-content.wp-content li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.article-content.wp-content blockquote {
  border-left: 4px solid #cba662; /* تغيير من right إلى left */
  padding-left: 1.5rem; /* تغيير من right إلى left */
  margin: 2rem 0;
  font-style: italic;
  color: #555;
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
}

.article-content.wp-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.article-content.wp-content a {
  color: #cba662;
  text-decoration: none;
  border-bottom: 1px solid #cba662;
}

.article-content.wp-content a:hover {
  color: #b59452;
  border-bottom-color: #b59452;
}

.article-content.wp-content table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
}

.article-content.wp-content table th,
.article-content.wp-content table td {
  padding: 0.75rem;
  border: 1px solid #ddd;
  text-align: left; /* تغيير من right إلى left */
}

.article-content.wp-content table th {
  background-color: #f8f9fa;
  font-weight: bold;
}

/* ===== List ===== */
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  line-height: 1.6;
}

.benefits-list li {
  position: relative;
  padding-left: 1.5rem; /* تغيير من right إلى left */
  margin-bottom: 0.5rem;
}

.benefits-list li::before {
  content: "•";
  position: absolute;
  left: 0; /* تغيير من right إلى left */
  color: #cba662;
  font-size: 1.2rem;
  line-height: 1;
}

/* ===== Image ===== */
.image-wrapper {
  position: relative;
  overflow: visible;
}

.article-image {
    display: block;
    margin: 0 auto;
    max-width: 350px;
    border-radius: 15px;
    position: sticky;
    top: 120px; 
    margin-top: -10px;
}

.image-wrapper img:hover {
  transform: translateY(-5%);
  transition: transform 0.3s ease;
}

@media (min-width: 992px) {
  .article-section .col-lg-8 {
    padding-top: 6%;
  }
}

@media (max-width: 991.98px) {
  .article-image {
    max-width: 200px;
    transform: translateY(-5%);
    position: relative;
    top: 0;
  }

  .article-section .col-lg-8 {
    padding-top: 3%;
  }
}

/* ===== Button ===== */
.btn-gold {
  background-color: #cba662;
  color: #fff;
  padding: 10px 24px;
  border-radius: 30px;
  border: none;
  transition: box-shadow 0.4s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-gold:hover {
  color: #fff;
  box-shadow: 0 0 15px 4px rgba(203, 166, 98, 0.7);
}

a.btn-gold,
btn.btn-gold {
  background-color: #cba662 !important;
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: 30px !important;
  border: none !important;
  transition: box-shadow 0.4s ease !important;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .article-section {
    text-align: center;
  }
  .benefits-list {
    text-align: left; /* تغيير من right إلى left */
  }
  .image-wrapper img {
    width: 200px;
  }
  
  .article-content.wp-content {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .article-content.wp-content h1 { font-size: 1.6rem; }
  .article-content.wp-content h2 { font-size: 1.5rem; }
  .article-content.wp-content h3 { font-size: 1.4rem; }
  .article-content.wp-content h4 { font-size: 1.3rem; }
  .article-content.wp-content h5 { font-size: 1.2rem; }
  .article-content.wp-content h6 { font-size: 1.1rem; }
}
/* ############################# Single Doctor ################################### */

.doctor-section-single{
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  min-height: 100vh;
}

/* تأثير التوهج البرتقالي المائل على اليسار */
.doctor-section-single::before {
  content: "";
  position: absolute; /* ثابت أثناء التمرير */
  top: 30%;
  left: 5%; /* تغيير من right إلى left */
  transform: translateY(-50%) rotate(-15deg); /* تغيير من 15 إلى -15 درجة */
  width: 30%;
  height: 60%;
  background: radial-gradient(
    ellipse at 20% 50%, /* تغيير من 80% إلى 20% */
    rgba(255, 180, 70, 0.7) 0%,
    rgba(255, 160, 50, 0.4) 25%,
    rgba(255, 140, 30, 0.2) 45%,
    transparent 75%
  );
  filter: blur(70px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
}

/* تأثير التوهج الأزرق المائل على اليمين */
.doctor-section-single::after {
  content: "";
  position: absolute; /* ثابت أثناء التمرير */
  top: 70%;
  right: 5%; /* تغيير من left إلى right */
  transform: translateY(-50%) rotate(15deg); /* تغيير من -15 إلى 15 درجة */
  width: 30%;
  height: 60%;
  background: radial-gradient( ellipse at 80% 50%, rgb(10, 73, 171) 0%, rgba(80, 140, 255, 0.4) 25%, rgba(60, 120, 255, 0.2) 45%, transparent 75% );
  filter: blur(70px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
}

.doctor-section-single .container-fluid  {
  position: relative;
  z-index: 2;
}

.doctor-title {
  color: #cba662;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.doctor-subtitle {
  color: #cba662;
  font-size: 1.2rem;
}

.doctor-text {
  color: #666;
  font-size: 1rem;
  margin-bottom: 1rem;
	line-height: 3;
	
}

.single-doctor-image {
    display: block;
    margin: 0 auto;
    max-width: 350px;
    border-radius: 15px;
    position: sticky;
    top: 90px;
    margin-top: -10px;
	width:50%;
}

.single-doc-wrapper img:hover {
    transform: translateY(-5%);
}
/* ====== Doctor Videos Section ====== */
.doctor-videos {
    background: linear-gradient(180deg, #f8f9fb 0%, #cba66254 100%);
    text-align: center;
    border-radius: 50px;
}

.doctor-videos h2 {
  color: #cba662;
  margin-bottom: 2rem;
}

/* video responsive frame */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* نسبة 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  background: #000;
  transition: transform 0.3s ease;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

.video-wrapper:hover {
  transform: translateY(-4px);
}

/* ====== Mobile Optimization ====== */
@media (max-width: 767px) {

  .video-wrapper {
    padding-bottom: 58%;
    margin-bottom: 1.2rem;
  }

  .doctor-videos .row {
    justify-content: center;
  }
     
}

@media (max-width: 991px) {
  .single-doctor-image {
    position: relative;
    top: 0;
    margin-top: 0;
    margin-bottom: 30px;
  }
}

/* ############################# Single Device ################################### */

.device-section {
  position: relative;
  padding: 100px 0;
  min-height: 100vh;
}

/* تأثير التوهج البرتقالي المائل على اليسار */
.device-section::before {
  content: "";
  position: absolute;
  top: 30%;
  left: 5%; /* تغيير من right إلى left */
  transform: translateY(-50%) rotate(-15deg); /* تغيير من 15 إلى -15 درجة */
  width: 30%;
  height: 60%;
  background: radial-gradient(
    ellipse at 20% 50%, /* تغيير من 80% إلى 20% */
    rgba(255, 180, 70, 0.7) 0%,
    rgba(255, 160, 50, 0.4) 25%,
    rgba(255, 140, 30, 0.2) 45%,
    transparent 75%
  );
  filter: blur(70px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
}

/* تأثير التوهج الأزرق المائل على اليمين */
.device-section::after {
  content: "";
  position: absolute;
  top: 70%;
  right: 5%; /* تغيير من left إلى right */
  transform: translateY(-50%) rotate(15deg); /* تغيير من -15 إلى 15 درجة */
  width: 30%;
  height: 60%;
  background: radial-gradient( ellipse at 80% 50%, rgb(10, 73, 171) 0%, rgba(80, 140, 255, 0.4) 25%, rgba(60, 120, 255, 0.2) 45%, transparent 75% );
  filter: blur(70px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
}

.device-section .container-fluid {
  position: relative;
  z-index: 2;
}

.device-title {
  color: #cba662;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.device-subtitle {
  color: #333;
  font-size: 1.5rem;
  font-weight: bold;
}

.device-text {
  color: #666;
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* الحاوية الجديدة للعناصر الثابتة */
.sticky-sidebar {
  position: sticky;
  top: 120px;
  align-self: flex-start;
  transition: all 0.3s ease;
  z-index: 50;
}

/* الصورة */
.single-device-image {
  display: block;
  margin: 0 auto;
  max-width: 350px;
  border-radius: 15px;
  transition: transform 0.3s ease;
  width: 100%;
  margin-bottom: 30px;
}

.single-device-image:hover {
  transform: translateY(-5px) scale(1.02);
}

/* زر الحجز مع تثبيت */
.sticky-booking-btn {
  position: sticky;
  top: calc(120px + 350px + 40px); /* تحت الصورة بمسافة */
  display: block;
  width: 100%;
  padding: 15px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  z-index: 50;
  margin-top: 20px;
}

.sticky-booking-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(203, 166, 98, 0.3);
}

/* تأثير التلاشي عندما يقترب من الفوتر */
.sticky-sidebar::before {
  content: "";
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, 
    transparent 0%, 
    rgba(255, 255, 255, 0.9) 30%,
    rgba(255, 255, 255, 1) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

/* عندما يقترب من الفوتر */
.sticky-sidebar.near-footer::before {
  opacity: 1;
}

.sticky-sidebar.near-footer {
  transform: translateY(-20px);
  opacity: 0.9;
}

/* محتوى النص */
.device-content {
  position: relative;
  z-index: 10;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 991px) {
  .sticky-sidebar {
    position: relative;
    top: 0;
    margin-bottom: 40px;
  }
  
  .single-device-image {
    position: relative;
    top: 0;
    margin-bottom: 30px;
    max-width: 300px;
  }
  
  .sticky-booking-btn {
    position: relative;
    top: 0;
    margin-top: 0;
  }
  
  .device-section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .single-device-image {
    max-width: 250px;
  }
  
  .sticky-booking-btn {
    font-size: 1rem;
    padding: 12px 15px;
  }
}

.hospital-fixed-box-en { position: fixed; top: calc(80px + 30px);
 left: 50px; z-index: 9; display: flex; flex-direction: column; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; }

/* الصورة */
.hospital-fixed-img {
    width: 180px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* زر الحجز */
.hospital-book-btn {
    background: #cba662;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.hospital-book-btn:hover {
    background: #cba662;
}

/* دعم الموبايل */
@media (max-width: 768px) {
    .hospital-fixed-box {
        top: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        flex-direction: row;
        justify-content: space-between;
        padding: 10px;
    }

    .hospital-fixed-img {
        width: 120px;
    }
     .img-fluid {
      max-width: 100%;
      height: auto;
      width: 350px;
    }
      .img-fluid-blog {
      max-width: 100%;
      height: auto;
      width: 400px;
    }
      .device-title {
      color: #cba662;
      font-size: 1.8rem;
      margin-bottom: 1rem;
      text-align: center;
  }
}

/* ############################# Podcast Section ################################### */

.podcast-section {
  position: relative;
  background: linear-gradient(
      180deg,
      #f6f7f9 0%,
      #f7f5f2 40%,
      #f3efe9 100%
  );
  overflow: hidden;
  padding: 100px 0;
}

.podcast-section::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -10%; /* تغيير من right إلى left */
  width: 60%;
  height: 120%;
  background: radial-gradient(
    circle at top left, /* تغيير من right إلى left */
    rgba(255, 232, 204, 0.5) 0%,
    rgba(255, 240, 220, 0.15) 40%,
    transparent 80%
  );
  z-index: 0;
  pointer-events: none;
}

.podcast-section::after {
  content: "";
  position: absolute;
  bottom: -30%;
  right: -10%; /* تغيير من left إلى right */
  width: 70%;
  height: 120%;
  background: radial-gradient(
    circle at bottom right, /* تغيير من left إلى right */
    rgba(255, 245, 230, 0.3) 0%,
    rgba(255, 250, 240, 0.1) 40%,
    transparent 80%
  );
  z-index: 0;
  pointer-events: none;
}

.podcast-section .container-fluid  {
  position: relative;
  z-index: 2;
}

.podcast-main-title {
  color: #cba662;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.podcast-description {
  color: #666;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.podcast-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.podcast-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* نسبة 16:9 */
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.podcast-info {
  padding: 20px;
}

.podcast-title {
  color: #cba662;
  font-size: 1.2rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.podcast-date {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.podcast-desc {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.btn-podcast-more {
  background-color: #cba662;
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  border: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.btn-podcast-more:hover {
  color: #cba662;
  box-shadow: 0 0 15px 4px rgba(203, 166, 98, 0.7);
  transform: translateY(-2px);
}

@media (max-width: 991.98px) {
  .podcast-main-title {
    font-size: 2rem;
  }
  
  .podcast-description {
    font-size: 1.1rem;
    padding: 0 20px;
  }
}

@media (max-width: 767.98px) {
  .podcast-section {
    padding: 60px 0;
  }
  
  .podcast-main-title {
    font-size: 1.8rem;
  }
  
  .podcast-description {
    font-size: 1rem;
  }
  
  .podcast-card {
    margin-bottom: 30px;
  }
  
  .podcast-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 575.98px) {
  .podcast-main-title {
    font-size: 1.6rem;
  }
  
  .podcast-info {
    padding: 15px;
  }
}

/* ############################# Blog Section ################################### */

.blogs-section {
  position: relative;
  background: linear-gradient(
      180deg,
      #f6f7f9 0%,
      #f7f5f2 40%,
      #f3efe9 100%
  );
  overflow: hidden;
  padding: 100px 0;
}

.blogs-section::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -10%; /* تغيير من right إلى left */
  width: 60%;
  height: 120%;
  background: radial-gradient(
    circle at top left, /* تغيير من right إلى left */
    rgba(255, 232, 204, 0.5) 0%,
    rgba(255, 240, 220, 0.15) 40%,
    transparent 80%
  );
  z-index: 0;
  pointer-events: none;
}

.blogs-section::after {
  content: "";
  position: absolute;
  bottom: -30%;
  right: -10%; /* تغيير من left إلى right */
  width: 70%;
  height: 120%;
  background: radial-gradient(
    circle at bottom right, /* تغيير من left إلى right */
    rgba(255, 245, 230, 0.3) 0%,
    rgba(255, 250, 240, 0.1) 40%,
    transparent 80%
  );
  z-index: 0;
  pointer-events: none;
}

.blogs-section .container-fluid  {
  position: relative;
  z-index: 2;
}

.blogs-main-title {
  color: #cba662;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.blogs-description {
  color: #666;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.blog-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.blog-image-wrapper {
  position: relative;
  overflow: hidden;
  flex: 0 0 250px;
  width: 100%;
}

.blog-image {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-image {
  transform: scale(1.1);
}

.blog-category {
  position: absolute;
  top: 15px;
  left: 15px; /* تغيير من right إلى left */
  background: rgba(203, 166, 98, 0.95);
  color: #fff;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  z-index: 2;
}

.blog-info {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-title {
  color: #333;
  font-size: 1.3rem;
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.6em;
}

.blog-date {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.blog-date i {
  color: #cba662;
}

.blog-excerpt {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.blog-author,
.blog-read-time {
  color: #888;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
}

.blog-author i,
.blog-read-time i {
  color: #cba662;
  margin-right: 5px; /* تغيير من left إلى right */
}

.btn-blog-read {
  background-color: #cba662;
  color: #fff;
  padding: 12px 20px;
  border-radius: 25px;
  border: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  width: 100%;
  text-align: center;
  display: block;
  text-decoration: none;
  margin-top: auto;
}

.btn-blog-read:hover {
  background-color: #fff;
  color: #cba662;
  box-shadow: 0 0 10px 2px rgba(203, 166, 98, 0.7);
  transform: translateY(-2px);
}

.btn-blogs-more {
  background-color: #cba662;
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  border: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.btn-blogs-more:hover {
  background-color: #fff;
  color: #cba662;
  box-shadow: 0 0 15px 4px rgba(203, 166, 98, 0.7);
  transform: translateY(-2px);
}

@media (max-width: 991.98px) {
  .blogs-main-title {
    font-size: 2rem;
  }
  
  .blogs-description {
    font-size: 1.1rem;
    padding: 0 20px;
  }
  
  .blog-image-wrapper {
    flex: 0 0 220px;
  }
}

@media (max-width: 767.98px) {
  .blogs-section {
    padding: 60px 0;
  }
  
  .blogs-main-title {
    font-size: 1.8rem;
  }
  
  .blogs-description {
    font-size: 1rem;
  }
  
  .blog-card {
    margin-bottom: 30px;
  }
  
  .blog-image-wrapper {
    flex: 0 0 200px;
  }
  
  .blog-meta {
    flex-direction: column;
    gap: 10px;
    align-items: start;
  }
}

@media (max-width: 575.98px) {
  .blogs-main-title {
    font-size: 1.6rem;
  }
  
  .blog-info {
    padding: 20px;
  }
  
  .blog-title {
    font-size: 1.2rem;
  }
  
  .blog-image-wrapper {
    flex: 0 0 180px;
  }
}

.blog-image-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* ################# Bottom Navigation ####################### */
.bottom-nav {
  display: none;
}

@media (max-width: 767px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 18px;
    background: #fff;
    box-shadow: 0 -6px 18px rgba(0,0,0,0.12);
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    z-index: 1000;
  }

  .nav-group {
    display: flex;
    gap: 14px;
    align-items: center;
  }

  .bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 11px;
    width: 56px;
  }

  .bottom-nav .nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
    line-height: 1;
  }

  .nav-center-spacer {
    width: 84px;
    height: 1px;
    pointer-events: none;
  }

  .bottom-nav .main-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-28%);
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5d98a, #f3b87a);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(243, 184, 122, 0.4);
    text-align: center;
    z-index: 1100;
    text-decoration: none;
    font-size: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .bottom-nav .main-btn:hover {
    transform: translateX(-50%) translateY(-32%) scale(1.05);
    box-shadow: 0 10px 24px rgba(243, 184, 122, 0.6);
  }

  .bottom-nav .main-btn i {
    font-size: 22px;
    margin-bottom: 4px;
  }
}

/* ################# Popup ####################### */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  justify-content: center;
  align-items: flex-start;
  z-index: 2000;
  padding-top: 60px;
  animation: fadeIn 0.3s ease forwards;
}

.popup-box {
  background: linear-gradient(135deg, #cba662, #ffffff);
  color: #333;
  padding: 30px 25px 35px;
  border-radius: 22px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.25);
  transform: translateY(-50px);
  opacity: 0;
  animation: slideDown 0.5s ease forwards;
  position: relative;
}

.popup-box h3 {
  margin-bottom: 20px;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.popup-box input,
.popup-box select,
.popup-box button {
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Cairo', sans-serif;
  box-sizing: border-box;
}

.popup-box input,
.popup-box select {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  transition: box-shadow 0.3s;
}
.popup-box input:focus,
.popup-box select:focus {
  outline: none;
  box-shadow: 0 0 6px rgba(203,166,98,0.6);
}

.popup-box button[type="submit"] {
  background: #000;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 18px;
}
.popup-box button[type="submit"]:hover {
  background: #333;
}

.popup-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideDown {
  from { transform: translateY(-80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 767px) {
  .popup-box {
    width: 95%;
    padding: 20px 15px 25px;
    font-size: 14px;
  }
  .popup-box h3 {
    font-size: 20px;
  }
}

/* ################# Contact Info ####################### */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.contact-item {
  flex: 1 1 250px;
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.2s;
}

.contact-item:hover {
  transform: translateY(-5px);
}

.contact-item i {
  font-size: 28px;
  color: #f3b87a;
}

/* ################# Contact Form ####################### */

.contact-section {
  position: relative;
  background: linear-gradient(
      180deg,
      #f6f7f9 0%,
      #f7f5f2 40%,
      #f3efe9 100%
  );
  overflow: hidden;
  padding: 100px 0;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -10%; /* تغيير من right إلى left */
  width: 60%;
  height: 120%;
  background: radial-gradient(
    circle at top left, /* تغيير من right إلى left */
    rgba(255, 232, 204, 0.5) 0%,
    rgba(255, 240, 220, 0.15) 40%,
    transparent 80%
  );
  z-index: 0;
  pointer-events: none;
}

.contact-section::after {
  content: "";
  position: absolute;
  bottom: -30%;
  right: -10%; /* تغيير من left إلى right */
  width: 70%;
  height: 120%;
  background: radial-gradient(
    circle at bottom right, /* تغيير من left إلى right */
    rgba(255, 245, 230, 0.3) 0%,
    rgba(255, 250, 240, 0.1) 40%,
    transparent 80%
  );
  z-index: 0;
  pointer-events: none;
}

.contact-section .container-fluid  {
  position: relative;
  z-index: 2;
}
.contact-form {
  background: #fff;
  padding: 30px 25px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  margin-bottom: 40px;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5d98a, #f3b87a);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-form button:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 15px rgba(243, 184, 122, 0.4);
}

/* ################# Map ####################### */
.map-container-fluid  {
  width: 100%;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

/* ################# Responsive ####################### */
@media(max-width: 768px) {
  .contact-info {
    flex-direction: column;
  }
}

/*################## policies ################ */

.policy-card {
  background: #fff;
  border-radius: 20px;
  padding: 25px 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}
.policy-card h3 {
  margin-bottom: 15px;
  color: #f5d98a;
}
.policy-card p {
  line-height: 1.6;
}
@media(max-width:768px){
  .container-fluid  { margin: 20px 15px; }
}

/*################# tearms ################# */
.terms-card {
  background: #fff;
  border-radius: 20px;
  padding: 25px 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}
.terms-card h3 {
  margin-bottom: 15px;
  color: #f5d98a;
}
.terms-card p {
  line-height: 1.6;
}
@media(max-width:768px){
  .container-fluid  { margin: 20px 15px; }
}

/*################# FAQ ################# */

.faq-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  margin-bottom: 15px;
  transition: transform 0.2s;
}
.faq-card:hover { transform: translateY(-3px); }
.faq-card h3 {
  margin-bottom: 10px;
  color: #cba662;
}
.swiper-slide .faq-card .faq-title {
    color: #cba662 !important;
}
.faq-card p {
  line-height: 1.6;
}
.faq-excerpt p{
  color:#808080 ;
}
.faq-more-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 20px;
    background: transparent;
    color: #cba662 !important;
    border: 2px solid #cba662;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: 0.25s ease;
}

.faq-more-btn:hover {
    background: #cba662;
    color: #fff !important;
}

@media(max-width:768px){
  .container-fluid  { margin: 20px 15px; }
}

@media (max-width: 767px) {
  .hide-on-mobile {
    display: none !important;
  }
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #f3b87a;
    transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 16px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: #ebd2ff;
    transform: scale(1.1);
}

.swiper-button-next {
    right: -20px;
}

.swiper-button-prev {
    left: -20px;
}

/* Swiper Pagination */
.swiper-pagination {
    bottom: 0 !important;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ddd;
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #007cba;
    width: 20px;
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .doctors-swiper-wrapper {
        padding: 0;
    }
    
    .doctor-card {
        padding: 10px;
    }
    
    .doctor-name {
        font-size: 13px;
    }
    
    .doctor-specialty {
        font-size: 11px;
    }
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #666;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

.filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-title {
    color: #333;
}

/*=================== Contact Form ============*/
/* الألوان الذهبية */
:root {
    --gold-primary: #cba662;
    --gold-dark: #b18b57;
    --gold-light: #e6d2a9;
    --gold-gradient: linear-gradient(135deg, #cba662 0%, #b18b57 100%);
}

.gold-text {
    color: var(--gold-primary) !important;
}

.gold-btn {
    background: var(--gold-gradient) !important;
    border: none !important;
    color: white !important;
    padding: 12px 30px !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
}

.gold-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 20px rgba(203, 166, 98, 0.3) !important;
}

.gold-gradient {
    background: var(--gold-gradient) !important;
}

.btn-outline-gold {
    border: 2px solid var(--gold-primary) !important;
    color: var(--gold-primary) !important;
    background: transparent !important;
}

.btn-outline-gold:hover {
    background: var(--gold-primary) !important;
    color: white !important;
}

/* التنسيقات الأساسية */
.contact-page-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-info-card,
.contact-form-card,
.map-card,
.hours-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.contact-info-title,
.contact-form-title,
.map-title,
.section-title {
    position: relative;
}

.contact-info-title::after,
.contact-form-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 2px;
}

.ltr .contact-info-title::after,
.ltr .contact-form-title::after {
    left: 0;
}

.rtl .contact-info-title::after,
.rtl .contact-form-title::after {
    right: 0;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

/* تعديل لون الأيقونات إلى أبيض */
.contact-icon i {
    color: white !important;
    font-size: 1rem;
}

.contact-label {
    color: #2c3e50;
    font-size: 0.9rem;
}

.contact-value {
    color: #555;
    font-size: 1rem;
}

.contact-value:hover {
    color: var(--gold-primary);
}

.social-link {
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    color: var(--gold-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gold-gradient);
    color: white;
    transform: translateY(-3px);
}

/* تنسيقات Contact Form 7 */
.wpcf7-form {
    width: 100%;
}

.wpcf7-form-control {
    border: 2px solid #e9ecef !important;
    border-radius: 10px !important;
    padding: 12px 15px !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

.wpcf7-form-control:focus {
    border-color: var(--gold-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(203, 166, 98, 0.25) !important;
    outline: none !important;
}

.wpcf7-text,
.wpcf7-email,
.wpcf7-tel,
.wpcf7-textarea {
    width: 100% !important;
}

.wpcf7-textarea {
    min-height: 120px !important;
    resize: vertical !important;
}

.wpcf7-submit {
    background: var(--gold-gradient) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 30px !important;
    transition: all 0.3s ease !important;
    color: white !important;
    cursor: pointer !important;
}

.wpcf7-submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 20px rgba(203, 166, 98, 0.3) !important;
}

.wpcf7-not-valid-tip {
    color: #dc3545 !important;
    font-size: 0.875rem !important;
    margin-top: 0.25rem !important;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
    border-color: #dc3545 !important;
    background: #f8d7da !important;
    color: #721c24 !important;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: #28a745 !important;
    background: #d4edda !important;
    color: #155724 !important;
}

/* تنسيقات البطاقات */
.hours-card {
    text-align: center;
    transition: transform 0.3s ease;
}

.hours-card:hover {
    transform: translateY(-5px);
}

.days-title {
    margin-bottom: 1rem;
}

.hours-time {
    color: #555;
    margin: 0;
}

.emergency-card {
    text-align: center;
}

/* دعم RTL و LTR */
.rtl {
    direction: rtl;
    text-align: right;
}

.ltr {
    direction: ltr;
    text-align: left;
}

.rtl .contact-icon {
    margin-left: 1rem;
    margin-right: 0;
}

.ltr .contact-icon {
    margin-right: 1rem;
    margin-left: 0;
}

.rtl .wpcf7-not-valid-tip {
    text-align: right;
}

.ltr .wpcf7-not-valid-tip {
    text-align: left;
}

.rtl .wpcf7-response-output {
    text-align: right;
}

.ltr .wpcf7-response-output {
    text-align: left;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {

    .contact-info-card,
    .contact-form-card,
    .map-card {
        padding: 1.2rem;
        margin: 0.5rem 0;
    }

    .page-title {
        font-size: 1.8rem !important;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .page-subtitle {
        font-size: 1rem !important;
        padding: 0 10px;
    }

    .contact-info-title,
    .contact-form-title,
    .map-title,
    .section-title {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .contact-icon {
        width: 35px;
        height: 35px;
    }

    .contact-label {
        font-size: 0.85rem;
    }

    .contact-value {
        font-size: 0.9rem;
        word-break: break-word;
    }

    .wpcf7-form-control {
        padding: 10px 12px !important;
    }

    /* منع الخروج من الحاوية */
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }

    .row {
        margin-left: -5px;
        margin-right: -5px;
    }

    .col-lg-4,
    .col-lg-8 {
        padding-left: 5px;
        padding-right: 5px;
    }

    .emergency-card {
        padding: 1.5rem !important;
    }

    .emergency-title {
        font-size: 1.3rem;
    }
}

/* تأثير التحميل */
.contact-form-card {
    transition: opacity 0.3s ease;
}

/* تنسيقات التنبيهات */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.5rem;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
}

/*############### Animation ###################### */

.reveal-on-scroll {
  opacity: 0;
  transform: translateX(-80px); /* تغيير من 80px إلى -80px */
  transition: all 1s ease;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateX(0);
}

/*################## location section HomePage ###########*/
/* Locations basic */
.locations-section { padding: 60px 0; position: relative; overflow: hidden; }
.location-image-wrapper { width: 220px; height: 160px; margin: 0 auto; border-radius: 12px; overflow: hidden; }
.location-image { width:100%; height:100%; object-fit:cover; display:block; }
.location-info { padding-top:12px; }
.location-name { font-size:1rem; color:#333; margin-bottom:4px; }
.location-area { color:#777; font-size:0.9rem; }

/* reveal common */
.reveal-on-scroll { opacity:0; transform:translateX(0); transition: all 0.9s cubic-bezier(.2,.9,.2,1); }
.reveal-on-scroll.visible { opacity:1; transform:translateX(0); }

/* stagger for inner cards */
.location-card { opacity:0; transform: translateY(20px); transition: all 0.6s ease; }
.location-card.visible { opacity:1; transform: translateY(0); }

/* slide-in from left (LTR) */
.reveal-on-scroll { transform: translateX(-80px); } /* تغيير من 80px إلى -80px */
.reveal-on-scroll.visible { transform: translateX(0); }

/* optional: stagger using nth-child */
.locations-swiper .swiper-slide:nth-child(1).visible { transition-delay:0.12s; }
.locations-swiper .swiper-slide:nth-child(2).visible { transition-delay:0.18s; }
.locations-swiper .swiper-slide:nth-child(3).visible { transition-delay:0.24s; }

.location-single ul {
  list-style: none;
  padding: 0;
}

.location-single ul li {
  margin-bottom: 5px;
}

.location-single a {
  color: var(--theme-color, #cba662);
  text-decoration: none;
}

.location-single a:hover {
  text-decoration: none;
}

.map-embed iframe {
  width: 100%;
  height: 350px;
  border: none;
  border-radius: 12px;
}
.doctor-card h5 {
    color: #cba662 !important;
}
.location-contact a {
    color: #cba662 !important;
    font-weight: 600;
}

.location-contact a:hover {
    color: #b28e4f !important;
}

/*############ Galery Homepage ############*/
.hospital-gallery-slider {
  width: 100%;
  padding: 20px 0;
}

.gallery-card {
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gallery-card img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.header-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-inline {
    direction: ltr; /* تغيير من rtl إلى ltr */
}

@media (max-width: 768px) {
    .header-inline {
        flex-direction: column;
        align-items: flex-center;
		padding-bottom: 1rem;
    }

    .header-inline a.btn {
        width: 100%;
        text-align: center;
    }
}

/* footer cbahi */
.footer-logo {
    max-width: 480px;
    height: auto;
	margin-top: -120px;
}

.footer .row.align-items-start {
    align-items: flex-start;
}

@media (max-width: 768px) {
    .footer-logo {
        max-width: 440px;
    	margin-top: -150px;
    }

    .footer .col-md-4 {
        text-align: center !important;
    }
}

/* ========== about us ========== */

.about-section {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInSection 1.2s ease-out forwards;
    animation-delay: 0.3s;
}

.about-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* العنوان */
.about-title {
    font-size: 2rem; /* نفس حجم عنوان الأطباء */
    color: #ddcaa8;
    margin-bottom: 1rem;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.5s;
}

/* خط تحت العنوان */
.about-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    right: 0; /* تغيير من left إلى right */
    width: 25%;
    height: 2px;
    background-color: #cba662;
    transition: width 0.3s ease;
}
.about-title:hover::after {
    width: 100%;
}

/* الوصف */
.about-description {
    font-size: 1rem; /* نفس حجم وصف الأطباء */
    line-height: 1.8;
    color: #666;
    max-width: 800px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.7s;
}

/* LTR */
.about-section.ltr-style {
    direction: ltr;
    text-align: left;
}

/* Responsive */
@media (max-width: 1200px) {
    .about-title { font-size: 1.8rem; }
    .about-description { font-size: 0.95rem; }
}

@media (max-width: 768px) {
    .about-section { padding: 40px 15px; }
    .about-title { font-size: 1.6rem; }
    .about-description { font-size: 0.9rem; line-height: 1.6; }
}

/* ============================
   LTR STYLE (English)
============================ */
/* LTR Style */
.magisty-page-section.ltr .magisty-page-container {
    direction: ltr;
    text-align: left;
    line-height: 1.9;
    font-size: 1.1rem;
    color: #222;
    padding: 20px 25px;
}

.magisty-page-section.ltr p {
    margin-bottom: 18px;
}

.magisty-page-section.ltr h1,
.magisty-page-section.ltr h2,
.magisty-page-section.ltr h3 {
    font-weight: 700;
    margin-bottom: 15px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .magisty-page-section.ltr .magisty-page-container,
    .magisty-page-section.rtl .magisty-page-container {
        font-size: 1rem;
        padding: 15px 18px;
        line-height: 1.8;
    }

    .magisty-page-section.ltr h1,
    .magisty-page-section.rtl h1 {
        font-size: 1.6rem;
    }

    .magisty-page-section.ltr h2,
    .magisty-page-section.rtl h2 {
        font-size: 1.4rem;
    }

    .magisty-page-section.ltr h3,
    .magisty-page-section.rtl h3 {
        font-size: 1.2rem;
    }
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-img-single{
  width: 400px;
  object-fit: cover;
  transition: transform 0.3s ease;
  text-align: center;
}
.img-fluid-service{
  max-width: 50%;
  height: auto;
}

.doctor-experience .experience-title {
    font-size: 16px;
    color: #808080;
    margin-bottom: 5px;
}

.doctor-experience .experience-number {
    font-size: 16px;
    font-weight: bold;
    color: #808080;
}

.service-fixed-box-en { 
  position: fixed; 
  top: calc(80px + 30px);
  left: 8%;
  z-index: 9;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px; 
}
.service-section{
   min-height: 100vh;
}


@media (max-width: 575.98px) {
   .hospital-fixed-box {
    display: contents !important; /* يجعل العنصر غير مرئي لكن محتواه يظهر */
    position: static !important;
  }
	 .service-fixed-box-en {
    display: contents !important; /* يجعل العنصر غير مرئي لكن محتواه يظهر */
    position: static !important;
  }
}

@media (max-width: 1366px) {
	.hospital-fixed-box{
		position: sticky;
}
	.service-fixed-box-en{
		position: sticky;
}
}

/* تحسينات إضافية للتجربة */
@media (max-width: 768px) {
   .hospital-fixed-box {
    display: contents !important; /* يجعل العنصر غير مرئي لكن محتواه يظهر */
    position: static !important;
  }
	 .service-fixed-box-en {
    display: contents !important; /* يجعل العنصر غير مرئي لكن محتواه يظهر */
    position: static !important;
  }
}
.index-menu{
  z-index: 99;
}

/* تغيير زر حجز الموعد */

/* زر سطح المكتب */
#desktopBookingBtn {
    display: inline-block;
}

/* زر الموبايل */
#mobileBookingBtn {
    display: none;
}

/* عند الشاشات الصغيرة (الموبايل) */
@media (max-width: 768px) {
    #desktopBookingBtn {
        display: none; /* إخفاء الزر تحت الصورة */
    }

    #mobileBookingBtn {
        display: inline-block; /* عرض الزر تحت العنوان */
        width: 100%;
        text-align: center;
    }
     .doctor-title{
      text-align: center;
    }
}


 .hospital-fixed-box { 
  position: fixed; 
  top: calc(80px + 30px); 
  left: 10%; 
  z-index: 9; 
  display: flex; 
  flex-direction: column; 
  gap: 12px;
   align-items: center;
    padding: 12px; 
    border-radius: 12px;
   } 
     .img-fluid {
      height: auto;
      width: 250px;
    }
     .img-fluid-blog{
      height: auto;
      width: 600px;
      max-width: 100%;
    }
    .hospital-fixed-img { width: 180px; height: auto; border-radius: 10px; object-fit: cover; } /* زر الحجز */
     .hospital-book-btn { background: #cba662; color: #fff; padding: 10px 18px; border-radius: 8px; text-decoration: none; font-weight: bold; transition: 0.3s; } .hospital-book-btn:hover { background: #cba662; } /* دعم الموبايل */
    
    @media (max-width: 768px) { .hospital-fixed-box { top: auto; bottom: 20px; right: 50%; transform: translateX(50%); width: 90%; flex-direction: row; justify-content: space-between; padding: 10px; } .hospital-fixed-img { width: 120px; } }
* الصورة */
.hospital-fixed-img {
    width: 180px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* زر الحجز */
.hospital-book-btn {
    background: #cba662;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.hospital-book-btn:hover {
    background: #cba662;
}

/* دعم الموبايل */
@media (max-width: 768px) {
    .hospital-fixed-box {
        top: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(50%);
        width: 90%;
        flex-direction: row;
        justify-content: space-between;
        padding: 10px;
    }

    .hospital-fixed-img {
        width: 120px;
    }
    .img-fluid {
      max-width: 100%;
      height: auto;
      width: 250px;
    }
    
    .device-title {
      color: #cba662;
      font-size: 1.8rem;
      margin-bottom: 1rem;
      text-align: center;
  }
}



/* ========== single service ============== */

.service-description h1 { font-size: 1.8rem; }
.service-description h2 { font-size: 1.6rem; }
.service-description h3{ font-size: 1.4rem; }
.service-description h4 { font-size: 1.2rem; }
.service-description h5 { font-size: 1.1rem; }
.service-description h6 { font-size: 0.9rem; }

.service-description h2,
.service-description h3,
.service-description h4,
.service-description h5,
.service-description h6 {
    margin-top: 35px;
    margin-bottom: 5px;

    /*  Safari */
    -webkit-margin-before: 35px;
    -webkit-margin-after: 15px;
}

/* ===========================*/
@media (max-width: 767px) {

    .service-description h1 { font-size: 1.6rem; }
    .service-description h2 { font-size: 1.4rem; }
    .service-description h3{ font-size: 1.2rem; }
    .service-description h4 { font-size: 1rem; }
    .service-description h5 { font-size: 0.9rem; }
    .service-description h6 { font-size: 0.8rem; }

    .service-description h2,
    .service-description h3,
    .service-description h4,
    .service-description h5,
    .service-description h6 {
        margin-top: 28px;
        margin-bottom: 3px;

        -webkit-margin-before: 28px;
        -webkit-margin-after: 12px;
    }
}

 .doctor-card-image {
    width: 60%;
}
@media (max-width: 768px) {
    .swiper.swiper {
        margin-bottom: -55px !important;
    }
}

/* footer image */

  /* ====== الحاوية الأساسية ====== */
                .footer-certifications-area {
                    padding-top: 5px;
                }

                /* صف الصور - دائماً أفقي حتى في الموبايل */
                .cert-row {
                    display: flex;
                    justify-content: end;
                    margin-bottom: 18px;
                    gap: 18px;
                    flex-wrap: nowrap;
                }

                .cert-row:last-child {
                    margin-bottom: 0;
                }

                /* Wrapper لكل صورة */
                .cert-image-wrapper {
                    flex: 1;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    padding: 12px;
       
                }

                /* الصورة */
                .cert-image {
                    width: 100%;
                    height: 100%;
                    object-fit: contain;
                }


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

                /* شاشات أصغر */
                @media (max-width: 992px) {
                    .cert-image {
                        max-width: 300px;
                        max-height: 300px;
                    }

                 
                }

                /* موبايل — يبقى أفقي + خط طولي */
                @media (max-width: 576px) {
                    .cert-row {
                        gap: 12px;
                    }

                    .cert-image-wrapper {
                        padding: 8px;
                    }

                    .cert-image {
                        max-width: 300px;
                        max-height: 300px;
                    }

                    
                }

/* ============================= */
/* 1366 × 768 (Laptop Resolution) */
/* ============================= */
@media screen and (width: 1366px) and (height: 768px) {

    .cert-image-wrapper {
        padding: 6px;
        min-height: 85px;
    }

    .cert-image {
        max-width: 300px;
        max-height: 300px;
    }

    .cert-row {
        gap: 10px;
        margin-bottom: 14px;
    }
    .navbar-nav .nav-link {
  color: #333 !important;
  padding: 0 !important;
  transition: color 0.3s ease;
}
.service-image-wrapper {
  width: 150px;
  height: 150px;
  margin: 0 auto;     /* يجعل الصورة في المنتصف */
  display: flex;
  justify-content: center;
  align-items: center;
}

}

/* ============================= */
/* 1920 × 1080 (Full HD) */
/* ============================= */
@media screen and (width: 1920px) and (height: 1080px) {

    .cert-image-wrapper {
        padding: 10px;
      }

    .cert-image {
        width: 300px;
        height: 300px;
    }

    .vertical-line {
        width: 1px;
        height: 120px !important;   /* خط أطول للشاشات الكبيرة */
        background: rgba(180, 180, 180, 0.9);
        display: block !important;
    }

    .cert-row {
        gap: 18px;
        margin-bottom: 20px;
    }
}

.footer-logos-wrapper {
    display: flex;
    justify-content: center; /* لتوسيط الأعمدة في الوسط */
    gap: 20px; /* مسافة بين العمودين */
    flex-wrap: wrap; /* إذا كان العرض صغير، الأعمدة تنتقل للسطر التالي */
}

.footer-logos-col {
    display: flex;
    flex-direction: column; /* ترتيب الصور عمودياً */
    gap: 15px; /* مسافة بين الصور داخل العمود */
}

.cert-image {
    width: 100%; /* تحديد حجم الصورة حسب الحاجة */
    height: 100%;
    display: block;
    margin: 0 auto; /* لتوسيط كل صورة داخل العمود */
}

/* تحجيم لطيف على الشاشات الصغيرة */
@media (max-width: 768px) {
    .footer-logos-wrapper {
        gap: 20px;
    }
    .footer-logos-col img {
        max-width: 300px;
    }
}

/* New style MAC */
/* Wrapper للصور */


.footer-logos-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* مسافة بين الصفوف */
}

.cert-row {
    display: flex;
    justify-content: end;
    gap: 20px; /* مسافة بين الصور داخل الصف */
}

.cert-image-wrapper {
    flex: 0 0 auto;
}

.cert-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding-left: 8px;
    padding-right: 8px;
}

.footer-logos-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}


/* الخط الفاصل */
.footer-divider {
    display: none; /* نخفيه لأننا استخدمنا grid */
}

/* Responsive */
@media (max-width: 1024px) { /* iPad landscape */
    .footer-logos-wrapper {
        gap: 30px;
    }
}

@media (max-width: 768px) { /* الموبايل */
    .footer-logos-wrapper {
        grid-template-columns: repeat(2, 1fr); /* عمودين متساويين */
        gap: 20px 30px; /* صفوف وعمودين */
    }
}



.hero-services-section .service-card {
    border-radius: 20px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-services-section .service-image-wrapper {
    width: 100%;
    max-width: 180px; /* حجم الصورة */
    height: 180px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-services-section .service-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.hero-services-section .service-title {
    text-align: center;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 1200px) { /* Mac 13.6 */
    .hero-services-section .service-image-wrapper {
        max-width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) { /* iPad portrait / mobile */
    .hero-services-section .service-image-wrapper {
        max-width: 120px;
        height: 120px;
    }
    .hero-services-section .hero-title {
        font-size: 2.2rem;
    }
    .hero-services-section .hero-tagline {
        font-size: 1.5rem;
    }
}

@media (max-width: 1024px){
  .hero-services-section .service-image {
  width: 150px;
  height: 150px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
}
@media (max-width: 1080px){
    .hero-services-section .service-image {
  width: 150px;
  height: 150px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
}
@media (max-width: 1366px){
     .hero-services-section .service-image {
  width: 150px;
  height: 150px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
}

