/* home.css — landing page (home.html) hero, tiles and discover-section styles. */

.home-landing {
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    padding-bottom: 0;
    margin-top: -20px;
}

.hl-container {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

.hl-hero .hl-container {
  width: min(1360px, 96vw);
}

.hl-hero {
    background: #0d1f3c;
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    padding: 72px 0 84px;
}

.hl-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

.hl-hero-copy {
  min-width: 0;
}

.hl-hero-media {
  align-self: center;
  justify-self: end;
  width: 100%;
  max-width: 620px;
}

.hl-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: none;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  display: block;
  box-shadow: 0 24px 48px rgba(0,0,0,0.3);
}

.hl-hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin: 0 0 20px;
  max-width: 13ch;
}

.hl-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.7;
    max-width: 50ch;
    margin: 0 0 40px;
}

/* ── search + apply bar ─────────────────── */
.hl-search-bar {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 10px;
  width: 100%;
  max-width: 700px;
    padding: 5px 5px 5px 14px;
    gap: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
    position: relative;
}

.hl-search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.hl-search-icon { color: #9ca3af; flex-shrink: 0; }

.hl-search-input-wrap #myInput.dropbtn {
    flex: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    color: #111827;
    background: transparent;
    min-width: 0;
    padding: 7px 0;
}

.hl-search-input-wrap #myInput.dropbtn::placeholder { color: #9ca3af; }

.hl-search-bar .dropdown-content {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 32px rgba(0,0,0,0.14);
    z-index: 200;
    overflow: hidden;
}

.hl-search-bar #myUL li a {
    padding: 11px 18px;
    display: block;
    color: #111827;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.hl-search-bar #myUL li a:hover,
.hl-search-bar #myUL li a.selected { background: #f3f4f6; }

.hl-search-bar #myUL li a:active { background: #e5e7eb; }

.hl-apply-btn {
    background: #0d1f3c;
    color: #ffffff;
    border: none;
    border-radius: 7px;
    padding: 12px 22px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.1s;
}

.hl-apply-btn:hover {
    background: #1a3560;
    color: #fff;
    transform: translateY(-1px);
}

.hl-tiles-section {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
  background: #0d1f3c;
}

.hl-tiles-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px 56px 14px;
  color: #ffffff;
}

.hl-tiles-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #ffffff;
  text-align: left;
}

.hl-tiles-meta {
  margin: 0 0 0 auto;
  color: rgba(255,255,255,0.62);
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(14px, 1.05vw, 18px);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.hl-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.hl-tile {
    display: flex;
    flex-direction: column;
    padding: 36px 28px 28px;
    text-decoration: none;
    min-height: 290px;
    transition: filter 0.15s;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.hl-tile:last-child { border-right: none; }

.hl-tile:hover { filter: brightness(1.07); text-decoration: none; }

.hl-tile-dark  { background: #0d1f3c; color: #ffffff; }

.hl-tile-icon { margin-bottom: 22px; opacity: 0.8; }

.hl-tile h3 {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 10px;
    color: inherit;
    letter-spacing: -0.015em;
}

.hl-tile p {
    font-size: 14px;
    line-height: 1.65;
    color: inherit;
    opacity: 0.65;
    margin: 0;
    flex: 1;
}


.hl-tile-div {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin: 22px 0 14px;
}


.hl-tile-cta {
    font-size: 13px;
    font-weight: 500;
    color: inherit;
    opacity: 0.6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 0.01em;
    transition: opacity 0.15s;
}

.hl-tile:hover .hl-tile-cta { opacity: 1; }

.hl-arr { transition: transform 0.15s; }
.hl-tile:hover .hl-arr { transform: translateX(4px); }

.hl-discover-section {
    padding: 64px 0 56px;
}

.hl-discover-eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #31557d;
}

.hl-discover-title {
    margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.045em;
    color: #0d1f3c;
    font-weight: 800;
}


.hl-discover-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.hl-discover-grid {
  margin-top: 44px;
    display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.95fr);
  gap: 18px;
}

.hl-discover-feature-card,
.hl-discover-side-card {
    text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hl-discover-feature-card {
  min-height: 332px;
  background: linear-gradient(160deg, #0b3359 0%, #082b4b 70%, #113d69 100%);
  border-radius: 24px;
  padding: 22px 24px 22px;
  color: #ffffff;
  box-shadow: 0 22px 46px rgba(8, 31, 58, 0.16);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.hl-discover-feature-card::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(79, 141, 198, 0.22) 0%, rgba(79, 141, 198, 0) 70%);
  pointer-events: none;
}

.hl-discover-feature-card:hover,
.hl-discover-side-card:hover {
  transform: translateY(-4px);
}

.hl-discover-feature-card:hover {
  box-shadow: 0 28px 56px rgba(8, 31, 58, 0.2);
}

.hl-discover-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hl-discover-badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8bd3ae;
  box-shadow: 0 0 0 4px rgba(139, 211, 174, 0.18);
}

.hl-discover-icon-wrap {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #edf1fb;
  color: #234a74;
}

.hl-discover-icon-wrap-feature {
  margin-top: 24px;
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.12);
}

.hl-discover-card-title {
  margin: 0;
  color: #12365e;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hl-discover-card-title-feature {
  margin-top: 24px;
  color: #ffffff;
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1;
}

.hl-discover-card-text {
  margin: 10px 0 0;
  color: #6a7788;
  font-size: 15px;
  line-height: 1.5;
}

.hl-discover-card-text-feature {
  margin-top: 10px;
  max-width: 18ch;
  color: rgba(255,255,255,0.8);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.45;
}

.hl-discover-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
  color: inherit;
}

.hl-discover-link-feature {
  color: #ffffff;
}

.hl-discover-sidecards {
  display: grid;
  gap: 18px;
}

.hl-discover-side-card {
  background: #ffffff;
  min-height: 180px;
  border-radius: 20px;
  border: 1px solid #dbe4f2;
  padding: 24px 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  box-shadow: 0 12px 28px rgba(18, 38, 70, 0.06);
}

.hl-discover-side-card:hover {
  border-color: #c5d4ea;
  box-shadow: 0 16px 36px rgba(18, 38, 70, 0.08);
}

.hl-discover-side-copy {
  min-width: 0;
}

.hl-discover-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  transition: transform 0.15s ease;
}

.hl-discover-arrow-side {
  color: #234a74;
}

.hl-discover-side-card:hover .hl-discover-arrow,
.hl-discover-feature-card:hover .hl-discover-arrow {
  transform: translateX(4px);
}

@media (max-width: 991px) {
    .hl-hero-layout {
        grid-template-columns: 1fr;
        gap: 26px;
    }
    .hl-hero-media {
        justify-self: start;
        width: min(520px, 100%);
    }
    .hl-tiles { grid-template-columns: repeat(2, 1fr); }
    .hl-tiles-head {
      padding: 24px 24px 14px;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }
    .hl-tiles-title { font-size: clamp(20px, 3.6vw, 30px); }
    .hl-tiles-meta { font-size: 15px; }
    .hl-tile:nth-child(2n) { border-right: none; }
    .hl-tile { min-height: 240px; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .hl-discover-grid {
      grid-template-columns: 1fr;
    }
    .hl-discover-feature-card {
      min-height: 360px;
    }
}

@media (max-width: 599px) {
    .hl-hero { padding: 44px 0 52px; }
    .hl-hero h1 { font-size: clamp(34px, 9vw, 48px); }
    .hl-hero-img {
        border-radius: 12px;
        max-height: 250px;
    }
    .hl-tiles { grid-template-columns: 1fr; }
    .hl-tiles-head {
      padding: 22px 14px 12px;
      gap: 6px;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
    }
    .hl-tiles-title {
      font-size: clamp(18px, 6.4vw, 26px);
    }
    .hl-tiles-meta {
      font-size: 14px;
      letter-spacing: 0.06em;
    }
    .hl-tile { min-height: auto; border-right: none; }
    .hl-search-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 8px;
        border-radius: 12px;
        max-width: 100%;
        gap: 6px;
    }
    .hl-search-input-wrap { padding: 4px 8px; }
    .hl-apply-btn { text-align: center; padding: 12px; border-radius: 7px; }
    .hl-discover-section { padding: 44px 0 28px; }
    .hl-discover-title {
      font-size: clamp(32px, 11vw, 44px);
    }
    .hl-discover-grid {
      margin-top: 28px;
      gap: 16px;
    }
    .hl-discover-feature-card {
      min-height: auto;
      padding: 24px 22px 26px;
      border-radius: 24px;
    }
    .hl-discover-icon-wrap-feature {
      margin-top: 30px;
    }
    .hl-discover-card-title-feature {
      margin-top: 32px;
      font-size: clamp(30px, 9vw, 42px);
    }
    .hl-discover-card-text-feature {
      max-width: 100%;
    }
    .hl-discover-side-card {
      min-height: auto;
      padding: 22px 20px;
      gap: 16px;
      grid-template-columns: auto minmax(0, 1fr) auto;
      border-radius: 20px;
    }
    .hl-discover-icon-wrap {
      width: 56px;
      height: 56px;
      border-radius: 14px;
    }
    .hl-discover-card-title {
      font-size: 18px;
    }
    .hl-discover-card-text {
      font-size: 14px;
    }
}

#myInput[type=text] {
    width: 200px;
    box-sizing: border-box;
    border-top: 2px solid rgba(0, 0, 0, 0);
    border-left: 2px solid rgba(0, 0, 0, 0);
    border-right: 2px solid rgba(0, 0, 0, 0);
    border-bottom: 3px solid #1F4766;
    font-size: 16px;
    font-weight: bold;
    color: #999;
    background-color: rgba(0, 0, 0, 0);
    background-position: 10px 12px;
    background-repeat: no-repeat;
    padding: 12px 20px 12px 40px;
    text-align: left;
    transition: width 0.4s ease-in-out;
    font-family: 'Montserrat', sans-serif !important;
}

#myInput[type=text]:focus {
    width: 100%;
    outline: none;
    border-bottom: 3px solid #1F4766;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 200px;
    overflow: auto;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* liveSearch.js toggles the "show" class (not inline styles) to reveal the
   suggestion list. Scoped with the #myDropdown id so this reliably beats the
   .dropdown-content{display:none} rule above regardless of which stylesheet
   loads first — a plain ".show{display:block}" rule is only as specific as
   ".dropdown-content" and can lose the tie depending on source order. */
#myDropdown.show {
    display: block;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}
