@import url('https://fonts.googleapis.com/css?family=Lato:400,700,900');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Turret+Road:wght@200;300;400;500;700;800&display=swap');


*, *:before, *:after {
  box-sizing: border-box;
}
* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-padding-top: 2rem;
  scroll-behavior: smooth;
  list-style: none;
  text-decoration: none;
}

/* Root Variables */
:root {
  --main-color: #003ada;
  --second-color: #0732de;
  --text-color: #444444;
  --gradient: linear-gradient(#0700c7, #0008ec);
}

/* Scrollbar */
html::-webkit-scrollbar {
  width: 0.5rem;
}
html::-webkit-scrollbar-track {
  background: transparent;
}
html::-webkit-scrollbar-thumb {
  background: var(--main-color);
  border-radius: 5rem;
}

/* Sections */
section {
  padding: 50px 100px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #EEEFF1;
  padding: 15px 100px;
}

/* Logo */
.logo img {
  width: 40px;
}

/* Navbar */
.navbar {
  display: flex;
}

.navbar li {
  position: relative;
}

.navbar a {
  font-size: 1rem;
  padding: 10px 20px;
  color: var(--text-color);
  font-weight: 500;
  position: relative;
}
main {
  padding-top: 100px; /* نفس أو أكبر سنة من ارتفاع الهيدر */
  display: flex;
  justify-content: center;
}

.navbar a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 3px;
  background: var(--gradient);
  transition: 0.5s;
}

.navbar a:hover::after {
  width: 100%;
}

/* Header Icons */
header .ri-close-line {
  display: none;
}

#menu-icon {
  font-size: 24px;
  cursor: pointer;
  z-index: 110;
  display: none;
}

/* Header Buttons */
.header-btn a {
  padding: 10px 20px;
  color: var(--text-color);
  font-weight: 500;
}

.header-btn .sign-in {
  background: #474FA0;
  color: #FFFFFF;
  border-radius: 0.5rem;
  transition: 0.5s;
}

.header-btn .sign-in:hover {
  background: var(--main-color);
}
   body {
  font-family: 'Merriweather Sans', sans-serif;
  margin: 0;
  padding: 0;
  color: #fff;
  /* خلفية بدرجات الأزرق */
  background: linear-gradient(180deg, #0a2a6b, #144b9e, #1d6fce, #5aa2f2);
  background-attachment: fixed;
}

    

    .container {
      width: 80%;
      margin: 30px auto;
    }

    .announcement {
      background: #fff;
      padding: 20px;
      margin-bottom: 15px;
      border-radius: 10px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

    .announcement h3 {
      margin: 0 0 10px;
    }

    .announcement p {
      margin: 0;
    }

    .date {
      color: #777;
      font-size: 14px;
      margin-top: 10px;
    }
    .carousel {
      width: 80%;
      margin: 30px auto;
      position: relative;
      overflow: hidden;
    }

    .slides {
      display: flex;
      transition: transform 0.4s ease-in-out;
      width: 100%;
    }

    .slide {
      min-width: 100%;
      background: #fff;
      padding: 20px;
      border-radius: 10px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      text-align: center;
    }

    .slide img {
      width: 100%;
      border-radius: 10px;
      margin-bottom: 10px;
    }

    .nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(0,0,0,0.5);
      color: #fff;
      border: none;
      padding: 10px 15px;
      border-radius: 50%;
      cursor: pointer;
      font-size: 20px;
    }

    .prev {
      left: 10px;
    }

    .next {
      right: 10px;
    }


    
    :root {
      --yellow: #ebb221;
      --yellow-shadow: #F35747;
      --blue: #90f0d2;
      --blue-shadow: #3988a6;
    }

    .wrapper {
  width: 320px;
  margin: 20em auto; /* دفع الكلام لتحت شوية */
  text-align: center;
}

    .crazy-alert {
      font-size: 22px;
      font-family: 'Merriweather Sans', sans-serif;
      color: #fff;
    }

    .bigger {
      display: block;
      margin-bottom: .25em;
      font-size: 2.5em;
      letter-spacing: 0.2em;
      color: var(--yellow);
      text-shadow:
        1px 1px 0 var(--yellow-shadow),
        2px 2px 0 rgba(243,87,71,0.9),
        3px 3px 0 rgba(243,87,71,0.8),
        4px 4px 0 rgba(243,87,71,0.7),
        5px 5px 0 rgba(243,87,71,0.6),
        6px 6px 0 rgba(243,87,71,0.5),
        7px 7px 0 rgba(243,87,71,0.4),
        8px 8px 0 rgba(243,87,71,0.3),
        9px 9px 0 rgba(243,87,71,0.2),
        10px 10px 0 rgba(243,87,71,0.1);
      animation: jumptext 1s steps(8, start) infinite;
      transition: all .2s ease;
    }

    .bigger:hover {
      animation: none;
      letter-spacing: normal;
    }

    .regular {
      display: block;
    }

    .buzz {
      display: inline-block;
      text-shadow: 2px 0 0 rgba(255,255,255,0.3), -2px 0 0 rgba(255,255,255,0.3);
      animation: buzz .04s linear infinite alternate;
      transition: all .2s ease;
    }

    .buzz:hover {
      animation: none;
      text-shadow: none;
    }

    @keyframes jumptext {
      0% {
        transform: rotate(-5deg);
        letter-spacing: normal;
      }
      50% {
        transform: rotate(5deg);
        color: var(--blue);
        letter-spacing: 0.1em;
        text-shadow:
          1px 1px 0 var(--blue-shadow),
          2px 2px 0 rgba(57,136,166,0.8),
          3px 3px 0 rgba(57,136,166,0.6),
          4px 4px 0 rgba(57,136,166,0.4),
          5px 5px 0 rgba(57,136,166,0.2);
      }
      100% {
        transform: rotate(-5deg);
        color: var(--yellow);
        letter-spacing: normal;
      }
    }

    @keyframes buzz {
      0% { transform: translateX(-1px); }
      100% { transform: translateX(1px); }
    }

#menu-icon {
  font-size: 24px;
  cursor: pointer;
  z-index: 110;
  display: none;
}
.main-footer {
  background: linear-gradient(135deg, #010178, #021f70);
  color: #fff;
  padding: 60px 20px 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.footer-section h2.logo {
  font-size: 28px;
  margin-bottom: 15px;
  color: #ffffff;
}

.footer-section h3 {
  margin-bottom: 15px;
  font-size: 20px;
  color: #ffffff;
}

.footer-section p {
  line-height: 1.6;
  font-size: 14px;
  color: #ffffff;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  text-decoration: none;
  color: #ffffff;
  transition: 0.3s;
}

.footer-section ul li a:hover {
  color: #000000;
}

.footer-section form {
  display: flex;
  gap: 10px;
}

.footer-section input {
  padding: 10px;
  border: none;
  border-radius: 5px;
  flex: 1;
}

.footer-section button {
  padding: 10px 20px;
  border: none;
  background: #1500ff;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}
.footer-section.social {
  margin-top: 40px; /* زود الرقم عشان ينزل أكتر */
}


.footer-section button:hover {
  background: #ffffff;
}

.social-icons a {
  color: rgb(43, 0, 255);
  font-size: 18px;
  margin-right: 15px;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #ced5d5;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid #333;
  padding-top: 15px;
  font-size: 14px;
  color: #aaa;
}
.footer-section.links {
  margin-left: 80px;   /* تحكم في المسافة من الشمال */
}

.footer-section.newsletter {
  text-align: center;
  margin-bottom: 20px; /* مسافة صغيرة تحت الصبصكراب */
}

.image-section {
  text-align: center;
  margin: 20px 0; /* مسافة فوق وتحت الصورة */
}

.image-section img {
  float: right;
  width: 250px;
  height: auto;
  margin-right: 200px;   /* مسافة شمال */
  margin-bottom: 15px; /* مسافة تحت */
  margin-top: -90PX;   /* بالسالب = ترفع الصورة لفوق */
}
.footer-section h3 {
  border-bottom: 2px solid #fff; /* خط أبيض تحت */
  display: inline-block;         /* الخط قد عرض الكلمة */
  padding-bottom: 5px;           /* مسافة صغيرة بين النص والخط */
  margin-bottom: 15px;           /* مسافة تحت العنوان */
}

/* أزرار السلايدر */


/* للموبايل */
@media screen and (max-width: 480px) {
  .slide-container {
    max-width: 95%;
    margin: 60px auto;
  }

  .clash-card {
    width: 95%;
    max-width: 280px;
  }

  .clash-card__unit-name { font-size: 20px; }
  .clash-card__unit-description { font-size: 14px; padding: 8px; }

  .clash-card__unit-stats {
    flex-direction: column;
    gap: 10px;
  }

  .slider-btn {
    font-size: 20px;
    padding: 8px 12px;
    top: 90%;
    transform: translateY(-50%);
  }

  .slider-btn.prev { left: 20%; }
  .slider-btn.next { right: 20%; }
}

/* للتابلت */
@media screen and (max-width: 768px) {
  .slide-container { max-width: 90%; margin: 80px auto; }
  .clash-card__unit-name { font-size: 22px; }
  .clash-card__unit-description { font-size: 15px; }

  .slider-btn.prev { left: -40px; }
  .slider-btn.next { right: -40px; }
}

/* لابتوب صغير */
@media screen and (max-width: 1024px) {
  .slide-container { max-width: 85%; }
  .slider-btn.prev { left: -50px; }
  .slider-btn.next { right: -50px; }
}
@media(max-width: 1375px) {
  .text { display: block; }
}

@media(max-width: 991px) {
  header { padding: 18px 40px; }
  section { padding: 50px 40px; }
}

@media(max-width: 881px) {
  .home { background-position: center; grid-template-columns: 1fr; }
  .text { display: block; }
  .form-container { padding-top: 2rem; }
}

@media(max-width: 795px){
  header { padding: 11px 40px; }
  #menu-icon { display: initial; }
  .sign-up { display: none; }
  .text h1 { font-size: 2.5rem; width: 320px; }
  .text p { font-size: .8rem; width: 320px; }
  .form-container form { position: unset; }

  header .navbar {
    position: absolute;
    top: -500px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    box-shadow: 0 4px 4px rgba(0, 0, 0, .1);
    transition: .2s ease;
    text-align: left;
  }

  .navbar.active { top: 100%; }
  .navbar a {
    padding: 1rem;
    border-left: 2px solid var(--main-color);
    margin: 1rem;
    display: block;
    transition: .3s ease;
  }
  .navbar a:hover {
    color: #FFFFFF;
    background: var(--main-color);
    border: none;
  }
  .navbar a::after { display: none; }

  .heading span { font-size: .9rem; font-weight: 600; }
  .heading h1 { font-size: 1.3rem; }

  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-img { padding: 1rem; order: 1; }
  .about-text { order: 2; }
}

@media(max-width: 568px){
  .home { background-position: left; }
  .text h1 { width: 280px; font-size: 2rem; }
  .text p { width: 280px; font-size: .8rem; }
  .form-container { padding-top: 2rem; }
  .about-text p { font-size: 14px; }
  .copyright { flex-direction: column; }
  .newsletter .box { width: 284px; }
}

@media(max-width: 460px){
  header { padding: 6px 14px; }
  .logo img { width: 30px; }
  section { padding: 50px 6px; }
  .header-btn .sign-in {
    padding: 7px 10px;
    font-size: 14px;
    font-weight: 400;
  }
  .text h1 { font-size: 1.7rem; }
  .services-container {
    grid-template-columns: repeat(auto-fit, minmax(254px, auto));
  }
}
@media(max-width: 991px) {
  header {
    padding: 15px 20px;
  }
}

@media(max-width: 460px) {
  header {
    padding: 10px 10px;
  }
}
@media (max-width: 768px) {
  header .navbar {
    display: none;
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  header .navbar.active {
    display: flex;
  }
}
@media (max-width: 795px) {
  #menu-icon {
    display: block;  /* يبان لما الشاشة تصغر */
  }
}
@media (max-width: 768px) {
  .image-section img {
    float: none;        /* شيل اليمين */
    display: block;     /* خليه عنصر لوحده */
    margin: 20px auto;  /* وسطه تحت */
    width: 70%;         /* يصغر شوية للموبايل */
  }
}
@media (max-width: 768px) {
  .footer-section.links {
    margin-left: 0;   /* ترجع لمكانها الطبيعي */
  }
}
@media (max-width: 768px) {
    .footer-section.newsletter form {
        flex-direction: column; /* input فوق الزر */
        gap: 10px;
        width: 100%;
        padding: 0;
    }

    .footer-section.newsletter input,
    .footer-section.newsletter button {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}