/* Styles for the hand-built pages (programs, price guide, careers form)
   and small site-wide fixes. Colours follow the Avada theme palette. */

.d2a-page {
  --d2a-pink: #ec008c;
  --d2a-purple: #6b2975;
  --d2a-blue: #129dc0;
  --d2a-soft: #f4f5fa;
  max-width: 1140px;
  margin: 0 auto;
  padding: 56px 20px 72px;
  color: var(--d2a-purple);
  font-family: Poppins, Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  box-sizing: border-box;
}

.d2a-page *,
.d2a-page *::before,
.d2a-page *::after {
  box-sizing: border-box;
}

.d2a-page h2 {
  color: var(--d2a-purple);
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 18px;
}

.d2a-page h3 {
  color: var(--d2a-pink);
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 14px;
}

.d2a-page p {
  margin: 0 0 16px;
}

.d2a-page a {
  color: var(--d2a-pink);
}

.d2a-lead {
  font-size: 20px;
  line-height: 1.55;
}

.d2a-section {
  margin-top: 56px;
}

.d2a-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.d2a-split--top {
  align-items: start;
}

.d2a-photo {
  width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
  object-fit: cover;
}

.d2a-photo--logo {
  max-width: 320px;
  margin: 0 auto;
  border-radius: 0;
}

.d2a-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.d2a-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.d2a-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.d2a-card {
  background: var(--d2a-soft);
  border-radius: 18px;
  padding: 28px 28px 22px;
}

.d2a-card--pink {
  background: var(--d2a-pink);
  color: #fff;
}

.d2a-card--pink h3,
.d2a-card--pink a {
  color: #fff;
}

.d2a-card--purple {
  background: var(--d2a-purple);
  color: #fff;
}

.d2a-card--purple h3,
.d2a-card--purple a {
  color: #fff;
}

.d2a-ticks {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.d2a-ticks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 9px;
}

.d2a-ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--d2a-pink);
  box-shadow: inset 0 0 0 4px #fff;
  border: 2px solid var(--d2a-pink);
}

.d2a-card--pink .d2a-ticks li::before,
.d2a-card--purple .d2a-ticks li::before {
  background: #fff;
  border-color: #fff;
  box-shadow: none;
}

.d2a-price {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 6px;
}

.d2a-price small {
  font-size: 17px;
  font-weight: 400;
}

.d2a-facts {
  list-style: none;
  margin: 14px 0;
  padding: 0;
}

.d2a-facts li {
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.d2a-facts li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.d2a-cta {
  margin-top: 64px;
  background: var(--d2a-soft);
  border-radius: 18px;
  padding: 40px 28px;
  text-align: center;
}

.d2a-cta p {
  margin-bottom: 22px;
}

.d2a-page .d2a-button {
  display: inline-block;
  background: var(--d2a-pink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 999px;
  margin: 4px 6px;
}

.d2a-page .d2a-button:hover,
.d2a-page .d2a-button:focus {
  background: var(--d2a-purple);
  color: #fff;
}

.d2a-page .d2a-button--outline {
  background: transparent;
  color: var(--d2a-pink);
  box-shadow: inset 0 0 0 2px var(--d2a-pink);
}

/* Program overview tiles (used on each program page) */
.d2a-program-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.d2a-page a.d2a-program-link {
  display: block;
  border-radius: 18px;
  padding: 26px 24px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
}

.d2a-program-link span {
  display: block;
  font-weight: 400;
  font-size: 15px;
  margin-top: 6px;
}

.d2a-program-link--lunch { background: var(--d2a-blue); }
.d2a-program-link--art { background: var(--d2a-purple); }
.d2a-program-link--face { background: var(--d2a-pink); }

.d2a-program-link[aria-current="page"] {
  opacity: 0.55;
  pointer-events: none;
}

/* Homepage "Our Programs" section */
.d2a-home-programs {
  background: #f4f5fa;
  border-radius: 30px;
  margin: 10px 0 50px;
}

.d2a-home-programs .d2a-page {
  padding-top: 64px;
  padding-bottom: 64px;
  text-align: center;
}

.d2a-home-programs h2 {
  color: #ec008c;
  font-size: 36px;
}

.d2a-home-programs .d2a-lead {
  max-width: 640px;
  margin: 0 auto 32px;
}

.d2a-program-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.d2a-page a.d2a-program-card {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #fff;
  box-shadow: 0 6px 22px rgba(107, 41, 117, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.d2a-page a.d2a-program-card:hover,
.d2a-page a.d2a-program-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(107, 41, 117, 0.2);
}

.d2a-program-card__img {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
}

.d2a-program-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.d2a-program-card__img--logo img {
  object-fit: contain;
  padding: 18px;
}

.d2a-program-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px 24px;
  font-size: 16px;
  line-height: 1.5;
}

.d2a-program-card__body strong {
  font-size: 21px;
  line-height: 1.25;
}

.d2a-program-card__body em {
  font-style: normal;
  font-weight: 700;
  margin-top: auto;
  padding-top: 6px;
}

.d2a-home-programs__more {
  margin: 32px 0 0 !important;
}

@media (max-width: 900px) {
  .d2a-program-cards {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .d2a-home-programs h2 {
    font-size: 30px;
  }
}

/* Price guide tables */
.d2a-fee-group {
  margin-bottom: 36px;
}

.d2a-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.d2a-fees {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.45;
}

.d2a-fees caption {
  text-align: left;
  color: var(--d2a-pink);
  font-weight: 700;
  font-size: 20px;
  padding: 0 0 10px;
}

.d2a-fees th,
.d2a-fees td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid #e3e3ee;
  vertical-align: top;
}

.d2a-fees thead th {
  background: var(--d2a-purple);
  color: #fff;
  font-weight: 600;
}

.d2a-fees thead th:first-child { border-top-left-radius: 10px; }
.d2a-fees thead th:last-child { border-top-right-radius: 10px; }

.d2a-fees td:last-child,
.d2a-fees th:last-child {
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
}

.d2a-fees tbody tr:nth-child(even) {
  background: var(--d2a-soft);
}

.d2a-note {
  font-size: 15px;
  opacity: 0.85;
}

/* Careers form */
.d2a-page .d2a-static-form input[type="file"] {
  width: 100%;
  border: 2px dashed #c9c9d9;
  border-radius: 6px;
  padding: 18px 14px;
  background: #fff;
  font-size: 15px;
  font-family: inherit;
  color: #333;
  cursor: pointer;
}

.d2a-page .d2a-static-form .nf-field-label label {
  color: var(--d2a-purple);
}

.d2a-field-help {
  display: block;
  font-size: 14px;
  margin-top: 6px;
  opacity: 0.8;
}

.d2a-required {
  color: var(--d2a-pink);
}

/* "No longer running" notice */
.d2a-closed-banner {
  background: #ec008c;
  color: #fff;
  font-family: Poppins, Arial, Helvetica, sans-serif;
  text-align: center;
  padding: 18px 20px;
  font-size: 18px;
  line-height: 1.5;
}

.d2a-closed-banner strong {
  display: block;
  font-size: 24px;
  letter-spacing: 0.02em;
}

.d2a-closed-banner a {
  color: #fff;
  font-weight: 700;
}

.d2a-closed-tag {
  display: inline-block;
  background: #fff;
  color: #ec008c;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin: 8px 0 0;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .d2a-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .d2a-program-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .d2a-page {
    padding: 36px 16px 56px;
    font-size: 16px;
  }

  .d2a-page h2 {
    font-size: 25px;
  }

  .d2a-lead {
    font-size: 18px;
  }

  .d2a-section {
    margin-top: 40px;
  }

  .d2a-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .d2a-gallery img:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
  }

  .d2a-fees {
    font-size: 15px;
  }

  .d2a-fees th,
  .d2a-fees td {
    padding: 11px 10px;
  }

  .d2a-fees td:last-child {
    white-space: normal;
  }
}

.d2a-gallery--two {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 640px) {
  .d2a-gallery--two {
    grid-template-columns: 1fr;
  }

  .d2a-gallery--two img:first-child {
    aspect-ratio: 1 / 1;
  }
}

/* Site-wide: the footer's text elements share numbered classes
   (.fusion-text-1 etc.) with page content, so on some pages the page's
   rules repaint the footer headings purple on the pink background. Re-apply
   the footer's own inline settings. */
.fusion-tb-footer .fusion-text {
  color: var(--awb-text-color) !important;
  font-size: var(--awb-font-size) !important;
  font-weight: var(--awb-text-font-weight) !important;
}

/* Site-wide: the main menu gained Programs and Price Guide, so tighten the
   spacing on narrower desktop screens to keep it clear of the logo and button. */
nav.awb-menu_desktop {
  --awb-gap: 24px !important;
}

@media (max-width: 1440px) {
  nav.awb-menu_desktop {
    --awb-gap: 16px !important;
  }

  nav.awb-menu_desktop .awb-menu__main-a .menu-text {
    font-size: 15px;
  }
}

/* Site-wide: between the phone layout (<=850px) and full desktop (>=1280px)
   Avada keeps the row menu, which no longer fits in its half-width column
   with seven items. Drop "Home" (the logo already links home), tighten the
   spacing and give the menu column more of the header's width. */
@media (min-width: 851px) and (max-width: 1279px) {
  .fusion-tb-header > .fusion-fullwidth.fusion-no-small-visibility > .fusion-builder-row > .fusion-layout-column:nth-child(1),
  .fusion-tb-header > .fusion-fullwidth.fusion-no-small-visibility > .fusion-builder-row > .fusion-layout-column:nth-child(3) {
    width: 21% !important;
    flex-basis: 21% !important;
  }

  .fusion-tb-header > .fusion-fullwidth.fusion-no-small-visibility > .fusion-builder-row > .fusion-layout-column:nth-child(2) {
    width: 58% !important;
    flex-basis: 58% !important;
  }

  .fusion-tb-header > .fusion-fullwidth.fusion-no-small-visibility .fusion-button {
    padding: 13px 22px !important;
    font-size: 15px !important;
  }

  .fusion-tb-header nav.awb-menu_row .awb-menu__main-li {
    margin-left: 7px !important;
    margin-right: 7px !important;
  }

  .fusion-tb-header nav.awb-menu_row .awb-menu__main-li.menu-item-4439 {
    display: none;
  }

  .fusion-tb-header nav.awb-menu_row .awb-menu__main-a .menu-text {
    font-size: 15px;
  }
}

/* Site-wide: full-width nested columns (e.g. the "Meet The Animals" cards)
   were collapsing to ~125px because their width rule is missing from the
   saved page CSS. */
.fusion-builder-row-inner > .fusion_builder_column_inner_1_1 {
  width: 100% !important;
}

/* Careers application form */
.d2a-careers {
  max-width: 820px;
  padding-top: 8px;
}

.d2a-careers .d2a-static-form {
  background: #f4f5fa;
  border-radius: 18px;
  padding: 28px;
}

@media (max-width: 640px) {
  .d2a-careers .d2a-static-form {
    padding: 20px 16px;
  }
}

/* Site-wide: the footer email address ran off the side of phone screens. */
@media (max-width: 640px) {
  .fusion-tb-footer .fusion-text.fusion-text-no-margin {
    font-size: 17px !important;
    overflow-wrap: anywhere;
  }
}
