/* Course Card Styling */
.course-card {
  border: 1px solid #f0dfe3;
  border-radius: 24px;
  padding: 32px 28px 28px;
  margin-bottom: 0;
  width: 100%;
  box-sizing: border-box;
  height: 100%;
  min-height: 450px;
  max-width: 420px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  background: linear-gradient(155deg, #fff5f7 0%, #fff 48%);
  box-shadow: 0 4px 8px rgba(61, 25, 36, 0.025),
    0 18px 44px -20px rgba(61, 25, 36, 0.18);
  display: flex;
  flex-direction: column;
  position: relative;
}

.language-section .features-01__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  margin: 32px 0 0;
}

.language-section .features-01__item {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}

.language-section .features-01__items:has(> :only-child) {
  grid-template-columns: minmax(0, 420px);
}

/* Make all feature items the same height */
.features-01__item {
  display: flex;
  height: 100%;
}

.features-01__item .feature {
  display: flex;
  width: 100%;
  height: 100%;
}

.course-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 24px;
  border: 1px solid #fbdbe2;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff, #ffe5eb);
  box-shadow: 0 6px 16px -8px rgba(204, 53, 86, 0.25);
  font-size: 2.15rem;
  line-height: 1;
}

.course-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #303030;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.course-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.2rem;
}

.course-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-level-1 {
  background-color: #eaf7ef;
  color: #21633d;
}

.badge-level-2 {
  background-color: #fff3df;
  color: #87510b;
}

.badge-level-3 {
  background-color: #ffe8ee;
  color: #a82e48;
}

.badge-duration {
  background-color: #fff0f3;
  color: #a82e48;
}

.badge-coming-soon {
  background-color: #fff3e0;
  color: #e65100;
}

.course-link {
  display: inline-block;
  align-self: center;
  max-width: 100%;
  padding: 14px 26px;
  background: linear-gradient(135deg, #fb5168, #e53659);
  color: white !important;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px -8px rgba(229, 54, 89, 0.5);
  text-align: center;
  margin-top: auto;
}

.course-link:focus-visible {
  outline: 3px solid #a82e48;
  outline-offset: 5px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .course-card:hover {
    transform: translateY(-6px);
    border-color: #fb9cab;
    box-shadow: 0 24px 48px -18px rgba(163, 49, 73, 0.25);
  }

  .course-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(229, 54, 89, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .course-card,
  .course-link {
    transition: none;
  }
}

.course-link.disabled {
  background-color: #ccc;
  color: #666 !important;
  cursor: not-allowed;
  pointer-events: none;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin: 2.5rem 0 1rem;
  color: #303030;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #fb5168, #fa3852);
  border-radius: 2px;
}

.language-section {
  margin-bottom: 60px;
}

/* Pink styled lists */
.course-description ul {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
  padding-top: 20px;
  border-top: 1px solid #f4e5e9;
}

.course-description ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 10px;
  line-height: 1.65;
}

.course-description ul li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background-color: #fb5168;
  box-shadow: 0 1px 6px 0 rgba(251, 81, 104, 0.4);
}

.course-description a {
  color: #fb5168;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.course-description a:hover {
  color: #fa3852;
}

/* Intro section */
.intro-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
}

.custom-training-cta .title-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.custom-training-cta .heading,
.custom-training-cta .title-box__text,
.custom-training-cta .content_box p {
  margin: 0;
}

.custom-training-cta .content_box {
  display: flex;
  flex-direction: column;
  gap: 24px;
  line-height: 1.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .language-section .features-01__items {
    grid-template-columns: minmax(0, 420px);
    gap: 24px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .course-card {
    max-width: 100%;
  }
}
