html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: sans-serif;
  background: white;
  color: #111;
    
}

.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
  z-index: 10;
}

.half {
  flex: 1;
  background: #0f172a;
  transition: transform 0.8s ease;
}

.open .top {
  transform: translateY(-100%);
}

.open .bottom {
  transform: translateY(100%);
}

.circle-btn {
  width: 200px;
  height: fit-content;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  transition: transform 0.8s ease;
}

.circle-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.circle-btn h1{
  color: white;
}

.circle-btn.spin {
  transform: translate(-50%, -50%) rotate(720deg) scale(0);
}


/* ===== Content ===== */
.content {
  display: none;
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
  direction: rtl;
}

.show {
  display: block;
}

/* Navbar */
.navbar {
  background: #0f172a;
  color: #fff;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
  display: flex;
    direction: ltr;
}

/* Container */
.nav-container {
  width: 100%;
  padding: 14px 24px;
  display: flex;
  align-items: center;

}

/* Logo */
.logo-box {
  display: flex;
  gap: 10px;

}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

/* Links */

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: #e5e7eb;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: #0f172a;
  background-color: #fff;
}

.btn-ar{
    border: 1px solid white;
}






/* Hamburger */
.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  margin-left: auto;
}

/* ===== Responsive ===== */
@media (max-width: 928px) {
  .nav-links {
    position: absolute;
    top: 65px;
    right: 0;
    background: #0f172a;
    flex-direction: column;
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-radius: 0 0 10px 10px;
  }

  .nav-links.active {
    max-height: 800px;
    margin-top: 20px;
    padding-bottom: 25px;
    padding-right: 10px;
  }

  .nav-links li {
    text-align: right;
    width: 100%;
  }

  .menu-toggle {
    display: block;
  }

}













/* ==== PPIS Secation ==== */

.ppis-section {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 80px 20px;
  margin-top: 30px;
  background: #e1e6eb;
  width: 80%;
  height: fit-content;
  justify-self: center;
  border-radius: 10px;
  box-shadow: 0 0 10px 0px rgba(0, 0, 0, 0.521);
}

.ppis-image img {
  max-width: 350px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.ppis-boxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  flex: 1;
}

.ppis-box {
  background: white;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ppis-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.ppis-box h3 {
  margin-bottom: 10px;
  color: #0f172a;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .ppis-section {
    flex-direction: column;
    gap: 20px;
    padding: 40px 15px;
    text-align: center;
  }

  .ppis-boxes {
    grid-template-columns: 1fr; /* بوكس واحد في الصف */
  }

  .ppis-image img {
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .ppis-section {
    width: 90%;
    padding: 30px 10px;
  }

  .ppis-box {
    padding: 15px;
  }

  .ppis-image img {
    max-width: 150px;
  }
}











/* ==== About Secation ==== */

.about-section {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 80px 20px;
  background: #f8fafc;
  width: 80%;
  height: fit-content;
  justify-self: center;
  margin-top: 20px;
  background-color: #e1e6eb;
  border-radius: 10px;
  box-shadow: 0 0 10px 0px rgba(0, 0, 0, 0.521);

}

.about-image img {
  max-width: 400px;
}

.about-content {
  flex: 1;
}

.about-content h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #0f172a;
}

.about-content p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #333;
}

.about-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.about-btn:hover {
  background: #0f172a;
}

/* ===== Responsive Design for About Section ===== */
@media (max-width: 768px) {
  .about-section {
    flex-direction: column;
    text-align: center;
    padding: 40px 15px;
  }

  .about-image img {
    max-width: 250px;
    margin-top: 20px;
  }

  .about-content h2 {
    font-size: 26px;
  }

  .about-content p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .about-section {
    width: 90%;
    padding: 30px 10px;
  }

  .about-image img {
    max-width: 180px;
  }

  .about-content h2 {
    font-size: 22px;
  }

  .about-content p {
    font-size: 15px;
    line-height: 1.5;
  }
}











/* ==== vision Secation ==== */

.vision-section {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 80px 20px;
  background: #f8fafc;
  width: 80%;
  height: fit-content;
  justify-self: center;
  margin-top: 20px;
  background-color: #e1e6eb;
  border-radius: 10px;
  box-shadow: 0 0 10px 0px rgba(0, 0, 0, 0.521);

}

.vision-vid  video {
  border-radius: 10px;
  border: 4px solid #0f172a;
}

.vision-content {
  flex: 1;
}

.vision-content h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #0f172a;
}

.vision-content p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #333;
}

.vision-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.vision-btn:hover {
  background: #0f172a;
}

/* ===== Responsive Design for About Section ===== */
@media (max-width: 768px) {
  .vision-section {
    flex-direction: column;
    text-align: center;
    padding: 40px 15px;
  }

  .vision-vid video {
    width: 90%;
  }

  .vision-content h2 {
    font-size: 26px;
  }

  .vision-content p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .vision-section {
    width: 90%;
    padding: 30px 10px;
  }

  .vision-content h2 {
    font-size: 22px;
  }

  .vision-content p {
    font-size: 15px;
    line-height: 1.5;
  }
}













/* ==== Course Secation ==== */
.courses-section {
  padding: 60px 20px;
  width: 80%;
  background-color: #e1e6eb;
  border-radius: 10px;
  box-shadow: 0 0 10px 0px rgba(0, 0, 0, 0.521);
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  color: #0f172a;
}

.regulations {
  background-color: #0f172a;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0);
  text-decoration: none;
  color: white;
  padding: 20px;
  transition: all 0.3s ease;
}

.regulations:hover {
  background-color: white;
  border-radius: 10px;
  border: 2px solid #0f172a;
  text-decoration: none;
  color: #0f172a;
  padding: 20px;
  transform: scale(0.8s);
}

/* Year row */
.course-year {
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.year-toggle {
  width: 100%;
  padding: 16px;
  background: #0f172a;
  color: #fff;
  text-align: center;
  font-size: 18px;
  cursor: pointer;
  border: none;
  outline: none;
  display: block;
  justify-content: space-between;
  align-items: center;
}

.year-toggle:hover {
  background: #1e293b;
}

.year-toggle .arrow {
  transition: transform 0.3s ease;
}

.year-content {
  max-height: 0;
  overflow: hidden;
  background: #f9fafb;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  transition: max-height 0.6s ease, padding 0.3s ease;
}

.year-content.open {
  padding: 20px;
  max-height: 10000px;
}


/* Cards */
.course-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.course-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #0f172a;
}

.course-card p {
  font-size: 16px;
  color: #333;
  line-height: 1.5;
}


/* ===== Responsive Design for Courses Section ===== */
@media (max-width: 1200px) {
  .year-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .year-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .course-card h3 {
    font-size: 18px;
  }

  .course-card p {
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  .year-content {
    grid-template-columns: 1fr;
  }

  .course-card {
    padding: 15px;
  }

  .course-card h3 {
    font-size: 16px;
  }

  .course-card p {
    font-size: 14px;
  }

  .section-title {
    font-size: 24px;
  }

  .regulations {
    padding: 12px 16px;
    font-size: 14px;
  }
}















/* ==== Admission Secation ==== */

.admission-section {
  padding: 60px 20px;
  background: #f8fafc;
  width: 80%;
  background-color: #e1e6eb;
  border-radius: 10px;
  box-shadow: 0 0 10px 0px rgba(0, 0, 0, 0.521);
  justify-self: center;

}

.admission-section .section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  color: #0f172a;
}

.admission-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.admission-card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.admission-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #0f172a;
}

.admission-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

/* Admission Section Responsive */
@media (max-width: 992px) {
  .admission-container {
    grid-template-columns: 1fr; /* عمود واحد */
    gap: 20px;
  }

  .admission-card {
    padding: 20px;
  }

  .admission-section .section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
}

@media (max-width: 600px) {
  .admission-card h3 {
    font-size: 18px;
  }

  .admission-card p {
    font-size: 14px;
  }

  .admission-section {
    width: 80%;
  }
}










/* ====Events Section==== */
.events-section {
  padding: 60px 20px;
  background-color: #e1e6eb;
  width: 80%;
  margin: auto;
  border-radius: 10px;
  box-shadow: 0 0 10px 0px rgba(0, 0, 0, 0.521);
  justify-content: center;
  align-items: center;
}

.event {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.event img {
  width: 250px;
  height: fit-content;
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid #0f172a;
}

.event-info h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #0f172a;
}

.event-info p {
  margin: 0 0 12px;
  color: #333;
  line-height: 1.6;
}

.event-link {
  display: inline-block;
  text-decoration: none;
  color: white;
  border: 2px solid #0f172a00;
  background-color: #0f172a;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.event-link:hover {
  background-color: #f8fafc;
  color: #0f172a;
  border: 2px solid #0f172a;
}

.btn-face {
  background-color: #0f172a;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0);
  text-decoration: none;
  color: white;
  padding: 20px;
  transition: all 0.3s ease;
  display: block;
  width: fit-content;
  margin: auto;
}

.btn-face:hover {
  background-color: white;
  border-radius: 10px;
  border: 2px solid #0f172a;
  text-decoration: none;
  color: #0f172a;
  padding: 20px;
  transform: scale(0.8s);
}




/* Events Section Responsive */
@media (max-width: 992px) {
  .event {
    flex-direction: column; /* الصورة فوق والنص تحت */
    text-align: center;
  }

  .event img {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .event-info h3 {
    font-size: 18px;
  }

  .event-info p {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .events-section {
    width: 80%; /* تملى الشاشة أكتر */
    padding: 40px 15px;
  }

  .event {
    padding: 15px;
  }

  .event img {
    max-width: 90%;
    border-radius: 8px;
  }

  .event-info h3 {
    font-size: 16px;
  }

  .event-info p {
    font-size: 13px;
  }

  .event-link {
    padding: 6px 12px;
    font-size: 14px;
  }
}










/* ===== Jobs Section ===== */
.jobs-section {
  padding: 60px 20px;
  background: #f9fafb;
  text-align: center;
  width: 80%;
  height: fit-content;
  justify-self: center;
  border-radius: 10px;
  box-shadow: 0 0 10px 0px rgba(0, 0, 0, 0.521);
}

.jobs-section h2 {
  font-size: 26px;
  margin-bottom: 40px;
  color: #0f172a;
}

.jobs-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.job-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.job-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 15px;
}

.job-card h3 {
  font-size: 18px;
  color: #0f172a;
  margin-bottom: 10px;
}

.job-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}














/* ==== Stracure sction ==== */

.Stracure-section {
  padding: 60px 20px;
  background: #f9fafb;
  text-align: center;
  width: 80%;
  height: fit-content;
  justify-self: center;
  border-radius: 10px;
  box-shadow: 0 0 10px 0px rgba(0, 0, 0, 0.521);
}

.Stracure-section h2 {
  font-size: 26px;
  margin-bottom: 40px;
  color: #0f172a;
}

.Stracure-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.Stracure-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.Stracure-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.Stracure-card img {
  width: 100%;
  height: fit-content;
  border-radius: 10px;
  border: 2px solid #0f172a98;
  box-shadow: 0 0 10px 0 #0f172a5d;
}

.Stracure-card h3 {
  font-size: 18px;
  color: #0f172a;
  margin-bottom: 10px;
}

.Stracure-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}














/* ====Student Section==== */
.Student-section {
  padding: 60px 20px;
  background-color: #e1e6eb;
  width: 80%;
  margin: auto;
  border-radius: 10px;
  box-shadow: 0 0 10px 0px rgba(0, 0, 0, 0.521);
  justify-content: center;
  align-items: center;
}

.Student {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.Student img {
  width: 250px;
  height: fit-content;
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid #0f172a;
}

.Student li {
  text-align: left;
  list-style: none;
}

.Student-info h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #0f172a;
}

.Student-info p {
  margin: 0 0 12px;
  color: #333;
  line-height: 1.6;
}

.Student-link {
  display: inline-block;
  text-decoration: none;
  color: white;
  border: 2px solid #0f172a00;
  background-color: #0f172a;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.Student-link:hover {
  background-color: #f8fafc;
  color: #0f172a;
  border: 2px solid #0f172a;
}


/* Events Section Responsive */
@media (max-width: 992px) {
  .Student {
    flex-direction: column;
    /* الصورة فوق والنص تحت */
    text-align: center;
  }

  .Student img {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .Student-info h3 {
    font-size: 18px;
  }

  .Student-info p {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .Student-section {
    width: 80%;
    /* تملى الشاشة أكتر */
    padding: 40px 15px;
  }

  .Student {
    padding: 15px;
  }

  .Student img {
    max-width: 90%;
    border-radius: 8px;
  }

  .Student-info h3 {
    font-size: 16px;
  }

  .Student-info p {
    font-size: 13px;
  }

  .Student-link {
    padding: 6px 12px;
    font-size: 14px;
  }
}
















/* ==== Ask Secation ==== */

.ask-section {
  padding: 60px 20px;
  background: white;
  text-align: center;
}

.ask-container {
  max-width: 600px;
  margin: auto;
  background: #e1e6eb;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0px 15px rgba(0, 0, 0, 0.43);
  
}

.ask-container h2 {
  margin-bottom: 25px;
  font-size: 28px;
  color: #0f172a;
}

.ask-form .form-group {
  text-align: right;
  margin-bottom: 20px;
}

.ask-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #0f172a;
}

.ask-form input,
.ask-form textarea {
  width: 95%;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border 0.3s;
}

.ask-form input:focus,
.ask-form textarea:focus {
  border-color: #0f172a;
}

.ask-btn {
  background: #0f172a;
  color: #fff;
  border: 2px solid #0f172a;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ask-btn:hover {
  background: #cbd5e1;
  border:2px solid #0f172a ;
  transform: scale(0.3s);
  color: #0f172a;
}

.ask-btn:active {
  transform: scale(0.95);
}











/* ==== Footer ==== */

.footer {
  background: #0f172a;
  color: #e5e7eb;
  padding: 50px 20px 20px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-about h3 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 15px;
}

.footer-about p {
  font-size: 15px;
  line-height: 1.6;
  color: #cbd5e1;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #fff;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  text-decoration: none;
  color: #e5e7eb;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #3b82f6;
}

.footer-contact p {
  font-size: 15px;
  margin: 6px 0;
  color: #cbd5e1;
}

.footer-bottom {
  border-top: 1px solid #334155;
  margin-top: 30px;
  padding-top: 15px;
  text-align: center;
  font-size: 14px;
  color: #94a3b8;
}

footer a {
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
}

footer .brand:hover {
  text-shadow: 0 0 5px white;
  transform: scale(0.4s);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.social-links a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid #0f172a;
  background: white;
  color: #0f172a;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #0f172a;
  color: white;
  border: 1px solid white;
}

.footer-copy {
  font-size: 14px;
  color: #aaa;
}





/* ==== Footer Responsive ==== */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr; /* بدل 3 أعمدة تبقى 2 */
    gap: 30px;
  }

  .footer-about img {
    width: 60px; /* تصغير اللوجوهات */
  }

  .footer-about p {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr; /* كله يبقى عامود واحد */
    text-align: center;
  }

  .footer-about img {
    width: 50px;
    margin: 5px;
  }

  .footer-links ul {
    padding: 0;
  }

  .footer-links li {
    /* display: inline-block; */
    margin: 0 8px;
  }

  .footer-contact div {
    width: 100% !important;
    height: 180px;
    margin: auto;
  }

  .social-links {
    flex-wrap: wrap;
    gap: 15px;
  }

  .social-links a {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .footer-bottom p {
    font-size: 12px;
  }
}
