/* Template One: recorded lectures comparison table */

/* --------------------------------------------------------------------------
   Recorded lectures pricing table
   -------------------------------------------------------------------------- */
.dd-recorded-lectures {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(48px, 4.8vw, 68px) 0 clamp(52px, 5vw, 72px);
  background-color: #f8fbff;
  background-image: url("../../../images/product/section-bg-2.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.dd-recorded-lectures__container {
  width: min(calc(100% - (var(--edge) * 2)), 1368px);
  margin-inline: auto;
}

.dd-recorded-lectures__title {
  margin: 0 0 clamp(24px, 2.6vw, 34px);
  color: var(--color-navy);
  font-size: clamp(28px, 3.2vw, 49px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-align: center;
}

.dd-recorded-lectures__title span {
  color: #08aeb4;
}

/* The outer shell remains overflow-visible so the raised promotional badge
   is never cropped. Horizontal scrolling belongs only to the inner wrapper. */
.dd-recorded-lectures__table-shell {
  position: relative;
  overflow: visible;
}

.dd-recorded-lectures__table-scroll {
  width: 100%;
  padding: 0 0 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(8, 120, 237, 0.55) rgba(8, 120, 237, 0.08);
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.dd-recorded-lectures__table-scroll.has-featured-plan {
  padding-top: 52px;
  margin-top: -20px;
}

.dd-recorded-lectures__table-scroll::-webkit-scrollbar {
  height: 9px;
}

.dd-recorded-lectures__table-scroll::-webkit-scrollbar-track {
  background: rgba(8, 120, 237, 0.08);
}

.dd-recorded-lectures__table-scroll::-webkit-scrollbar-thumb {
  border: 2px solid rgba(8, 120, 237, 0.08);
  border-radius: 999px;
  background: rgba(8, 120, 237, 0.55);
}

.dd-pricing-table {
  width: 100%;
  min-width: 1260px;
  table-layout: fixed;
  border-spacing: 0;
  border-collapse: separate;
  border-radius: 14px;
  color: var(--color-navy);
  background: #ffffff;
  font-size: clamp(13px, 1.02vw, 16px);
}

.dd-pricing-table__feature-column {
  width: 260px;
}

.dd-pricing-table__plan-column {
  width: 250px;
}

.dd-pricing-table th,
.dd-pricing-table td {
  padding: 15px 16px;
  border-right: 1px solid #dce4ef;
  border-bottom: 1px solid #dce4ef;
  vertical-align: middle;
}

.dd-pricing-table tr > :last-child {
  border-right: 0;
}

.dd-pricing-table thead th {
  position: relative;
  height: 72px;
  color: #ffffff;
  background: linear-gradient(180deg, #2984f1 0%, #1260c9 100%);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.28;
  text-align: center;
}

.dd-pricing-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 10;
  border-top-left-radius: 14px;
  background: linear-gradient(180deg, #0a2c68 0%, #061d4c 100%);
  text-transform: uppercase;
}

.dd-pricing-table thead th:last-child {
  border-top-right-radius: 14px;
}

.dd-pricing-table thead th.is-featured {
  z-index: 5;
  border-top: 2px solid #10bfc1;
  border-right: 2px solid #10bfc1;
  border-left: 2px solid #10bfc1;
  background: linear-gradient(180deg, #0bc3c4 0%, #079da4 100%);
  box-shadow: 0 -8px 18px rgba(2, 183, 210, 0.14);
}

/* Raised high enough to read as the promotional plan immediately, while the
   scroll wrapper reserves dedicated space above the header for it. */
.dd-pricing-table__badge {
  position: absolute;
  left: 50%;
  top: -46px;
  z-index: 12;
  display: grid;
  min-width: 128px;
  min-height: 44px;
  padding: 9px 20px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 15px 15px 9px 9px;
  color: #ffffff;
  background: linear-gradient(180deg, #13caca 0%, #009ea5 100%);
  box-shadow: 0 9px 18px rgba(2, 183, 210, 0.3);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  transform: translateX(-50%);
  white-space: nowrap;
}

.dd-pricing-table__badge::after {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 14px;
  height: 14px;
  content: "";
  border-right: 2px solid rgba(255, 255, 255, 0.92);
  border-bottom: 2px solid rgba(255, 255, 255, 0.92);
  background: #009ea5;
  transform: translateX(-50%) rotate(45deg);
}

.dd-pricing-table tbody th {
  position: sticky;
  left: 0;
  z-index: 6;
  color: var(--color-navy);
  background: #ffffff;
  font-weight: 600;
  text-align: left;
}

.dd-pricing-table tbody td {
  color: #182954;
  background: rgba(255, 255, 255, 0.96);
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

.dd-pricing-table tbody td.is-featured {
  border-right: 2px solid #10bfc1;
  border-left: 2px solid #10bfc1;
  background: rgba(230, 250, 250, 0.72);
}

.dd-feature-label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dd-feature-label__icon {
  width: 26px;
  height: 26px;
  color: #126fe3;
}

.dd-feature-label__icon i,
.dd-feature-label__icon i::before {
  font-size: 23px;
}

.dd-price-discount {
  color: #0878ed;
}

.dd-pricing-table__price-row th,
.dd-pricing-table__price-row td {
  font-size: 16px;
  font-weight: 500;
}

.dd-pricing-table__actions th,
.dd-pricing-table__actions td {
  height: 84px;
  padding: 14px 18px;
  border-bottom: 0;
}

.dd-pricing-table__actions th {
  z-index: 7;
  border-bottom-left-radius: 14px;
}

.dd-pricing-table__actions td:last-child {
  border-bottom-right-radius: 14px;
}

.dd-pricing-table__actions td.is-featured {
  border-bottom: 2px solid #10bfc1;
  border-bottom-right-radius: 12px;
  border-bottom-left-radius: 12px;
}

/* The actions row is optional. Apply the lower corners and remove the bottom
   rule from whichever tbody row is actually last. */
.dd-pricing-table tbody tr:last-child > th,
.dd-pricing-table tbody tr:last-child > td {
  border-bottom: 0;
}

.dd-pricing-table tbody tr:last-child > th:first-child {
  border-bottom-left-radius: 14px;
}

.dd-pricing-table tbody tr:last-child > td:last-child {
  border-bottom-right-radius: 14px;
}

.dd-pricing-table tbody tr:last-child > td.is-featured {
  border-bottom: 2px solid #10bfc1;
  border-bottom-right-radius: 12px;
  border-bottom-left-radius: 12px;
}


.dd-recorded-lectures__swipe-note {
  display: none;
}



/* Mobile pricing table: scroll the complete table as one unit.
   The Features column must not remain pinned while plan columns move. */
@media (max-width: 767px) {
  .dd-pricing-table thead th:first-child,
  .dd-pricing-table tbody th {
    position: static;
    left: auto;
    z-index: auto;
  }

  .dd-pricing-table__actions th {
    z-index: auto;
  }
}
