/* ==== إعدادات عامة ==== */
:root {
  --main-color: #0070cd; /* اللون الرئيسي */
  --secondary-color: #f5f5f5; /* لون ثانوي فاتح */
  --accent-color: #ff6b6b; /* لون تمييز */
  --text-color: #333; /* لون النص الأساسي */
  --light-text: #777; /* لون نص فاتح */
  --border-color: #ddd; /* لون الحدود */
  --shadow-color: rgba(0, 0, 0, 0.1); /* لون الظلال */
}

/* تهيئة أساسية للصفحة */
body {
  margin: 0;
  padding: 0;
  font-family: "Cairo", sans-serif;
  direction: rtl;
  background-color: #f9f9f9;
  color: var(--text-color);
  line-height: 1.6;
}

/* ==== الهيدر ==== */

/* Header */
.header {
  background-color: var(--main-color);
  padding: 15px 0;
  color: white;
  box-shadow: 0 2px 10px var(--shadow-color);
  position: relative;
  z-index: 1000;
}

.main-logo {
  height: 40px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
  padding: 5px 10px;
}

.nav-links a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Side Menu */
.side-menu {
  position: fixed;
  top: 0;
  right: -100%; /* خارج الشاشة */
  width: 250px;
  height: 100vh;
  background-color: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: right 0.3s ease-in-out;
  padding: 20px 15px;
  direction: rtl;
}

.side-menu.open {
  right: 0; /* لما يتفتح */
}

.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-menu li {
  padding: 10px 0;
  font-size: 16px;
  border-bottom: 1px solid #eee;
}

.side-menu li i {
  margin-left: 8px;
}

/* الزر الخاص بالقائمة */
#menu-toggle {
  background: none;
  border: none;
}

.overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.3); /* شفاف */
  z-index: 999; /* أقل من side-menu */
  display: none;
}

/* لما يفتح السايد منيو */
.overlay.show {
  display: block;
}

/* Responsive */
@media (min-width: 768px) {
  .side-menu {
    display: none !important;
  }
}

/* Dropdown styles */
.dropdown-toggle {
  display: flex;
  align-items: center;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  color: white !important;
  font-size: 14px;
}

.dropdown-toggle::after {
  margin-right: 0.5em;
  margin-left: 0;
}

.dropdown-menu {
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px var(--shadow-color);
  min-width: 180px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 14px;
}

.flag {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  margin-left: 8px;
}

.join-btn {
  background-color: white;
  color: var(--main-color);
  font-weight: bold;
  padding: 6px 20px;
  border-radius: 4px;
  border: none;
  font-size: 14px;
  transition: all 0.3s;
}

.join-btn:hover {
  background-color: #f0f0f0;
}

/* ==== القائمة الجانبية (Side Menu) ==== */
.side-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background-color: var(--main-color);
  color: white;
  padding: 20px 0;
  transition: right 0.3s ease;
  z-index: 2000;
  overflow-y: auto;
}

.side-menu.open {
  right: 0;
}

.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-menu ul li {
  padding: 15px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.side-menu ul li:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.side-menu ul li i {
  font-size: 18px;
}

/* ==== الهيرو سكشن (Hero Section) ==== */
.hero-section {
  background-image: url(https://d1aovdz1i2nnak.cloudfront.net/vezeeta-web-reactjs/jenkins-18/images/search-header-background.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: #ececec;
  padding: 30px 0 20px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-text h2 {
  font-size: 24px;
  font-weight: bold;
  color: #4a4a4a;
}

.hero-text p {
  margin: 5px 0;
  font-size: 16px;
  color: #666;
}

.call-number {
  color: red;
  font-weight: bold;
  font-size: 18px;
}

/* ==== الفورم داخل الهيرو ==== */
.hero-form {
  background-color: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow-color);
  margin-top: 20px;
}

.hero-form .form-control {
  height: 48px;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin-bottom: 10px;
}

.hero-form .btn {
  height: 48px;
  font-weight: bold;
  font-size: 16px;
  border-radius: 8px;
  background-color: var(--accent-color);
  border: none;
  transition: all 0.3s;
}

.hero-form .btn:hover {
  background-color: #e05555;
}

/* ==== كارت الدكتور ==== */
.doctor-card {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px var(--shadow-color);
  text-align: right;
}

.doctor-header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 15px;
}

.doctor-img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--secondary-color);
  box-shadow: 0 2px 8px var(--shadow-color);
}

.doctor-info {
  flex: 1;
}

.doctor-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 5px 0;
}

.doctor-specialty {
  font-size: 17px;
  color: var(--light-text);
  margin-bottom: 12px;
}

.doctor-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 10px;
}

.specialties {
  color: var(--main-color);
  font-weight: 500;
}

.rating-stars {
  color: #ffc107;
  font-size: 18px;
  margin: 10px 0;
  letter-spacing: 2px;
}

.review-count {
  font-size: 14px;
  color: var(--light-text);
}

.show-reviews {
  color: var(--main-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.show-reviews:hover {
  text-decoration: underline;
}

/* صندوق التقييم داخل كارت الدكتور */
.review-box {
  background-color: #fafafa;
  border-radius: 8px;
  padding: 18px;
  margin-top: 20px;
  border-left: 4px solid var(--main-color);
}

.review-text {
  font-style: italic;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--text-color);
  line-height: 1.6;
}

.review-author {
  font-size: 14px;
  color: var(--light-text);
}

.badge-item {
  display: inline-flex;
  align-items: center;
  background-color: #e0e0e0;
  color: black;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  margin-top: 15px;
  margin-left: 10px;
}

.badge-item img {
  width: 20px;
  margin-left: 8px;
}

/* ==== تبويبات (معلومات - خدمات - صور العيادة) ==== */
.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  color: var(--text-color);
}

.section-title i {
  margin-left: 12px;
  color: var(--main-color);
  font-size: 22px;
}

.time-slot {
  display: inline-block;
  padding: 8px 16px;
  margin: 6px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
  background-color: white;
}

.time-slot:hover,
.time-slot.active {
  background-color: var(--main-color);
  color: white;
  border-color: var(--main-color);
  transform: translateY(-2px);
}

.clinic-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 15px var(--shadow-color);
  border: 1px solid var(--border-color);
  margin-top: 25px;
}

.clinic-images {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.clinic-img {
  width: calc(33.333% - 8px);
  border-radius: 8px;
  height: 110px;
  object-fit: cover;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 6px var(--shadow-color);
}

.clinic-img:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.clinic-features {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 18px;
}

.feature-badge {
  display: flex;
  align-items: center;
  background-color: var(--secondary-color);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  transition: all 0.3s;
}

.feature-badge:hover {
  background-color: #e0e0e0;
}

.feature-badge i {
  margin-left: 8px;
  color: var(--main-color);
  font-size: 16px;
}

/* ==== نموذج الحجز ==== */
.booking-section {
  background: white;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 4px 15px var(--shadow-color);
  border: 1px solid var(--border-color);
  margin-bottom: 25px;
  overflow: hidden;
}

.booking-header {
  background-color: var(--main-color);
  color: white;
  padding: 18px 20px;
  border-radius: 12px 12px 0 0;
  text-align: center;
}

.booking-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 5px;
}

.booking-type {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
}

.booking-features {
  display: flex;
  justify-content: space-around;
  padding: 20px 15px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.feature-item {
  text-align: center;
  padding: 0 15px;
  margin: 10px 0;
  min-width: 120px;
}

.feature-icon {
  font-size: 26px;
  color: var(--main-color);
  margin-bottom: 8px;
}

.feature-text {
  font-size: 14px;
  color: var(--text-color);
  line-height: 1.5;
}

.booking-address {
  padding: 18px 25px;
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  background-color: #fcfcfc;
}

.time-slots {
  padding: 20px;
}

.time-slot-day {
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-color);
  font-size: 16px;
  text-align: center;
}

.book-btn {
  background-color: var(--main-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  width: 100%;
  margin-top: 15px;
  transition: all 0.3s;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 112, 205, 0.3);
}

.book-btn:hover {
  background-color: #005fa3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 112, 205, 0.4);
}

/* ==== كارت التقييمات (Reviews Cards) ==== */
.review-card {
  background-color: white;
  border: 1px solid var(--border-color);
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  box-shadow: 0 2px 8px var(--shadow-color);
  border-radius: 10px;
  transition: all 0.3s;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.review-content {
  flex: 1;
  margin-left: 20px;
}

.rating-box {
  text-align: center;
  background-color: var(--main-color);
  color: white;
  font-size: 22px;
  font-weight: bold;
  padding: 12px 15px;
  border-radius: 10px;
  min-width: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.rating-box span {
  display: block;
  font-size: 14px;
  margin-top: 5px;
  font-weight: normal;
}

.stars {
  color: gold;
  font-size: 20px;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.review-title {
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 16px;
  color: var(--text-color);
}

.review-text {
  margin: 12px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-color);
}

.review-footer {
  font-size: 14px;
  color: var(--light-text);
  display: flex;
  flex-wrap: wrap;
}

.review-footer span {
  display: inline-block;
  margin-left: 15px;
}

.more {
  color: var(--main-color);
  cursor: pointer;
  width: 100%;
  text-align: center;
  font-size: 16px;
  margin-top: 25px;
  font-weight: 600;
  padding: 10px;
  border-radius: 8px;
  transition: all 0.3s;
}

.more:hover {
  background-color: #f0f7ff;
}

.review-card.hidden {
  display: none;
}

/* ==== Footer ==== */
/* footer {
  background-color: #f8f9fa;
  padding: 40px 0;
  margin-top: 50px;
  border-top: 1px solid var(--border-color);
}

footer h5 {
  color: var(--main-color);
  margin-bottom: 20px;
  font-weight: 700;
}

footer ul li {
  margin-bottom: 10px;
}

footer a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover { 
  color: var(--main-color);
}

.social-icons a {
  display: inline-block;
  width: 36px;
  height: 36px;
  background-color: var(--main-color);
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 36px;
  margin-left: 10px;
  transition: all 0.3s;
}

.social-icons a:hover {
  background-color: #005fa3;
  transform: translateY(-3px);
}
  */
/* ===================================== */
.footer {
  background-color: #0070cd;
  color: white;
  padding: 20px;
}

.footer-section img {
  padding-top: 5px;
  padding-bottom: 5px;
}

.container-fluid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.footer-section {
  flex: 1 1 200px;
  min-width: 180px;
}

.footer-section h3 {
  margin-bottom: 15px;
  font-size: 20px;
}

.footer-section ul {
  list-style: none;
  text-align: right;
  padding-left: 0;
}

.footer-section ul li {
  margin: 5px 0;
}

.footer-section a {
  text-decoration: none;
  color: white;
}

.footer-section a:hover {
  color: #003366;
}

.footer-section p {
  margin: 5px;
}

.app,
.icons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.icons {
  font-size: 24px;
}

.icons a {
  padding: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .container-fluid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-section {
    width: 100%;
    margin-bottom: 20px;
  }

  .app,
  .icons {
    align-items: center;
  }
}

/* ======================================== */
/* ==== التجاوب ==== */
@media (max-width: 1200px) {
  .doctor-img {
    width: 120px;
    height: 120px;
  }

  .feature-item {
    min-width: 100px;
  }
}

@media (max-width: 992px) {
  .doctor-img {
    width: 110px;
    height: 110px;
  }

  .doctor-name {
    font-size: 22px;
  }

  .feature-item {
    min-width: 80px;
    padding: 0 10px;
  }
}

@media (max-width: 768px) {
  .booking-features {
    flex-direction: column;
    gap: 15px;
  }

  .feature-item {
    min-width: 100%;
    padding: 0;
  }

  .clinic-img {
    width: calc(50% - 6px);
  }

  .review-card {
    flex-direction: column;
  }

  .rating-box {
    margin-bottom: 15px;
    align-self: center;
  }

  .review-content {
    margin-left: 0;
  }
}

@media (max-width: 576px) {
  .doctor-header {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .doctor-img {
    margin-bottom: 20px;
  }

  .clinic-img {
    width: 100%;
  }

  .hero-text h2 {
    font-size: 24px;
  }

  .section-title {
    font-size: 18px;
  }

  footer .col-md-4 {
    margin-bottom: 30px;
  }
}
