* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: #f5f6fb;
}

@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("fonts/BarlowSemiCondensed-ExtraBold.woff2") format("woff2"),
       url("fonts/BarlowSemiCondensed-ExtraBold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

.hero_content-header {
  font-family: "Barlow Semi Condensed", Inter, system-ui, sans-serif;
}

/* Layout */
.courses-section {
  padding: 70px 0;
}

.courses-container {
  max-width: 1400px;
  margin: auto;
  padding: 0 20px;
}

.courses-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
}

/* Card */
.course-card {
  display: block;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
  height: 100%;
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  color: inherit;
  text-decoration: none;
}

.course-card:hover,
.course-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(0,0,0,0.12);
}

.course-card:focus-visible {
  outline: 3px solid #ffb321;
  outline-offset: 4px;
}

.course-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

/* Body */
.course-body {
  padding: 18px;
  padding-bottom: 80px; /* reserve CTA space */
}

.course-body h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.course-body p {
  margin: 0;
  font-size: 15px;
  color: #555;
  line-height: 1.5;
}

/* CTA (inside card, no reflow) */
.course-cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;

  opacity: 0;
  transform: translateY(15px) scale(0.95);
  transition: all 0.35s ease;
  pointer-events: none;
}

.course-card:hover .course-cta {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.course-button {
  background: linear-gradient(135deg, #ff8a00, #ffb347);
  color: #fff;
  border: none;
  display: inline-flex;
  padding: 12px 34px;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(255,138,0,0.4);
  transition: transform 0.25s ease;
}

.course-card:hover .course-button,
.course-card:focus-visible .course-button {
  transform: translateY(-2px);
}

/* Swiper */
.courses-swiper {
  position: relative;
  overflow: hidden;
  padding: 10px 50px;
}

.courses-swiper .swiper-slide {
  display: flex;
}

/* Navigation */
.courses-prev,
.courses-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  z-index: 20;
}

.courses-prev { left: 8px; }
.courses-next { right: 8px; }

.ipromise-hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
}

.thank-you-hero {
  min-height: 100vh;
  text-align: center;
  display: flex;
  align-items: center;
}

.thank-you-panel {
  max-width: 720px;
  margin: 0 auto;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  padding: 48px 20px;
  color: #1c150c;
}

.thank-you-icon {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  background: linear-gradient(135deg, #ff8a00, #ffb347);
  color: #fff;
  font-size: 44px;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(255, 138, 0, 0.28);
}

.thank-you-note {
  margin: 0 0 28px;
  color: #6b6b6b;
}

.ipromise-form-popup {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(28, 21, 12, 0.58);
}

.ipromise-form-popup.is-visible {
  display: flex;
}

.ipromise-form-popup__box {
  width: min(420px, 100%);
  border-radius: 16px;
  background: #fff;
  color: #1c150c;
  padding: 26px;
  position: relative;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.ipromise-form-popup__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #8a6a2f;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.ipromise-form-popup__title {
  margin: 0 0 10px;
  color: #1c150c;
  font-size: 22px;
  font-weight: 800;
}

.ipromise-form-popup__message {
  margin: 0 0 20px;
  color: #5e5145;
  font-size: 15px;
  line-height: 1.5;
}

.ipromise-form-popup__button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8a00, #ffb347);
  color: #fff;
  padding: 10px 28px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(255, 138, 0, 0.3);
}

@media (max-width: 480px) {
  .ipromise-form-popup {
    align-items: flex-end;
    padding: 12px;
  }

  .ipromise-form-popup__box {
    width: 100%;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    border-radius: 16px 16px 12px 12px;
    padding: 24px 18px 18px;
  }

  .ipromise-form-popup__title {
    font-size: 19px;
  }

  .ipromise-form-popup__message {
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  .ipromise-form-popup__button {
    width: 100%;
    min-height: 44px;
  }
}


