html {
  scroll-behavior: smooth;
}
body {
    padding-top: 100px; 
}

.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999; 
    background-color: #fff;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); 
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
}

.c-item {
    height: 70vh; 
}

.c-img {
    height: 100%;
    object-fit: cover; /* لضمان تغطية الصورة للمساحة دون تشوه */
}

.carousel-caption h1 {
    padding-top: 70px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); 
}
.navbar-custom .nav-link,
.navbar-custom .navbar-brand {
    color: #346ad6 !important ; 
    
    
}

.navbar-custom .dropdown-item{
    color: #315eb6;
}


.navbar-custom .nav-link:hover{
    color: #E8AC3A !important;
}

.navbar-custom .nav-link.active {
        border-bottom: 2px solid #E8AC3A; 
        margin-bottom: 0;
  color: #E8AC3A !important;
  font-weight: bold; 
}

.navbar-custom .dropdown-item:hover {
      background-color: #94B6EF;

}


.section-title {
    color: #203E6D; 
    
    position: relative; 
    padding-bottom: 10px; 
}

.section-title::after {
    content: '';
    display: block;
    width: 90px; 
    height: 3px; 
    background-color: #E8AC3A;
    
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.btn-primary-custom {
    background-color: #E8AC3A;
    border-color: #E8AC3A;
    color: #fff;
}

.btn-primary-custom:hover {
    background-color: #c9932e;
    border-color: #c9932e;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  cursor: pointer;
}

.c-item{
    height:490px;
   
}
.c-img{
    
     height: 100%;
    object-fit: cover;
    filter:brightness(0.6);
    
}
.services-cards-section .card i {
    font-size: 3rem; 
    color: #E8AC3A; 
    margin-bottom: 15px;
    transition: color 0.3s ease; 
}

.services-cards-section .card {
    transition: all 0.3s ease; 
    border: 1px solid #dee2e6; 
}

.services-cards-section .card:hover {
    background-color: #203E6D; 
    color: #fff; 
    cursor: pointer;
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); 
}

.services-cards-section .card:hover i {
    color: #fff; 
}

.services-cards-section .card:hover .card-title {
    color: #fff; 
}


.btn-primary-custom {
    background-color: #E8AC3A;
    border-color: #E8AC3A;
    color: #fff;
    transition: all 0.3s ease;
}


.services-cards-section .card:hover .btn-primary-custom {
    background-color: #203E6D; 

    color: #fff;
    border-color: #fff; /* يمكن تغيير الحدود إلى الأبيض */
}


.services-cards-section .card:hover .btn-primary-custom:hover {
    background-color: #142a4a; /* درجة أغمق قليلاً من الكحلي */
    color: #fff;
    border-color: #fff;
}


.doctors-section {
    background-color: #F4F5F7; /* لون الخلفية الفاتح */
}

.doctors-section .section-title {
    color: #203E6D; /* لون العنوان الكحلي */
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}


.doctors-section .section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #E8AC3A; /* اللون الذهبي للخط */
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}


.doctor-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border: none !important;
}

.doctor-card:hover {
    transform: translateY(-10px); /* رفع البطاقة عند التحويم */
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important; /* ظل أقوى */
}


.doctor-img-container {
    overflow: hidden;
    position: relative;
}

.doctor-img {
    transition: transform 0.3s ease-in-out; /* حركة ناعمة للصورة */
    width: 100%;
    height: 340px; 
    object-fit: cover;
}

.doctor-card:hover .doctor-img {
    transform: scale(1.08); /* تكبير الصورة قليلاً عند التحويم */
}

/* ألوان الأيقونات الاجتماعية والأسماء */
.doctor-card .social-icons a {
    color: #203E6D; /* لون كحلي للأيقونات */
    transition: color 0.3s ease;
}

.doctor-card .social-icons a:hover {
    color: #E8AC3A; /* لون ذهبي عند التحويم */
}


.text-primary {
  
    color: #203E6D !important; 
}


.text-warning {
    color: #E8AC3A !important;
}

/*ِabout us*/
.circle-wrapper {
  position: relative;
  width: 390px;
  height: 390px;
}

.circle-bg {
  position: absolute;
  top: 20px;
  
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #E8AC3A;
  z-index: 1;
}

.circle-image-wrapper {
  position: relative;
  width: 370px;
  height: 370px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.circle-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-title {
  
    color: #203E6D; /* كحلي */
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #E8AC3A; /* ذهبي */
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}


.vision-mission-card {
    /* لون خلفية كحلي فاتح جداً لتحديد المساحة */
    background-color: #f8f9fa; 
    /* حدود رقيقة بلون كحلي فاتح */
    border: 1px solid #94B6EF; 
    /* ظل خفيف لإبراز البطاقة */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /* تأثير انتقال للتحسين البصري */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* لضمان ارتفاع متساوٍ */
}


.vision-mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}


.text-warning {
    color: #E8AC3A !important; /* اللون الذهبي */
}


.text-primary {
    color: #203E6D !important; /* اللون الكحلي */
}

/* CTA Footer (section style) */
.cta-footer {
  background: linear-gradient(90deg, #203E6D, #2c4f87);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 15px;
  border-radius: 12px;
  margin: 40px auto;
  max-width: 900px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cta-footer strong {
  color: #E8AC3A;
  font-weight: bold;
  margin-right: 6px;
}

.cta-footer a {
  background-color: #E8AC3A;
  color: #203E6D;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.cta-footer a:hover {
  background-color: #fff;
  color: #203E6D;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* موبايل */
@media (max-width: 576px) {
  .cta-footer {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    font-size: 14px;
    padding: 20px;
  }
}
@media (max-width: 576px) {
  .services-cards-section .row {
    justify-content: center !important;
  }

  .services-cards-section .col-md-6 {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }

  .services-cards-section .card {
    width: 90%;
    max-width: 320px;
  }
}

/*contact us */

/* Hero background */
.contact-hero {
  position: relative;
  height: 50vh;
  background: url('https://images.unsplash.com/photo-1505751172876-fa1923c5c528') no-repeat center center/cover;
}

.contact-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

/* Contact form - overlapping */
.contact-form {
  position: relative;
  margin: -240px auto 40px auto; /* negative margin pulls it up */
  background: #F4F5F7;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  width: 90%;

  max-width: 500px;
  animation: fadeInUp 1s forwards;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.info-box {
    display: flex; /* يجعل العناصر الأبناء (الصورة والنص) في صف واحد */
    align-items: center; /* توسيط العناصر عمودياً */
    gap: 15px; /* إضافة مسافة بين الأيقونة والنص */
    padding: 10px;
    border-radius: 10px;
    /* إضافة لمسة جمالية عند التحويم */
    transition: background-color 0.3s ease;
}

/* تأثير خفيف عند التحويم */
.info-box:hover {
    background-color: #F0F0F0; /* خلفية رمادية فاتحة جداً عند التحويم */
}

/* تنسيق الأيقونة داخل الصندوق */
.info-box img {
    flex-shrink: 0; /* يمنع الأيقونة من التقلص */
    width: 39px; /* تصغير حجم الأيقونة قليلاً لتكون متناسبة */
    height: 39px;
}

.info-text h4 {
    margin-bottom: 0px; 
    color: #203E6D; 
    font-weight: bold;
}

/* تنسيق الروابط داخل الصناديق */
.info-text a {
    color: #E8AC3A; /* لون ذهبي للروابط */
    text-decoration: none;
    transition: color 0.3s;
}

.info-text a:hover {
    color: #c98a22; 
}


.social-icons a img {
    width: 30px; /* تصغير أيقونات السوشيال ميديا قليلاً */
    height: 30px;
    margin-inline-end: 0px; 
}


.contact-form h2 {
  margin-bottom: 1rem;
  color: #203E6D;
  font-weight: bold;
}

/* Inputs */
.contact-form .form-control {
  border-radius: 10px;
  border: 1px solid #94B6EF;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-form .form-control:focus {
  border-color: #203E6D;
  box-shadow: 0 0 0 0.2rem rgba(148,182,239,0.4);
}

/* Button */
.btn-custom {
  background: #E8AC3A;
  color: #fff;
  font-weight: bold;
  border-radius: 12px;
  transition: 0.3s;
}
.btn-custom:hover {
  background: #c98a22;
}

.contact-info h2 {
  font-size: 1.3rem; /* أصغر */
}

.info-text h4 {
  font-size: 1rem;   /* كان 1.2rem */
}

.info-text p,
.info-text a {
  font-size: 0.9rem; /* كان 1rem */
}

.contact-info h4.mt-4 {
  font-size: 1rem;   /* أصغر */
}

.social-icons a img {
  width: 35px;  /* كان 40px */
  height: 35px;
}
.map-container {
  width: 100%;
  max-width: 800px;
  margin: auto;
  border-radius: 20px;
  overflow: hidden;
}

.footer {
  background: #203E6D; /* navy */
  color: #F4F5F7;     /* light gray */
}

.footer a {
  color: #F4F5F7;
  text-decoration: none;
}

.footer a:hover {
  color: #E8AC3A; /* gold */
}







/*derma*/
/* Dermatology Hero Section */
.derma-hero {
    position: relative;
    height:100%;
    min-height: 300px; /* يمكن تعديل الارتفاع */
    display: flex;
    align-items: center;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), /* التعتيم */
        url('../images/بروفايلجلدية.jpg') center center/cover no-repeat; /* ضع رابط الصورة هنا */
    color: #fff; /* لتلوين النص */
}
.ortho-hero {
    position: relative;
    height:100%;
    min-height: 350px; /* يمكن تعديل الارتفاع */
    display: flex;
    align-items: center;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), /* التعتيم */
        url('../images/بروفايل\ اسنان.webp') center center/cover no-repeat; /* ضع رابط الصورة هنا */
    color: #fff; /* لتلوين النص */
}

.derma-hero .hero-text-content h1,
.derma-hero .hero-text-content p {
    color: #fff; /* النص يكون أبيض فوق الخلفية المعتمة */
}
.ortho-hero .hero-text-content h1,
.ortho-hero .hero-text-content p {
    color: #fff; /* النص يكون أبيض فوق الخلفية المعتمة */
}

.derma-hero .btn-cta {
    background-color: #E8AC3A;
    color: #203E6D;
    font-weight: bold;
    border: none;
    transition: all 0.3s ease;
}

.derma-hero .btn-cta:hover {
    background-color: #d29a31;
    color: #fff;
}
.ortho-hero .btn-cta {
    background-color: #E8AC3A;
    color: #203E6D;
    font-weight: bold;
    border: none;
    transition: all 0.3s ease;
}

.ortho-hero .btn-cta:hover {
    background-color: #d29a31;
    color: #fff;
}

.derma-intro h2 {
  font-size: 2rem;
  color: #203E6D;
}

.derma-intro p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #687A86;
}
.derma-services h2 {
  color: #203E6D;
}
/* ===== كروت الأقسام ===== */
.derma-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.derma-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  filter: brightness(70%);
  transition: transform 0.3s ease;
}

.derma-card .card-title {
  text-align: center;
  position: absolute;
  bottom: 15px;
  right: 20px;
  color: #fff;
  font-size: 1.4rem;
  font-weight: bold;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.derma-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.derma-card:hover img {
  transform: scale(1.05);
}
/* ===== كروت الأقسام ===== */
.dental-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dental-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  filter: brightness(70%);
  transition: transform 0.3s ease;
}

.dental-card .card-title {
  position: absolute;
  bottom: 15px;
  right: 20px;
  color: #fff;
  font-size: 1.4rem;
  font-weight: bold;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.dental-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.dental-card:hover img {
  transform: scale(1.05);
}

/* ===== الأقسام التفصيلية ===== */
.detail-section {
  padding: 40px 20px;
  border-bottom: 1px solid #E8AC3A;
}

.detail-section:last-child {
  border-bottom: none;
}

.detail-section h2 {
  font-size: 2rem;
}

/* ===== الأقسام التفصيلية ===== */
.detail-section {
  padding: 40px 20px;
  border-bottom: 1px solid #E8AC3A;
}

.detail-section:last-child {
  border-bottom: none;
}

.detail-section h2 {
  font-size: 2rem;
}

/* الدائرة */
.service-circle {
  width: 180px;
  height: 180px;
  background: #E8AC3A; /* ذهبي */
  color: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
  margin: auto;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.service-circle:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* الأيقونة */
.service-circle i {
  font-size: 2rem;
  margin-bottom: 8px;
}

/* العنوان */
.service-circle h6 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 5px;
  color: #fff;
}

/* الوصف */
.service-circle p {
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.4;
  color: #f9f9f9;
}
.derma-tech h2 {
  color: #203E6D;
}

.tech-box {
  background: #F4F5F7;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  gap: 15px; /* مسافة بين الأيقونة والنص */
}

.tech-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.tech-icon {
  font-size: 1.8rem;
  color: #E8AC3A;
  flex-shrink: 0;
  margin-top: 4px;
}

.tech-box h5 {
  color: #E8AC3A;
  margin-bottom: 8px;
}

.tech-box p {
  color: #687A86;
  font-size: 0.95rem;
  line-height: 1.6;
}
.derma-why h2 {
  color: #203E6D;
}

.why-box {
  background: #F4F5F7;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.why-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.why-icon {
  font-size: 2rem;
  color: #E8AC3A;
  margin-bottom: 15px;
}
.derma-cta {
  background: linear-gradient(rgba(32,62,109,0.9), rgba(32,62,109,0.9)), 
              url('https://images.unsplash.com/photo-1584467735871-bd1a1dc4a87c') no-repeat center center/cover;
  padding: 80px 0;
  border-radius: 15px;
  margin: 60px auto;
  max-width: 1000px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.derma-cta h2 {
  font-size: 2rem;
  color: #fff;
}

.derma-cta p {
  font-size: 1.1rem;
  color: #f1f1f1;
}

.btn-cta {
  background: #E8AC3A;
  color: #fff;
  font-weight: bold;
  border-radius: 12px;
  transition: 0.3s;
}

.btn-cta:hover {
  background: #c98a22;
  color: #fff;
}
.img-box img {
  max-height: 450px;   /* غيري الرقم حسب المناسب */
  width: auto;
  margin: 0 auto;
  display: block;
  object-fit: contain; /* يخلي الصورة كاملة بدون قص */
}


.img-box img:hover {
  transform: scale(1.05);
}
#hydrafacial-section .img-box img {
 
  
 
   width: 80%;   /* الصورة أصغر شوي داخل العمود */
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

#hydrafacial-section .img-box img:hover {
  transform: scale(1.05);
}
#derma-tech h2, 
#derma-tech h3, 
#derma-tech p {
  color: #203E6D ; 
}

#derma-tech img {
  max-height: 280px; 
  object-fit: cover;
}

@media (max-width: 768px) {
  #derma-tech .row {
    text-align: center !important;
  }
}
.tool-img {
  width: 100%;
  max-height: 350px;   /* نفس الارتفاع لكل الصور */
  object-fit: contain;  /* تظهر الصورة كاملة بدون قص */
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .text-center .tool-img {
    margin: 0 auto;
  }
}
/* الخطوط والألوان */
#dental-tools h2,
#dental-tools h3 {
  font-family: 'Cairo', sans-serif; /* خط موحد */
  color: #203E6D;
}

#dental-tools p {
  font-family: 'Cairo', sans-serif;
  color: #687A86;
}

/* تباعد موحد حول كل قسم */
#dental-tools .container > div {
  margin-left: 30px;
  margin-right: 30px;
 
}

/* الصور: نفس الحجم والحاوية */
.img-box {
  width: 100%;
  height: 350px;       /* ارتفاع موحد لكل الصور */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 10px;
  background-color: #f8f9fa; /* خلفية خفيفة */
  margin-bottom: 15px; /* مسافة أسفل الصورة */
}

.img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* نصوص فوق الصور للصور المتعددة */
.multi-img-section h3,
.multi-img-section p {
  margin-bottom: 20px;
  text-align: center;
}

/* responsive: على الموبايل كل شيء بالنص */
@media (max-width: 768px) {
  #dental-tools .row {
    text-align: center !important;
  }
}

