/* الخطوط */
@import url('https://fonts.googleapis.com/css2?family=Cairo&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
}

body {
  background-color: #f9fafe;
  color: #222;
  line-height: 1.6;
  direction: rtl;
  text-align: right;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Topbar */
.topbar {
  background-color: #5d4700;
  color: white;
  font-size: 0.8rem;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.social-icons a {
  margin-left: -10px;
  color: white;
  padding-right: 0.8vh;
  font-size: 0.8rem;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #f2c41d;
}

/* Header */
header {
  background-color: #b88a32;
  padding: 15px 0;
  color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
     font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    left: 36vh;
    top: 0vh;
    position: relative;
}

/* قائمة الكمبيوتر */
.nav-desktop ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-desktop ul li a {
  color: white;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 5px;
}

.nav-desktop ul li a:hover,
.nav-desktop ul li a.active {
  background-color: #b88a32;
  color: #fff;
}

/* زر الهمبرغر للموبايل */
.menu-toggle {
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: none;
}

.mosaf {
  position: absolute;
  width: 17vh;
  left: 2vh;
  bottom: 9vh;
  border-radius: 1vh;
}

.ff h1 {
  font-size: 3.3rem;
  margin-bottom: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  transform: translateY(20px);
  animation: fadeIn 2s ease forwards;
  animation-delay: 1s;
  /* عدلها حسب التوقيت المناسب */
}

.fff{
    position: relative;
    bottom: -13vh;
}

.ff {
position: relative;
    bottom: -11.4vh;
}

.ff p {
  font-size: 1.2rem;
  margin-bottom: 44px;
  transform: translateY(20px);
  animation: fadeIn 2s ease forwards;
  animation-delay: 2.1s;
  /* عدلها حسب التوقيت المناسب */
}

.ff .btn {
  background-color: #b88a32;
  color: white;
  padding: 5px 11px;
  border-radius: 35px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.ff .btn:hover {
  background-color: #754f08;
}

/* بانر */
.banner {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 0 20px;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.7);
  transition: background-image 1s ease-in-out;
}

.banner-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -11;
}

.banner h1 {
  font-size: 3.3rem;
  margin-bottom: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  transform: translateY(20px);
  animation: fadeIn 2s ease forwards;
  animation-delay: 1s;
  /* عدلها حسب التوقيت المناسب */
}

.banner p {
  font-size: 1.2rem;
  margin-bottom: 22px;
  transform: translateY(20px);
  animation: fadeIn 2s ease forwards;
  animation-delay: 2.1s;
  /* عدلها حسب التوقيت المناسب */
}

.logoxx{
      position: relative;
    left: -16vh;
    top: -1vh;
}



.banner .btn {
  background-color: #b88a32;
  color: white;
  padding: 10px 26px;
  border-radius: 35px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.banner .btn:hover {
  background-color: #754f08;
}

/* Main sections */
main {
  padding: 60px 0;
}

section {
  margin-bottom: 392px;
}

h2 {
  color: #b88a32;
  margin-bottom: 25px;
  font-weight: 700;
  font-size: 2rem;
  display: inline-block;
  padding-bottom: 0px;
  text-align: center;
}

/* أزرار */
.btn-link1 {
  display: inline-block;
  padding: 10px 25px;
  background-color: #b88a32;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-size: 1rem;
  margin-top: 3vh;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-link1:hover {
  background-color: #946309;
}

/* Programs */
.program-list {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
}

.program {
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 25px 18px;
  border-radius: 15px;
  width: 280px;
  text-align: center;
  transition: transform 0.3s ease;
}

.program:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.program h3 {
  color: #b88a32;
  margin-bottom: 10px;
  font-weight: 700;
}

.program p {
  color: #666;
  font-size: 1rem;
}

/* News */
.news article {
  background-color: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: background-color 0.25s ease;
}

.news article:hover {
  background-color: #f0f6ff;
  cursor: pointer;
}

.news h4 {
  color: #b88a32;
  margin-bottom: 8px;
  font-weight: 700;
}

/* Contact */
.contact-form {
  max-width: 550px;
  margin: auto;
  background-color: white;
  padding: 35px 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #b88a32;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1.8px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #b88a32;
  outline: none;
}

.contact-form button {
  width: 100%;
  padding: 15px;
  background-color: #b88a32;
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #002e5d;
}

/* Footer */
footer {
  background-color: #b88a32;
  color: white;
  text-align: center;
  padding: 25px 10px;
  font-size: 1rem;
  margin-top: 70px;
}

/* القائمة الجانبية */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 250px;
  height: 100vh;
  background-color: #b88a32;
  padding-top: 60px;
  transition: right 0.3s ease-in-out;
  z-index: 9999;
  display: none;
}

.mobile-nav ul {
  list-style: none;
  padding: 0 20px;
}

.mobile-nav ul li {
  margin-bottom: 25px;
}

.mobile-nav ul li a {
  color: white;
  font-size: 1.3rem;
  text-decoration: none;
}

.mobile-nav.show {
  right: 0;
  display: block;
}

/* شاشة التحميل */
#loading-screen {
  position: fixed;
  inset: 0;
  background-color: #3f2b07;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 1s ease, visibility 1s ease;
}

/* شعار */
#loading-logo {
  width: 180px;
  height: auto;
  margin-bottom: 30px;
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  0% {
    filter: drop-shadow(0 0 5px #b88a32);
    transform: scale(1);
  }
  100% {
    filter: drop-shadow(0 0 20px #b88a32);
    transform: scale(1.58); /* Bigger zoom */
  }
}

/* سبينر مودرن */
.modern-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid transparent;
  border-top-color: #b88a32;
  /* الذهبي */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* موجات خلف الشعار */
.wave,
.wave2 {
  position: absolute;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle, rgba(184, 138, 50, 0.1) 0%, rgba(184, 138, 50, 0.85) 70%);
  pointer-events: none;
  opacity: 0.3;
  top: -100%;
  left: -100%;
  z-index: -1;
}

.wave2 {
  animation: waveMove2 4s linear infinite reverse;
  opacity: 0.2;
}

.wave {
  animation: waveMove 6s linear infinite;
}

/* دوران السبينر */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* حركة الموجات */
@keyframes waveMove {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-200px, -100px);
  }
}

@keyframes waveMove2 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(100px, 200px);
  }
}

/* زر واتساب عائم */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  width: 55px;
  height: 55px;
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: block;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.fa-whatsapp {
  position: relative;
  right: 1.4vh;
  top: 1.3vh;
  font-size: 2rem;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-nav {
    display: block;
  }

  .banner h1 {
    font-size: 2.3rem;
  }

  .banner p {
    font-size: 1rem;
  }

  .header-content {
    justify-content: space-between;
  }
.logo {
        font-size: 15px;
        font-weight: 700;
        letter-spacing: 1px;
        cursor: pointer;
        position: relative;
        left: 42%;
        top: 0;
}
  .logoxx {
    position: relative;
    left: -16vh;
    top: -1vh;
}
.ff {
position: relative;
    bottom: 28vh;
}

}

@media (min-width: 769px) {
  .mobile-nav {
    display: none !important;
  }

  .menu-toggle {
    display: none !important;
  }
   .banner-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  object-fit: cover;
  z-index: -11;
}
section {
    margin-bottom: 228px;
}
 .logoxx {
    position: relative;
    left: -44vh;
    top: -1vh;
}
}

/* iPhone SE أو أصغر */
@media (max-width: 375px) {
 .logoxx {
    position: relative;
    left: -19vh;
    top: -1vh;
}
 .banner-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  object-fit: cover;
  z-index: -11;
}

}


@media screen and (max-width: 768px) and (orientation: landscape) {
  .banner h1 {
    font-size: 2rem;
  }
  .banner-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  object-fit: cover;
  z-index: -11;
}

  .banner p {
    font-size: 0.9rem;
  }

  .ff h1 {
    font-size: 2.2rem;
  }

  .ff p {
    font-size: 1rem;
  }

  .logo {
    font-size: 1rem;
    left: 30%;
  }

  .logoxx {
    left: -10vh;
  }

  .ff {
    bottom: -10vh;
  }

  .fff {
    bottom: -12vh;
  }

  .mosaf {
    width: 15vh;
    bottom: 7vh;
  }

  .program {
    width: 45%;
  }

  .contact-form {
    width: 90%;
  }
}


