* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #111;
  color: white;
  direction: rtl;
}

/* === Navbar Modern RTL === */
/* الوضع العادي (حاسوب) */
/* === Navbar Modern RTL === */
/* الوضع العادي (حاسوب) */
.navbar {
  background-color: #000;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

.navbar .logo a {
  font-size: 22px;
  font-weight: bold;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.navbar .menu {
  display: flex;
  gap: 20px;
  align-items: center;
}

.navbar .menu a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.navbar .menu a:hover {
  background-color: #f57c00;
  color: black;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
}

.logo-image img {
  height: 40px;
  width: auto;
}

.logo-image {
  display: flex;
  align-items: center;
}

/* هاتف */
@media (max-width: 768px) {
  .navbar {
    justify-content: space-between;
    padding: 10px 15px;
  }

  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .navbar .logo a {
    font-size: 20px;
    text-align: center;
  }

  .logo-image {
    position: relative;
    left: 0;
    margin-left: auto;
  }

  .logo-image img {
    height: 50px;
  }

  .hamburger {
    display: flex;
    margin-left: 10px;
  }

  .navbar .menu {
  position: absolute;
  top: 60px;
  right: 0;
  width: 100%;
  flex-direction: column;
  background-color: #111;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease;
}

.navbar .menu.active {
  max-height: 500px; /* enough height for all items */
}

.navbar .menu a {
  padding: 12px 20px;
  width: 100%;
  border-bottom: 1px solid #333;
}
}



/* === Slideshow === */
.slideshow-container {
  max-width: 100%;
  position: relative;
  margin-top: 80px;
  overflow: hidden;
}

.mySlides {
  display: none;
  position: relative;
  width: 100%;
  height: 80vh;
}

.mySlides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .mySlides {
    height: 250px;
  }
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 22px;
  transition: 0.6s ease;
  user-select: none;
  background-color: rgba(0,0,0,0.5);
  z-index: 10;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev {
  left: 0;
  border-radius: 0 3px 3px 0;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
  background: rgba(0,0,0,0.3);
}

/* Number text */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  position: absolute;
  top: 0;
  padding: 8px 12px;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/* === Footer === */
.footer {
  background-color: #000;
  color: #ccc;
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
  font-size: 14px;
  border-top: 2px solid #f57c00;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.5);
}

.footer p {
  margin: 0;
  color: #aaa;
}

.footer p span {
  color: #f57c00;
  font-weight: bold;
}
footer a {
  color: #eee;           /* لون برتقالي موحد */
  text-decoration: none;    /* إزالة الخط */
  transition: color 0.3s;
  font-weight: 500;
}

footer a:hover {
  color: #ff9800;           /* لون أفتح عند التحويم */
  text-decoration: underline;
}

/* === Contact Form Styling === */
.contact-form-container {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  max-width: 400px;
  margin: 50px auto;
  text-align: right;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

.contact-form-container h4 {
  color: #f57c00;
  margin-bottom: 20px;
  font-size: 22px;
  text-align: center;
}

.contact-form-container input,
.contact-form-container textarea {
  width: 100%;
  padding: 10px 15px;
  margin-bottom: 12px;
  border: none;
  border-radius: 20px;
  font-size: 15px;
  background-color: #333;
  color: white;
}

.contact-form-container textarea {
  border-radius: 10px;
  resize: none;
}

.contact-form-container button {
  background-color: #f57c00;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 20px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

.contact-form-container button:hover {
  background-color: #ff9800;
}

#formResponse {
  margin-top: 12px;
  font-size: 15px;
  text-align: center;
}

#formResponse.success {
  color: #4CAF50;
}

#formResponse.error {
  color: #ff4444;
}

@media (max-width: 480px) {
  .contact-form-container {
    padding: 20px;
    max-width: 90%;
  }
}
@media (max-width: 480px) {
  .mySlides {
    height: 350px; /* تحديد الطول مباشرة بدل auto */
  }

  .mySlides img {
    height: 350px;
    object-fit: contain;
  }
}

