/* ملف CSS (style.css) */

/* إعدادات عامة */
body {
  font-family: 'Cairo', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #F9F4E7;
  color: #4C5C1A;
}

/* الهيدر */
header {
  background: #4C5C1A;
  color: #fff;
  padding: 1rem;
  text-align: center;
  position: relative;
}

header h1 {
  margin: 0;
}

/* التنقل (القائمة) */
nav {
  display: none;
  flex-direction: column;
  background: #4C5C1A;
  position: absolute;
  top: 100%;
  right: 0;
  width: 200px;
  border-radius: 0px 0px 12px 12px;
  z-index: 1000;
  transform: translateY(-20px);
  opacity: 0;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  margin-right: 7px;
}

nav.active {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem;
  text-align: center;
  border-bottom: 1px solid black;
}

nav a:last-child {
  border-bottom: none;
}

nav a:hover {
  background: #F4A825;
}

/* أيقونة القائمة (للهواتف) */
.hamburger {
  font-size: 1.5rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: block;
}

/* الأقسام */
section {
  padding: 2rem;
  margin: 1rem 0;
  background: #fff;
  border-radius: 8px;
}

/* الفيديو */
video {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border: 2px solid #F4A825;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

/* المعرض */
.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.gallery img {
  width: 250px;
  height: 100%;
  object-fit: cover;
  border: 2px solid #4C5C1A;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* الفوتر */
footer {
  text-align: center;
  padding: 1rem;
  background: #4C5C1A;
  color: #fff;
}

/* شاشات أكبر من 768px */
@media (min-width: 768px) {
  nav {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: none;
    width: auto;
  }

  nav a {
    border: none;
    margin: 0 1rem;
  }

  .hamburger {
    display: none;
  }

  .student-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
  }
}

/* بطاقات الطلاب */
.student-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.student-card {
  background: #fff;
  border: 2px solid #4C5C1A;
  border-radius: 8px;
  width: 250px;
  text-align: center;
  padding: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.student-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.student-card img {
  object-position: top center;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: #4C5C1A solid 2px;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

/* زر الصعود للأعلى */
#toTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #F4A825;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

#toTop:hover {
  background: #d89210;
}

/* قائمة بدون نقاط */
.end {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* زر عرض صور التخرج */
.center-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #F9F4E7; /* نفس لون الخلفية العامة */
}

.graduation-btn {
  background-color: #F4A825;
  color: #fff;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  font-family: 'Cairo', sans-serif;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.graduation-btn:hover {
  background-color: #e09920;
  transform: scale(1.05);
}

/* الزر للجوال */
@media (max-width: 600px) {
  .graduation-btn {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }
}

/* تنسيق صورة مرفوعة */
.Upimg {
  border-radius: 12px;
  display: block;
  margin: auto;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  max-width: 100%;
  height: auto;
}
