.academy-section {
  background: linear-gradient(180deg, #F7F8FA, #F7F8FA);
}

.academy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: clamp(16px, 2.5vw, 30px);
  margin-top: 28px;
}

.academy-card {
  min-width: 0;
  background: #F7F8FA;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px #18365310;
}

.academy-card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.academy-card-copy { padding: clamp(17px, 2vw, 25px); }
.academy-card-copy > p { margin-block: 10px 16px; }
.academy-specs { margin-block: 14px 20px; }
.academy-specs > div { padding-block: 9px; border-top: 1px solid var(--line); }
.academy-specs dt { font-weight: 700; color: var(--navy); }
.academy-specs dd { margin: 0; color: var(--muted); }
.academy-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.academy-note { padding-block: 0 36px; }
.academy-note a { margin-inline-start: 8px; }
.academy-section blockquote { margin-inline: 0; padding-inline-start: 18px; border-inline-start: 3px solid #C6A467; }
.academy-section cite { display: block; color: var(--muted); }

.academy-rows {
  display: grid;
  gap: clamp(24px, 5vw, 64px);
  margin-top: clamp(24px, 4vw, 48px);
}

.academy-rows > .academy-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "photo copy";
  border-top: 2px solid #C6A467;
}

.academy-rows > .academy-card:nth-child(even) {
  grid-template-areas: "copy photo";
  background: #F7F8FA;
}

.academy-row-image {
  grid-area: photo;
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: var(--navy);
}


.academy-row-image > img,
.academy-row-image .fleet-gallery-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.academy-rows .academy-card-copy {
  grid-area: copy;
  align-self: center;
  padding: clamp(24px, 4vw, 56px);
}

.academy-rows h3 { font-size: clamp(25px, 3vw, 38px); }
.academy-rows .academy-actions { gap: 12px 20px; }
.academy-rows .academy-actions a { min-height: 44px; }

@media (max-width: 760px) {
  .academy-rows > .academy-card,
  .academy-rows > .academy-card:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "photo" "copy";
  }

  .academy-rows .academy-row-image {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .academy-row-image > img,
  .academy-row-image .fleet-gallery-main img { transition: transform .55s ease; }
  .academy-row-image:hover > img,
  .academy-row-image:hover .fleet-gallery-main img { transform: scale(1.035); }


}

#academy-team .academy-card > img {
  aspect-ratio: 1;
  object-fit: contain;
  max-height: 185px;
  padding: 16px;
  background: #F7F8FA;
}

.header .wrap { display: flex; justify-content: space-between; }

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 22px);
}

@media (min-width: 1101px) {
  .header-actions .nav { flex-wrap: nowrap; justify-content: flex-end; }
  .header-actions .nav a,
  .header-actions .header-cta { white-space: nowrap; }
}

@media (max-width: 1100px) {
  .header .nav.open { max-height: calc(100dvh - var(--header-height, 100px)); overflow-y: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .academy-card { transition: box-shadow .2s ease; }
  .academy-card:hover, .academy-card:focus-within { box-shadow: 0 14px 32px #18365328; }
}
.team-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.team-card img{width:100%;aspect-ratio:1;object-fit:cover}.team-card .academy-card-copy{text-align:center}.team-card .bio-open{margin:16px auto 0}.bio-dialog{width:min(600px,calc(100% - 32px));max-height:80vh;overflow:auto;border:0;padding:36px;color:#07182b}.bio-dialog::backdrop{background:#07182bcc}.bio-dialog p{margin-top:20px;line-height:1.7}.bio-close{float:right;font-size:28px;background:none;border:0;cursor:pointer}.training-subsection-title{grid-column:1/-1;margin:20px 0 0}.powered-credit{text-align:center;font-size:12px;padding:20px}.powered-credit a{text-decoration:underline}.back-to-top{position:fixed;bottom:100px;right:24px;z-index:99;padding:10px 15px;background:#07182b;color:white;border:1px solid #c6a467;border-radius:6px;cursor:pointer}.back-to-top[hidden]{display:none}@media(max-width:800px){.team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.team-grid{grid-template-columns:1fr}.back-to-top{right:16px;bottom:105px}}
/* Team profile styling from the published academy site. */
#academy-team .team-grid{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:22px;margin-top:36px}
#academy-team .team-card{display:flex;flex-direction:column;height:100%;min-width:0;overflow:hidden;border:1px solid rgba(170,184,197,.25);background:#10253a;border-radius:12px}
#academy-team .team-card img{display:block;width:100%;height:170px;padding:14px;box-sizing:border-box;object-fit:contain;object-position:center;background:#f7f8fa}
#academy-team .team-card .academy-card-copy{display:flex;flex-direction:column;flex:1;padding:20px 20px 19px;text-align:left}
#academy-team .team-card h3{display:flex;align-items:flex-start;min-height:54px;margin:0;font-size:22px;line-height:1.25}
#academy-team .team-card p{color:#c6a467;min-height:44px;margin:10px 0 19px;font-size:14px;line-height:1.6}
#academy-team .team-card .bio-open{align-self:center;width:120px;margin:auto 0 0;min-height:44px;padding:10px 18px;font-size:14px}
.bio-dialog{position:fixed;inset:0;width:min(740px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 48px);margin:auto;padding:26px;border:1px solid rgba(170,184,197,.4);border-radius:18px;color:#f7f8fa;background:#10253a;box-shadow:0 24px 90px #0009;overflow:auto}
.bio-dialog::backdrop{background:rgba(7,24,43,.808);backdrop-filter:blur(5px)}
.bio-dialog h2{margin:0 50px 12px 0;font:600 clamp(24px,2.5vw,34px)/1.2 Manrope,Arial,sans-serif;letter-spacing:-.035em;color:#f7f8fa}
.bio-dialog p{font-size:16px;line-height:1.8;color:#dce7f0;margin:18px 0 0}
.bio-close{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid rgba(170,184,197,.4);border-radius:50%;background:#183653;color:#f7f8fa;cursor:pointer}
.bio-close:hover{background:#c6a467;color:#07182b}
.back-to-top{position:fixed;z-index:106;left:20px;right:auto;bottom:24px;display:grid;place-items:center;width:46px;height:46px;padding:0;border-radius:50%;border:1px solid rgba(170,184,197,.48);background:#183653;color:#f7f8fa;box-shadow:0 6px 20px #07182b55;cursor:pointer}
.back-to-top svg{width:23px;height:23px}.back-to-top:is(:hover,:focus-visible){background:#c6a467;color:#07182b}.back-to-top[hidden]{display:none}
@media(max-width:1099px){#academy-team .team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:599px){#academy-team .team-grid{grid-template-columns:1fr}.bio-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:14px;padding:20px}.back-to-top{left:16px;right:auto;bottom:16px}}
.powered-credit{margin-top:24px;padding:20px 0 0;border-top:1px solid rgba(170,184,197,.15);text-align:center;font-size:13px;color:#aab8c5}.powered-credit a{color:#dce7f0;text-underline-offset:4px}
@media(max-width:600px){body:has(.wings-chat-panel:not([hidden])) .back-to-top{top:8px;bottom:auto;z-index:120}}
/* Pair the return control with the chat launcher. */
.back-to-top{left:auto;right:96px;bottom:30px;z-index:106}
@media(max-width:560px){.back-to-top{left:auto;right:85px;bottom:20.5px}}
@media(max-width:600px){.home-inquiry-visible .back-to-top{right:76px;bottom:calc(10px + env(safe-area-inset-bottom))}body:has(.wings-chat-panel:not([hidden])) .back-to-top{top:auto;bottom:calc(10px + env(safe-area-inset-bottom));left:auto;right:76px;z-index:106}}
/* Reference team profile buttons and dialog. */
#academy-team .team-photo-button{display:block;width:100%;padding:0;border:0;background:#f7f8fa;cursor:pointer}
#academy-team .team-name-button{padding:0;border:0;color:inherit;background:none;font:inherit;letter-spacing:inherit;text-align:left;cursor:pointer}
.bio-dialog{padding:0;overflow:hidden}.bio-dialog[open]{display:flex;flex-direction:column;animation:bio-enter 160ms ease-out}.bio-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:0 0 auto;padding:12px 20px;border-bottom:1px solid rgba(170,184,197,.17)}.bio-toolbar>span{color:#aab8c5;font-size:12px;letter-spacing:.1em}.bio-close{float:none;flex:0 0 auto;padding:10px}.bio-close svg{width:22px;height:22px}.bio-scroll{padding:26px;min-height:0;overflow-y:auto;overscroll-behavior:contain;max-height:calc(100dvh - 118px)}.bio-header{display:grid;grid-template-columns:190px minmax(0,1fr);align-items:center;gap:26px;margin-bottom:24px}.bio-header>.bio-photo{width:190px;height:190px;padding:10px;box-sizing:border-box;object-fit:contain;background:#f7f8fa;border-radius:12px}.bio-header h2{margin:0 0 12px}.bio-header #bio-role{color:#c6a467;margin:0;font-size:14px}.bio-text p{font-size:16px;line-height:1.8;color:#dce7f0;margin:0 0 18px}.bio-text p:last-child{margin-bottom:0}@keyframes bio-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:599px){.bio-dialog{padding:0}.bio-toolbar{padding:10px 16px}.bio-toolbar>span{font-size:11px;letter-spacing:.06em}.bio-scroll{padding:20px;max-height:calc(100dvh - 90px)}.bio-header{grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center;gap:18px}.bio-header h2{font-size:26px}}
@media(prefers-reduced-motion:reduce){.bio-dialog[open]{animation:none}}
/* Placement follows the measured chat launcher, including mobile offsets. */
.back-to-top, body:has(.wings-chat-panel:not([hidden])) .back-to-top, .home-inquiry-visible .back-to-top { position:fixed; top:auto; left:auto; right:var(--back-to-top-right,96px); bottom:var(--back-to-top-bottom,30px); z-index:106; }

/* Leave room for the floating navigation when linking to instructor training. */
#cfi, #cfii { scroll-margin-top: 130px; }
.about-blog.section { padding-block: 64px 32px; }
.about-blog .section-head { display: block; margin-bottom: 24px; }
.about-blog .section-head p { margin-top: 14px; }
.about-blog + section[aria-labelledby="brochure-heading"] { padding-top: 48px; }
