.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 25px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #F9F8F5;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 15px;
  width: 15px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  transform: translateX(25px);
}

.slider.round {
  border-radius: 34px;
  border: 1px solid #09100F;
}

.slider.round:before {
  border-radius: 50%;
  background-color: #09100F;
}

.switch-container p{
  margin-bottom: 0;
}

.switch-container {
  display: flex;
  gap: 16px;
}

.comparison-section .header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}


.comparison-section .header h2{
  margin-bottom: 0;
}

.team-plans {
  display: none;
}
.comparison-section .team-flex-plans{
  display: none;
}

.our-stats-section .courses-counter-inner-container {
  display: flex;
  width: 100%;
}

@media (min-width: 601px) and (max-width: 1200px) {
  .our-stats-section .courses-counter-inner-container {
    display: grid;
  }
  .img-col-separator {
    width: 100%;
  }
  .our-stats-section .courses-counter-up-container {
    padding-left: 56px;
    padding-right: 56px;
  }
  .video-content .content-wrap {
    flex-direction: column;
    padding: 56px;
  }
  .video-content .video-container {
    width: 100%;
  }
  .video-content .video-content-container {
    width: 100%;
  }
}


.our-stats-section .courses-counter-up-container{
  max-width: 1192px;
  margin: auto;
  padding-top: 40px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: row;
  gap: 24px;
}

.our-stats-section .courses-counter-up-container-title {
  flex: unset;
  min-width: unset;
  margin: unset;
  white-space: nowrap;
}

.see-features-content, .see-features-btn {
  display: none !important;
}

@media (max-width: 600px) {
  .comparison-section .header {
    align-items: flex-start;
    margin-bottom: 0;
    gap: 24px;
    flex-direction: column;
  }
  .img-col-separator {
    width: 100%;
  }
  .our-stats-section .courses-counter-up-container {
    flex-direction: column;
    align-items: center;
  }
  .our-stats-section .courses-counter-up-container {
    padding-left: 36px;
    padding-right: 36px;
  }
  .courses-counter {
    font-family: Poppins, sans-serif;
    font-size: 56px;
    font-weight: 400;
    line-height: 58px;
    letter-spacing: -0.04em;
  }
  .see-features-content {
    display: block !important;
    border-bottom: 1px solid !important;
    border-radius: 0;
    margin-bottom: 0;
    overflow: hidden;
  }
  .see-features-btn {
    display: block !important;
    margin-top: 8px;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
    text-decoration: none !important;
    color: var(--black);
  }
  .see-features-btn:hover {
    color: var(--coral);
  }
  .see-all-features {
    display: none !important;
  }
}

@media (min-width: 557px) and (max-width: 600px) {
  .our-stats-section .courses-counter-inner-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
  .courses-counter-box:not(:first-of-type) {
    padding-top: 32px;
  }
}

.pricing-content h2:after {
  display: none;
}

.see-all-features {
  text-align: center;
  cursor: pointer;
}

.see-all-features:hover {
  color: var(--coral);
}

.see-all-features:hover:after {
  filter: brightness(0) saturate(100%) invert(62%) sepia(78%) saturate(1607%) hue-rotate(334deg) brightness(101%) contrast(102%);

}

.see-all-features:after {
  content: url('/assets/img/arrow_downward.svg');
  display: block;
}

.comparison-section h3 {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.table thead tr th span {
  margin-top: 0;
}
/* ---- Sections that pad themselves (no .container-wrapper inside) ----
   Most sections take their spacing from .container-wrapper. These pad
   themselves instead - on the <section>, or on the single wrapper directly
   inside it - and had drifted from the standard rhythm below desktop.
   Standard:
     mobile  (<=600px)        56px top/bottom, 32px left/right
     tablet  (601px-1200px)   56px on every side
   Padding stays on whichever element already carried it, so backgrounds and
   decals paint exactly as before. The :not(:has(.container-wrapper)) guard
   keeps these off any section that later gains a wrapper, which would
   otherwise be padded twice. Desktop is untouched. */
@media (max-width: 600px) {
  section.slider-section:not(:has(.container-wrapper)),
  section.pricing-section:not(:has(.container-wrapper)),
  section.ltr-section:not(:has(.container-wrapper)),
  section.faq-section:not(:has(.container-wrapper)),
  section.insider-section:not(:has(.container-wrapper)) > .insider-content,
  section.our-stats-section:not(:has(.container-wrapper)) > .courses-counter-up-container,
  section.video-content:not(:has(.container-wrapper)) > .content-wrap {
    padding: 56px 32px;
  }
}

@media (min-width: 601px) and (max-width: 1200px) {
  section.slider-section:not(:has(.container-wrapper)),
  section.pricing-section:not(:has(.container-wrapper)),
  section.ltr-section:not(:has(.container-wrapper)),
  section.faq-section:not(:has(.container-wrapper)),
  section.insider-section:not(:has(.container-wrapper)) > .insider-content,
  section.our-stats-section:not(:has(.container-wrapper)) > .courses-counter-up-container,
  section.video-content:not(:has(.container-wrapper)) > .content-wrap {
    padding: 56px;
  }
  /* These wrappers are capped at 1192px and centred, which adds a few px per
     side between 1193px and 1200px. Uncapped, the inset stays exactly 56px. */
  section.insider-section:not(:has(.container-wrapper)) > .insider-content,
  section.our-stats-section:not(:has(.container-wrapper)) > .courses-counter-up-container,
  section.video-content:not(:has(.container-wrapper)) > .content-wrap {
    max-width: none;
  }
}

/* ---- Team comparison table: centre the checks on tablet ----
   On tablet each row becomes a grid (label full width, then Pro and Pro+ at
   half width each), and membership.css left-aligns those plan cells, so the
   check sat at the cell's left edge instead of under its column header.
   Centring alone would still land ~8px left of the header, because
   membership.css only pads the right side (15.5px); mirroring it on the left
   centres the content box on the column. The !important is needed to beat
   `.table td { padding: 16px 0 !important }`, which zeroes the left side. */
@media (min-width: 601px) and (max-width: 1200px) {
  .table.team-comparison-table tr td:not(:first-of-type) {
    text-align: center;
    padding-left: 15.5px !important;
  }
}

/* ---- Plan cards: left-align the price on mobile ----
   The page's own <style> stacks the price and "/month" and aligns them left
   below 600px, but membership.css sets `.comparison-section h3 {
   align-items: center !important }` at the same breakpoint, so the price and
   "/month" drifted to the middle of the card and ran into the badge. Match
   the title, copy and button above and below it, which all sit on the left. */
@media (max-width: 600px) {
  .comparison-section .package-item > h3 {
    align-items: flex-start !important;
  }
}

/* ---- Plan cards: keep the badge level with the title on mobile ----
   On tablet and desktop the badge sits 12px below the top of the plan title
   (10px on the "Most popular" card). Below 600px the cards drop their top
   padding, so the title moves up to 16px from the card edge, but the badge kept
   its desktop offset and slid down beside the price - and the page's own
   <=400px block then moved it again (50px, or 90px on Pro+). Keep the
   desktop relationship to the title instead:
     plain cards:   title now 16px from the top, + 12px          = 28px
     "Most popular": the bar keeps the title where it is on desktop,
                     so the badge keeps its desktop value         = 62px
   (`top` is measured inside the card's border.) */
@media (max-width: 600px) {
  .comparison-section .package-item:not(.most-popular)::before {
    top: 28px;
  }
  .comparison-section .package-item.most-popular::before {
    top: 62px;
  }
}

/* ---- Trusted ratings: one row at every width ----
   At full size a rating box is as wide as its logo (Trustpilot is 194px at
   48px tall) or its five 31px stars (187px), so the pair needs ~413px - more
   than a phone has once the section's 32px side padding is taken off (256px
   at 320px wide). Below md the logos and stars scale with the viewport so the
   two boxes always fit side by side; from 768px up they stay at full size. */
@media (max-width: 767px) {
  .logos .rating-box .rating-logo {
    height: clamp(24px, 8vw, 48px);
    width: auto;
  }
  .logos .rating-box .rating-stars {
    gap: 4px;
  }
  .logos .rating-box .rating-stars img {
    width: clamp(16px, 4.6vw, 31px);
    height: auto;
  }
}

/* ---- Compare plans, mobile cards: centre the title on the badge ----
   .package-header is a flex row left at the default align-items: stretch, so
   the <h4> was stretched to the badge's height and its text sat at the top of
   that box - 11px above the badge's centre at 425px, and 55px at 600px, where
   the title fits on one line. Centre the items instead. */
.table-mobile .package-header {
  align-items: center;
}

/* Compare tables: plan header scrolls with the table on the sign-up page
   (membership.css makes it sticky for the other pages) */
.pricing-section .table thead {
  position: static;
}

/* Compare-table plan headers: badge at the right edge, lined up with the
   end of the button under it (the 2-column grid left it mid-column on the
   wide Team columns) */
.pricing-section .table-head img {
  justify-self: end;
}

/* Compare tables: the zebra stripes (membership.css: even rows) also land
   on the group heading rows ("Community", "Resources" ...); keep those clear */
.pricing-section .table tbody tr:has(> td[colspan]):nth-of-type(n) {
  background-color: transparent;
}

/* FAQs: membership.css drops the button's bottom border once an item is open
   (button.accordion.is-open / button.new-accordion.is-open), and this page does
   not load faq.css, which is what draws the divider under the open answer on the
   other pages. Draw it here, on open answers only, in the button's colour. */
.faq-section .accordion-content.is-open {
  border-bottom: 1px solid #aeaeae;
}
