/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.spk-promos-section {
  padding: 60px 0;
}

.spk-promos-container {
  display: flex;
  gap: 40px;
  align-items: stretch;
  width: 100%;
}

.spk-promos-images-swiper {
  width: 100%;
  height: 100%;
}

.spk-promos-images {
  position: relative;
  width: 50%;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 12px;
}

@media (max-width: 991px) {
}

.spk-promos-content {
  position: relative;
  flex: 1;
  min-width: 0;
}

.spk-promo-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #f5f5f5;
}

.spk-promo-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spk-promo-image-placeholder {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.spk-promo-placeholder-content {
  position: absolute;
  color: white;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  padding: 20px;
}

/* Reels-like pagination */
.spk-promos-reels-pagination {
  display: flex;
  gap: 6px;
  margin-bottom: 30px;
}

.spk-reels-bar {
  flex: 1;
  height: 3px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
}

.spk-reels-bar:hover {
  background: rgba(0, 0, 0, 0.25);
}

.spk-reels-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #2563eb;
  border-radius: 2px;
  transition: width 0.1s linear;
}

.spk-reels-bar.completed .spk-reels-bar-fill {
  width: 100%;
}

.spk-promo-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #1a1a1a;
}

.spk-promo-description {
  font-size: 16px;
  line-height: 1.6;
  color: #4a5568;
  margin-bottom: 30px;
}

.spk-promo-description p {
  margin: 0;
}

.spk-promo-button {
  display: inline-block;
  padding: 12px 32px;
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.3s ease;
}

.spk-promo-button:hover {
  background: #1e40af;
  color: #ffffff;
}

.spk-promos-navigation {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.spk-promos-button-prev,
.spk-promos-button-next {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.spk-promos-button-prev:hover,
.spk-promos-button-next:hover {
  background: #e2e8f0;
}

.spk-promos-button-prev.swiper-button-disabled,
.spk-promos-button-next.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.tak-video-testimonials-wrapper {
  margin-top: 40px;
  width: 100%;
}

.tak-video-testimonials-wrapper .video-testimonials-container {
  position: relative;
  width: 100%;
}

.tak-video-testimonials-wrapper.swiper {
  width: 100%;
  height: 100%;
}

.tak-video-testimonials-wrapper .swiper-slide .video-testimonial-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.tak-video-testimonials-wrapper .video-container {
  position: relative;
  width: 100%;
  padding-bottom: 177.78%;
  /* 9:16 aspect ratio */
  background: #000;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.tak-video-testimonials-wrapper
  .swiper-slide
  .video-testimonial-item
  .video-testimonial-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border-radius: var(--border-radius-md);
  padding: 8px;
  background: var(--testimonial-bg, #f9f9f9);
}

.tak-video-testimonials-wrapper
  .swiper-slide
  .video-testimonial-item
  .video-testimonial-name.with-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tak-video-testimonials-wrapper
  .swiper-slide
  .video-testimonial-item
  .video-testimonial-info
  a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.tak-video-testimonials-wrapper
  .swiper-slide
  .video-testimonial-item
  .video-testimonial-info
  a
  h4 {
  color: #000;
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  line-height: 120%; /* 1.2rem */
}

.tak-video-testimonials-wrapper
  .swiper-slide
  .video-testimonial-item
  .video-testimonial-info
  .video-testimonial-position {
  color: var(--testimonial-position-color, #666666);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 400;
  line-height: 140%; /* 1.05rem */
}

.tak-video-testimonials-wrapper .video-element {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tak-video-testimonials-wrapper .youtube-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.tak-video-testimonials-wrapper .youtube-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.tak-video-testimonials-wrapper .play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tak-video-testimonials-wrapper .video-container:hover .play-overlay {
  opacity: 1;
}

.tak-video-testimonials-wrapper
  .video-container.active:not(.paused)
  .play-overlay {
  opacity: 0 !important;
}

.tak-video-testimonials-wrapper
  .video-container.active:not(.paused):hover
  .pause-indicator {
  opacity: 1;
}

.tak-video-testimonials-wrapper .play-button {
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.tak-video-testimonials-wrapper .video-container:hover .play-button {
  transform: scale(1.1);
}

.tak-video-testimonials-wrapper .sound-indicator {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tak-video-testimonials-wrapper .sound-indicator.active {
  opacity: 1;
}

.tak-video-testimonials-wrapper .sound-icon {
  width: 20px;
  height: 20px;
}

/* Progress bar */
.tak-video-testimonials-wrapper .video-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.tak-video-testimonials-wrapper .video-container .video-progress {
  opacity: 1;
}

.tak-video-testimonials-wrapper .video-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b, #ff8e53);
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

/* Mute button */
.tak-video-testimonials-wrapper .mute-button {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 11;
  color: white;
}

.tak-video-testimonials-wrapper .pause-play-indicator {
  position: absolute;
  bottom: 15px;
  right: 56px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 11;
  color: white;
}

.tak-video-testimonials-wrapper .mute-button svg,
.tak-video-testimonials-wrapper .pause-play-indicator svg {
  opacity: 0;
  grid-column: 1;
  grid-row: 1;
}

.tak-video-testimonials-wrapper .video-container.active .mute-button {
  opacity: 1;
}

.tak-video-testimonials-wrapper
  .video-container.active:not(.muted)
  .mute-button
  .mute-icon {
  opacity: 1;
}

.tak-video-testimonials-wrapper
  .video-container.active.muted
  .mute-button
  .unmute-icon {
  opacity: 1;
}

.tak-video-testimonials-wrapper .mute-button:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

/* Pause indicator */
.tak-video-testimonials-wrapper .pause-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 15;
}

.tak-video-testimonials-wrapper .pause-icon {
  width: 20px;
  height: 24px;
  display: flex;
  gap: 6px;
}

.tak-video-testimonials-wrapper .pause-icon span {
  width: 6px;
  height: 100%;
  background: white;
}

@media (max-width: 991px) {
  .spk-promo-image-wrapper {
    height: auto;
    padding-bottom: 56.25%; /* 16:9 aspect ratio on tablet and mobile */
  }
  .spk-promos-images {
    width: 100%;
  }

  .spk-promos-container {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .spk-promos-content {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .spk-promo-title {
    font-size: 24px;
  }

  .spk-promo-description {
    font-size: 14px;
  }

  .spk-promo-button {
    padding: 10px 24px;
    font-size: 14px;
  }

  .spk-promos-reels-pagination {
    gap: 4px;
  }

  .tak-video-testimonials-wrapper .video-testimonials-wrapper {
    padding: 10px;
  }

  .tak-video-testimonials-wrapper .play-button {
    width: 60px;
    height: 60px;
  }

  .tak-video-testimonials-wrapper .mute-button,
  .tak-video-testimonials-wrapper .pause-play-indicator {
    width: 35px;
    height: 35px;
  }

  .tak-video-testimonials-wrapper
    .video-container.active
    .pause-play-indicator {
    opacity: 1;
  }

  .tak-video-testimonials-wrapper
    .video-container.active:not(.paused)
    .pause-play-indicator
    .mobile-pause-icon {
    opacity: 1;
  }

  .tak-video-testimonials-wrapper
    .video-container.active.paused
    .pause-play-indicator
    .mobile-play-icon {
    opacity: 1;
  }
}

/* ---------------------------------------------------------------------------
 * Shared card shadow (Figma: shadows/xxsmall)
 * ------------------------------------------------------------------------ */
.spk-card-shadow {
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

/* ---------------------------------------------------------------------------
 * About Course section
 * ------------------------------------------------------------------------ */
.spk-about-course {
  display: flex;
  align-items: center;
  gap: 100px;
  padding: 40px;
  background-color: #fefefe;
  border: 1px solid #f2f2f3;
  border-radius: 24px;
}

.spk-about-course-content {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
}

.spk-about-course-intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.spk-about-course-title {
  margin: 0;
  font-size: 54px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.54px;
  color: #0c0c0d;
}

.spk-about-course-description {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #494a50;
}

.spk-about-course-description p {
  margin: 0 0 16px;
}

.spk-about-course-description p:last-child {
  margin-bottom: 0;
}

.spk-about-course-description strong,
.spk-about-course-description b {
  font-weight: 500;
  color: #0c0c0d;
}

.spk-about-course-benefits {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.spk-about-course-benefits-title {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  color: #0c0c0d;
}

.spk-about-course-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Class doubled to outrank Oxygen's `:is(li, div._important) { display: list-item }`
   (0,1,1 via the `div._important` branch), which otherwise kills the flex on our <li>. */
.spk-about-course-benefit.spk-about-course-benefit {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin: 0;
  padding: 16px;
  background-color: #fff;
  border: 1px solid #e4e5e7;
  border-radius: 12px;
}

.spk-about-course-benefit-icon {
  display: flex;
  padding: 10px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 0.5px solid #07144f;
  border-radius: 100px;
  background-color: rgba(7, 20, 79, 0.05);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  color: #07144f;
}

.spk-about-course-benefit-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.spk-about-course-benefit-text {
  flex: 1 1 0;
  min-width: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: #07144f;
  align-self: center;
}

.spk-about-course-media {
  flex-shrink: 0;
  width: 535px;
  height: 568px;
  border-radius: 16px;
  overflow: hidden;
}

.spk-about-course-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video embeds keep their own aspect ratio instead of the image's fixed height. */
.spk-about-course-media--video {
  height: auto;
}

@media (max-width: 991px) {
  .spk-about-course {
    flex-direction: column;
    gap: 40px;
  }

  .spk-about-course-title {
    font-size: 36px;
    letter-spacing: -0.36px;
  }

  .spk-about-course-media {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 640px) {
  .spk-about-course {
    padding: 24px;
    border-radius: 16px;
  }

  .spk-about-course-benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------------
 * Media list section (Tools, Audience)
 * ------------------------------------------------------------------------ */
/* The theme is not guaranteed to set border-box, and the card widths are percentages. */
.spk-media-list-section,
.spk-media-list-section * {
  box-sizing: border-box;
}

.spk-media-list-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 40px;
  background-color: #fefefe;
  border: 1px solid #f2f2f3;
  border-radius: 24px;
}

.spk-media-list-section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 752px;
  text-align: center;
}

.spk-media-list-section-title {
  margin: 0;
  font-size: 54px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.54px;
  color: #0c0c0d;
}

.spk-media-list-section-description {
  max-width: 666px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #494a50;
}

.spk-media-list-section-description p {
  margin: 0 0 16px;
}

.spk-media-list-section-description p:last-child {
  margin-bottom: 0;
}

/* Cards wrap 4 per row and stay center-aligned on the last, partial row. */
.spk-media-list-section-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.spk-media-list-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: calc(25% - 15px);
  padding: 24px;
  background-color: #fff;
  border: 1px solid #f2f2f3;
  border-radius: 16px;
}

.spk-media-list-card-logo {
  display: block;
  width: 68px;
  height: 36px;
  object-fit: contain;
  object-position: left center;
}

.spk-media-list-card-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spk-media-list-card-title {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  color: #0c0c0d;
}

.spk-media-list-card-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #494a50;
}

@media (max-width: 991px) {
  .spk-media-list-section-title {
    font-size: 36px;
    letter-spacing: -0.36px;
  }

  .spk-media-list-card {
    width: calc(50% - 10px);
  }
}

@media (max-width: 640px) {
  .spk-media-list-section {
    padding: 24px;
    border-radius: 16px;
  }

  .spk-media-list-card {
    width: 100%;
  }
}

/* ---------------------------------------------------------------------------
 * Audience section
 * ------------------------------------------------------------------------ */
.spk-audience,
.spk-audience * {
  box-sizing: border-box;
}

.spk-audience {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.spk-audience-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 646px;
}

.spk-audience-title {
  margin: 0;
  font-size: 54px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.54px;
  color: #0c0c0d;
}

.spk-audience-description {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #494a50;
}

.spk-audience-description p {
  margin: 0 0 16px;
}

.spk-audience-description p:last-child {
  margin-bottom: 0;
}

/* Cards wrap 4 per row and stay left-aligned on the last, partial row. */
.spk-audience-cards {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 20px;
}

.spk-audience-card {
  display: flex;
  flex-direction: column;
  width: calc(25% - 15px);
}

/* Bottom corners stay square: the body slides under this edge. */
.spk-audience-card-image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}

/* The body slides under the photo's rounded bottom edge. */
.spk-audience-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  margin-top: -20px;
  padding: 36px 16px 16px;
  background-color: #fff;
  border: 1px solid #f2f2f3;
  border-radius: 0 0 16px 16px;
}

.spk-audience-card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  color: #0c0c0d;
}

.spk-audience-card-text {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  color: #494a50;
}

@media (max-width: 991px) {
  .spk-audience-title {
    font-size: 36px;
    letter-spacing: -0.36px;
  }

  .spk-audience-card {
    width: calc(50% - 10px);
  }
}

@media (max-width: 640px) {
  .spk-audience-card {
    width: 100%;
  }
}

/* ---------------------------------------------------------------------------
 * Skills section
 * ------------------------------------------------------------------------ */
.spk-skills,
.spk-skills * {
  box-sizing: border-box;
}

.spk-skills {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.spk-skills-title {
  margin: 0;
  max-width: 646px;
  font-size: 54px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.54px;
  color: #0c0c0d;
}

.spk-skills-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px;
  background-color: #fefefe;
  border: 1px solid #f2f2f3;
  border-radius: 24px;
}

.spk-skills-intro {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  color: #0c0c0d;
}

.spk-skills-intro p {
  margin: 0 0 16px;
}

.spk-skills-intro p:last-child {
  margin-bottom: 0;
}

.spk-skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Doubled class: see .spk-about-course-benefit — Oxygen forces `display: list-item` on <li>. */
.spk-skills-item.spk-skills-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0;
}

.spk-skills-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 5px;
  padding: 8px;
  background-color: #fff;
  border: 0.5px solid #f2f2f3;
  border-radius: 100px;
  color: #abc577;
}

.spk-skills-item-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.spk-skills-item-text {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  color: #0c0c0d;
}

@media (max-width: 991px) {
  .spk-skills-title {
    font-size: 36px;
    letter-spacing: -0.36px;
  }

  .spk-skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .spk-skills-container {
    padding: 24px;
    border-radius: 16px;
  }

  .spk-skills-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------------
 * Course Modules section
 * ------------------------------------------------------------------------ */
.spk-modules {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.spk-modules-intro {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 598px;
}

.spk-modules-title {
  margin: 0;
  font-size: 54px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.54px;
  color: #0c0c0d;
}

.spk-modules-description {
  margin-top: -8px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #494a50;
}

.spk-modules-description p {
  margin: 0 0 16px;
}

.spk-modules-description p:last-child {
  margin-bottom: 0;
}

.spk-modules-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Doubled class: see .spk-about-course-benefit — Oxygen forces `display: list-item` on <li>. */
.spk-modules-pill.spk-modules-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 100px;
  background-color: #07144f;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: #ffffff;
}

.spk-modules-pill-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.spk-modules-list {
  border: 1px solid #f2f2f3;
  border-radius: 16px;
  overflow: hidden;
  background-color: #fefefe;
}

.spk-module + .spk-module {
  border-top: 1px solid #f2f2f3;
}

.spk-module-trigger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 24px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.spk-module-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #494a50;
}

.spk-module-tag::before {
  content: "\2022";
  margin-right: 4px;
}

.spk-module-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.spk-module-title {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.3;
  color: #0c0c0d;
}

.spk-module-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: #0c0c0d;
  transition: transform 0.2s ease;
}

.spk-module-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Open state: the design's close icon is the same glyph, rotated. */
.spk-module-trigger[aria-expanded="true"] .spk-module-icon {
  transform: rotate(45deg);
}

.spk-module-panel {
  padding: 0 24px 24px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #494a50;
}

.spk-module-panel-inner {
  animation: spk-module-reveal 0.25s ease;
}

.spk-module-panel p {
  margin: 0 0 8px;
}

.spk-module-panel p:last-child {
  margin-bottom: 0;
}

.spk-module-panel ul,
.spk-module-panel ol {
  margin: 0;
  padding-left: 24px;
}

.spk-module-panel li {
  margin-bottom: 4px;
}

@keyframes spk-module-reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 991px) {
  .spk-modules {
    gap: 40px;
  }

  .spk-modules-title {
    font-size: 36px;
    letter-spacing: -0.36px;
  }

  .spk-module-title {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .spk-module-trigger,
  .spk-module-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .spk-module-title {
    font-size: 20px;
  }

  .spk-module-icon {
    width: 24px;
    height: 24px;
  }
}

/* ---------------------------------------------------------------------------
 * Course Mentor section
 * ------------------------------------------------------------------------ */
.spk-course-mentor,
.spk-course-mentor * {
  box-sizing: border-box;
}

.spk-course-mentor {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.spk-course-mentor-title {
  margin: 0;
  font-size: 54px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.54px;
  color: #0c0c0d;
}

.spk-course-mentor-intro {
  margin-top: -16px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  color: #494a50;
}

.spk-course-mentor-intro p {
  margin: 0 0 16px;
}

.spk-course-mentor-intro p:last-child {
  margin-bottom: 0;
}

.spk-course-mentor-row {
  display: flex;
  align-items: stretch;
  gap: 20px;
}

.spk-course-mentor-media {
  flex: 0 0 424px;
  min-height: 329px;
  border-radius: 16px;
  overflow: hidden;
}

.spk-course-mentor-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

/* Video embeds keep their own aspect ratio, so they only get the minimum height. */
.spk-course-mentor-media--video {
  display: flex;
  align-items: center;
  background-color: #f2f2f3;
}

.spk-course-mentor-media--video .spk-embed-media-container {
  flex: 1 1 auto;
}

.spk-course-mentor-card {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  padding: 40px;
  background-color: #fff;
  border: 1px solid #f2f2f3;
  border-radius: 16px;
}

.spk-course-mentor-name {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.3;
  color: #0c0c0d;
}

.spk-course-mentor-position {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  color: #494a50;
}

.spk-course-mentor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spk-course-mentor-tag {
  padding: 4px 12px;
  background-color: #f2f2f3;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #494a50;
}

.spk-course-mentor-description {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  color: #494a50;
}

.spk-course-mentor-description p {
  margin: 0 0 16px;
}

.spk-course-mentor-description p:last-child {
  margin-bottom: 0;
}

.spk-course-mentor-description ul,
.spk-course-mentor-description ol {
  margin: 0;
  padding-left: 30px;
  list-style: disc;
}

.spk-course-mentor-description ol {
  list-style: decimal;
}

.spk-course-mentor-description li {
  margin-bottom: 6px;
}

@media (max-width: 991px) {
  .spk-course-mentor-title {
    font-size: 36px;
    letter-spacing: -0.36px;
  }

  .spk-course-mentor-row {
    flex-direction: column;
  }

  .spk-course-mentor-media {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  .spk-course-mentor-name {
    font-size: 24px;
  }

  .spk-course-mentor-description {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .spk-course-mentor-card {
    padding: 24px;
  }
}

/* ---------------------------------------------------------------------------
 * Registration form ([spk_form]) + course CTA section ([spk_course_form])
 * ------------------------------------------------------------------------ */

/* The sprite ships under img/vendor/intTelInput/, not where intlTelInput.css looks.
   Scoped to .iti rather than :root so it outranks intlTelInput.css, which loads after us. */
.spk-form .iti {
  --iti-path-flags-1x: url(../img/vendor/intTelInput/flags.webp);
  --iti-path-flags-2x: url(../img/vendor/intTelInput/flags@2x.webp);
  --iti-path-globe-1x: url(../img/vendor/intTelInput/globe.webp);
  --iti-path-globe-2x: url(../img/vendor/intTelInput/globe@2x.webp);
}

.spk-course-form {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 40px;
  background-color: #07144f;
  border-radius: 24px;
}

.spk-course-form-intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  flex: 1;
  min-width: 0;
}

.spk-course-form-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
}

.spk-course-form-tag::before {
  content: "";
  width: 32px;
  height: 1px;
  background-color: #fff;
  flex-shrink: 0;
}

.spk-course-form-title {
  margin: 0;
  color: #fff;
  font-size: 60px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -1.5px;
}

.spk-course-form-aside {
  width: 556px;
  flex-shrink: 0;
}

.spk-form {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background-color: #fff;
  border: 1px solid #f2f2f3;
  border-radius: 24px;
}

.spk-form-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.spk-form-title {
  margin: 0;
  color: #0c0c0d;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.spk-form-description {
  margin: 0;
  color: #494a50;
  font-size: 16px;
  line-height: 1.4;
}

.spk-form-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spk-form-row {
  display: flex;
  gap: 16px;
}

.spk-form-row .spk-form-field {
  flex: 1;
  min-width: 0;
}

.spk-form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spk-form-input {
  width: 100%;
  padding: 12px 16px;
  color: #100f0e;
  font-family: inherit;
  font-size: 18px;
  line-height: 1.4;
  background-color: #fff;
  border: 1px solid #afb0b6;
  border-radius: 1000px;
  outline: none;
}

.spk-form-input::placeholder {
  color: #afb0b6;
}

.spk-form-input:focus {
  border-color: #07144f;
}

.spk-form-input--invalid {
  border-color: #d92d20;
}

.spk-form-textarea {
  border-radius: 24px;
  resize: vertical;
}

.spk-form-error {
  color: #d92d20;
  font-size: 13px;
  line-height: 1.4;
  padding-left: 16px;
}

.spk-form-error:empty {
  display: none;
}

.spk-form-terms {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: -12px;
}

.spk-form-terms-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #494a50;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.spk-form-checkbox {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #07144f;
  border: 0.5px solid #494a50;
  border-radius: 4px;
  cursor: pointer;
}

.spk-form-terms-label a {
  color: inherit;
  text-decoration: underline;
}

.spk-form-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.spk-form-message {
  margin: 0;
  color: #d92d20;
  font-size: 14px;
  line-height: 1.4;
}

.spk-form-message:empty {
  display: none;
}

.spk-form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 8px 16px;
  margin-top: 16px;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  background-color: #07144f;
  border: 1px solid #07144f;
  border-radius: 1000px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.spk-form-submit:hover {
  opacity: 0.9;
}

.spk-form-submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

.spk-form-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  text-align: center;
}

.spk-form [hidden] {
  display: none;
}

.spk-form-state-title {
  margin: 0;
  color: #0c0c0d;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.spk-form-state-text {
  margin: 0;
  color: #494a50;
  font-size: 16px;
  line-height: 1.4;
}

.spk-form-reset {
  padding: 8px 16px;
  color: #07144f;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  background-color: transparent;
  border: 1px solid #07144f;
  border-radius: 1000px;
  cursor: pointer;
}

.spk-form-reset:hover {
  background-color: #f2f2f3;
}

/* intl-tel-input sits inside the pill input. */
.spk-form .iti {
  width: 100%;
}

.spk-form .iti__country-list,
.spk-form .iti__dropdown-content {
  text-align: left;
}

@media (max-width: 991px) {
  .spk-course-form {
    flex-direction: column;
    padding: 24px;
  }

  .spk-course-form-intro {
    padding-top: 0;
  }

  .spk-course-form-title {
    font-size: 40px;
    letter-spacing: -1px;
  }

  .spk-course-form-aside {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .spk-course-form-title {
    font-size: 32px;
  }

  .spk-form-row {
    flex-direction: column;
  }
}

/* Course archive: filters, card grid, pagination */

.spk-courses {
  width: 100%;
}

.spk-courses-filters {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

.spk-courses-categories {
  display: flex;
  flex-wrap: wrap;
  row-gap: 16px;
  column-gap: 12px;
  max-width: 868px;
}

.spk-courses-pill {
  padding: 8px 16px;
  border: 1px solid #0c0c0d;
  border-radius: 1000px;
  background-color: transparent;
  color: #0c0c0d;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  transition: all 0.2s ease;
}

.spk-courses-pill:hover {
  background-color: #f2f2f3;
  color: #0c0c0d;
}

.spk-courses-pill--active {
  background-color: #0c0c0d;
  border-color: #0c0c0d;
  color: #ffffff;
  font-weight: 500;
}

.spk-courses-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  width: 313px;
  height: 40px;
  padding: 8px 8px 8px 12px;
  border: 1px solid #0c0c0d;
  border-radius: 1000px;
  background-color: #ffffff;
}

.spk-courses-search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  color: #0c0c0d;
}

.spk-courses-search input[type="search"]::placeholder {
  color: #afb0b6;
}

.spk-courses-search button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 1000px;
  background-color: #07144f;
  color: #ffffff;
  cursor: pointer;
}

.spk-courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.spk-course-card {
  display: flex;
  gap: 20px;
  padding: 16px;
  background-color: #fefefe;
  border: 1px solid #f2f2f3;
  border-radius: 16px;
}

.spk-course-card-media {
  display: block;
  flex-shrink: 0;
  width: 280px;
  height: 254px;
  border-radius: 12px;
  overflow: hidden;
}

.spk-course-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spk-course-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 12px 0;
}

.spk-course-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 18px;
}

.spk-course-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spk-course-card-pill,
.spk-course-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 100px;
  background-color: #07144f;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.spk-course-card-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  color: #494a50;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spk-course-card-title a {
  color: inherit;
  text-decoration: none;
}

.spk-course-card-excerpt {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  color: #494a50;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spk-course-card-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  color: #07144f;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

.spk-courses-empty {
  color: #494a50;
  font-size: 16px;
}

.spk-courses-pagination {
  margin-top: 40px;
}

.spk-courses-pagination ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spk-courses-pagination a,
.spk-courses-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #0c0c0d;
  border-radius: 1000px;
  color: #0c0c0d;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
}

.spk-courses-pagination .current {
  background-color: #0c0c0d;
  border-color: #0c0c0d;
  color: #ffffff;
  font-weight: 500;
}

@media (max-width: 900px) {
  .spk-courses-filters {
    flex-direction: column;
  }

  .spk-courses-search {
    width: 100%;
  }

  .spk-courses-grid {
    grid-template-columns: 1fr;
  }

  .spk-course-card {
    flex-direction: column;
  }

  .spk-course-card-media {
    width: 100%;
    height: auto;
    aspect-ratio: 280 / 254;
  }
}

/* ---------------------------------------------------------------------------
 * Section width
 *
 * Every shortcode section is centered on Oxygen's page width. The variable is
 * printed on wp_head by Spk_Course_Public::outputPageWidthVariable(); without
 * Oxygen the fallback keeps the previous 1312px.
 * ------------------------------------------------------------------------ */
.spk-about-course,
.spk-audience,
.spk-course-form,
.spk-course-mentor,
.spk-courses,
.spk-featured-courses,
.spk-media-list-section,
.spk-modules,
.spk-promos-container,
.spk-skills {
  max-width: var(--oxy-page-width, 1312px);
  margin-inline: auto;
  width: 100%;
}

/* Course metas — tag pills (start / level / duration / schedule / days / location / language) */
.spk-course-metas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 8px;
}

.spk-course-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #e4e5e7;
  border-radius: 1000px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  color: #07144f;
  font-size: 16px;
  line-height: 1.4;
}

.spk-course-meta-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.spk-course-meta-icon svg {
  width: 18px;
  height: 18px;
}

.spk-course-meta-label {
  font-weight: 400;
}

.spk-course-meta-value {
  font-weight: 500;
}

a.spk-course-meta-value {
  color: inherit;
  text-decoration: underline;
}

/* ---------------------------------------------------------------------------
 * spk-anim-* entrance animations (see assets/src/ts/animations.ts)
 *
 * Pre-hide targets so they don't flash before GSAP runs. Gated on
 * `html.spk-anim`, which public.ts adds ONLY on capable, motion-OK devices —
 * so no-JS, weak-device, and reduced-motion visitors never get hidden content.
 * Also skipped inside the Oxygen builder (body.ng-scope) so content stays
 * visible while editing.
 * ------------------------------------------------------------------------- */
html.spk-anim body:not(.ng-scope) [class*="spk-anim-fade-"],
html.spk-anim body:not(.ng-scope) [class*="spk-anim-scale-"],
html.spk-anim body:not(.ng-scope) .spk-anim-split {
  opacity: 0;
}

/* Final state, added by JS on completion. Higher specificity + later in source
   than the pre-hide, so it wins once clearProps has stripped inline styles. */
html.spk-anim body:not(.ng-scope) [class*="spk-anim-"].spk-anim-in {
  opacity: 1;
}
