h2, h4 {
  margin: 0;
}

p, td {
  font-family: Poppins, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
}

.banner-content {
  gap: 40px;
}

/* The gradient span is display:block with pb-20/mb-neg-20 so its descenders
   clear background-clip:text without adding layout height — which leaves the
   h1 box ending mid-descender. The gap has to come off the h1 itself. */
.banner-content h1 {
  margin-bottom: 24px;
}

/* global.css gives every p a 1.5em bottom margin; here it just pushes the
   flex-end aligned CTA below the copy it should sit level with. */
.banner-content .content-container p {
  margin-bottom: 0;
}

.ltr-section .ltr-content {
  padding: 80px 0 80px;
  display: flex;
  align-items: center;
  max-width: 1192px;
  margin: auto;
  gap: 43px;
}

.flexibility-section .ltr-content .content,
.comparison-section .comparison-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
.flexibility-section .ltr-content .content * {
  margin: 0px;
}

.ltr-section .text-primary-coral-gradient {
  margin-bottom: -10px;
}

.ltr-section h2 {
  margin-bottom: 24px;
}

.comparison-section {
  background-color: var(--black);
}

section.comparison-section {
  margin-bottom: 0;
}

.why-choose-section .container, .logo-partners .container, .about-membership-section .container, .comparison-table .container {
  flex-direction: column;
}

.comparison-section .container {
  padding: 80px 0;
  max-width: 1192px;
  margin: auto;
  flex-direction: column;
}

.comparison-section .container h2 {
  color: var(--white);
}

.comparison-section .container p {
  color: var(--white);
  margin-bottom: 0;
}

.comparison-section .comparison-header {
  padding-bottom: 24px;
  border-bottom: 1px solid #AEAEAE;
  margin-bottom: 40px;
}

.comparison-body {
  display: flex;
  gap: 64px;
  align-items: stretch;
}

.comparison-body > img {
  align-self: center;
}

.comparison-body .card {
  background-color: var(--white);
  width: 486.5px;
  padding: 24px;
  border-radius: 12px;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 8px + the 24px column gap keeps the original 32px under the card title. */
.comparison-body .card h4 {
  margin-bottom: 8px;
}

.comparison-body .card p {
  font-family: Poppins, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 8px;
}

.comparison-body .card p[class^="icon-"]:before {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.icon-course-credit:before {
  content: url("/assets/img/icons/course-credit.svg");
}

.icon-conference-passes:before {
  content: url("/assets/img/icons/conference-passes.svg");
}

.icon-career-coaching:before {
  content: url("/assets/img/icons/career-coaching.svg");
}

.icon-no-workshops:before {
  content: url("/assets/img/icons/no-workshops.svg");
}

.icon-certifications:before {
  content: url("/assets/img/icons/certifications-included.svg");
}

.icon-summit-discounts:before {
  content: url("/assets/img/icons/summit-discounts.svg");
}

.icon-mentor-program:before {
  content: url("/assets/img/icons/mentor-program.svg");
}

.icon-revenue-labs:before {
  content: url("/assets/img/icons/revenue-labs-workshops.svg");
}

.comparison-body .card.with-decor-star-green:before {
  content: url("/assets/img/star-green.svg");
  position: absolute;
  top: 17px;
  right: 11px;
}

.rtl-section .rtl-content{
  padding: 80px 0 40px;
  display: flex;
  align-items: center;
  max-width: 1192px;
  margin: auto;
  gap: 68px;
}

/* "Your success is guaranteed": 24px between the copy and the button. The .btn is an
   inline <a>, so its 12px vertical padding didn't take space and the box rose into
   the paragraph's margin (looked like a negative top margin). */
.rtl-section .rtl-content .content p {
  margin-bottom: 24px;
}
.rtl-section .rtl-content .content .btn {
  display: inline-block;
}

/* Neither column had flex sizing, so the long paragraph took most of the row and
   squeezed the image (587x472 here, 563x399 in .ltr-section) down to 166px / 275px.
   Split the row evenly on desktop; below 1201px both sections stack and the
   images already show at full size. */
@media (min-width: 1201px) {
  .rtl-section .rtl-content > *,
  .ltr-section .ltr-content > * {
    flex: 1 1 0;
    min-width: 0;
  }
  .rtl-section .rtl-content img,
  .ltr-section .ltr-content img {
    width: 100%;
    height: auto;
  }
}

#about-membership .container {
  max-width: 1192px;
  margin: auto;
  padding: 80px 0;
}

table.about-membership-table {
  width: 991px;
}

table.about-membership-table tr {
  position: relative;
  border-bottom: 1px solid #D4D4D4;
}

table.about-membership-table tr:after {
  content: " ";
  width: 100%;
  border-bottom: 1px solid #D4D4D4;
  position: absolute;
  bottom: 0;
  left: 0;
}

table.about-membership-table tr td:first-of-type {
  padding-left: 0 !important;
  padding-right: 24px;
}

table.about-membership-table tr:not(:first-of-type) p {
  margin-top: 24px;
}

table.about-membership-table small {
  font-family: Poppins, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
}

#about-membership .col-content {
  position: relative;
}

#about-membership {
  background-image: url("/assets/img/bottom-right-bg.svg");
  background-position: bottom right;
  background-repeat: no-repeat;
}


#about-membership h5 {
  margin-top: 0;
  margin-bottom: 0;
}

table.about-membership-table tr td:nth-child(2) {
  padding-right: 40px;
}

.about-membership-table p {
  font-family: Poppins, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
}

#about-membership .col-content:after {
  content: url("/assets/img/curly-arrow-left-coral.svg");
  position: absolute;
  top: -40px;
  right: -80px;
}

.comparison-table {
  background-color: var(--black);
  background-image: url("/assets/img/top-right-decor-white.svg");
  background-position: top right;
  background-repeat: no-repeat;
}

.comparison-table .container {
  padding: 80px 0;
  max-width: 1192px;
  margin: auto;
}

.comparison-table .container p {
  color: var(--white);
}

.comparison-table tr th, .comparison-table tr td {
  padding-right: 16px;
  color: var(--white);
  text-align: left;
}

.comparison-table tr th {
  vertical-align: top;
}

/* global.css sets every p to inline-block, which pulls the CTA up onto the same
   line as the plan name. The header cells need normal block flow. */
.comparison-table tr th p {
  display: block;
  margin: 0 0 16px;
}

/* .text-italic (Tailwind component) only sets the IvyJournal family; the italic
   style comes from style.css's `h1-h5 .text-italic`, which doesn't reach these
   plan names inside a <p>, so they rendered in upright IvyJournal. */
.comparison-table tr th .text-italic {
  font-style: italic;
}

.comparison-table tr th .btn {
  display: inline-block;
  margin-bottom: 16px;
}

.comparison-table tr td {
  padding-top: 16px;
  padding-bottom: 16px;
}

.comparison-table tr th:first-of-type, .comparison-table tr td:first-of-type {
  padding-left: 40px !important;
}

.comparison-table tr th:last-of-type, .comparison-table tr td:last-of-type {
  padding-right: 40px !important;
}

.comparison-table tbody tr:nth-of-type(odd) {
  background-color: #171E1D !important;
}

.comparison-table table, .comparison-table th, .comparison-table td {
  border: none;
  border-collapse: collapse;
  text-align: left;
}

.why-choose-section .container {
  padding: 80px 0;
  max-width: 1192px;
  margin: auto;
}

.why-choose-section .container h2 {
  margin-bottom: 40px;
}

.why-choose-section .container .cards {
  display: flex;
  gap: 24px;
}

.why-choose-section .container .cards .card {
  padding: 40px 32px;
  box-shadow: 0px 4px 10px 0px #0000001A;
  border-radius: 12px;
}

.why-choose-section .container .card img {
  margin-bottom: 24px;
}

.why-choose-section .container .card h4 {
  margin-bottom: 24px;
}

.logo-partners .container {
  text-align: center;
  padding-top: 48px;
  padding-bottom: 80px;
  max-width: 1192px;
  margin: auto;
}

.logo-partners .container p {
  margin-bottom: 24px;
}

.logo-partners .group-logo-grid {
  grid-template-columns: repeat(6, 1fr);
  column-gap: 16px;
  row-gap: 32px;
}

.logo-partners .group-logo-grid.column-5 {
  margin-top: 32px;
  grid-template-columns: repeat(5, 1fr);
}

.logo-partners .group-logo-grid img {
  height: 48px;
}

.logo-partners .group-logo-grid > img:nth-child(n + 13) {
  grid-template-columns: repeat(5, auto);
}

.faq-section {
  padding: 80px 0px;
  background-color: var(--black);
  background-image: url("/assets/img/left-bottom-bg.svg");
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: cover;
}

.faq-section .faq-content {
  max-width: 1192px;
  margin: auto;
  display: flex;
  justify-content: space-between;
}

.faq-section .faq-content .accordion {
  width: 889px;
}

button.accordion {
  width: 100%;
  background-color: transparent;
  border: none;
  outline: none;
  text-align: left;
  padding-bottom: 32px;
  color: var(--white);
  cursor: pointer;
  font-family: Poppins, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #AEAEAE;
}

.faq-section .faq-content .accordion {
  width: 889px;
}

.accordion-content {
  background-color: transparent;
  max-height: 0;
  padding: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-in-out, padding 0.2s ease-in-out;
}

.accordion-content p {
  color: var(--white);
  font-family: Poppins, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
}

button.accordion:before {
  content: " ";
  border: 2px solid var(--white);
  width: 8px;
  display: block;
  transform: rotate(90deg);
  transition: transform .2s ease-in-out;
}

button.accordion.is-open:before {
  transform: rotate(0);
  border-color: var(--coral);
}

/* Open: the answer panel draws the line below itself instead (community-comparison.js). */
button.accordion.is-open {
  border-bottom-color: transparent;
}

/* The panel's 24px bottom padding is the whole gap above that line. */
.accordion-content p:last-child {
  margin-bottom: 0;
}

.faq-section .faq-content h2:after {
  content: url(/assets/img/curly-arrow-right.svg);
  position: absolute;
  left: -70px;
  bottom: -280px;
}

.faq-section .faq-content h2 {
  margin: 0;
  color: var(--white);
  font-family: Poppins, sans-serif;
  font-size: 56px;
  font-weight: 400;
  line-height: 58px;
  letter-spacing: -0.04em;
  position: relative;
}

.faq-section .faq-content .accordion button:not(:first-of-type) {
  margin-top: 24px;
}

.slider-section .slide-item {
  width: 100%;
}

.auth-img {
  width: 100%;
}

.slider-section .slide-content {
  padding-right: 0;
}

@media (min-width: 601px) and (max-width: 1200px) {
  .page-container h2 {
    font-family: Poppins, sans-serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 40px;
    letter-spacing: -0.04em;
  }
  .banner-container {
    background-size: cover;
  }
  /* Photo above the quote, as on phones */
  .slider-section .slide-item {
    flex-direction: column;
  }
  .content-container {
    margin-bottom: 24px;
  }
  .banner-content {
    padding: 80px 56px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .banner-content h1 br {
    display: none !important;
  }
  .banner-content .btn {
    display: inline-block;
  }
  .ltr-section .ltr-content {
    padding: 80px 56px 40px;
    flex-direction: column-reverse;
  }
  .slider-section {
    padding: 64px 56px;
  }
  .rtl-section .rtl-content {
    padding: 80px 56px 40px;
    flex-direction: column;
  }
  #about-membership .container {
    padding: 80px 56px;
  }
  table.about-membership-table {
    width: 100%;
  }
  .comparison-section .container {
    padding: 80px 56px;
  }
  .comparison-table table tr td:not(:first-of-type) {
    padding-right: 0 !important;
  }
  #about-membership .col-content:after {
    display: none;
  }
  .comparison-table .container {
    padding: 80px 56px;
  }
  .comparison-table table, thead, tbody {
      display: block !important;
  }
  .comparison-table table tbody tr {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .comparison-table table tbody tr td:first-of-type {
    grid-column: 1 / -1;
  }
  .comparison-table table tbody tr:nth-child(2n) {
    background-color: var(--black) !important;
  }
  .comparison-table table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .comparison-table tr th:first-of-type, .comparison-table tr td:first-of-type {
    padding: 16px !important;
  }
  .comparison-table thead tr th:first-of-type {
    display: none;
  }
  .comparison-table tr th:last-of-type, .comparison-table tr td:last-of-type {
    padding-right: 0 !important;
  }
  .comparison-table tr td:not(:first-of-type) {
    text-align: center;
  }
  /* Same as the <=600px block: the check is a block-level img, so text-align
     doesn't move it; center it with auto margins. */
  .comparison-table tr td:not(:first-of-type) img {
    margin-left: auto;
    margin-right: auto;
  }
  .comparison-table .container > p {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #AEAEAE;
    width: 100%;
  }
  .comparison-table table thead tr {
    display: flex;
    width: 100%;
  }
  .comparison-table table thead tr p{
    display: block;
  }
  /* Centre each plan heading (name + Sign up) over its column of checks, which are
     centred in the two equal grid columns below; the old fixed 145px left inset
     only roughly lined up at one width. */
  .comparison-table table thead tr th{
    flex: 1;
    padding-left: 0;
    padding-right: 0 !important;
    text-align: center;
  }
  .why-choose-section .container {
    padding: 80px 56px;
  }
  .logo-partners .container {
    padding-left: 56px;
    padding-right: 56px;
  }
  .logo-partners .group-logo-grid, .logo-partners .group-logo-grid.column-5 {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 0;
  }
  .faq-section {
    padding: 80px 56px;
  }
  .faq-section .faq-content {
    flex-direction: column;
  }
  .faq-section .faq-content h2 {
    margin-bottom: 40px;
  }
  .faq-section .faq-content h2:after {
    display: none;
  }
  .faq-section .faq-content .accordion {
    width: 100%;
  }
  .accordion-content p {
    margin-top: 24px;
    margin-bottom: 0;
  }
  .faq-section {
    background-image: url("/assets/img/left-top-bg-small.svg");
    background-position: left top;
    background-size: cover;
  }
}

/* "The math makes sense" cards: stacked with the vs badge between them on tablet
   as well as phones. Side by side below 1033px they were squeezed to ~190-220px
   wide and up to ~800px tall. */
@media (max-width: 1032px) {
  .comparison-body {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .comparison-body .card {
    width: 100%;
  }
  .comparison-body img {
    width: 91px;
  }
}

@media (max-width: 600px) {
  .page-container h2 {
    font-family: Poppins, sans-serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 40px;
    letter-spacing: -0.04em;
  }
  .banner-container {
    background-image: url("/assets/img/right-top-bg-small.svg");
    background-position: top right;
  }
  .content-container {
    margin-bottom: 24px;
  }
  .content-container h1 {
    font-family: Poppins, sans-serif;
    font-size: 56px;
    font-weight: 400;
    line-height: 58px;
    letter-spacing: -0.04em;
  }
  .banner-content .btn {
    display: inline-block;
  }
  .ltr-section .ltr-content {
    padding: 56px 32px;
    flex-direction: column-reverse;
    gap: 48px;
  }
  .ltr-section .ltr-content img {
    width: 100%;
  }
  .comparison-section .container {
    padding: 56px 32px;
  }
  .slider-section {
    padding: 56px 32px;
  }
  .slider-section .slide-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .slider-section .slider-controller {
    margin-top: 24px;
    position: relative;
  }
  .rtl-section .rtl-content {
    padding: 56px 32px;
    flex-direction: column;
  }
  .rtl-section .rtl-content img {
    width: 100%;
  }
  #about-membership .container {
    padding: 56px 32px;
  }
  #about-membership .col-content:after {
    display: none;
  }
  table.about-membership-table {
    width: 100%;
  }
  table.about-membership-table tbody {
    display: flex;
    flex-direction: column;
  }
  table.about-membership-table tr {
    display: grid;
    grid-template-columns: 10% 90%;
    margin-bottom: 24px;
    align-items: center;
    row-gap: 16px;
  }
  table.about-membership-table tr td:last-of-type {
    grid-column: span 2;
  }
  .comparison-table table tr td:not(:first-of-type) {
    padding-right: 0 !important;
  }
  .comparison-table .container {
    padding: 56px 32px;
  }
  .comparison-table table, thead, tbody {
      display: block !important;
  }
  .comparison-table table tbody tr {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .comparison-table table tbody tr td:first-of-type {
    grid-column: 1 / -1;
  }
  .comparison-table table tbody tr:nth-child(2n) {
    background-color: var(--black) !important;
  }
  .comparison-table table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .comparison-table tr th:first-of-type, .comparison-table tr td:first-of-type {
    padding: 16px !important;
  }
  .comparison-table thead tr th:first-of-type {
    display: none;
  }
  .comparison-table tr th:last-of-type, .comparison-table tr td:last-of-type {
    padding-right: 0 !important;
  }
  .comparison-table tr td:not(:first-of-type) {
    text-align: center;
  }
  /* The check is a block-level img (theme-wide img { display: block }), so the
     cell's text-align: center doesn't move it; center it with auto margins. */
  .comparison-table tr td:not(:first-of-type) img {
    margin-left: auto;
    margin-right: auto;
  }
  .comparison-table .container > p {
    padding-bottom: 24px;
    border-bottom: 1px solid #AEAEAE;
  }
  /* Same as the tablet block: split the header row into the two equal columns
     the checks use and centre each plan heading (name + Sign up) over its checks. */
  .comparison-table table thead tr {
    display: flex;
    width: 100%;
  }
  .comparison-table table thead tr p {
    display: block;
  }
  .comparison-table table thead tr th {
    flex: 1;
    padding-left: 0;
    padding-right: 0 !important;
    text-align: center;
  }
  .why-choose-section .container {
    padding: 56px 32px;
  }
  .why-choose-section .container .cards {
    display: flex;
    gap: 24px;
    flex-direction: column;
  }
  .logo-partners .group-logo-grid, .logo-partners .group-logo-grid.column-5 {
    grid-template-columns: repeat(1, 1fr);
  }
  .faq-section {
    padding: 56px 32px;
  }
  .faq-section .faq-content {
    flex-direction: column;
  }
  .faq-section .faq-content h2 {
    margin-bottom: 40px;
  }
  .faq-section .faq-content h2:after {
    display: none;
  }
  .faq-section .faq-content .accordion {
    width: 100%;
  }
  .accordion-content p {
    margin-top: 24px;
    margin-bottom: 0;
  }
  .faq-section {
    background-image: url("/assets/img/left-top-bg-small.svg");
    background-position: left top;
    background-size: cover;
  }
}