/*
 * Adobe MAX (event 1347) L2 cards: content-cards with className `l2-cards-max`.
 * Replaces the legacy .aomax-section2* / .aomax-session-cta / .aomax-speaker look
 * from aomf.css without positional `#main >` selectors. Specificity is raised
 * (doubled classes) so it also wins over the legacy aomf.css !important rules.
 */

/* ---- Grid: auto-fill + minmax, max cards per row = --cols (default 3) ---- */
.content-cards--max .content-cards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, max(var(--min, 14rem), calc((100% - (var(--cols, 3) - 1) * var(--gap, 1.5rem)) / var(--cols, 3)))), 1fr));
  gap: 1.5rem;
  margin: 0;
}
.content-cards--max .content-cards__grid > .content-card-col {
  min-width: 0;
  display: flex;
}

/* ---- Section frame (same spacing as the legacy MAX sections 2 and 4) ---- */
body #main .content-cards--max.content-cards--white,
.content-cards--max.content-cards--white {
  margin: 0;
  padding: 109px 0 118px !important;
  overflow: visible;
}
body #main .content-cards--max.content-cards--black,
.content-cards--max.content-cards--black {
  margin: 0;
  padding: 109px 0 121px !important;
}
.content-cards--max > section.container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto !important;
  padding: 0;
  gap: 110px;
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
}
.content-cards--max.content-cards--white > section.container {
  gap: 120px;
}
.content-cards--max > section.container {
  max-width: none;
  padding-left: max(32px, calc((100% - 1200px) / 2));
  padding-right: max(32px, calc((100% - 1200px) / 2));
}
.content-cards--max > section.container > .row,
.content-cards--max > section.container > .content-cards__grid {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.content-cards--max > section.container > .row {
  --bs-gutter-x: 0;
  gap: clamp(17px, 2vw, 32px);
}
.content-cards--max > section.container > .row > .col-md-6.ps-lg-5 > div {
  padding-left: 0 !important;
}
@media (min-width: 768px) {
  .content-cards--max > section.container > .row {
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .content-cards--max > section.container > .row > .col-md-6 {
    width: calc(50% - 16px);
    max-width: calc(50% - 16px);
    flex: 0 0 calc(50% - 16px);
    padding-left: 0;
    padding-right: 0;
  }
}
@media (max-width: 767.98px) {
  .content-cards--max.content-cards--white > section.container {
    gap: 64px;
  }
}

/* Decorative ring behind the white section (was .aomax-section2__inner::before) */
.content-cards--max.content-cards--white > section.container::before {
  content: "";
  position: absolute;
  top: -585px;
  left: calc(50vw - 1124px);
  width: 1151px;
  height: 1157px;
  max-width: none;
  pointer-events: none;
  z-index: -1;
  background: url("../images/aomax/asset-23-figma.png") no-repeat -97px 62px;
  background-size: 1464px 1052px;
  transform: rotate(8deg);
  transform-origin: center center;
}

/* ---- Section heading typography ---- */
.content-cards--max h2 {
  margin: 0;
  padding: 0;
  font-family: "Instrument Sans", sans-serif;
  font-size: 46px !important;
  font-weight: 600 !important;
  font-style: normal;
  line-height: 1 !important;
  letter-spacing: -0.92px !important;
}
.content-cards--max.content-cards--white > section.container > .row h2 {
  max-width: 349px;
}
.content-cards--max.content-cards--black h2 {
  color: #fff;
}
.content-cards--max > section.container > .row .fs-14,
.content-cards--max > section.container > .row .fs-14 p {
  margin: 0;
  font-family: "Instrument Sans", sans-serif;
  font-size: 16px !important;
  font-weight: 400 !important;
  font-style: normal;
  line-height: 1.6 !important;
  letter-spacing: 0 !important;
}
.content-cards--max.content-cards--white > section.container > .row .fs-14 {
  color: #000;
}
.content-cards--max.content-cards--black > section.container > .row .fs-14,
.content-cards--max.content-cards--black > section.container > .row .fs-14 p {
  color: #fff;
}
.content-cards--max > section.container > .row .fs-14.mt-4 {
  margin-top: 0 !important;
}

/* ---- Cards ---- */
.content-cards--max .content-cards__grid > .content-card-col > .content-card.content-card.content-card {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  display: flex;
  flex-direction: column;
  margin: 0;
  box-sizing: border-box;
  border-radius: 24px;
}
.content-cards--max.content-cards--white .content-cards__grid > .content-card-col > .content-card.content-card.content-card {
  padding: 46px 30px !important;
  gap: 4px;
  background: #000 !important;
  color: #fff !important;
}
.content-cards--max.content-cards--black .content-cards__grid > .content-card-col > .content-card.content-card.content-card {
  padding: 46px 30px !important;
  gap: 20px;
  background: #fafafa !important;
  color: #1b1b1b !important;
}
@media (min-width: 768px) and (max-width: 1279.98px) {
  body #main .content-cards--max div.content-cards__grid > div.content-card-col > div.content-card.content-card.content-card {
    padding: 1.5rem 1.25rem !important;
  }
}
.content-cards--max .content-card h3 {
  margin: 0;
  padding: 0;
  font-family: "Instrument Sans", sans-serif;
  font-size: 26px !important;
  font-weight: 700 !important;
  font-style: normal;
  line-height: 1.4 !important;
  letter-spacing: 0.26px !important;
}
.content-cards--max.content-cards--white .content-card h3 {
  color: #fff !important;
}
.content-cards--max.content-cards--black .content-card h3 {
  color: #1b1b1b !important;
}
.content-cards--max .content-card .card-desc,
.content-cards--max .content-card .card-desc p {
  margin: 0;
  padding: 0;
  font-family: "Instrument Sans", sans-serif;
  font-style: normal;
}
.content-cards--max.content-cards--white .content-card .card-desc,
.content-cards--max.content-cards--white .content-card .card-desc p {
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.16px !important;
}
.content-cards--max.content-cards--black .content-card .card-desc,
.content-cards--max.content-cards--black .content-card .card-desc p,
.content-cards--max.content-cards--black .content-card .card-desc p strong {
  color: #1b1b1b !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.53 !important;
  letter-spacing: 0 !important;
}
.content-cards--max .content-card .card-desc p:empty {
  display: none;
}
.content-cards--max .content-card .card-desc {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.content-cards--max.content-cards--white .content-card .card-desc {
  gap: 0;
}

/* ---- Speakers + CTA ---- */
.content-card__speakers {
  display: block;
  margin: 0;
  padding: 0;
}
.content-cards--max .content-card .card-desc .content-card__speakers > p {
  display: inline;
  margin: 0;
  padding: 0;
}
.content-cards--max .content-card .card-desc .content-card__speakers > p:first-child:not(:last-child) {
  font-weight: 700 !important;
}
.content-cards--max .content-card .content-card__cta {
  display: inline-block;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  margin-top: auto;
  color: #4F7FF2;
  font-family: "Instrument Sans", sans-serif;
  font-size: 20px !important;
  font-style: normal;
  font-weight: 700 !important;
  font-synthesis: weight;
  font-variation-settings: "wght" 700;
  line-height: 153% !important;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-underline-position: from-font;
  transition: color 180ms ease;
}
.content-cards--max .content-card .content-card__cta:hover,
.content-cards--max .content-card .content-card__cta:focus-visible {
  color: #3A6FD8;
}
@media (max-width: 767px) {
  .content-cards--max .content-card .content-card__cta {
    -webkit-text-stroke: 0.15px currentColor;
  }
}
