.course-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background-color: #9DB075;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

.course-popup[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.course-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.course-popup-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1400px;
  padding: 60px 50px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.course-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 50px;
}

.course-popup-title-wrap {
  display: flex;
  align-items: flex-end;
  gap: 150px;
}

.course-popup-title {
  font-family: 'Onest', sans-serif;
  font-weight: 900;
  font-size: 55px;
  line-height: 1.1;
  color: #000;
  max-width: 700px;
  margin: 0;
}

.course-popup-levels {
  font-family: 'Onest', sans-serif;
  font-weight: 400;
  font-size: 26px;
  color: #000;
  margin-bottom: 10px;
}

.course-popup-close-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid #151313;
  border-radius: 100px;
  padding: 20px 50px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.course-popup-close-btn .close-text {
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  color: #000;
  display: inline;
}

.course-popup-close-btn .close-icon-arrow {
  width: 19px;
  height: 14px;
  display: block;
}

.course-popup-close-btn .close-icon-cross {
  display: none;
}

.course-popup-close-btn:hover {
  background: #151313;
}
.course-popup-close-btn:hover .close-text {
  color: #fff;
}
.course-popup-close-btn:hover .close-icon-arrow path {
  stroke: #fff;
}

.course-popup-body {
  display: flex;
  gap: 70px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.course-popup-left {
  flex: 1;
  min-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.course-pros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 99px;
  max-width: 800px;
}

.course-pro-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  box-sizing: border-box;
}

.course-pro-item--highlighted {
  background-color: #1E1C1C;
  border-radius: 24px;
  padding: 20px;
}

.course-pro-number {
  font-family: 'Onest', sans-serif;
  font-weight: 900;
  font-size: 47px;
  color: #DDE96E;
  letter-spacing: -0.02em;
}

.course-pro-text {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #000;
}

.course-pro-item--highlighted .course-pro-number {
  color: #DDE96E;
}

.course-pro-item--highlighted .course-pro-text {
  color: #DDE96E;
}

.course-popup-cta-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.course-popup-cta-wrap.cta-no-price {
  justify-content: flex-end;
}

.course-popup-price {
  font-family: 'Onest', sans-serif;
  font-weight: 700;
  font-size: 48px;
  color: #000;
}

.course-popup-btn {
  padding: 20px 50px;
  font-size: 20px;
}

.course-popup-btn .course-popup-btn-text {
  display: inline;
}

.course-popup-btn .course-popup-btn-icon {
  display: none;
}

.course-popup-right {
  flex: 0 0 520px;
  max-width: 580px;
}

.course-additional-section {
  background-color: #CAE37A;
  border-radius: 30px;
  padding: 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.course-additional-title {
  font-family: 'Onest', sans-serif;
  font-weight: 900;
  font-size: 30px;
  color: #1E1C1C;
  line-height: 1.15;
  margin: 0;
}

.course-additional-divider {
  width: 100%;
  height: 1px;
  background-color: #9DB075;
}

.course-features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.course-feature-item {
  display: flex;
  align-items: center;
  gap: 25px;
}

.course-feature-icon {
  width: 70px;
  height: 70px;
  min-width: 70px;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.course-feature-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.course-feature-text {
  font-family: 'Onest', sans-serif;
  font-size: 18px;
  color: #1E1C1C;
  line-height: 1.35;
  flex: 1;
}

.course-additional-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.course-additional-graphic img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
}

.course-additional-text {
  font-family: 'Onest', sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
  color: #000000;
}

body.popup-open {
  overflow: hidden;
}

@media (max-width: 1200px) {
  .course-popup-body {
    flex-direction: column;
    align-items: stretch;
  }
  .course-popup-right {
    flex: 1;
  }
}

/* Mobile Course Popup Adaptation */
@media (max-width: 768px) {
  .course-popup {
    align-items: stretch;
  }

  .course-popup-inner {
    padding: 40px 20px 30px;
    min-height: 100vh;
    min-height: 100dvh;
    justify-content: space-between;
  }

  .course-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    width: 100%;
  }

  .course-popup-title-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .course-popup-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 30px;
    max-width: 100%;
  }

  .course-popup-levels {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 0;
  }

  .course-popup-close-btn {
    border: none;
    background: transparent;
    padding: 0;
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .course-popup-close-btn:hover {
    background: transparent;
  }

  .course-popup-close-btn .close-text,
  .course-popup-close-btn .close-icon-arrow {
    display: none;
  }

  .course-popup-close-btn .close-icon-cross {
    display: block;
    width: 27px;
    height: 26px;
    color: #000;
  }

  .course-popup-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: nowrap;
  }

  .course-popup-left {
    min-width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
  }

  .course-pros-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 100%;
    width: 100%;
  }

  .course-pro-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 20px;
    box-sizing: border-box;
    background-color: transparent;
  }

  .course-pro-number {
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #DDE96E;
    width: 60px;
    min-width: 60px;
    flex-shrink: 0;
    text-align: left;
  }

  .course-pro-text {
    font-family: 'Onest', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    color: #000000;
  }

  .course-pro-item--highlighted {
    background-color: #1E1C1C;
  }

  .course-pro-item--highlighted .course-pro-number {
    color: #DDE96E;
    font-size: 30px;
  }

  .course-pro-item--highlighted .course-pro-text {
    color: #DDE96E;
    font-size: 16px;
    font-weight: 400;
  }

  /* Hide right additional section on mobile */
  .course-popup-right {
    display: none !important;
  }

  /* Bottom price and icon button on mobile */
  .course-popup-cta-wrap {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: auto;
    padding-top: 16px;
    gap: 16px;
  }

  .course-popup-cta-wrap.cta-no-price {
    justify-content: flex-end;
  }

  .course-popup-price {
    font-size: 26px;
    font-weight: 700;
    line-height: 30px;
    color: #000000;
  }

  .course-popup-btn {
    width: 103px;
    height: 63px;
    padding: 0;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .course-popup-btn .course-popup-btn-text {
    display: none !important;
  }

  .course-popup-btn .course-popup-btn-icon {
    display: block !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 31px !important;
    min-height: 31px !important;
    flex-shrink: 0 !important;
  }

  .course-popup-btn .course-popup-btn-icon path {
    stroke: #FFFFFF !important;
  }
}
