﻿/* Template One: shared foundations, hero, and status */

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Project-wide icon rule: every icon receives a fixed box and is centered on both axes. */
.dd-icon-box {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  min-width: 1px;
  min-height: 1px;
  line-height: 0;
}

/* Keep the actual Flaticon element measurable. The empty <i> element can
   otherwise report 0 x 0 even while its ::before glyph is visible. */
.dd-icon-box > .fi {
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  margin: 0;
  place-items: center;
  font-style: normal;
  line-height: 1;
}

.dd-icon-box > .fi::before {
  display: block;
  width: 1em;
  height: 1em;
  margin: 0;
  line-height: 1;
  text-align: center;
}

/* Product hero
   -------------------------------------------------------------------------- */
.dd-product-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  width: 100%;
  min-height: 480px;
  overflow: hidden;
  background-color: var(--color-surface);
  background-image: url("../../../images/product/section-bg-1.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.dd-product-hero__container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: min(calc(100% - (var(--edge) * 2)), 1184px);
  min-height: 480px;
  margin-inline: auto;
}

.dd-product-hero__content {
  width: min(100%, 650px);
  min-width: 0;
  padding-block: 38px;
}

.dd-product-hero__title {
margin: 0;
  color: var(--color-navy);
  font-size: clamp(48px, 4.05vw, 62px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.3;
}

.dd-product-hero__title span {
  color: var(--color-blue);
}

.dd-product-hero__accent {
  display: block;
  width: 70px;
  height: 3px;
  margin-top: 17px;
  border-radius: 999px;
  background: var(--color-red);
}

.dd-product-hero__subtitle {
  margin: 18px 0 27px;
  color: var(--color-navy);
  font-size: clamp(16px, 1.22vw, 19px);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.45;
  text-transform: uppercase;
}

.dd-product-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 194px;
  min-height: 46px;
  padding: 11px 21px 11px 27px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f12a31 0%, #ec1f27 48%, var(--color-red) 100%);
  box-shadow: 0 10px 24px rgba(223, 0, 31, 0.18);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.dd-product-hero__button-text {
  display: block;
  line-height: 1;
}

.dd-product-hero__button-icon {
  width: 20px;
  height: 20px;
}

.dd-product-hero__button-icon i,
.dd-product-hero__button-icon i::before {
  font-size: 18px;
}

.dd-product-hero__button-icon i {
  transition: transform 180ms ease;
}

.dd-product-hero__button:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #dd001f 0%, var(--color-red-deep) 100%);
  box-shadow: 0 13px 28px rgba(182, 0, 24, 0.24);
  transform: translateY(-2px);
}

.dd-product-hero__button:hover .dd-product-hero__button-icon i {
  transform: translateX(3px);
}

.dd-product-hero__button:focus-visible,
.dd-pricing-table__button:focus-visible,
.dd-recorded-lectures__table-shell:focus-visible {
  outline: 3px solid rgba(8, 120, 237, 0.34);
  outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Coming Soon product status
   -------------------------------------------------------------------------- */
.dd-coming-soon {
  position: sticky;
  top: 0;
  z-index: 11000;
  border: 0;
  background: var(--color-red);
  box-shadow: 0 8px 22px rgba(120, 0, 18, 0.2);
}

.dd-coming-soon__container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(calc(100% - (var(--edge) * 2)), 1368px);
  min-height: 72px;
  padding: 11px 0;
  margin-inline: auto;
  text-align: center;
}

.dd-coming-soon__status {
  display: flex;
  min-width: 0;
  max-width: 980px;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.dd-coming-soon__icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 11px;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.12);
}

.dd-coming-soon__icon > .fi,
.dd-coming-soon__icon > .fi::before {
  font-size: 18px;
}

.dd-coming-soon__copy {
  min-width: 0;
  text-align: center;
}

.dd-coming-soon__title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dd-coming-soon__title-row strong {
  color: var(--color-white);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.dd-coming-soon__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: var(--color-red-deep);
  background: var(--color-white);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.dd-coming-soon__description {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  line-height: 1.5;
}

.dd-coming-soon__description > :first-child {
  margin-top: 0;
}

.dd-coming-soon__description > :last-child {
  margin-bottom: 0;
}

.dd-coming-soon__description a {
  color: var(--color-white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* The main header is sticky on tablet/mobile. Keep it below the status bar. */
@media (max-width: 991px) {
  .dd-coming-soon + .site-header {
    top: var(--dd-coming-soon-height, 72px);
  }
}

@media (max-width: 620px) {
  .dd-coming-soon__container {
    min-height: 68px;
    padding: 9px 0;
  }

  .dd-coming-soon__status {
    gap: 10px;
  }

  .dd-coming-soon__icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }

  .dd-coming-soon__title-row {
    gap: 7px;
  }

  .dd-coming-soon__title-row strong {
    font-size: 13px;
  }

  .dd-coming-soon__description {
    font-size: 10.5px;
    line-height: 1.45;
  }

  .dd-coming-soon__badge {
    min-height: 22px;
    padding: 4px 8px;
    font-size: 9px;
  }
}

/* Logged-in WordPress toolbar offsets. */
body.admin-bar .dd-coming-soon {
  top: 32px;
}

@media (max-width: 991px) {
  body.admin-bar .dd-coming-soon + .site-header {
    top: calc(var(--dd-coming-soon-height, 72px) + 32px);
  }
}

@media (max-width: 782px) {
  body.admin-bar .dd-coming-soon {
    top: 46px;
  }

  body.admin-bar .dd-coming-soon + .site-header {
    top: calc(var(--dd-coming-soon-height, 68px) + 46px);
  }
}

@media (max-width: 1390px) {
  .dd-recorded-lectures__container {
    width: calc(100% - 40px);
  }

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

@media (max-width: 1180px) {
  .dd-product-hero {
    background-position: 54% center;
  }

  .dd-product-hero__content {
    width: 49%;
  }

  .dd-product-hero__title {
    font-size: clamp(45px, 5.1vw, 58px);
  }

  .dd-recorded-lectures {
    padding-top: 50px;
  }

  .dd-recorded-lectures__title {
    margin-bottom: 24px;
    font-size: clamp(30px, 4vw, 43px);
  }
}

@media (max-width: 900px) {
  .dd-product-hero,
  .dd-product-hero__container {
    min-height: 420px;
  }

  .dd-product-hero {
    background-position: 61% center;
  }

  .dd-product-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background: linear-gradient(
      90deg,
      rgba(248, 251, 255, 0.99) 0%,
      rgba(248, 251, 255, 0.95) 44%,
      rgba(248, 251, 255, 0.38) 68%,
      rgba(248, 251, 255, 0) 100%
    );
    pointer-events: none;
  }

  .dd-product-hero__content {
    width: 57%;
  }

  .dd-product-hero__title {
    font-size: clamp(41px, 6vw, 52px);
  }

  .dd-product-hero__subtitle {
    max-width: 410px;
    font-size: 15px;
  }

  .dd-recorded-lectures {
    padding: 42px 0 48px;
    background-position: center top;
  }

  .dd-recorded-lectures__container {
    width: calc(100% - 28px);
  }

  .dd-recorded-lectures__title {
    margin-bottom: 20px;
    font-size: clamp(28px, 5.4vw, 38px);
  }

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

@media (max-width: 700px) {
  .dd-recorded-lectures__container {
    width: calc(100% - 20px);
  }

  .dd-recorded-lectures__title {
    padding-inline: 8px;
    font-size: clamp(25px, 7.2vw, 32px);
    line-height: 1.2;
  }

  /* Below 700px the complete table scrolls as one unit. The Features
     column is deliberately no longer sticky, which lets every column keep
     a comfortable readable width instead of being squeezed into the viewport. */
  .dd-pricing-table {
    width: 1220px;
    min-width: 1220px;
    font-size: 14px;
  }

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

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

  .dd-pricing-table thead th:first-child {
    position: relative;
    left: auto;
    z-index: 2;
    box-shadow: none;
  }

  .dd-pricing-table tbody th,
  .dd-pricing-table__actions th {
    position: static;
    left: auto;
    z-index: auto;
    box-shadow: none;
  }

  .dd-pricing-table th,
  .dd-pricing-table td {
    padding-inline: 16px;
  }

  .dd-pricing-table thead th {
    height: 72px;
    font-size: 14px;
  }

  .dd-pricing-table__badge {
    top: -43px;
    min-width: 116px;
    min-height: 41px;
    padding-inline: 16px;
    font-size: 15px;
  }

  .dd-feature-label {
    gap: 11px;
  }

  .dd-feature-label__icon {
    width: 24px;
    height: 24px;
  }

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

  .dd-pricing-table__price-row th,
  .dd-pricing-table__price-row td,
  .dd-pricing-table__button {
    font-size: 14px;
  }

  .dd-pricing-table__button {
    width: min(100%, 172px);
    min-height: 46px;
  }
}

/* Mobile hero: the supplied artwork always remains a full-section CSS background. */
@media (max-width: 700px) {
  .dd-product-hero {
    min-height: 400px;
    background-position: 69% center;
    background-size: auto 100%;
  }

  .dd-product-hero::before {
    background: linear-gradient(
      90deg,
      rgba(248, 251, 255, 1) 0%,
      rgba(248, 251, 255, 0.98) 43%,
      rgba(248, 251, 255, 0.82) 62%,
      rgba(248, 251, 255, 0.28) 82%,
      rgba(248, 251, 255, 0.04) 100%
    );
  }

  .dd-product-hero__container {
    align-items: center;
    width: calc(100% - 36px);
    min-height: 400px;
  }

  .dd-product-hero__content {
    width: min(78%, 330px);
    padding-block: 30px;
    text-align: left;
  }

  .dd-product-hero__title {
    max-width: 330px;
    font-size: clamp(36px, 10vw, 44px);
    letter-spacing: -0.04em;
    line-height: 1.06;
  }

  .dd-product-hero__accent {
    width: 58px;
    margin-top: 15px;
  }

  .dd-product-hero__subtitle {
    max-width: 300px;
    margin: 16px 0 23px;
    font-size: 13px;
    line-height: 1.55;
  }

  .dd-product-hero__button {
    min-width: 174px;
    min-height: 44px;
    padding: 10px 18px 10px 23px;
    font-size: 15px;
  }
}

@media (max-width: 430px) {
  .dd-product-hero,
  .dd-product-hero__container {
    min-height: 380px;
  }

  .dd-product-hero {
    background-position: 71% center;
  }

  .dd-product-hero__container {
    width: calc(100% - 30px);
  }

  .dd-product-hero__content {
    width: min(79%, 310px);
    padding-block: 26px;
  }

  .dd-product-hero__title {
    font-size: clamp(33px, 9.8vw, 40px);
  }

  .dd-product-hero__subtitle {
    max-width: 270px;
    font-size: 12px;
  }

}

@media (max-width: 360px) {
  .dd-product-hero,
  .dd-product-hero__container {
    min-height: 365px;
  }

  .dd-product-hero__content {
    width: 82%;
  }

  .dd-product-hero__title {
    font-size: 32px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* Template One hero responsive safeguards */
@media (max-width: 980px) {
  .dd-product-hero__content {
    width: min(100%, 650px);
  }

  .dd-product-hero__title {
    overflow-wrap: break-word;
    line-height: 1.3;
  }
}

@media (max-width: 620px) {
  .dd-product-hero__content {
    width: 100%;
  }

  .dd-product-hero__title {
    max-width: 100%;
    line-height: 1.3;
  }
}

/* Give the hero copy room within the wider Template One container. */
@media (min-width: 901px) {
  .dd-product-hero__content {
    width: min(72%, 940px);
    max-width: none;
  }
}
