/* V2: logo-harmonized refinements layered over style.css
 * Motifs drawn from aviasec_color.png:
 * 1) Navy (#173F75) + silver-gray (#999999 / #8C95A0) two-tone pairing
 * 2) Asymmetric open L-brackets (top-right & bottom-left)
 * 3) Horizontal double speed-lines (echoing the two cuts across "sec")
 */
body.v2 {
  --silver: #999999;
  --silver-soft: #cfd5dc;
}

html.has-development-banner {
  --development-banner-height: 2rem;
  scroll-padding-top: calc(105px + var(--development-banner-height));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .header {
  position: relative;
}

.development-banner {
  display: grid;
  place-items: center;
  block-size: var(--development-banner-height);
  padding-inline: 8px;
  background: var(--blue);
  color: var(--paper);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.all-events-link { margin-top: 28px; }
.trust-panel { margin-top: 48px; }

@media (max-width: 760px) {
  html.has-development-banner {
    scroll-padding-top: calc(86px + var(--development-banner-height));
  }

  .site-header .header nav {
    max-height: calc(100dvh - 78px - var(--development-banner-height));
    overflow-y: auto;
  }
}

/* Double speed-line motif from "sec" */
body.v2 .small-line {
  position: relative;
  width: 30px;
  height: 2px;
  background: var(--blue);
}

body.v2 .small-line::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 24px;
  height: 1px;
  background: var(--silver);
}

/* Header subtle navy + silver bottom accent */
body.v2 .header {
  border-bottom-color: var(--silver-soft);
}

body.v2 .header nav a::after {
  height: 2px;
  background: linear-gradient(90deg, var(--blue) 60%, var(--silver) 60%);
}

/* Asymmetric open bracket frame on hero-panels & about-visual */
body.v2 .hero-panels {
  position: relative;
  padding: 10px;
  background:
    linear-gradient(var(--blue), var(--blue)) top right / 110px 2px no-repeat,
    linear-gradient(var(--blue), var(--blue)) top right / 2px 64px no-repeat,
    linear-gradient(var(--blue), var(--blue)) bottom left / 110px 2px no-repeat,
    linear-gradient(var(--blue), var(--blue)) bottom left / 2px 64px no-repeat;
}

body.v2 .hero-panel {
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s;
}

body.v2 .hero-panel:hover {
  border-bottom-color: #a3c5f4;
}

/* Two-tone navy + silver-gray top rules on Why & Insights cards */
body.v2 .why-grid article,
body.v2 .insights-grid button {
  position: relative;
  border-top: 1px solid var(--silver-soft);
}

body.v2 .why-grid article::before,
body.v2 .insights-grid button::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--blue);
  transition: width 0.25s ease;
}

body.v2 .insights-grid button:hover::before {
  width: 84px;
}

body.v2 .feature-icon {
  color: var(--blue);
}

/* About visual asymmetric corner brackets echoing the logo frame */
body.v2 .about-visual {
  overflow: visible;
}

body.v2 .about-visual::before {
  content: "";
  position: absolute;
  inset: -10px;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(var(--blue), var(--blue)) top right / 88px 2px no-repeat,
    linear-gradient(var(--blue), var(--blue)) top right / 2px 54px no-repeat,
    linear-gradient(var(--silver), var(--silver)) bottom left / 88px 2px no-repeat,
    linear-gradient(var(--silver), var(--silver)) bottom left / 2px 54px no-repeat;
}

/* Dark journey & event feature with crisp inverse corner-bracket accents */
body.v2 .journey-legend {
  border-top-color: rgba(167, 197, 233, 0.28);
}

body.v2 .event-feature {
  position: relative;
  background: linear-gradient(155deg, #173f75 0%, #122f55 100%);
}

body.v2 .event-feature::before {
  content: "";
  position: absolute;
  inset: 14px;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35)) top right / 56px 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35)) top right / 1px 36px no-repeat,
    linear-gradient(rgba(167, 197, 233, 0.4), rgba(167, 197, 233, 0.4)) bottom left / 56px 1px no-repeat,
    linear-gradient(rgba(167, 197, 233, 0.4), rgba(167, 197, 233, 0.4)) bottom left / 1px 36px no-repeat;
}

/* Contact note & dialog frame echo */
body.v2 .contact-note {
  padding-left: 14px;
  border-left: 2px solid var(--blue);
}

body.v2 .contact-note .small-line {
  display: none;
}

body.v2 dialog {
  border-top: 3px solid var(--blue);
}

body.v2 dialog:focus {
  outline: none;
}

body.v2 .nav-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 7px 12px;
  border: 1px solid var(--silver-soft);
  color: var(--ink);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

body.v2 .nav-pill:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

body.v2 .back-top {
  border-color: var(--silver-soft);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

body.v2 .back-top:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

@media (max-width: 760px) {
  body.v2 .hero-panels {
    padding: 6px;
    background-size: 64px 2px, 2px 38px, 64px 2px, 2px 38px;
  }

  body.v2 .about-visual::before {
    inset: -6px;
    background-size: 56px 2px, 2px 36px, 56px 2px, 2px 36px;
  }
}

body.v2 .lang-tail-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.v2 .lang-tail-btn .lang-code {
  color: var(--ink);
  margin-left: 0;
}

body.v2 .lang-tail-btn .lang-code span {
  color: #86919f;
  margin-left: 4px;
}

body.v2 .tail-flag {
  flex-shrink: 0;
}

body.v2 .course-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

body.v2 .filter-chip {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 7px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

body.v2 .filter-chip.active,
body.v2 .filter-chip:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

body.v2 .media-bar {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid #acbbc9;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

body.v2 .social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

body.v2 .social-links a {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  border-bottom: 1px solid #a9b8c9;
  padding-bottom: 3px;
}

body.v2 .media-pending {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

body.v2 .newsletter-box label {
  display: block;
}

body.v2 .newsletter-row {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-top: 14px;
}

body.v2 .newsletter-row input {
  flex: 1;
  min-width: 0;
  padding: 8px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid #a6b3c3;
  border-radius: 0;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
}

body.v2 .newsletter-row .button {
  flex-shrink: 0;
}

body.v2 dialog {
  max-width: 740px;
  max-height: 85vh;
  overflow-y: auto;
}

body.v2 .dialog-subitems {
  margin: 22px 0;
  border-top: 1px solid var(--silver-soft);
}

body.v2 .dialog-subitem {
  padding: 18px 0;
  border-bottom: 1px solid var(--silver-soft);
}

body.v2 .dialog-subitem h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--blue);
}

@media (max-width: 760px) {
  body.v2 .media-bar {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  body.v2 .newsletter-row {
    flex-direction: column;
  }
}

/* Expertise dropdown menu (desktop & mobile) */
body.v2 .nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

body.v2 .nav-dropdown-toggle {
  background: none;
  padding: 10px 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

body.v2 .nav-dropdown-toggle::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue) 60%, var(--silver) 60%);
  transition: width 0.2s;
}

body.v2 .nav-dropdown:hover .nav-dropdown-toggle::after,
body.v2 .nav-dropdown.open .nav-dropdown-toggle::after {
  width: 100%;
}

body.v2 .nav-caret {
  font-size: 10px;
  color: var(--blue);
  transition: transform 0.2s;
}

body.v2 .nav-dropdown.open .nav-caret {
  transform: rotate(180deg);
}

body.v2 .nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -14px;
  min-width: 290px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue);
  box-shadow: 0 16px 36px rgba(18, 47, 85, 0.12);
  padding: 6px 0;
  z-index: 40;
  flex-direction: column;
}

body.v2 .nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}

body.v2 .nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--pale);
  transition: background-color 0.15s, color 0.15s;
}

body.v2 .nav-dropdown-menu a:last-child {
  border-bottom: 0;
}

body.v2 .nav-dropdown-menu a::after {
  display: none;
}

body.v2 .nav-dropdown-menu a:hover {
  background: var(--pale);
  color: var(--blue);
}

body.v2 .nav-item-num {
  font-size: 10px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.5px;
  min-width: 18px;
}

body.v2 .nav-item-arrow {
  margin-left: auto;
  font-size: 15px;
  font-weight: 400;
  opacity: 0.45;
  transition: transform 0.15s, opacity 0.15s;
}

body.v2 .nav-dropdown-menu a:hover .nav-item-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

@media (max-width: 760px) {
  body.v2 .nav-dropdown {
    flex-direction: column;
    align-items: stretch;
  }

  body.v2 .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    font-size: 15px;
    padding: 10px 0;
  }

  body.v2 .nav-dropdown-toggle::after {
    display: none;
  }

  body.v2 .nav-dropdown-menu {
    position: static;
    min-width: 0;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--blue);
    background: var(--pale);
    margin: 4px 0 8px 2px;
    padding: 4px 0;
  }

  body.v2 .nav-dropdown-menu a {
    padding: 11px 14px;
    font-size: 14px;
    border-bottom-color: var(--line);
  }
}
