body {
  background: url("../IMG/poster-frame-children-room-kids-room-nursery.jpg");
  background-size: cover;        /* تخلي الصورة تغطي كل الشاشة */
  background-repeat: no-repeat;  /* تمنع تكرار الصورة */
  background-position: center;   /* تخلي الصورة في المنتصف */
  background-attachment: fixed;  /* دي اللي بتثبت الصورة */
  height: 50vh;             /* عشان الخلفية تمتد بطول الصفحة */
  scroll-behavior: smooth;       /* سكرول ناعم */
  max-width: 100%;
  overflow-X: hidden;
}
body {
    background-color: #fafafa;
    margin: 0;
    padding: 0;
    color: #333;
}

#course-application{
  position: fixed;
  bottom: 0px;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin: 0;
}
#course-application::after {
  content: "";
  position: fixed; /* ✅ fixed بدل absolute علشان يغطي الشاشة بالكامل */
  top: 0px;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #00214762;
  z-index: -1;
}
#course-application form {
  background-color: #e7e7e7;
  padding: 20px;
  border-radius: 10px;
  max-width: 700px;
  margin: 0 ;
  position: relative;
  max-height: 95vh;
  overflow-y: scroll;
}

#course-application form #close-form {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 25px;
  font-weight: 700;
  background: transparent;
  border: 0;
  cursor: pointer;
  overflow-y: auto;
  transition: 0.7s;
  color: #333;
  overflow: hidden;
}

#course-application form #close-form:hover{
  color: rgb(175, 3, 3);
  transform: rotate(180deg);
}

#course-application h2,#course-application p{
  color: black;
}

main {
    max-width: 1200px;
    margin: 150px auto 50px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    z-index: 100;
    min-height: 80vh;
    overflow-x: hidden;
    width: 100%;
}


.course-content {
  flex: 1;
  color: #333;
}

.course-title {
  font-size: 2rem;
  font-weight: 800;
  color: white;
}

.course-desc {
  margin: 15px 0;
  font-size: 1.1rem;
  color: #e7e7e7;
  max-width: 550px;
}

.course-info .info-box {
  background: #f3f6fa;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  color: #002147;
}
.course-info .info-box.next-course {
  cursor: pointer;
  transition: .5s;
}
.course-info .info-box.next-course:hover {
  background-color: var(--secondary-color);
}

.course-info i {
  margin-right: 8px;
  color: #B9CF25;
}

.course-image img {
  width: 380px;
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  transition: 0.4s ease;
}

.course-image img:hover {
  transform: scale(1.05);
}


/* Extra Sections */
.course-section {
  background: #fff;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  margin-bottom: 30px;
  width: 50%;
}

.course-section h2 {
  font-weight: 700;
  color: #002147;
  margin-bottom: 15px;
}

.course-section ul {
  list-style: none;
  padding-left: 0;
}

.course-section ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.course-section ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #B9CF25;
  font-weight: bold;
}

.text-main {
  color: #B9CF25 !important;
}

.btn-main {
  background: #B9CF25;
  color: #002147;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
  transition: 0.3s;
  text-decoration: none;
}

.btn-main:hover {
  background: #002147;
  color: #fff;
}

.btn-outline-main {
  border: 2px solid #B9CF25;
  color: #002147;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.btn-outline-main:hover {
  background: #B9CF25;
  color: #002147;
}
/* Responsive */
@media (max-width: 992px) {
  main {
    flex-direction: column-reverse;
    text-align: center;
    }

    .course-image img {
      height: 300px;
    }
    .course-section {
      width: 100%;
    }
    #course-application form{
      max-width: 330px;
    }
    #course-application form #close-form {
      top: 0px;
      right: -5px;
    }
    
}
@media (max-width: 992px) {
  #course-application form {
    max-height: 600px;
  }
}
@media (max-width: 500px) {
  .course-title {
    font-size: 1.9rem;
  }
  .course-section {
    padding: 20px 20px;
  }
  .enroll-btn {
    padding: 15px 20px;
    min-width: 150px;
  }
}


#calendar {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  max-width: 800px;
  width: 100%;
  z-index: 100;
}
.fc-toolbar-chunk{
  text-align: center;
}
.fc-toolbar-chunk .fc-today-button{
  margin-bottom: 10px;
  display: inline-block;
}
#calendar .close-calendar{
  background-color: #b90202;
  color: white;
  width: 120px;
  padding: 10px;
  border-radius: 15px;
  font-size: 17px;
  margin: auto;
  margin-top: 7px;
  border: 0;
  outline: 0;
  transition: .5s;
}
#calendar .close-calendar:hover{
  background-color: #7e0303;
}


.enroll-section {
  background: linear-gradient(135deg, #e8f0ff, #ffffff);
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
  margin-top: 40px;
  line-height: 1.8;
  font-size: 17px;
}
.enroll-section p{
  max-width: 900px;
}

.enroll-section a.enroll-btn {
  display: inline-block;
  background: #B9CF25;
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
  display: inline-block;
  margin: 0px 10px;
}

.enroll-section a.enroll-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.enroll-section i {
  margin-right: 8px;
}
.enroll-title{
  font-weight: 700;
}
@media (max-width: 768px) {
  .enroll-section {
    font-size: 16px;
    text-align: justify;
  }
}