@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap");

/* =====================
   Reset & Base
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", Arial, sans-serif;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  background-color: #fefeff;
  min-width: 320px;
}

/* =====================
   Header
===================== */
header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1000;
}

/* Logo */
header img {
  width: 220px;
  max-width: 100%;
   margin-left: -37px;
}

/* =====================
   Navigation
===================== */
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Desktop */
.desktop-nav {
  display: flex;
  gap: 28px;
}

.desktop-nav a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
}

/* =====================
   Menu Button (Mobile)
===================== */
.menu-btn {
  width: 42px;
  height: 42px;
  background: #f9fcfe;
  border: 1px solid #f9fcfe;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px;
}

.menu-btn span {
  height: 3px;
  width: 100%;
  background: #111;
  border-radius: 2px;
}

/* =====================
   Mobile Menu
===================== */
.mobile-menu {
  position: absolute;
  top: 78px;
  right: 20px;
  width: 220px;
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(-15px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 9999;
}

.mobile-menu a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
}

.mobile-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* =====================
   HR
===================== */
hr {
  width: 100%;
  height: 1px;
  border: none;
  background-color: #cfcfcf;
  margin: 17px 0;
}

/* =====================
   Footer
===================== */
footer {
  padding: 2rem 1rem;
  text-align: center;
  color: #111;
  font-size: 14px;
}

/* =====================
   Hero Slider
===================== */
.hero-slider {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  overflow: hidden;
  touch-action: pan-y;
}

.slide {
  display: none;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.slide.active {
  display: grid;
}

/* Image */
.slide-image {
  background-size: cover;
  background-position: center;
}

/* Content */
.slide-content {
  background: #2F6F6A;
  color: white;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.slide-content p {
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.slide-content .cta {
  font-weight: 600;
  margin-top: 10px;
}

/* =====================
   Slider Buttons (VISIBLE)
===================== */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: transparent;
  border: none;
  font-size: 36px;
  color: #ffffff;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 6px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
   opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.slider-btn.prev {
  left: 15px;
}

.slider-btn.next {
  right: 15px;
}

/* =====================
   Responsive
===================== */
@media (max-width: 768px) {

  header img {
    width: clamp(160px, 45vw, 190px);
  }

  .desktop-nav {
    display: none;
  }

  .slide {
    grid-template-columns: 1fr;
  }

  .slide-image {
    min-height: 250px;
  }

  .slide-content {
    padding: 30px 20px;
  }

  .slide-content h2 {
    font-size: 26px;
  }

  /* الأزرار تبقى ظاهرة */
  .slider-btn {
    font-size: 30px;
    padding: 6px 12px;
  }
}

/* =====================
   Single Slider
===================== */
.single-slider {
  margin-top: 60px;
}

.single-slider .slide-content {
  background: #991a09;
}

.single-slider .slide {
  direction: rtl;
  min-height: 550px;
}

.single-slider .slide-content {
  direction: ltr;
}

/* =====================
   Images
===================== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.hero-slider:hover .slider-btn {
  opacity: 0.6;
  pointer-events: auto;
}
.single-slider .slide-content {
  padding: 50px 80px; /* أعلى/أسفل | يمين/يسار */
}

@media (max-width: 768px) {

  .single-slider .slide {
    direction: ltr;       /* مثل hero-slider */
    min-height: auto;
  }

  .single-slider .slide-content {
    padding: 30px 20px;  /* نفس المسافات العادية */
  }

  .single-slider .slider-btn {
    opacity: 1;          /* تظهر الأزرار */
  }

  .slider-btn {
    display: none;
  }

  
}
/* =====================
   Swipe Hint (Mobile)
=/* =====================
   Swipe Hint
===================== */
.swipe-hint {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);

  font-size: 31px;
  color: white;

  opacity: 0; /* مخفي بالبداية */
  transition: opacity 0.5s ease; /* حركة ناعمة */

  pointer-events: none;
  text-shadow: 0 3px 6px rgba(0,0,0,0.5);
}

/* يظهر في الهاتف */
@media (max-width: 768px) {
  .swipe-hint {
    opacity: 0.5; /* شفافية خفيفة */
  }

  /* عند لمس السلايدر يصبح أوضح */
  .hero-slider:active .swipe-hint {
    opacity: 1;
  }
}

/* يخفي في الديسكتوب */
@media (min-width: 769px) {
  .swipe-hint {
    display: none;
  }
}


/* توحيد الخط بالكامل */
.slider-2,
.slider-2 h1,
.slider-2 h2,
.slider-2 h3,
.slider-2 p,
.slider-2 span,
.slider-2 a {
    font-family: 'Poppins', sans-serif !important;
}

/* نفس حجم العنوان */
.slider-2 h1 {
    font-size: 48px !important;   /* عدّل إذا لزم */
    font-weight: 700 !important;
    line-height: 1.2;
}

/* نفس حجم النص */
.slider-2 p {
    font-size: 18px !important;   /* عدّل إذا لزم */
    font-weight: 400 !important;
    line-height: 1.6;
}