:root {
  --hblue: #003DA5;
  --hred:  #E07030;
  --hneutral: #F7F4EF;
  --hdark: #1A1A2E;
  --hbody: #4A4A5A;
}

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

/* Glassmorphism nav */
.nav-glass {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Desktop nav link */
.nav-link-item {
  position: relative;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-link-item:hover { color: var(--hblue); background: rgba(0,61,165,0.06); }
.nav-active { color: var(--hblue) !important; background: rgba(0,61,165,0.08) !important; }
.nav-active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 14px; right: 14px;
  height: 2px;
  background: var(--hred);
  border-radius: 999px;
}

/* Dropdown */
.dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: max-content;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 100;
	min-width:150px;
}
.nav-dropdown:hover .dropdown-panel {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-link {
  display: block;
  padding: 10px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hdark);
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.dropdown-link:hover { background: rgba(0,61,165,0.07); color: var(--hblue); }

/* Mobile nav */
.mobile-link {
  display: block;
  padding: 10px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hdark);
  border-radius: 10px;
  transition: background 0.15s;
  text-decoration: none;
}
.mobile-link:hover { background: #f3f4f6; }
.mobile-link-active { color: var(--hblue); background: rgba(0,61,165,0.07); }
.mobile-sub-link {
  display: block;
  padding: 7px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--hbody);
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.mobile-sub-link:hover { background: #f3f4f6; color: var(--hblue); }

/* Marquee */
.marquee-track { overflow: hidden; width: 100%; }
.marquee-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: marqueeScroll 45s linear infinite;
}
.marquee-inner:hover { animation-play-state: paused; }
.marquee-logo {
  height: 50px;
  width: auto;
  opacity: 0.85;
  filter: none;
  transition: opacity 0.3s;
  flex-shrink: 0;
}
.marquee-logo:hover { opacity: 1; }
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-inner { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* Card lift */
.card-lift { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.card-lift:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.10); }

/* Blog prose */
.prose h2 { font-size: 1.5rem; font-weight: 800; color: var(--hdark); margin-top: 2.5rem; margin-bottom: 0.75rem; }
.prose h3 { font-size: 1.125rem; font-weight: 700; color: var(--hdark); margin-top: 1.75rem; margin-bottom: 0.5rem; }
.prose p { margin-bottom: 1.25rem; line-height: 1.8; color: var(--hbody); }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose ul li { margin-bottom: 0.4rem; color: var(--hbody); line-height: 1.7; }
.prose strong { color: var(--hdark); font-weight: 700; }
.prose a { color: var(--hblue); font-weight: 600; }
.prose a:hover { text-decoration: underline; }

/* Hero */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  display: flex;
  flex-direction: column;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  animation: heroZoom 14s ease-in-out infinite alternate;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.20) 50%, rgba(0,0,0,0.55) 100%);
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}
.hero-content {
  position: relative; z-index: 10; flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 0 1rem; padding-top: 7.5rem;
}

/* Tile row */
.tile-row {
  position: relative; z-index: 10;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 768px) { .tile-row { grid-template-columns: repeat(2, 1fr); } }
.tile {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 28px 28px 24px; min-height: 130px;
  cursor: pointer; text-decoration: none;
  transition: filter 0.2s, transform 0.2s;
  position: relative; overflow: hidden;
}
.tile::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background 0.2s; }
.tile:hover::after { background: rgba(0,0,0,0.10); }
.tile:hover { transform: translateY(-2px); }
.tile-icon {
  width: 40px; height: 40px; background: rgba(255,255,255,0.2);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.tile-label { font-size: 1.125rem; font-weight: 800; color: white; letter-spacing: -0.01em; }
.tile-arrow {
  position: absolute; top: 24px; right: 24px;
  color: rgba(255,255,255,0.7); font-size: 1.25rem; transition: transform 0.2s, color 0.2s;
}
.tile:hover .tile-arrow { transform: translate(3px, -3px); color: white; }

/* Clip angles */
.clip-bottom { clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); }

/* Story image hover */
.story-img-wrap { overflow: hidden; }
.story-img-wrap img { transition: transform 0.4s ease; }
.story-img-wrap:hover img { transform: scale(1.05); }

/* FadeUp animation */
@keyframes fadeUp {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.animate-fadeUp { animation: fadeUp 0.7s ease forwards; }

/* Focus */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--hred);
  outline-offset: 3px;
  border-radius: 6px;
}
