
body {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  background-color: #eef6ff;
  direction: rtl; 
  background: url("../img/bg.png") no-repeat center center;
  background-size: contain;
  min-height: 100vh;
  padding-top: 140px;
  display: flex;
  flex-direction: column;
  
}
.content {
  flex: 1;
}
.top-page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2); 
  z-index: -1;
}
.top-page {
  position: relative;
  min-height: 100dvh;
  background: url("../img/bg.png") no-repeat center center;
  margin-top: 80px;
  background-size: contain; 
  background-repeat: no-repeat;
  width: 100%;
  
}
/*background interaction with Mobile */
@media screen and (max-width: 767px) {
  body,
  .top-page {
    background: url("../img/bg-mobile.png") no-repeat center center;
    background-size: contain;
    background-position: top center;
    background-color: #eef6ff;
  }
}

/* background interaction with Tablet  */
@media screen and (min-width: 768px) and (max-width: 1124px) {
  body,
  .top-page {
    background: url("../img/bg-tablet.png") no-repeat center center;
    background-size: contain;
  }
}

h1, h2, h3, .title {
    font-family: "Lemonada", cursive !important;
    font-weight: 700;
}

p, span, .description {
    font-family: "El Messiri", sans-serif !important;
    font-optical-sizing: auto;
    font-weight: 400; 
    line-height: 1.6; 
    font-style: normal;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 15px 40px;
  margin: 0;
  border-radius: 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 900;
  background: linear-gradient(180deg, #ffffff 0%, #E8E3DB 100% );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08),  0 4px 6px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.nav-links {
  position: absolute;
  right: 880px;
  left: auto;
  transform: none;
}

.nav-links ul {
  list-style: none;
  display: flex;
  gap: 40px;
  padding: 15px 30px;
  margin: 0;
  background: linear-gradient(75deg, #F9E27D, #D4AF37);
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.nav-links li a {
  text-decoration: none;
  color: #5A0000;
  font-size: 24px;
  font-weight: 500;
  position: relative;
  padding: 5px 10px;
  transition: 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: -10px;  
  right: -10px;
  width: 0%;
  height: 2.5px;
  background: #7d0a0a; 
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #ffffff;
}

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

.logo-img, .logo-img2 {
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background-color: transparent;
  mix-blend-mode: multiply;
}


.logo-img {
  width: 670px;
  height: auto;
  object-fit: contain;
  border-radius: 10px; 
  transform: translateX(-30px);
  background-color: transparent;
}

.logo-img2{
  margin-right: auto;
  width: 150px;
  height: auto;
  object-fit: contain;
  border-radius: 10px; 
  background-color: transparent;
}
/* logo nav interaction with Tablet */
@media screen and (max-width: 1024px) {

  .logo-img {
    width: 450px;
  }

  .logo-img2 {
    width: 140px;
  }

}
/* logo nav interaction with Mobile */
@media screen and (max-width: 768px) {

  .navbar {
    padding: 10px 15px;
  }
  .logo {
    display: flex;
    align-items: center;
    gap: 0px;
    margin: 0;
    transform: none !important;
  }
  .logo-img {
    width: 200px;
    transform: none;
    margin: 0;
  }
  .logo-img2 {
    width: 60px;
    margin: 0;
  }

}


.title {
  text-align: center;
  font-size: clamp(18px, 5vw, 30px);
  font-weight: 600;
  margin-top: 2px;
  color: #5A0000;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.716),
               0 3px 6px rgba(0,0,0,0.15);
  letter-spacing: clamp(0.5px, 0.5vw, 2px);
}

/*fother*/
.footer {
    text-align: center;
    margin-top: auto;
    padding: 25px 20px;
    margin-top: 50px;
    background: linear-gradient(180deg, #f8f6f2, #eae4d8);
    border-top: 4px solid rgba(0,0,0,0.08);
}

.footer p {
  font-size: clamp(14px, 3vw, 25px);
  line-height: 1.6;
  max-width: clamp(280px, 90%, 800px);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: auto;
  color: #5a3b1e;
  text-align: center;
  text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

@media screen and (max-width: 768px) {
  .title {
    position: relative;
    top: -200px;
  }
}
/*____________________________________________________________________________________________________________________________________________________________________*/
/*top student page */


/* ===== PODIUM ===== */


.podium-stage {
  padding: 50px 20px;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: -40px; 
}

.podium-wrapper {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px; 
  direction: ltr; 
}

.podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  direction: rtl; 
  width: 300px;
  position: relative;
}

.place-1 { width: 300px; z-index: 5; } 
.place-2 { z-index: 4; }
.place-3 { z-index: 3; }

.avatar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: -35px; 
  z-index: 10;
}

.profile-pic {
width: 230px;
height: 230px;
border-radius: 50%;
object-fit: cover;
border: 5px solid;
box-shadow: 0 10px 25px rgba(0,0,0,0.25);
background-color: #fff;
}

.place-1 .profile-pic { 
  width: 260px; height: 260px; 
  border-color: #FFF23E;          
  box-shadow: 0 10px 25px rgba(242, 214, 123, 0.77);
}

.place-2 .profile-pic { 
  border-color: #ADB5BD ;
  box-shadow: 0 10px 25px rgba(130, 183, 212, 0.4);
}

.place-3 .profile-pic { 
  border-color: #d9996b; 
  box-shadow: 0 10px 25px rgba(216, 157, 123, 0.7);
}

.student-info {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 15px;
margin-bottom: 20px;
}

.student-name {
  font-size: 27px;
  font-weight: 900;
  color: #333;
  margin-bottom: 6px;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.place-1 .student-name { color: #c7b700; font-size: 27px; }
.place-2 .student-name { color: #7C868F; }
.place-3 .student-name { color: #a8613b; }

.student-score {
  font-size: 29px;
  font-weight: 800;
  color: #380000;
}

.podium-block {
  width: 100%;
  border-radius: 12px 12px 6px 6px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end; 
  padding-bottom: 25px;
  box-shadow: 0 25px 35px -10px rgba(0,0,0,0.3), inset 0 -5px 15px rgba(0,0,0,0.15);
}

.podium-block::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 12px 12px 6px 6px;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
  border-top: 2px solid rgba(255,255,255,0.6);
  border-left: 1px solid rgba(255,255,255,0.3);
  pointer-events: none; 
  z-index: 1;
}


.block-1 {
  height: 240px; 
  background: linear-gradient(180deg, #f4ed8f 0%, #FFF23E 40%, #D4C200 100%);
}

.block-2 {
  height: 160px;
  background: linear-gradient(180deg, #d3d6da 0%, #ADB5BD 40%, #7C868F 100%);
}

.block-3 {
  height: 110px;
  background: linear-gradient(180deg, #f0c7a8 0%, #d9996b 40%, #a8613b 100%);
}

.block-content {
  z-index: 2; 
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.medal-ring {
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 900;
  border: 4px solid;
  box-shadow: 0 6px 12px rgba(0,0,0,0.35), inset 0 2px 4px rgba(255,255,255,0.5);
  position: relative;
}

.place-1 .medal-ring {
  width: 85px;
  height: 85px;
  font-size: 38px;
  background: #fff3b7; 
  color: #a89a02; 
  border-color: #f9e596;
  margin-bottom: 25px; 
}

.place-2 .medal-ring {
  width: 67px;
  height: 67px;
  font-size: 30px;
  background: #dddcdc; 
  color: #7C868F; 
  border-color: #d3d6da;
}

.place-3 .medal-ring {
  width: 55px;
  height: 55px;
  font-size: 25px;
  background: #f0c7a8; 
  color: #a8613b; 
  border-color: #d8a37a;
}

.poduim-name-place1 {
  color: #f4ed8f;
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  width: 80%;
  line-height: 1.5;
  text-shadow: 1px 1px 0px rgba(255,255,255,0.4), -1px -1px 0px rgba(0,0,0,0.1);
}

.poduim-name-place2 {
  color: #d3d6da;
  font-size: 25px;
  font-weight: 800;
  text-align: center;
  width: 80%;
  line-height: 1.5;
  text-shadow: 1px 1px 0px rgba(255,255,255,0.4), -1px -1px 0px rgba(0,0,0,0.1);
}

.poduim-name-place3 {
  color: #f0c7a8;
  font-size: 21px;
  font-weight: 800;
  text-align: center;
  width: 80%;
  line-height: 1.5;
  text-shadow: 1px 1px 0px rgba(255,255,255,0.4), -1px -1px 0px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .podium-wrapper {
    transform: scale(0.45); 
    transform-origin: top center;
  }
}

/*_______________________________________________________________*/
/*animation zellij*/


/* الإعدادات المشتركة لكل زليجة */
.zellige {
  position: absolute;    /* استعمل fixed باش يبقاو لاصقين واخا تهبط في الصفحة */
  top: 42%;
  transform: translateY(-40%);
  width: 520px;
  height: 520px;
  z-index: 10;
  pointer-events: none; /* مهم: باش الزليجة ما تمنعكش تضغط على أي حاجة تحت منها */
  opacity: 0.6;
}

/* التموضع الخاص بالجهة اليسرى */
.zellige.left {
  left: -230px;
}

/* التموضع الخاص بالجهة اليمنى */
.zellige.right {
  right: -230px; /* استعملنا right عوض left */
}

/* إعدادات الـ SVG والأنيماسيون */
svg {
  width: 100%;
  height: 100%;
  animation: spin 60s linear infinite;
  transform-origin: center;
}

/* جعل الزليجة اليمنى تدور عكس اليسرى (اختياري ويعطي شكل أجمل) */
.zellige.right svg {
  animation-direction: reverse;
}

path, polygon {
  fill: none;
  stroke: #D4AF37;
  stroke-width: 1;
}

.center {
  stroke-width: 1;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* إضافة ضرورية للحاوية الكبيرة (body أو container) */
body {
  overflow-x: hidden; /* باش الصفحة ما توليش كتحرك لليمين واليسار بسباب الأجزاء الخارجة */
}




/*_________________________________________________________________________*/
/* card level /class*/

.sections {
  text-align: center;
  padding: 60px 20px;
}

.title h2 {
  font-size: 40px;
  color: #D4AF37;
  margin-bottom: 10px;
}

.divider {
  width: 270px;
  height: 3px;
  background: linear-gradient(to right, transparent, #b38b2d, transparent);
  margin: 10px auto 40px;
}

.cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.card {
  background-image: url("../img/bgCards.png"); 
  background-size: cover;            
  background-position: center;       
  background-repeat: no-repeat; 
  border-radius: 20px;
  width: 100%;       
  max-width: 360px;  
  box-sizing: border-box;
  padding: 30px 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border: 1px solid #e6d3a3;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-15px);
}

.icon {
  width: 60px;
  height: 60px;
  background: rgba(212, 175, 55, 0.8);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 24px;
  stroke-width: 2;  
}

.fixed-icon {
    width: 40px; 
    height: auto; 
    animation: none !important;
    transform: none !important;
    max-width: 100%;
}

.card h3 {
  font-size: 22px;
  color: #7a1e1e;
  margin-bottom: 10px;
}

.line {
  width: 50px;
  height: 1.5px;
  background: #c9a646;
  margin: 10px auto;
}

.card p {
  font-size: 18px;
  color: #555;
  margin: 15px 0;
  line-height: 1.8;
}

.card button {
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 17px;
  border: 1.5px solid #D4AF37;
  background: transparent;
  color: #D4AF37;
  cursor: pointer;
  transition: 0.3s;
}

.card button:hover {
  background: #D4AF37;
  color: white;
}

@media (max-width: 768px) {
  .title h2 {
    font-size: 28px; 
    margin-top: 60px;
    padding: 0 !important;
  }

  .sections {
    padding: 40px 15px; 
    padding-top: 20px;
  }

  .divider {
    width: 200px; 
    margin: 5px auto 5px !important;
  }
  .cards {
    margin-top: -130px !important;
  }
  .card {
    width: 65%;
  }

  .card h3 {
    font-size: 20px;
  }

  .card p {
    font-size: 16px;
    line-height: 1.6;
  }
}

/*______________________________________________________*/
.card2 {
  background-image: url("../img/bgCards.png"); 
  background-size: cover;            
  background-position: center;       
  background-repeat: no-repeat; 
  border-radius: 20px;
  width: 20px;
  padding: 30px 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border: 1px solid #e6d3a3;
  transition: 0.3s;
}

.card2:hover {
  transform: translateY(-15px);
}

.card2 h3 {
  font-size: 22px;
  color: #7a1e1e;
  margin-bottom: 10px;
}

.card2 p {
  font-size: 18px;
  color: #555;
  margin: 15px 0;
  line-height: 1.8;
}

.card2 button {
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 17px;
  border: 1.5px solid #D4AF37;
  background: transparent;
  color: #D4AF37;
  cursor: pointer;
  transition: 0.3s;
}

.card2 button:hover {
  background: #D4AF37;
  color: white;
}
