@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&family=Cairo:wght@200..1000&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Cairo", sans-serif;
    text-decoration: none;
    
}
::-webkit-scrollbar {
    width: 9px; 
}
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
::-webkit-scrollbar-thumb {
    background: #2E5077;
    border-radius: 5px; 
    padding: 2px ;
}
::-webkit-scrollbar-thumb:hover {
    background: #555; 
}
body{
    background-color: #fff;
    padding: 0 40px;
}

.fixed-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    color: #2E5077;
    padding: 10px 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-radius: 20px;
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    flex-direction: row-reverse;
}

.logo {
    font-size: 1.3rem;
    font-weight: bold;
    padding-right: 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.logo img{
  width: 35px;
  margin-right: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #2E5077;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    font-weight: 700;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: #3498db;
}

/* زر القائمة في الهاتف */
.menu-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: #2E5077;
    cursor: pointer;
}

/* استجابة للجوال */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 10px;
        background-color: #fff;
        width: calc(100% - 20px);
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .menu-toggle {
        display: block;
        margin-left: 20px;
    }

    .nav-container {
        flex-direction: row;
    }
}


.nav-links.show {
    display: flex !important;
}

.news-form{
  width: 400px;
  height: auto;
  border-radius: 20px;
  background-color: #2E5077;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.swiper {
  width: 100%;
  height: auto;
  margin: 100px auto;
}
.swiper-slide {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.swiper-slide h3 {
  margin-bottom: 10px;
  font-size: 1.6rem;
  color: #243f5e;
}
.slider-side{
  display: flex;
  align-items: center;
}
.slider-side img{
    width: 50%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}
.cap-slider{
  padding: 30px; text-align: center;  width:50%;
}
article h1 {
  text-align: right;
  margin-top: 120px;
  font-size: 2.2em;
  color: #333;
}

/* تنسيق صندوق الخبر */
article {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px;
  margin: 70px auto;
  max-width: 800px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
  text-align: right;
}

article:hover {
  transform: translateY(-3px);
}

/* عنوان الخبر */
article h2 {
  font-size: 1.5em;
  color: #2E5077;
  margin-bottom: 10px;
}

/* محتوى الخبر */
article p {
  font-size: 1.05em;
  color: #444;
  line-height: 1.7;
  white-space: pre-line;
}

/* التاريخ */
article small {
  display: block;
  margin-top: 10px;
  color: #888;
  font-size: 0.9em;
}

/* الخط الفاصل */
article hr {
  border: none;
  height: 1px;
  background-color: #ddd;
  margin-top: 20px;
}

/* في حال عدم وجود أخبار */
article p {
  text-align: center;
  font-size: 1.1em;
  color: #666;
  margin-top: 50px;
}

/* تحسين العرض على الموبايل */
@media (max-width: 600px) {
  article {
    padding: 15px;
    margin: 15px 10px;
  }

  article h1 {
    font-size: 1.6em;
  }

  article h2 {
    font-size: 1.2em;
  }

  article p {
    font-size: 1em;
  }
}


.hero{
  width: 100%;
  height: 100vh;
  display: flex;
}
.logo-section{
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo-section img{
  width: 400px;
}
.caption-hero{
  width: 50%;
  height: 100%;
  padding: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.caption-hero h1{
  font-size: 2.5rem;
  color: #243f5e;
  padding-bottom: 20px;
}

.caption-hero p{
  font-size: 1.2rem;
  text-align: justify;
  text-align-last: left;
}
@media (max-width: 768px){
.slider-side{
flex-direction: column;
}
.slider-side img{
  width: 100%;
  height: 300px;
}
.cap-slider{
  width: 100%;
  padding: 20px;
}
.hero{
  height: auto;
  flex-direction: column-reverse;
  margin-top: 50px;
}
.logo-section{
  width: 100%;
}
.caption-hero{
  width: 100%;
}
.logo-section img{
  width: 300px;
}
}
    .services-section {
      max-width: 1200px;
      margin: auto;
      direction: rtl;
      margin-bottom: 90px;
    }

    .services-title {
      text-align: center;
      font-size: 2em;
      margin-bottom: 30px;
      color: #333;
    }

    .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
    }

    .service-card {
      background: #fff;
      border: 1px solid #ddd;
      border-radius: 10px;
      padding: 20px;
      box-shadow: 0 0 10px rgba(0,0,0,0.05);
      cursor: pointer;
      transition: transform 0.2s;
    }

    .service-card:hover {
      transform: translateY(-5px);
    }

    .service-title {
      font-size: 1.2em;
      margin-bottom: 10px;
      font-weight: 700;
      color: #2E5077;
      text-align: left;
    }

    /* نافذة منبثقة */
    .modal {
      display: none;
      position: fixed;
      z-index: 1000;
      left: 0; top: 0;
      width: 100%;
      height: 100%;
      overflow: auto;
      background-color: rgba(0,0,0,0.6);
    }

    .modal-content {
      background-color: #fff;
      margin: 10% auto;
      padding: 20px;
      border-radius: 10px;
      width: 90%;
      max-width: 500px;
      position: relative;
      box-shadow: 0 10px 30px rgba(0,0,0,0.3);
      text-align: left;
    }

    .close-btn {
      color: #aaa;
      position: absolute;
      top: 10px;
      left: 15px;
      font-size: 24px;
      cursor: pointer;
    }

    .close-btn:hover {
      color: #000;
    }

    .modal-title {
      font-size: 1.3em;
      color: #2E5077;
      margin-bottom: 15px;
    }

    .modal-description {
      font-size: 1em;
      color: #333;
      line-height: 1.6;
    }

    @media (max-width: 768px) {
      .service-title {
        font-size: 1em;
      }

      .modal-content {
        margin-top: 30%;
      }
    }


.about-container {
    width: 100%;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    direction: rtl;
    align-items: center;
}

/* صورة */
.about-img {
    width: 50%;
    display: flex;
    justify-content: center;
}
.about-img img {
    width: 100%;
    max-width: 500px;
    height: auto;
}

/* نص */
.about-text {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    padding: 20px;
}

.about-text p {
    color: #2E5077;
    border-bottom: 1px solid #2E5077;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 17px;
    font-weight: bold;
    width: fit-content;
}

.about-text h2 {
    text-align: justify;
    text-align-last: left;
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.8;
}

/* معلومات داخلية */
.about-info {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    gap: 20px;
}

.info {
    flex: 1 1 200px;
    max-width: 250px;
    text-align: center;
}

.info h1 {
    color: #2E5077;
    font-size: 60px;
    border-bottom: 4px solid #2E5077;
    margin-bottom: 10px;
    font-weight: 600;
}

.info h3 {
    font-size: 16px;
}

/* تصميم متجاوب */
@media (max-width: 1024px) {
    .about-container {
        flex-direction: column;
    }

    .about-img,
    .about-text {
        width: 100%;
        text-align: center;
        align-items: center;
        margin-top: 20px;
    }

    .about-text {
        padding: 10px;
    }

    .about-text h2 {
        text-align: justify;
        text-align-last: left;
    }
    .about-info{
      justify-content: center;
    }
}



.fullscreen-slider2 {
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.fs-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: auto;
}

.fs-slide {
    min-width: 100%;
    display: flex;
    flex-direction: row-reverse;
    /* background: #fff; */
    flex-wrap: wrap;
}

.fs-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    height: 529px;
    border-radius: 25px;
    border: 3px solid #2E5077;
}

.fs-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* background: #fff; */
    text-align: left;
}

.fs-title {
    color: #2E5077;
    margin-bottom: 25px;
    font-size: 32px;
}

.fs-desc {
    line-height: 1.8;
    color: #444;
    font-size: 18px;
    margin-bottom: 35px;
}

.fs-list {
    list-style: none;
    padding: 0;
}
.fs-list .test-more{
    background-color: #2E5077;
}
.fs-list .test-more a{
    color: #fff;
}
.fs-list .test-more:hover{
    background-color: #243f5e;
}



.fs-item {
    padding: 15px;
    margin: 10px 0;
    background: #fff;
    border-radius: 8px;
    position: relative;
    padding-right: 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s;
    font-size: 16px;
}

.fs-item:hover {
    background: #e9f5ff;
    transform: translateX(-5px);
}



/* .fs-item::before {
    content: "•";
    color: #2E5077;
    position: absolute;
    right: 15px;
    font-size: 24px;
} */

/* مؤشر الشريحة */
.fs-indicator {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2E5077;
    padding: 15px 17px;
    display: flex;
    justify-content: center;
    gap: 20px;
    height: auto;
    align-items: center;
    border-radius: 25px;
    text-transform: capitalize;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.fs-tab {
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    background: rgba(255,255,255,0.2);
    min-width: 120px;
    text-align: center;
    text-transform: lowercase;
}

.fs-tab.active {
    background: white;
    color: #2E5077;
    font-weight: bold;
    transform: scale(1.05);
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .fs-slide {
        flex-direction: column;
    }

    .fs-image {
        display: none;
    }

    .fs-content {
        padding: 20px;
    }

    .fs-title {
        font-size: 22px;
    }

    .fs-desc {
        font-size: 15px;
    }

    .fs-tab {
        min-width: 90px;
        font-size: 14px;
        padding: 8px 14px;
    }

    .fs-item {
        font-size: 14px;
        padding: 10px;
    }
}


.full-result {
    width: 100%;
    margin-top: 100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    direction: rtl;
}

/* القسم النصي */
.caption-result {
    flex: 1 1 400px;
    max-width: 600px;
    text-align: right;
}

.caption-result h1 {
    color: #2E5077;
    font-size: 36px;
    margin-bottom: 15px;
}

.caption-result h2 {
    text-align: justify;
    text-align-last: right;
    line-height: 1.8;
    font-size: 16px;
}

.result-btn {
    margin-top: 30px;
    padding: 10px 25px;
    font-size: 16px;
    background-color: #2E5077;
    color: white;
    border: none;
    border-radius: 14px;
    cursor: not-allowed;
}

/* البطاقات */
.action-result {
    flex: 1 1 400px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* بطاقة رئيسية */
.userguide {
    width: 100%;
    max-width: 542px;
    height: 247.23px;
    background-image: url(img/Frame-8.png);
    background-size: cover;
    /* background-position: center; */
    padding: 45px 30px;
    color: #fff;
    text-align: right;
    border-radius: 15px;
}

.userguide h1 span {
    color: #9D9D9D;
}

.userguide a {
    display: inline-block;
    margin-top: 15px;
    color: #fff;
    border: 2px solid #fff;
    padding: 5px 25px;
    border-radius: 14px;
    text-decoration: none;
}

/* بطاقتان جانبيتان */
.fix-result,
.use-result {
    width: 250px;
    height: 250px;
    background-size: cover;
    /* background-position: center; */
    padding: 15px 15px 0 31px;
    color: #fff;
    text-align: right;
    border-radius: 15px;
    position: relative;
}

.fix-result {
    background-image: url(img/Group-9.png);
}

.use-result {
    background-image: url(img/Group-8.png);
}

.fix-result h3 span,
.use-result h3 span {
    color: #9D9D9D;
}

.fix-result a,
.use-result a {
    color: #fff;
    border: 2px solid;
    padding: 5px 25px;
    border-radius: 14px;
    text-decoration: none;
    position: absolute;
    bottom: 15px;
    right: 15px;
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .full-result {
        flex-direction: column;
        align-items: center;
    }

    .caption-result,
    .action-result {
        width: 90%;
    }

    .caption-result h1 {
        font-size: 28px;
    }

    .caption-result h2 {
        font-size: 15px;
    }

    .userguide {
        height: auto;
        background-position: center;
        padding: 30px 20px;
        font-size: 13px;
    }

    .fix-result,
    .use-result {
        width: 100%;
        max-width: 350px;
    }
}


.home-service {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  direction: rtl;
  padding: 40px 20px;
  gap: 20px;
  /* background-color: #f8f8f8; */
}

/* صورة الطبيب */
.img-hs {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
}
.img-hs img {
  width: 100%;
  max-width: 450px;
  height: auto;
}

/* النص */
.cap-hs {
  flex: 1 1 400px;
  text-align: left;
}
.cap-hs h1 {
  color: #2E5077;
  font-size: 36px;
  margin-bottom: 15px;
}
.cap-hs h2 {
  text-align: justify;
  text-align-last: left;
  line-height: 1.8;
  font-size: 16px;
  color: #333;
  padding-bottom: 45px;
}
.cap-hs h2 span {
  color: #2E5077;
  font-weight: bold;
}
.cap-hs a{
    background-color: #2E5077;
    color: #e9f5ff;
    padding: 10px 20px;
    border-radius: 20px;
    margin-top: 20px;
}

/* جدول الخدمة */
.img-service-time {
  width: 100%;
  min-height: 180px;
  background-image: url(img/Group21.png);
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  text-align: center;
}
.img-service-time h2 {
  margin-top: 15px;
  font-size: 27px;
}
.img-service-time h2 span {
  font-size: 48px;
  color: #ffffff;
}

/* ✅ Responsive */
@media (max-width: 768px) {
  .home-service {
    flex-direction: column;
    padding: 20px 10px;
  }

  .cap-hs h1 {
    font-size: 28px;
  }

  .cap-hs h2 {
    font-size: 14px;
  }

  .img-service-time h2 {
    font-size: 18px;
    margin-top: 30px;
  }

  .img-service-time h2 span {
    font-size: 36px;
  }
  .cap-hs {
    flex: 1 1 280px;
}
}

.doctors {
  width: 100%;
  text-align: right;
  padding: 25px;
  direction: rtl;
  /* background-color: #f9f9f9; */
}

.doctors h1 {
  color: #2E5077;
  font-size: 40px;
  margin-bottom: 10px;
}
.doctor-caption{
  text-align: left;
}
.doctor-caption h2 {
  text-align: justify;
  text-align-last: left;
  line-height: 1.8;
  font-size: 16px;
  color: #444;
  margin-bottom: 30px;
}

.doctor-slider {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  flex-direction: row-reverse;
}

.doctor-card {
  width: 350px;
  height: auto;
  border-radius: 20px;
  background-color: #223c5a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease;
}
.doctors a{
    background-color: #2E5077;
  color: #fff;
  padding: 12px 25px;
  border-radius: 25px;
  border: 3px solid #2E5077;
  font-weight: 800;
  width: fit-content;
  transition: background-color 0.4s ease, color 0.4s ease;
  text-decoration: none;
}
.doctors a:hover {
  background-color: #fff;
  color: #2E5077;
}
.doctor-card:hover {
  transform: translateY(-5px);
}

/* .doctor-card .img-card1,
.doctor-card .img-card2,
.doctor-card .img-card3,
.doctor-card .img-card4 {
  width: 100%;
  height: 50%;
  background-size: cover;
  background-position: center;
  border-radius: 20px 20px 0 0;
  border-bottom: 3px solid #333;
} */

/* صور الأطباء */
.img-card1 {
  background-image: url(img/2149404749.jpg);
}
.img-card2 {
  background-image: url(img/freepik__the-style-is-candid-image-photography-with-natural__79932.jpeg);
}
.img-card3 {
  background-image: url(img/6565.jpg);
}
.img-card4 {
  background-image: url(img/4545.jpg);
}

.caption {
  color: #ecf0f1;
  padding: 15px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.caption h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.caption h4 {
  font-size: 15px;
  color: #ccc;
}

/* تصميم متجاوب */
@media (max-width: 768px) {
  .doctors h1 {
    font-size: 30px;
  }

  .doctor-card {
    width: 90%;
    max-width: 320px;
  }

  .caption h3 {
    font-size: 18px;
  }

  .caption h4 {
    font-size: 14px;
  }
}

.location-lab {
  width: 100%;
  min-height: 80vh;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  padding: 20px 40px;
  gap: 30px;
  box-sizing: border-box;
}

/* تحسين iframe ليصبح مرن */
.location-lab iframe {
  flex: 1 1 400px;
  max-width: 100%;
  height: 400px;
  border-radius: 20px;
  border: 4px solid #2E5077;
  box-sizing: border-box;
}

/* النص */
.location-caption {
flex: 1 1 400px;
    text-align: left;
    color: #000;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.location-caption h1 {
  color: #2E5077;
  margin-bottom: 10px;
  font-size: 36px;
}

.location-caption h2 {
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.5;
  text-align: right;
}

.location-caption h3 {
  color: #9D9D9D;
  margin-bottom: 25px;
  font-size: 20px;
}

.location-caption a {
  background-color: #2E5077;
  color: #fff;
  padding: 12px 25px;
  border-radius: 25px;
  border: 3px solid #2E5077;
  font-weight: 800;
  width: fit-content;
  transition: background-color 0.4s ease, color 0.4s ease;
  text-decoration: none;
}

.location-caption a:hover {
  background-color: #fff;
  color: #2E5077;
}

/* خاصية الارتفاع للجزء النصي */
.l-cap {
  /* أزلت الارتفاع المحدد ليكون مرن */
  margin-bottom: 20px;
}

/* responsive للهواتف */
@media (max-width: 768px) {
  .location-lab {
    flex-direction: column;
    min-height: auto;
    padding: 20px 15px;
  }
  .location-caption, 
  .location-lab iframe {
    flex: 1 1 100%;
    height: 300px;
    max-width: 100%;
  }
  .location-caption h1 {
    font-size: 28px;
  }
  .location-caption h2 {
    font-size: 16px;
  }
  .location-caption h3 {
    font-size: 16px;
  }
  .location-caption a {
    padding: 10px 20px;
    font-size: 16px;
  }
}

footer {
  width: 100%;
  min-height: 25vh;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  background-color: #2E5077;
  padding: 20px 30px;
  border-radius: 20px;
  margin-bottom: 20px;
  box-sizing: border-box;
  gap: 20px;
  color: #fff;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

footer .deatils {
  text-align: right;
  flex: 1 1 250px;
}

footer .deatils h1 {
  font-size: 25px;
  margin-bottom: 5px;
  color: #f1f1f1;
}

footer .deatils h2 {
  font-size: 18px;
  color: #9D9D9D;
  font-weight: 500;
}

footer .contact {
  flex: 1 1 200px;
}

footer .contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

footer .contact ul li {
  color: #fff;
  margin: 8px 0;
  font-size: 16px;
}

footer .sections {
  flex: 1 1 300px;
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

footer .sections a {
  color: #fff;
  padding: 8px 15px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border-radius: 8px;
  transition: color 0.4s ease;
}

footer .sections a:hover {
  color: #adadad;
  transition: ease 0.4s;
}

/* Responsive for smaller devices */
@media (max-width: 768px) {
  footer {
    flex-direction: column;
    min-height: auto;
    padding: 20px 15px;
    text-align: center;
  }
  footer .deatils, footer .contact, footer .sections {
    flex: 1 1 100%;
    margin-bottom: 20px;
  }
  footer .deatils h1 {
    font-size: 22px;
  }
  footer .deatils h2 {
    font-size: 16px;
  }
  footer .contact ul li {
    font-size: 14px;
  }
  footer .sections a {
    font-size: 14px;
    padding: 6px 10px;
  }
}
