/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0f766e;
  --primary-dark: #0d5e56;
  --secondary: #0f766e;
  --offers: #ff6b6b;
  --bg-light: #f8fafc;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --white: #ffffff;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
}

body {
  font-family: "Tajawal", Arial, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--white);
  box-shadow: var(--shadow);
}

/* ترتيب شريط التنقل باستخدام Flexbox */
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

/* ===== Logo Responsive Scaling ===== */
.logo img {
  height: clamp(60px, 8vw, 100px); /* يتغير حسب عرض الشاشة */
  width: auto;
  transition: transform 0.3s ease; /* حركة ناعمة */
  transition: height 0.3s ease, transform 0.3s ease;
  transform: scale(1);
}
.logo img:hover {
  transform: scale(1.3); /* تكبير بنسبة 30% */
}

/* عند التمرير نصغّر اللوغو تدريجياً */
.navbar.scrolled .logo img {
  height: clamp(50px, 7vw, 90px);
  transform: scale(0.95);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-offers {
  background: linear-gradient(135deg, var(--offers), #ff8787);
  color: white;
}

.btn-offers:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--text-dark);
  transition: all 0.3s;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 80px);
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: right 0.4s ease;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .nav-links.mobile-active {
    right: 0;
  }

  .nav-actions {
    display: none;
  }
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image-slider {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 400px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-image-slider {
    height: 300px;
  }
}

/* ===== Services ===== */
.services {
  padding: 80px 0;
  background: var(--white);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 3rem;
}

.services-carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.services-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  padding: 10px 20px;
  cursor: grab;
}

.services-carousel:active {
  cursor: grabbing;
}

.services-carousel::-webkit-scrollbar {
  display: none;
}

.service-slide {
  min-width: 280px;
  background: var(--bg-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.service-slide:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 35px rgba(15, 118, 110, 0.2);
}

.service-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s;
}

.service-slide:hover img {
  transform: scale(1.1);
}

.service-slide h3 {
  padding: 1.2rem 1.2rem 0.5rem;
  font-size: 1.4rem;
  color: var(--primary);
}

.service-slide p {
  padding: 0 1.2rem 1.5rem;
  color: var(--text-muted);
  font-size: 1rem;
}

@media (max-width: 768px) {
  .services-carousel {
    gap: 1rem;
    padding: 10px 15px;
  }

  .service-slide {
    min-width: 260px;
  }
}

/* ===== Stats ===== */
.stats {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ===== Doctors ===== */
.doctors {
  padding: 80px 0;
  background: var(--bg-light);
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.doctor-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.doctor-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.doctor-image {
  height: 280px;
  overflow: hidden;
}

.doctor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.doctor-card:hover .doctor-image img {
  transform: scale(1.1);
}

.doctor-card h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  font-size: 1.5rem;
  color: var(--primary);
}

.doctor-card .specialty {
  padding: 0 1.5rem 0.5rem;
  color: var(--secondary);
  font-weight: 600;
}

.doctor-card .bio {
  padding: 0 1.5rem 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.doctor-card .location,
.doctor-card .hours {
  padding: 0.3rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.doctor-card .location i,
.doctor-card .hours i {
  margin-left: 0.5rem;
  color: var(--primary);
}

/* ===== Testimonials - محسّن للموبايل ===== */
.testimonials {
  padding: 60px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e8f4f8 100%);
}

.testimonials-slider-wrapper {
  position: relative;
  max-width: 900px;
  margin: 30px auto 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  background: white;
}

.testimonials-slider {
  position: relative;
  width: 100%;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.5s ease-in-out;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-item.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
}

.testimonial-image {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: contain;
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 118, 110, 0.9);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slider-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev-btn {
  right: 10px;
}

.slider-btn.next-btn {
  left: 10px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px 0;
  background: white;
  border-radius: 0 0 16px 16px;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dots .dot.active {
  background: var(--primary);
  width: 26px;
  border-radius: 5px;
}

.slider-dots .dot:hover {
  background: var(--primary);
  transform: scale(1.15);
}

/* تحسين للموبايل - حل الفراغ الأبيض */
@media (max-width: 768px) {
  .testimonials {
    padding: 40px 0;
  }

  .testimonials-slider-wrapper {
    max-width: 95%;
    margin: 20px auto 0;
  }

  .testimonials-slider {
    min-height: auto;
    max-height: 400px;
  }

  .testimonial-item {
    position: relative;
    display: none;
    height: auto;
  }

  .testimonial-item.active {
    display: flex;
  }

  .testimonial-image {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
  }

  .slider-btn {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .slider-dots {
    padding: 15px 0;
  }
}

@media (max-width: 480px) {
  .testimonials-slider {
    max-height: 350px;
  }

  .testimonial-image {
    max-height: 350px;
  }

  .slider-btn {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
}

/* ===== Booking ===== */
.booking {
  padding: 80px 0;
  background: var(--white);
}

.booking-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-light);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.booking-form textarea {
  resize: vertical;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .booking-form {
    padding: 2rem 1.5rem;
  }
}

/* ===== Contact ===== */
/* ===== Contact ===== */
.contact {
  padding: 80px 0;
  background: var(--bg-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-item {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.contact-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
}

.contact-item h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.contact-item p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.contact-item a {
  color: var(--primary);
  transition: color 0.3s;
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--primary-dark);
}

/* روابط السوشيال ميديا */
.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.social-links a {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--primary-dark);
  transform: scale(1.15);
}

/* كرت الموقع - تصميم خاص */
.contact-location .map-preview {
  display: block;
  padding: 1.2rem;
  background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
  border-radius: 12px;
  transition: all 0.3s;
  text-decoration: none;
}

.contact-location .map-preview:hover {
  background: linear-gradient(135deg, #b2dfdb 0%, #80cbc4 100%);
  transform: scale(1.05);
}

.map-icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.map-icon-wrapper i {
  font-size: 3rem;
  color: var(--primary);
}

.map-icon-wrapper span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 968px) {
  .contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
  }

  .contact-item {
    padding: 2rem;
  }
}

@media (max-width: 580px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Footer ===== */
/* ===== Footer ===== */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h4 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.footer ul {
  list-style: none;
}

.footer a {
  color: #cbd5e1;
  transition: color 0.3s;
}

.footer a:hover {
  color: var(--secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #334155;
  color: #94a3b8;
}

/* ===== Responsive - محسّن للوغو الكبير ===== */
@media (max-width: 1024px) {
  .logo img {
    height: 95px; /* تصغير متوسط للتابلت */
  }

  .navbar.scrolled .logo img {
    height: 80px;
  }
}

@media (max-width: 768px) {
  .logo img {
    height: 80px; /* مناسب للموبايل */
  }

  .navbar.scrolled .logo img {
    height: 70px;
  }

  .nav-links {
    position: fixed;
    top: calc(clamp(60px, 8vw, 100px) + 20px);
    right: -100%;
    background: var(--white);
    flex-direction: column;
    width: 100%;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: right 0.3s;
    z-index: 998;
  }

  .nav-links.mobile-active {
    right: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-actions {
    flex-direction: row;
    gap: 0.5rem;
  }

  .nav-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-image-slider {
    height: 300px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .carousel-btn.prev {
    right: 10px;
  }
  .carousel-btn.next {
    left: 10px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .doctors-grid {
    grid-template-columns: 1fr;
  }

  .services-carousel-wrapper {
    padding: 0 40px;
  }

  .whatsapp-float {
    bottom: 20px;
    left: 20px;
    width: 55px;
    height: 55px;
    font-size: 28px;
  }

  .contact-icon {
    width: 70px;
    height: 70px;
  }

  .contact-icon i {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 70px; /* تصغير أكبر للشاشات الصغيرة جداً */
  }

  .navbar.scrolled .logo img {
    height: 60px;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .btn-lg {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }

  .doctor-photo {
    height: 220px;
  }

  .hero-image-slider {
    height: 250px;
  }
}

/* ===== WhatsApp Floating Button ===== */
/* ===== WhatsApp Floating Button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: #25d366;
  color: white;
  width: 72px; /* كان 60px */
  height: 72px; /* كان 60px */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px; /* كان 32px */
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* ====== زر عروض بالفوتر ====== */
.footer-offer-link {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  margin-top: 0.4rem;
  border-radius: 999px;
  font-weight: 700;
  color: #0f766e;
  background: linear-gradient(
    180deg,
    rgba(15, 118, 110, 0.1),
    rgba(15, 118, 110, 0.03)
  );
  border: 1px solid rgba(15, 118, 110, 0.3);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.2);
  text-decoration: none;
  transition: all 0.25s ease;
}
.footer-offer-link:hover {
  background: rgba(15, 118, 110, 0.15);
  color: #064e3b;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.25);
}
@media (prefers-reduced-motion: no-preference) {
  .footer-offer-link {
    animation: footerPulse 2.4s ease-in-out infinite;
  }
  @keyframes footerPulse {
    0%,
    100% {
      box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.2),
        0 0 0 0 rgba(15, 118, 110, 0.15);
    }
    50% {
      box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.2),
        0 0 0 8px rgba(15, 118, 110, 0);
    }
  }
}

/* ===== Loading ===== */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.loading i {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
}
/* ===== Contact Section - محسّن ===== */
.contact {
  padding: 80px 0;
  background: var(--bg-light);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-item h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.contact-item p {
  color: var(--text-muted);
  line-height: 1.8;
}

.contact-item a {
  color: var(--primary);
  font-weight: 600;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-item a:hover {
  color: var(--primary-dark);
}

.btn-map {
  margin-top: 1rem;
  display: inline-flex;
}

/* خريطة Google Maps */
.contact-map {
  position: relative;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 450px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.map-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

@media (max-width: 968px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-map iframe {
    min-height: 350px;
  }
}

/* ===== Footer - محسّن ===== */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--secondary);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--secondary);
  transform: translateX(-5px);
}

.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-contact li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-contact i {
  color: var(--secondary);
  font-size: 1.1rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}

.footer-contact a:hover {
  color: var(--secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
/* خريطة صغيرة داخل الكرت */
.mini-map {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s;
}

.mini-map:hover {
  transform: scale(1.03);
}

.mini-map iframe {
  display: block;
  width: 100%;
}

.map-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15, 118, 110, 0.95), transparent);
  padding: 0.8rem;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.mini-map:hover .map-overlay {
  opacity: 1;
}

/* تحسين أيقونات السوشال ميديا */
.social-links {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin-top: 1.2rem;
}

.social-links a {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
}

.social-links a:hover {
  background: linear-gradient(135deg, var(--primary-dark), #0a504a);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.4);
}

/* تأثيرات خاصة لكل منصة */
.social-links a:nth-child(1):hover {
  background: linear-gradient(135deg, #e1306c, #c13584);
}

.social-links a:nth-child(2):hover {
  background: linear-gradient(135deg, #fffc00, #fdce00);
}

.social-links a:nth-child(3):hover {
  background: linear-gradient(135deg, #000000, #2b2b2b);
}

/* أزرار CTA داخل قائمة الموبايل */
.nav-actions-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.5rem;
}
.nav-actions-mobile .btn {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 0.9rem 1rem;
}
/* أزرار أسهم كَاروسيل الخدمات */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 118, 110, 0.95);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 5;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}
.carousel-arrow:hover {
  transform: translateY(-50%) scale(1.08);
  background: #0d5e56;
}
.services-carousel-wrapper {
  position: relative;
}

/* مواقع الأسهم */
.prev-service {
  left: 8px;
}
.next-service {
  right: 8px;
}

/* أقنعة حواف للتلميح بوجود تمرير */
.services-carousel-wrapper::before,
.services-carousel-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  pointer-events: none;
  z-index: 4;
}
.services-carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #fff, transparent);
}
.services-carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #fff, transparent);
}

/* في الثيم الفاتح داخل قسم الخدمات (خلفية بيضاء) */
.services {
  background: var(--white);
}
.services-carousel {
  scroll-snap-type: x mandatory;
}

/* إخفاء الأسهم على الأجهزة التي لا تدعم Hover (اختياري) */
@media (hover: none) {
  .carousel-arrow {
    opacity: 0.9;
  } /* أو ضع display:none; حسب تفضيلك */
}

/* تحسين وصول لوحة المفاتيح */
.services-carousel:focus {
  outline: 2px dashed var(--primary);
  outline-offset: 6px;
}
/* ===== Hero - صورة ثابتة شفافة ===== */
.hero-image-static {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 400px;
}

.hero-image-static img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* طبقة شفافية فوق الصورة */
.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(224, 242, 241, 0.4); /* اللون الأخضر الفاتح بشفافية 40% */
  pointer-events: none; /* عشان ما تعطل التفاعل */
}

/* للموبايل */
@media (max-width: 768px) {
  .hero-image-static {
    height: 300px;
  }
}

/* ===== Hero - صورة خلفية ثابتة بشفافية ===== */

.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* الصورة الخلفية */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* طبقة الشفافية */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(224, 242, 241, 0.85) 0%,
    rgba(178, 223, 219, 0.75) 100%
  );
  z-index: 2;
}

/* محتوى الـ Hero فوق الصورة */
.hero-container {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 80px 0;
}

.hero-text h1 {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* استجابة للموبايل */
@media (max-width: 768px) {
  .hero {
    min-height: 500px;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-container {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 450px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

/* ===== About Page Styles ===== */

/* Hero Section */
.about-hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0f766e, #0d5e56);
}

.about-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.about-hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(15, 118, 110, 0.92) 0%,
    rgba(13, 94, 86, 0.85) 100%
  );
  z-index: 2;
}

.about-hero-container {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 100px 0;
}

.about-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  color: white;
  font-weight: 600;
  margin-bottom: 2rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.about-hero-text h1 {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-weight: 900;
}

.about-hero-subtitle {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 3rem;
  font-weight: 500;
}

.about-hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

.about-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  min-width: 150px;
}

.about-hero-stat .stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: white;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.about-hero-stat .stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Story Section */
.about-story {
  padding: 80px 0;
  background: var(--white);
}

.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #e0f2f1, #b2dfdb);
  color: var(--primary);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.about-story-content h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.about-story-content p {
  font-size: 1.15rem;
  color: var(--text-dark);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.about-highlight-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.about-highlight-item i {
  color: var(--primary);
  font-size: 1.3rem;
}

.about-story-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-story-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.about-story-badge {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: white;
  padding: 1.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about-story-badge i {
  font-size: 2.5rem;
  color: var(--primary);
}

.about-story-badge strong {
  display: block;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.about-story-badge span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Timeline Section */
.about-timeline {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e8f4f8 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  right: 50%;
  transform: translateX(50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 4px 20px rgba(15, 118, 110, 0.3);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.timeline-content {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  flex: 1;
  max-width: 400px;
  transition: transform 0.3s;
}

.timeline-content:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.timeline-year {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.timeline-content h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.timeline-content p {
  color: var(--text-dark);
  line-height: 1.7;
}

/* About Services Section */
.about-services {
  padding: 80px 0;
  background: var(--white);
}

.about-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.about-service-card {
  background: var(--bg-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.about-service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.about-service-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.about-service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.about-service-card:hover .about-service-image img {
  transform: scale(1.1);
}

.about-service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 118, 110, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.about-service-card:hover .about-service-overlay {
  opacity: 1;
}

.about-service-overlay i {
  font-size: 3rem;
  color: white;
}

.about-service-content {
  padding: 1.5rem;
}

.about-service-content h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.about-service-content p {
  color: var(--text-muted);
  line-height: 1.6;
}

.about-services-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Team Section */
.about-team {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e8f4f8 100%);
}

.about-team-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-team-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-team-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-team-text h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.about-team-text p {
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.about-team-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.about-team-features li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.about-team-features li:last-child {
  border-bottom: none;
}

.about-team-features i {
  color: var(--primary);
  font-size: 1.5rem;
}

/* Why Us Section */
.about-why-us {
  padding: 80px 0;
  background: var(--white);
}

.about-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.about-why-card {
  background: var(--bg-light);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.about-why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  background: white;
}

.about-why-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 20px rgba(15, 118, 110, 0.3);
}

.about-why-card h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.about-why-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* CTA Section */
.about-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.about-cta-content {
  text-align: center;
  color: white;
}

.about-cta-icon {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  margin: 0 auto 2rem;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.about-cta-content h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 900;
}

.about-cta-content p {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  opacity: 0.95;
}

.about-cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.about-cta .btn-primary {
  background: white;
  color: var(--primary);
}

.about-cta .btn-primary:hover {
  background: var(--bg-light);
  transform: translateY(-3px);
}

.about-cta .btn-outline {
  border-color: white;
  color: white;
}

.about-cta .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

/* Responsive Design */
@media (max-width: 968px) {
  .about-hero-text h1 {
    font-size: 2.5rem;
  }

  .about-hero-subtitle {
    font-size: 1.2rem;
  }

  .about-hero-stats {
    gap: 1.5rem;
  }

  .about-story-grid,
  .about-team-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .timeline::before {
    right: 20px;
  }

  .timeline-item {
    flex-direction: row !important;
    padding-right: 60px;
  }

  .about-services-grid,
  .about-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-cta-content h2 {
    font-size: 2.2rem;
  }

  .about-cta-content p {
    font-size: 1.1rem;
  }
}

@media (max-width: 640px) {
  .about-hero {
    min-height: 500px;
  }

  .about-hero-text h1 {
    font-size: 2rem;
  }

  .about-hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .about-services-grid,
  .about-why-grid {
    grid-template-columns: 1fr;
  }

  .timeline-content {
    max-width: 100%;
  }

  .about-cta-content h2 {
    font-size: 1.8rem;
  }

  .about-cta-buttons {
    flex-direction: column;
  }
}
