/* ===== Global Reset & Font ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Cairo", sans-serif;
  background: #4c94dc;
  color: #222;
  line-height: 1.7;
}

/* ===== Section General ===== */
.featured-courses {
  padding: 90px 20px;
  background: #f9fafb;
}

.featured-courses .container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.7rem;
  text-align: center;
  margin-bottom: 60px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.section-title::after {
  content: "";
  width: 80px;
  height: 5px;
  background: #2ecc71;
  border-radius: 10px;
  display: block;
  margin: 15px auto 0;
}

/* ===== Courses Grid ===== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
}

/* ===== Course Card ===== */
.course-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s ease;
  position: relative;
}

.course-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* ===== Badge (نظري/عملي) ===== */
.course-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #27ae60;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  padding: 6px 14px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* نظري */
.theoretical-courses .course-badge {
  background: #3498db;
}

/* عملي */
.practical-courses .course-badge {
  background: #974803;
}

/* ===== Course Image/Icon ===== */
.course-image {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 45px 0;
  position: relative;
}

.course-icon {
  font-size: 65px;
  color: #fff;
  z-index: 1;
  transition: transform 0.4s ease;
}

.course-card:hover .course-icon {
  transform: rotate(12deg) scale(1.1);
}

/* ===== Course Content ===== */
.course-content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  font-size: 1.5rem;  
  font-weight: 600;
  margin-bottom: 12px;
  color: #e20c0c;
}

.course-meta .category {
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

/* Categories Colors */
.theoretical-courses .course-meta .category {
  color: #3498db;
}

.practical-courses .course-meta .category {
  color: #e67e22;
}

.course-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 15px;
  color: #222;
}

.course-description {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ===== Instructor Info ===== */
.course-instructor {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.instructor-avatar {
  background: #27ae60;
  color: #fff;
  font-size: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 15px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.instructor-info {
  display: flex;
  flex-direction: column;
}

.instructor-name {
  font-size: 18px;
  font-weight: bold;
  color: #222;
}

.instructor-title {
  font-size: 14px;
  color: #777;
}

/* ===== Actions ===== */
.course-actions {
  text-align: left;
}

.btn-enroll {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: #fff;
  border: none;
  padding: 14px 26px;
  border-radius: 40px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s ease;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-enroll:hover {
  background: linear-gradient(135deg, #27ae60, #219150);
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
  }
  .course-title {
    font-size: 20px;
  }
  .btn-enroll {
    font-size: 15px;
    padding: 12px 20px;
  }
}
