/* Page-specific visual match for the approved Academy and Contact redesigns. */

body.academy-tech-page,
body.contact-tech-page {
  --brand-yellow: #ffd334;
  --brand-yellow-strong: #ffbf00;
  --ink: #111827;
  --muted: #5d6f88;
  --line: #c8def7;
  --panel: rgba(255, 255, 255, 0.92);
  --blue-soft: #edf7ff;
}

body.academy-tech-page .topbar,
body.contact-tech-page .topbar {
  margin-bottom: 0;
}

.brand-page-hero {
  padding-top: 24px !important;
  padding-bottom: 28px !important;
}

.brand-page-hero-card {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid #b9d8f6;
  border-radius: 8px;
  background: #f7fbff;
  box-shadow: 0 18px 48px rgba(55, 121, 180, 0.12);
}

.brand-page-hero-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.82) 34%, rgba(255, 255, 255, 0) 56%);
}

.brand-page-hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.brand-page-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(44%, 560px);
  min-height: 560px;
  padding: 66px 0 56px 52px;
  flex-direction: column;
  justify-content: center;
}

.brand-page-kicker {
  position: relative;
  width: max-content;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
}

.brand-page-kicker::after {
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 48px;
  height: 4px;
  border-radius: 4px;
  background: var(--brand-yellow);
  content: "";
}

.brand-page-hero-copy h1 {
  max-width: 620px;
  margin: 0;
  color: #05070b;
  font-size: clamp(42px, 4.1vw, 62px);
  line-height: 1.14;
  letter-spacing: 0;
}

.brand-page-benefits {
  display: grid;
  max-width: 410px;
  margin: 28px 0 28px;
}

.brand-page-benefit {
  display: grid;
  min-height: 64px;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #d9e8f7;
  color: #172033;
  font-size: 18px;
  font-weight: 700;
}

.brand-page-benefit:last-child {
  border-bottom: 0;
}

.brand-page-benefit img {
  width: 42px;
  height: 42px;
  padding: 8px;
  border-radius: 8px;
  object-fit: contain;
  background: #e8f4ff;
}

.brand-page-cta {
  display: inline-flex;
  width: 230px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border: 1px solid #f0b500;
  border-radius: 7px;
  background: var(--brand-yellow);
  box-shadow: 0 12px 24px rgba(255, 191, 0, 0.24);
  color: #05070b;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.brand-page-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(255, 191, 0, 0.32);
}

/* Academy */
.academy-redesign-section {
  padding-top: 12px !important;
  padding-bottom: 64px !important;
}

.academy-redesign-toolbar {
  display: flex;
  margin-bottom: 24px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.academy-redesign-heading h2,
.contact-redesign-heading h2 {
  position: relative;
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.2;
}

.academy-redesign-heading h2::after,
.contact-redesign-heading h2::after {
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 44px;
  height: 4px;
  border-radius: 4px;
  background: var(--brand-yellow);
  content: "";
}

.academy-redesign-heading p,
.contact-redesign-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.academy-redesign-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.academy-redesign-tabs button {
  min-width: 92px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid #b9d8f6;
  border-radius: 6px;
  background: #fff;
  color: #38506e;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.academy-redesign-tabs button.is-active {
  border-color: #f0b500;
  background: #fffdf3;
  color: #111;
  box-shadow: inset 0 -3px 0 var(--brand-yellow);
}

.academy-access-note {
  width: 100%;
  margin: 9px 0 0;
  color: #73859a;
  font-size: 13px;
  text-align: right;
}

.academy-redesign-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.academy-redesign-card {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #c8def7;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(52, 103, 151, 0.08);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.academy-redesign-card:hover {
  transform: translateY(-3px);
  border-color: #8ebfea;
  box-shadow: 0 14px 26px rgba(52, 103, 151, 0.13);
}

.academy-redesign-card .article-thumb {
  position: relative;
  height: 176px;
  overflow: hidden;
  background: #eaf5ff;
}

.academy-redesign-card .article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.academy-redesign-card .academy-card-body {
  display: block;
  padding: 18px 18px 16px;
}

.academy-redesign-card .article-tag {
  display: inline-flex;
  min-height: 25px;
  padding: 0 9px;
  align-items: center;
  border: 1px solid #c7def5;
  border-radius: 4px;
  background: #eef7ff;
  color: #315d86;
  font-size: 12px;
  font-weight: 700;
}

.academy-redesign-card h3 {
  margin: 12px 0 7px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.4;
}

.academy-redesign-card p {
  min-height: 46px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.academy-redesign-card .article-card-foot {
  display: flex;
  margin-top: 14px;
  padding-top: 13px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e2edf8;
  color: #8190a2;
  font-size: 12px;
}

.academy-redesign-card .article-card-foot span {
  color: #2769ac;
  font-weight: 700;
}

.academy-redesign-card .lock-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: none;
  min-height: 32px;
  padding: 0 12px;
  align-items: center;
  gap: 6px;
  border: 1px solid #e7b800;
  border-radius: 5px;
  background: var(--brand-yellow);
  color: #111;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 5px 12px rgba(35, 46, 62, 0.16);
}

.academy-redesign-card.is-locked .lock-badge {
  display: inline-flex;
}

.academy-redesign-card.is-locked .article-thumb::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background: rgba(220, 239, 255, 0.64);
  backdrop-filter: saturate(72%);
}

.academy-redesign-card.is-locked .article-tag {
  border-color: #edd271;
  background: #fff9d9;
  color: #6d5600;
}

/* Contact */
.contact-directions-section {
  padding-top: 12px !important;
  padding-bottom: 48px !important;
}

.contact-redesign-heading {
  margin-bottom: 26px;
  text-align: center;
}

.contact-redesign-heading h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.contact-direction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.contact-direction-card {
  overflow: hidden;
  border: 1px solid #c8def7;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(53, 105, 153, 0.08);
}

.contact-direction-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: 68% center;
}

.contact-direction-card:nth-child(3) img {
  object-position: 78% center;
}

.contact-direction-copy {
  padding: 20px 22px 22px;
}

.contact-direction-copy h3 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 21px;
}

.contact-direction-copy p {
  min-height: 68px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.contact-direction-link {
  display: inline-flex;
  margin-top: 15px;
  align-items: center;
  gap: 7px;
  color: #1769b0;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.contact-details-section {
  padding-top: 10px !important;
  padding-bottom: 62px !important;
}

.contact-details-shell {
  display: grid;
  padding: 28px;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 24px;
  border: 1px solid #c8def7;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
}

.contact-location-card,
.contact-business-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid #c8def7;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(53, 105, 153, 0.07);
}

.contact-location-card h3,
.contact-business-card h3 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 20px;
}

.contact-redesign-map {
  position: relative;
  min-height: 284px;
  overflow: hidden;
  border: 1px solid #d2e6f8;
  border-radius: 6px;
  background:
    linear-gradient(32deg, transparent 44%, rgba(255, 255, 255, 0.95) 45%, rgba(255, 255, 255, 0.95) 49%, transparent 50%),
    linear-gradient(146deg, transparent 46%, rgba(209, 229, 247, 0.95) 47%, rgba(209, 229, 247, 0.95) 50%, transparent 51%),
    repeating-linear-gradient(0deg, transparent 0 55px, rgba(152, 196, 230, 0.28) 56px 58px),
    repeating-linear-gradient(90deg, transparent 0 68px, rgba(152, 196, 230, 0.24) 69px 71px),
    #eaf5ff;
}

.contact-redesign-map::before {
  position: absolute;
  right: -8%;
  bottom: 10%;
  width: 62%;
  height: 30%;
  border-radius: 48% 0 0 48%;
  background: rgba(162, 217, 242, 0.55);
  content: "";
  transform: rotate(-10deg);
}

.contact-map-pin {
  position: absolute;
  top: 42%;
  left: 54%;
  width: 44px;
  height: 44px;
  border: 7px solid #f7bc00;
  border-radius: 50% 50% 50% 0;
  background: #fff;
  box-shadow: 0 9px 20px rgba(45, 95, 140, 0.22);
  transform: rotate(-45deg);
}

.contact-map-pin::after {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f7bc00;
  content: "";
}

.contact-map-label {
  position: absolute;
  left: 22px;
  bottom: 20px;
  max-width: calc(100% - 44px);
  padding: 12px 16px;
  border: 1px solid #c5def4;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: #32455f;
  box-shadow: 0 7px 18px rgba(52, 103, 151, 0.12);
}

.contact-map-label strong,
.contact-map-label span {
  display: block;
}

.contact-map-label strong {
  margin-bottom: 3px;
  color: var(--ink);
}

.contact-address-lines {
  display: grid;
  margin-top: 18px;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.contact-address-lines strong {
  color: #24344b;
}

.contact-business-layout {
  display: grid;
  min-height: 394px;
  grid-template-columns: 1fr 150px;
  align-items: center;
  gap: 22px;
}

.contact-business-list {
  display: grid;
  gap: 10px;
}

.contact-business-item {
  padding: 13px 14px;
  border: 1px solid #d8e8f7;
  border-radius: 6px;
  background: #f7fbff;
}

.contact-business-item small,
.contact-business-item strong {
  display: block;
}

.contact-business-item small {
  margin-bottom: 4px;
  color: #74869b;
  font-size: 12px;
}

.contact-business-item strong {
  color: #1d2d44;
  font-size: 15px;
}

.contact-business-qr {
  text-align: center;
}

.contact-business-qr img {
  width: 146px;
  max-width: 100%;
  aspect-ratio: 1;
  border: 1px solid #d2e5f5;
  border-radius: 6px;
  object-fit: cover;
}

.contact-business-qr span {
  display: block;
  margin-top: 8px;
  color: #384d67;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .brand-page-hero-card,
  .brand-page-hero-copy {
    min-height: 500px;
  }

  .brand-page-hero-copy {
    width: 50%;
    padding-left: 34px;
  }

  .brand-page-hero-copy h1 {
    font-size: 42px;
  }

  .academy-redesign-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .academy-redesign-tabs {
    justify-content: flex-start;
  }

  .academy-access-note {
    text-align: left;
  }

  .academy-redesign-grid,
  .contact-direction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-direction-card:last-child {
    grid-column: 1 / -1;
  }

  .contact-details-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .brand-page-hero {
    padding-top: 12px !important;
    padding-bottom: 24px !important;
  }

  .brand-page-hero-card {
    display: grid;
    min-height: 0;
    grid-template-rows: auto 260px;
  }

  .brand-page-hero-card::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 48%, rgba(255, 255, 255, 0) 72%);
  }

  .brand-page-hero-art {
    position: relative;
    grid-row: 2;
    object-position: 73% center;
  }

  .brand-page-hero-copy {
    grid-row: 1;
    width: 100%;
    min-height: 0;
    padding: 28px 20px 18px;
  }

  .brand-page-kicker {
    margin-bottom: 20px;
    font-size: 18px;
  }

  .brand-page-hero-copy h1 {
    font-size: 34px;
    line-height: 1.18;
  }

  .brand-page-benefits {
    margin: 18px 0 20px;
  }

  .brand-page-benefit {
    min-height: 52px;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    font-size: 15px;
  }

  .brand-page-benefit img {
    width: 34px;
    height: 34px;
    padding: 6px;
  }

  .brand-page-cta {
    width: 190px;
    min-height: 50px;
    font-size: 17px;
  }

  .academy-redesign-section,
  .contact-directions-section,
  .contact-details-section {
    padding-bottom: 38px !important;
  }

  .academy-redesign-heading h2,
  .contact-redesign-heading h2 {
    font-size: 27px;
  }

  .academy-redesign-tabs {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .academy-redesign-tabs button {
    width: 100%;
    min-width: 0;
  }

  .academy-redesign-grid,
  .contact-direction-grid {
    grid-template-columns: 1fr;
  }

  .contact-direction-card:last-child {
    grid-column: auto;
  }

  .academy-redesign-card .article-thumb {
    height: 165px;
  }

  .contact-direction-card img {
    height: 190px;
  }

  .contact-details-shell {
    padding: 12px;
    gap: 12px;
  }

  .contact-location-card,
  .contact-business-card {
    padding: 15px;
  }

  .contact-redesign-map {
    min-height: 250px;
  }

  .contact-business-layout {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .contact-business-qr {
    padding-top: 4px;
  }
}
