/* تصميم كارت الكورس */
.course-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 14px 14px 20px 14px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

/* رابط وصورة الكارت القابلة للضغط */
.course-img-link {
  position: relative;
  display: block;
  width: 100%;
  height: 215px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  cursor: pointer;
}

.course-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.course-img-link:hover .course-img {
  transform: scale(1.05);
}

/* الشارة العلوية فوق الصورة (Just Kids / Adult / All ages) */
.card-age-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  line-height: 1.2;
}

.badge-dark {
  background-color: #464545;
}

.badge-teal {
  background-color: #0b5d61;
}

.badge-orange {
  background-color: #e59400;
}

/* التاجات الرمادية الصغيرة تحت الصورة (Foundational / All ages) */
.course-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 0 2px;
}

.course-tag {
  background-color: #efefef;
  color: #666666;
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
}

/* عنوان ووصف الكورس */
.course-title {
  font-size: 25px;
  font-weight: 700;
  color: #2b2c2e;
  margin-bottom: 10px;
  padding: 0 2px;
  letter-spacing: -0.3px;
}

.course-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.course-title a:hover {
  color: #06575b;
}

.course-desc {
  font-size: 15px;
  line-height: 1.52;
  color: #464545cc;
  font-weight: 400;
  margin-bottom: 24px;
  padding: 0 2px;
}

/* الفوتر السفلي للكارت (زرار Course Details + السهم البرتقالي) */
.course-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}

/* زرار Course Details */
.btn-course-details {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #065a5a;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  padding: 10px 20px;
  border-radius: 50px;
  transition:
    background-color 0.25s ease,
    transform 0.2s ease;
}

.btn-course-details:hover {
  background-color: #043f42;
  transform: translateY(-1px);
}

.help-bubble-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* زرار السهم البرتقالي الدائري */
.btn-course-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #e59400;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  transition:
    background-color 0.25s ease,
    transform 0.2s ease;
}

.btn-course-arrow:hover {
  background-color: #cc8400;
  transform: rotate(45deg);
}

.btn-course-arrow svg {
  width: 19px;
  height: 19px;
}
