/* ===== Global Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ===== Base Styles ===== */
body {
  font-family: 'Arial', sans-serif;
  direction: rtl;
  margin: 0;
  padding: 0;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* ===== Hero Section ===== */
.hero {
  background: #f5f5f5;
  padding: 60px 0;
}

.hero .container {
  display: flex;                /* أفقي دايمًا */
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 0;
}

.hero .text {
  flex: 1 1 400px;
  margin: 0 20px;
  text-align: right;
}

.hero .text h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.hero .text .subtitle {
  font-size: 24px;
  margin-bottom: 10px;
}

.hero .text p {
  line-height: 1.6;
  margin-bottom: 20px;
}

.hero .image {
  flex: 1 1 300px;
  margin: 0 20px;
}

.hero .image img {
  max-width: 100%;
  height: auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: #28a745;
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 4px;
}

/* ===== Other Sections ===== */
section {
  padding: 60px 0;
}

.about h2,
.services h2,
.contact h2 {
  font-size: 32px;
  margin-bottom: 20px;
  text-align: right;
}

.services ul {
  list-style: disc;
  padding-left: 20px;
  text-align: right;
}

.services li {
  margin-bottom: 10px;
}

.contact p {
  margin-bottom: 10px;
}

.contact .btn {
  display: inline-block;
  background: #25D366;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
}

/* ===== Top Bar ===== */
.topbar {
  background: #000;
  color: #fff;
  font-size: 18px;
}

.topbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.topbar-logo img {
  height: 40px;
  margin: 0;
}

.topbar-social {
  display: flex;
  gap: 12px;
}

.topbar-social a {
  color: #fff;
  font-size: 20px;
  text-decoration: none;
}

.topbar-social a:hover {
  color: #28a745;
}

.topbar-spacer {
  width: 40px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero .container {
    flex-direction: column;      /* عمودي على الموبايل */
  }
  .hero .text,
  .hero .image {
    margin: 20px 0;
    text-align: center;
  }
  .hero .text h1 {
    font-size: 36px;
  }
  .hero .text .subtitle {
    font-size: 20px;
  }

  .topbar .topbar-container {
    flex-direction: column !important;
    align-items: center    !important;
    justify-content: center !important;
    gap: 8px                !important;
    padding: 10px 0         !important;
  }
  .topbar .topbar-logo img {
    height: 36px  !important;
  }
  .topbar .topbar-social {
    order: 2      !important;
    margin: 0     !important;
  }
  .topbar .topbar-spacer {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .topbar-container {
    flex-direction: column;
    gap: 10px;
  }
}

/* ===== Slider Styles ===== */
.services .swiper,
.schedule .swiper {
  margin-top: 30px;
  padding: 20px 0;
}

.services-swiper,
.schedule-swiper {
  width: 100%;
  padding: 0 10px;
}

.services-swiper .swiper-wrapper,
.schedule-swiper .swiper-wrapper {
  align-items: center;
}

.services-swiper .swiper-slide,
.schedule-swiper .swiper-slide {
  text-align: center;
}

.services-swiper .swiper-slide img,
.schedule-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 8px;
}

.services-swiper .swiper-button-next,
.services-swiper .swiper-button-prev,
.schedule-swiper .swiper-button-next,
.schedule-swiper .swiper-button-prev {
  color: #28a745;
  z-index: 10;
}
/* ===== Services Cards ===== */
.services-intro {
  text-align: center;
  color: #666;
  margin-bottom: 20px;
}

.services-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  display: flex;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.service-icon {
  flex: 0 0 80px;
  background: #8b572a;      /* نفس اللون الوردي */
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon i {
  font-size: 28px;
  color: #fff;
}

.service-info {
  padding: 16px;
  text-align: right;
}

.service-info h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #8b572a;           /* لون العنوان وردي */
}

.service-info p {
  margin: 0;
  color: #555;
  line-height: 1.5;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .services-cards {
    grid-template-columns: 1fr;
  }
}
/* ===== Reduce Hero Top/Bottom Padding ===== */
.hero {
  /* بدل 60px 0 خلي 20px 0 */
  padding: 20px 0 !important;
}

.hero .container {
  /* بدل 60px 0 خلي 20px 0 */
  padding: 20px 0 !important;
}
@media (max-width: 768px) {
  .hero, 
  .hero .container {
    padding: 15px 0 !important;
  }
}
/* ===== Spacing Adjustments ===== */

/* Hero: خلي البادينج فوق وتحت 20px بدل 60px */
.hero {
  padding: 20px 0 !important;
}
.hero .container {
  padding: 20px 0 !important;
}

/* الأقسام: خلي البادينج 30px فوق وتحت بدل 60px */
section {
  padding: 30px 0;
}

/* عناوين الأقسام: مسافة تحت أصغر */
section h2 {
  margin-bottom: 10px;
}

/* الفقرات تحت العنوان: مسافة تحت 15px */
section p {
  margin-bottom: 15px;
}

/* الكروت: مسافة بينية أقل */
.services-cards {
  gap: 15px;
}

/* السلايدر: مسافة فوق أسلايدر أصغر */
.services .swiper,
.schedule .swiper {
  margin-top: 20px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  /* على الموبايل: خلي البادينج لكل الأقسام 20px */
  section {
    padding: 20px 0;
  }
  .hero {
    padding: 15px 0 !important;
  }
  .hero .container {
    padding: 15px 0 !important;
  }
}
/* ===== جدول مواعيد الكشف ===== */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.schedule-table th,
.schedule-table td {
  border: 1px solid #ddd;
  padding: 12px 8px;
  text-align: center;
}

.schedule-table th {
  background-color: #25D366; /* لون أخضر زي زر الواتساب */
  color: #fff;
  font-weight: bold;
}

.schedule-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.schedule-table tr:hover {
  background-color: #eefaf4;
}

/* لو عايز تستجيب على الموبايل */
@media (max-width: 600px) {
  .schedule-table,
  .schedule-table thead,
  .schedule-table tbody,
  .schedule-table th,
  .schedule-table td,
  .schedule-table tr {
    display: block;
  }
  .schedule-table thead {
    display: none;
  }
  .schedule-table tr {
    margin-bottom: 16px;
  }
  .schedule-table td {
    text-align: right;
    padding-left: 50%;
    position: relative;
  }
  .schedule-table td:before {
    content: attr(data-label);
    position: absolute;
    left: 8px;
    font-weight: bold;
  }
}
/* ===== Contact Section Professional Style ===== */
.contact {
  background: #f8f9fa;
  padding: 40px 0;
}

.contact h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 30px;
  color: #333;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
}

.contact-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  padding: 20px;
  width: 280px;
  transition: transform .2s, box-shadow .2s;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.contact-icon {
  font-size: 28px;
  color: #ec178c;
  margin-right: 15px;
}

.contact-details h3 {
  margin: 0 0 5px;
  font-size: 18px;
  color: #555;
}

.contact-details p {
  margin: 0;
  color: #666;
  line-height: 1.4;
}

/* ===== Social Icons ===== */
.contact-social {
  text-align: center;
}

.contact-social a {
  display: inline-block;
  margin: 0 10px;
  font-size: 22px;
  color: #333;
  transition: color .2s, transform .2s;
}

.contact-social a:hover {
  color: #ec178c;
  transform: scale(1.1);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .contact-wrapper {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .contact-card {
    width: 100%;
  }
}
/* ===== WhatsApp Floating Button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;               /* حطّه في الجنب اليمين */
  background-color: #25D366; /* لون واتساب الأخضر */
  color: #fff;
  border-radius: 50px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: background-color .2s, transform .2s;
  z-index: 1000;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: translateY(-2px);
}

.whatsapp-float i {
  font-size: 24px;
  margin-right: 8px;
}

.whatsapp-float span {
  font-size: 16px;
  font-weight: bold;
  white-space: nowrap;
}

/* لو عايز يخفي النص على الموبايل ويبقى أيقونة صافية */
@media (max-width: 480px) {
  .whatsapp-float span {
    display: none;
  }
  .whatsapp-float {
    padding: 12px;
    border-radius: 50%;
  }
}
/* ===== About Section (Text Only) ===== */
.about {
  background: #fff;
  padding: 30px 0;
}

.about h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 20px;
  color: #333;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
}

.about-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-size: 18px;
  color: #555;
  line-height: 1.6;
}

.about-list li::before {
  content: "\f058"; /* أيقونة صح */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: #ec178c;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .about-list {
    padding: 0 20px;
  }
  .about-list li {
    padding-left: 28px;
    font-size: 16px;
  }
}
/* ===== Center Info Section ===== */
.center {
  background: #fff;
  padding: 40px 0;
}

.center h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 15px;
  color: #333;
}

.center-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #555;
  line-height: 1.6;
}

.center-services-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
}

/* Grid of service groups */
.center-services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* Individual service card */
.service-group {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  transition: transform .2s, box-shadow .2s;
}

.service-group:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.service-group h4 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #ec178c;
  display: flex;
  align-items: center;
}

.service-group h4 i {
  margin-left: 8px;
  font-size: 24px;
}

.service-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-group ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  color: #555;
  line-height: 1.5;
}

.service-group ul li::before {
  content: "\f058";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: #ec178c;
}

/* Responsive */
@media (max-width: 768px) {
  .center-services {
    grid-template-columns: 1fr;
  }
}
/* ===== Adjust Header Logo Position & Size ===== */
.topbar-logo {
  order: 0;            /* ضع اللوجو أول عنصر في الفلكس */
  margin-left: auto;   /* ادفعه لليمين بأقصى حد */
}

.topbar-social {
  order: 1;            /* الأيقونات بعد اللوجو */
}

.topbar-spacer {
  order: 2;            /* المساحة الفارغة أخيراً */
}

.topbar-logo img {
  height: 60px;        /* زود الارتفاع حسب الحاجة */
  width: auto;         /* حافظ على النسب */
  max-width: 100%;
}
/* ===== Override Pink Accent to Brown (#8b572a) ===== */
:root {
  --accent-color: #8b572a;
}

/* عناوين الأقسام */
.about h2,
.services h2,
.schedule h2,
.contact h2,
.center h2,
.center-services-title {
  color: var(--accent-color) !important;
}

/* العناوين الفرعية داخل الكروت والوحدات */
.service-info h3,
.service-group h4 {
  color: var(--accent-color) !important;
}

/* أيقونات الـbefore في القوائم */
.about-list li::before,
.service-group ul li::before {
  color: var(--accent-color) !important;
}

/* الخلفية الملونة للأيقونات الدائرية */
.service-icon,
.whatsapp-float {
  background-color: var(--accent-color) !important;
}

/* لون الأيقونات الصغيرة في Contact */
.contact-icon {
  color: var(--accent-color) !important;
}

/* أزرار تنقل السلايدر */
.services-swiper .swiper-button-next,
.services-swiper .swiper-button-prev,
.schedule-swiper .swiper-button-next,
.schedule-swiper .swiper-button-prev {
  color: var(--accent-color) !important;
}

/* تأثير hover على أيقونات التواصل الاجتماعي */
.contact-social a:hover {
  color: var(--accent-color) !important;
}
/* ===== Schedule Subtitles ===== */
.schedule-subtitle {
  font-size: 24px;
  margin: 30px 0 10px;
  color: var(--accent-color);
  text-align: right;
}

/* الجدول سبق تنسيقه، لكن يمكن ضبط المسافة بين الجداول */
.schedule-table {
  margin-top: 0;
}
/* ===== Override WhatsApp Button to Always Green ===== */
.whatsapp-float {
  background-color: #25D366 !important;  /* أخضر واتساب */
  color: #fff !important;                /* أيقونة ونص أبيض */
}

.whatsapp-float:hover {
  background-color: #128C7E !important;  /* أخضر داكن على هووفر */
}

/* لو في أي تحديد سابق للأيقونة يحتاج Override */
.whatsapp-float i {
  color: #fff !important;
}
/* ===== Booking Form Styles ===== */
.booking-form {
  background: #fff;
  padding: 40px 0;
}

.booking-form h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.booking-form form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 5px;
  font-size: 16px;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.booking-form .btn {
  width: fit-content;
  align-self: center;
  padding: 12px 30px;
  background: var(--accent-color);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.booking-form .btn:hover {
  background: darken(var(--accent-color),10%);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .booking-form form {
    padding: 0 20px;
  }
}
/* ===== All Services List ===== */
.all-services {
  background: #fff;
  padding: 30px 0;
}

.all-services h2 {
  text-align: right;
  font-size: 32px;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.all-services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px 20px;
}

.all-services-list li {
  position: relative;
  padding-left: 28px;
  font-size: 18px;
  color: #555;
  line-height: 1.6;
}

.all-services-list li::before {
  content: "\f058";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent-color);
}

/* Responsive */
@media (max-width: 600px) {
  .all-services-list {
    grid-template-columns: 1fr;
  }
}
/* ===== CTA Book Button Section ===== */
.cta-book .btn-book-page {
  padding: 14px 36px;
  font-size: 20px;
}

/* ===== Booking Page Overrides ===== */
.booking-form.page {
  padding: 60px 0;
}
.booking-form.page .container {
  max-width: 600px;
  margin: 0 auto;
}
.btn-back {
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
}
/* ===== Main Navigation Bar ===== */
.main-nav {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.main-nav .container {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 12px 0;
}
.main-nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 10px;
  transition: color .3s, border-bottom .3s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
}

/* ===== Hero Subpage ===== */
.hero-subpage {
  background: #f5f5f5;
  padding: 50px 0;
  text-align: center;
}
.hero-subpage h1 {
  font-size: 32px;
  margin: 0;
  color: #333;
}

/* ===== Sections Consistency ===== */
section {
  padding: 40px 0;
}
.section h2 {
  font-size: 28px;
  color: var(--accent-color);
  margin-bottom: 15px;
}

/* ===== About List Adjustments ===== */
.about-list {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
}
.about-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  line-height: 1.6;
}
.about-list li::before {
  content: "\f058";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent-color);
}

/* ===== Footer ===== */
footer {
  background: #222;
  color: #ccc;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
}
footer a {
  color: #fff;
  text-decoration: none;
}
footer p {
  margin: 0;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .main-nav .container {
    flex-direction: column;
    gap: 12px;
  }
  .hero-subpage {
    padding: 30px 0;
  }
}
/* ===== Video Carousel ===== */
.videos h2 {
  text-align: right;
  color: var(--accent-color);
  margin-bottom: 20px;
}
.videos .swiper-slide {
  display: flex;
  justify-content: center;
}
.fb-video,
.fb-video iframe {
  width: 100% !important;
  height: auto !important;
  min-height: 280px; /* قابل للتعديل */
}
.tiktok-swiper .swiper-slide {
  display: flex;
  justify-content: center;
}

.tiktok-embed {
  width: 100% !important;
  max-width: 400px;
}