@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

*{
 margin: 0;
 padding: 0;
 box-sizing: border-box;
 font-family: "Tajawal", sans-serif;
}

a{
 color: white;
 text-decoration: none;
}

/* body */
body{
 width: 100%;
 overflow-x: hidden;
 color: white;
}

html{
 scroll-behavior: smooth;
}

.section-divider {
  width: 100%;
  height: 6px;
  background-color: #ffffff;
  margin-top: -10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
  position: relative;
}


/* start header */

.header {
  height: 100vh;
  background: url(img/hero-img.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.header .navbar{
  display: flex;
 justify-content: space-between;
 align-items: center;
 width: 90%;
 max-width: 1300px;
 margin: auto;
}






.header .navbar ul li{
 display: inline-block;
 padding: 20px 15px;
 position: relative; 

}



ul li a.avatr img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid #e6e420;
  object-fit: cover;
  transition: 0.3s ease;
}

ul li a.avatr:hover img {
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(230, 228, 32, 0.7);
}





/* تنسيق عام لقائمة الأزرار العلوية */
ul {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}



.header .navbar ul li a:hover::after {
  width: 100%;
}



.avatar-dropdown {
  position: relative;
}

.avatar-toggle img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid #e6e420;
  object-fit: cover;
  transition: 0.3s ease;
}

.avatar-toggle:hover img {
  transform: scale(1.05);
}

.avatar-menu {
  position: absolute;
  top: 60px;
  right: 0;
  background-color: rgb(17, 54, 124);
  color: #19337c;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  list-style: none;
  padding: 10px 0;
  min-width: 180px;
  display: none;
  z-index: 999;
}

.avatar-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: #f4f4f4;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s;
}

.avatar-menu li a i {
  width: 20px;
}

.avatar-menu li a:hover {
  background-color: #f0f0f02a;
  color: #e6e420;
}

.avatar-dropdown.active .avatar-menu {
  display: block;
}


.header .navbar ul li .links::after {
  content: "";
  position: absolute;
  width: 10%;
  height: 4px;
  left: 0;
  bottom: 0;
  background-color: #e6e420;
  transition: 0.3s ease;
}

.bell img{
  width: 50px;
  height: auto;
}

.notification-dropdown {
  position: relative;
}

.notification-dropdown .bell img {
  width: 50px;
  cursor: pointer;
  transition: 0.3s;
}

.notification-menu {
  position: absolute;
  top: 50px;
  right: 0;
  background-color: #19337c;
  color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  min-width: 200px;
  padding: 20px;
  z-index: 999;
  display: none;
  text-align: center;
  font-weight: bold;
}

.notification-dropdown.active .notification-menu {
  display: block;
}

/* Loader (spinner) */
.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #e6e420;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  animation: spin 1s linear infinite;
  margin: auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}







.animated-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px 36px;
  border: 4px solid;
  border-color: transparent;
  font-size: 16px;
  border-radius: 100px;
  font-weight: 600;
  color: #1f387e;
  box-shadow: 0 0 0 2px #ffffff;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button svg {
  position: absolute;
  width: 24px;
  fill: #1f387e;
  z-index: 9;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .arr-1 {
  right: 16px;
}

.animated-button .arr-2 {
  left: -25%;
}

.animated-button .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: #c5e5e4;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .text {
  position: relative;
  z-index: 1;
  transform: translateX(-12px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button:hover {
  box-shadow: 0 0 0 12px transparent;
  color: #212121;
  border-radius: 12px;
}

.animated-button:hover .arr-1 {
  right: -25%;
}

.animated-button:hover .arr-2 {
  left: 16px;
}

.animated-button:hover .text {
  transform: translateX(12px);
}

.animated-button:hover svg {
  fill: #1f387e;
}

.animated-button:active {
  scale: 0.95;
  box-shadow: 0 0 0 4px #e6e420;

}

.animated-button:hover .circle {
  width: 220px;
  height: 220px;
  opacity: 1;
}


.header .navbar .logo img{
 width: 150px;
 height: auto;
 padding-top: 13px;
}


/*start header content */


.header-content{
 display: flex;
 justify-content: space-between;
 align-items: center;
 width: 90%;
 margin: auto;
 height: 75%;
 max-width: 1300px;
}

.header-content .text{
 width: 45%;
}

.header-content .text h2{
 font-size: 55px;

}

.header-content .text h2 span{
 color: #e6e420;
}


.header-content .text .p{
 margin-top: 20px;
 font-size: 20px;
 font-weight: 300;
}

.header-content .text .p span{
  color: #e6e420;
  background: linear-gradient( to left, rgba(255, 255, 255, 0.418) ,transparent);
}

.header-content .header-img img{
 width: 550px;
}

/*end header content */


/* end header */



   /* start yesrs */

  .grades-section {
    padding: 60px 20px;
    text-align: center;
    font-family: 'Tajawal', sans-serif;
    background: url(img/rec.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }

  .grades-section h2 {
    font-size: 46px;
    margin-bottom: 10px;
  }

  .grades-section p {
    font-size: 18px;
    color: #ffffff;
    max-width: 700px;
    margin: auto;
    margin-bottom: 50px;
  }

   .grades-section p span {
    color: #e6e420;
    background: linear-gradient( to left, rgba(255, 255, 255, 0.295) ,transparent);
  }


  .cards-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
  }

  .card {
    position: relative;
    width: 250px;
    height: 350px;
    background: rgb(25, 51, 124);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s;
  }

  .card::before,
  .card::after {
    position: absolute;
    content: "";
    width: 20%;
    height: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e6e320e8;
    transition: all 0.5s;
    z-index: 1;
  }

  .card::before {
    top: 0;
    right: 0;
    border-radius: 0 15px 0 100%;
  }

  .card::after {
    bottom: 0;
    left: 0;
    border-radius: 0 100% 0 15px;
  }

  .card:hover::before,
  .card:hover::after {
    width: 100%;
    height: 100%;
    border-radius: 15px;
  }

  .card:hover::after {
    content: "دخول";
    color: #000;
    font-size: 28px;
    align-items: center;
    justify-content: center;
  }

  /* end yesrs */

.exams-up {
  background: linear-gradient(to left, #19337c, transparent);
  height: 70vh;
  width: 100%;
  display: flex;
  align-items: center;         
  justify-content: space-between;
  padding: 0 5%;
  gap: 30px;
}

.exams-up .text {
  width: 50%;
  color: white;
}

.exams-up .text h2 {
  font-size: 40px;
  margin-bottom: 10px;
  color: #e6e420;
}

.exams-up .text p {
  font-size: 18px;
  line-height: 1.6;
}

.exams-up .btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 40px;
  background-color: #e6e420;
  border: #e6e420 1px solid;
  color: rgb(0, 0, 0);
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
}

.exams-up .btn:hover {
  background-color: #fff20000;
  color: #ffffff;
}

.exams-up .img img {
  width: 100%;
  max-width: 550px;
}

/* end exams */

/* ===== Footer ===== */
.custom-footer {
  background-color: #ffffffda;
  text-align: center;
  padding: 60px 20px 10px;
  margin: 20px 10px;
  border-radius: 70px;
  box-shadow: inset 10px 4px 10px rgba(0, 0, 0, 0.267);
  position: relative;
  background: url(img/bg-footer-11_new\ .png);
  background-repeat: no-repeat;
  overflow: hidden;
  font-family: 'Cairo', sans-serif;
}

.foter-photo-bg {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 450px;
  z-index: 1;
}

.footer-logo {
  width: 200px;
  margin-bottom: 20px;
}

.footer-text {
  font-size: 34px;
  font-weight: 900;
  color: #19337c;
  margin-bottom: 25px;
}

.social-box {
  background-color: #19337c;
  color: white;
  display: inline-block;
  padding: 45px 100px;
  border-radius: 8px;
}

.social-box p {
  margin-bottom: 10px;
  font-weight: bold;
  font-size: 29px;
}

/* أيقونات السوشيال داخل الفوتر */
.social-box .icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.social-box .icons a {
  display: inline-flex;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  transition: 0.3s ease;
}

.social-box .icons a img {
  width: 50px;
  height: auto;
}

.our a{
  color: #19337c;
  font-weight: 700;
  background-color: #ffffff;
  padding: 7px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.our a:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}




/* =================== Responsive =================== */

/* للموبايلات */
@media (max-width: 768px) {

  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    
  }

  .header-content .text {
    width: 100%;
  }

  .header-content .text h2 {
    font-size: 33px;
  }

  .header-content .text .p {
    font-size: 14px;
  }

  .header-content .header-img img {
    width: 100%;
    max-width: 350px;
    position: relative;
    bottom: 30px;
  }

  .navbar {
    
    align-items: flex-start;
  }



  .header .navbar ul li {
    width: 100%;
    text-align: center;
  }

  .header .navbar ul.active {
    display: flex;
  }

  .button_nav{display: flex;
  justify-content: flex-start;}

  .burger {
    display: flex;
    position: absolute;
    top: 25px;
    left: 25px;
    z-index: 1001;
  }

  .exams-up {
    flex-direction: column;
    text-align: center;
    height: auto;
    padding: 40px 20px;
  }

  .exams-up .text{
    width: 100%;
  }

  .exams-up .img{
  position: relative;
  top: 70px;
  left: 100px;}

  .exams-up .text h2 {
    font-size: 28px;
  }

  .exams-up .text p {
    font-size: 16px;
  }

  .grades-section h2 {
    font-size: 30px;
  }

  .grades-section p {
    font-size: 16px;
  }

  .card {
    width: 90%;
    height: 250px;
  }

  .custom-footer {
    padding: 30px 10px;
    border-radius: 40px;
  }

  .social-box {
    padding: 20px 40px;
  }

  .social-box p {
    font-size: 20px;
  }

  .social-box .icons {
    gap: 20px;
  }

  .foter-photo-bg {
    width: 300px;
  }

  .exams-up{background: linear-gradient( #19337c, transparent);}
  .foter-photo-bg{max-width: 350px;}
  .custom-footer{
    background: url(img/bg-footer-11_new\ .png);
    background-repeat: no-repeat;
    background-size: 450px;
    overflow: hidden;}
  }
  .custom-footer{height: 100vh;}
  .footer-logo{position: relative;top:30px;}



/* للتابلت */
/* ====== Responsive for Tablets (769px to 1024px) ====== */
@media (min-width: 769px) and (max-width: 1023px) {

  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    height: auto;
    
  }

  .header-content .text {
    width: 100%;

  }

  .header-content .text h2 {
    font-size: 40px;
  }

  .header-content .text .p {
    font-size: 14px;
  }

  .header-content .header-img img {
    width: 100%;
    max-width: 350px;

    margin: auto;

  }

  .grades-section h2 {
    font-size: 36px;
  }

  .grades-section p {
    font-size: 16px;
    padding: 0 20px;
  }

  .card {
    width: 45%;
    height: 300px;
  }

  .exams-up {
    flex-direction: column;
    text-align: center;
    height: auto;
    padding: 40px 20px;
  }

  .exams-up .text {
    width: 100%;
  }

  .exams-up .text h2 {
    font-size: 32px;
  }

  .exams-up .text p {
    font-size: 16px;
  }

  .exams-up .img img {
    max-width: 400px;
  }

  .custom-footer {
    padding: 40px 20px;
    border-radius: 50px;
  }

  .social-box {
    padding: 30px 60px;
  }

  .footer-text {
    font-size: 28px;
  }

  .social-box p {
    font-size: 22px;
  }

  .foter-photo-bg {
    width: 350px;
  }
  .exams-up{background: linear-gradient( #19337c, transparent);}
  .exams-up .img{
    position: relative;
    top: 70px;
    left: 100px;}

  .navbar{width: 100%;
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    align-items: center;
    position: relative;
    top: 5px;}

  ul{width: 0%;
    height: 0px;}
  .button_nav{position: relative;
    bottom: 80px;
    }
}


/* small laptop */

@media (min-width: 1024px) and (max-width: 1279px) {

  .header .navbar{
    display: flex;
    flex-wrap: nowrap; 
    align-items: center;
    overflow: hidden;
    justify-content: center;
    margin: auto;}
  
  .header .navbar ul{width: 90%;
    height: 120px;
    }

  .header-img{display: flex;
    justify-content: flex-end;
    justify-content: center;
    width: 50%;}

    .header-img img{max-width: 450px;}

    .header-content .text h2{font-size: 45px;}
}

@media (min-width: 350px) and (max-width: 361px) {
  .header-img {max-width: 350px;}

  .header-content .text h2{font-size: 34px;}

  .p p{font-size: 12px;}

}