/* Reset قواعد أساسية */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.logo-title h1 {
  display: none;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  direction: rtl;
}

body {
  background-color: #f7f9fc;
  color: #222;
  line-height: 1.6;
  min-height: 100vh;
}

/* الحاويات */
.container {
  width: 90%;

  margin: 0 auto;
  padding: 1rem 0;
}

/* رأس الصفحة */
.main-header {
  background-color: #1a1a1a;
  color: #fff;
  padding: 0rem 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-title img {
  max-height: 50px;
  width: auto;
}

.logo-title h1 {
  font-size: 1.5rem;
  font-weight: 700;
  user-select: none;
  display: none;
}

/* قائمة التنقل */
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

nav ul li a {
  color: #ffffffcc;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover,
nav ul li a.active,
nav ul li a[aria-current="page"] {
  background-color: #f57c00;
  color: #fff;
}

/* زر الهامبرغر */
#menuToggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  display: none;
}

/* الشرائح - السلايدر */
.slider {
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.1);
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.slide {
  min-width: 100%;
  position: relative;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 10px;
}

.slide-text {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  max-width: 60%;
  font-size: 1.1rem;
  line-height: 1.3;
}

.slide-text h3 {
  margin-bottom: 0.3rem;
}

/* أزرار التنقل في السلايدر */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #1a1a1acc;
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  border-radius: 50%;
  user-select: none;
  transition: background-color 0.3s;
  z-index: 10;
}

.prev:hover,
.next:hover {
  background-color: #f57c00;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* خدماتنا الأساسية */
.core-services-section {
  margin: 3rem 0;
}

.core-services-section h2 {
  color: #1a1a1a;
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 700;
}

/* شبكة الخدمات */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}

.service-card {
  background-color: #fff;
  padding: 1.4rem 1.2rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.service-card:focus,
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgb(0 0 0 / 0.15);
  outline: none;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.service-card p {
  color: #555;
  font-size: 1rem;
  line-height: 1.4;
}

/* الهيكل الإداري */
.management-section {
  background-color: #e9f0fa;
  padding: 2rem 1rem;
  border-radius: 10px;
  margin-bottom: 3rem;
}

.management-section h2 {
  color: #003366;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 700;
}

.management-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.management-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 1.2rem 1rem;
  box-shadow: 0 3px 8px rgb(0 0 0 / 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.management-card:focus,
.management-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 7px 15px rgb(0 0 0 / 0.15);
  outline: none;
}

.management-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #003366;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.management-card p {
  color: #444;
  font-size: 1rem;
  line-height: 1.4;
}

/* قسم من نحن */
.about-section {
  margin-bottom: 3rem;
}

.about-section h2 {
  color: #1a1a1a;
  font-size: 2rem;
  margin-bottom: 1.4rem;
  text-align: center;
  font-weight: 700;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
}

.about-text {
  flex: 1 1 380px;
  color: #333;
  font-size: 1.05rem;
  line-height: 1.6;
}

.about-text p {
  margin-bottom: 1rem;
}

.about-icons {
  flex: 1 1 280px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.about-box {
  background-color: #f0f5fc;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.08);
  cursor: default;
  transition: background-color 0.3s ease;
}

.about-box:hover {
  background-color: #d7e4fc;
}

.about-box i {
  font-size: 2.2rem;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.about-box h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: #002a66;
  font-weight: 600;
}

.about-box p {
  font-size: 0.95rem;
  color: #555;
}

/* قسم خدماتنا (المكرر مع core-services, لكن هنا أبسط) */
.services-section {
  margin-bottom: 3rem;
  padding: 0 0.5rem;
}

.services-section h2 {
  color: #1a1a1a;
  font-size: 2rem;
  margin-bottom: 1.3rem;
  text-align: center;
  font-weight: 700;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.services-grid .service-card {
  background-color: #fff;
  padding: 1.2rem 1rem;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgb(0 0 0 / 0.08);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.services-grid .service-card:hover,
.services-grid .service-card:focus {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgb(0 0 0 / 0.15);
  outline: none;
}

.services-grid .service-card i {
  font-size: 2.4rem;
  color: #1a1a1a;
  margin-bottom: 0.6rem;
}

.services-grid .service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
  color: #003366;
}

.services-grid .service-card p {
  font-size: 1rem;
  color: #444;
  line-height: 1.4;
}

.services-note {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: #666;
  font-style: italic;
}

/* قسم الموقع */
.location-section {
  margin-bottom: 3rem;
}

.location-section h2 {
  text-align: center;
  font-weight: 700;
  font-size: 2rem;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
}

.location-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
}

.location-text {
  flex: 1 1 380px;
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
}

.location-text p {
  margin-bottom: 1rem;
}

.location-details {
  list-style: none;
  padding-right: 0;
  margin-top: 0.5rem;
}

.location-details li {
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #1a1a1a;
  font-weight: 600;
}

.location-details li i {
  color: #f57c00;
}

/* الخريطة */
.location-map {
  flex: 1 1 500px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgb(0 0 0 / 0.1);
}

/* نموذج التواصل */
.contact-section {
  margin-bottom: 3rem;
}

.contact-section h2 {
  text-align: center;
  font-weight: 700;
  font-size: 2rem;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
}

/* نموذج */
#contactForm {
  flex: 1 1 380px;
  background-color: #fff;
  padding: 1.4rem 1.2rem;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgb(0 0 0 / 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#contactForm label {
  font-weight: 600;
  color: #003366;
}

#contactForm input,
#contactForm textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1.8px solid #c0c9d9;
  border-radius: 8px;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

#contactForm input:focus,
#contactForm textarea:focus {
  border-color: #f57c00;
  outline: none;
}

#contactForm button {
  background-color: #1a1a1a;
  color: #fff;
  border: none;
  padding: 0.7rem 1.2rem;
  font-size: 1.1rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  align-self: flex-start;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

#contactForm button:hover,
#contactForm button:focus {
  background-color: #f57c00;
  outline: none;
}

/* معلومات الاتصال */
.contact-info {
  flex: 1 1 320px;
  background-color: #e9f0fa;
  border-radius: 12px;
  padding: 1.5rem 1.3rem;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.07);
  color: #003366;
}

.contact-info h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
}

.contact-info ul {
  list-style: none;
  padding: 0;
}

.contact-info ul li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
}

.contact-info ul li i {
  color: #f57c00;
}

/* تذييل الصفحة */
.main-footer {
  background-color: #003366;
  color: #ccc;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  user-select: none;
  margin-top: 2rem;
}

/* زر العودة للأعلى */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background-color: #1a1a1a;
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  box-shadow: 0 3px 8px rgb(0 0 0 / 0.25);
  z-index: 1000;
  transition: background-color 0.3s ease;
}

#scrollTopBtn:hover {
  background-color: #f57c00;
}

/* استجابات الشاشة الصغيرة */
@media (max-width: 900px) {
  .header-flex {
    justify-content: space-between;
  }
  nav ul {
    flex-direction: column;
    background-color: #1a1a1a;
    width: 100%;
    position: absolute;
    top: 60px;
    right: 0;
    display: none;
    padding: 1rem 0;
    border-radius: 0 0 10px 10px;
  }
  nav ul.show {
    display: flex;
  }
  nav ul li {
    margin: 0.5rem 0;
    text-align: center;
  }
  #menuToggle {
    display: block;
  }
}

/* استجابة للأجهزة الصغيرة في المحتوى */
@media (max-width: 700px) {
  .about-content,
  .location-content,
  .contact-container {
    flex-direction: column;
  }
  .about-icons {
    grid-template-columns: 1fr 1fr;
  }
}
/* أخفي كل الأقسام افتراضياً */
main > section {
  display: none;
}

/* عرض القسم النشط */
main > section.active {
  display: block;
}
.slider {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  scroll-behavior: smooth;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
  display: none;
  flex-shrink: 0;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 500px;

}

.slide-text {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 1em;
  position: absolute;

  width: 100%;
  box-sizing: border-box;
  text-align: right;
}

.prev, .next {
  position: absolute;
  top: 50%;
  background-color: rgba(0,0,0,0.3);
  color: white;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 24px;
  user-select: none;
  transform: translateY(-50%);
  transition: background-color 0.3s ease;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.6);
}

.prev {
  left: 15px;
}

.next {
  right: 15px;
}

.slider-dots {
  text-align: center;
  margin-top: 0.5em;
}

.slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  margin: 0 5px;
  background: #ccc;
  cursor: pointer;
}

.slider-dots button[aria-selected="true"] {
  background: #333;
}


/* قسم المعلومات */
.info-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 40px;
  justify-content: space-between;
}

.info-box {
  flex: 1 1 300px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.info-box:hover {
  transform: translateY(-5px);
}

.info-box h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #007b8f;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-box p {
  font-size: 16px;
  margin: 0;
}

/* قائمة التواصل */
.contact-list,
.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li,
.service-list li {
  font-size: 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* روابط الخدمات */
.service-list a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

.service-list a:hover {
  color: #007b8f;
}

/* أيقونات */
i {
  color: #007b8f;
}