:root {
  --brand-primary: #0a1d4a;
  --brand-primary-dark: #071537;
  --brand-secondary: #0a4d2a;
  --brand-dark: #0c0f12;
  --gradient: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #f7f9fb;
  color: #111;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  letter-spacing: -0.01em;
  color: #0a4d2a;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  vertical-align: middle;
}

a {
  color: var(--brand-primary);
}

a:hover, a:focus {
  color: #06102d;
}

.text-primary, .link-primary {
  color: var(--brand-primary) !important;
}

.btn-outline-primary {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
  color: #fff;
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

.btn-outline-light {
  color: #f8f9fa;
  border-color: rgba(248,249,250,0.8);
}

.btn-light {
  color: var(--brand-dark);
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar {
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  z-index: 1050;
}

.site-header .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.navbar-nav .nav-link {
  font-weight: 600;
  padding: 0.65rem 0.85rem;
}

.navbar .main-nav {
  gap: 0.6rem;
  padding-top: 0.1rem;
}

.navbar-brand {
  padding: 4px 12px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--brand-primary);
}

.mega-menu {
  left: 0;
  right: 0;
  top: 100%;
  border-radius: 16px;
  margin-top: 0;
  z-index: 1045;
}

.mega-menu .card,
.mega-menu a.d-block,
.mega-menu .border {
  transition: transform .2s ease, box-shadow .2s ease;
}

.mega-menu .card:hover,
.mega-menu a.d-block:hover,
.mega-menu .border:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px -18px rgba(0,0,0,.2);
}

.mega-scroll {
  max-height: 420px;
  overflow-y: auto;
  padding-right: .25rem;
}

.nav-bottom {
  border-top: 1px solid #e5e7eb;
  padding-top: .75rem;
}

.hero-home {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 10% 10%, rgba(13,110,253,0.08), transparent 35%),
              radial-gradient(circle at 90% 20%, rgba(10,181,167,0.08), transparent 30%),
              linear-gradient(180deg, #fff, #f6f9ff);
  min-height: 70vh;
}

.hours-bar {
  position: relative;
  z-index: 3;
  margin-bottom: 1rem;
}

.hours-bar .container {
  background: rgba(255,255,255,0.9);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 30px -22px rgba(0,0,0,0.35);
  padding: 10px 14px;
  backdrop-filter: blur(6px);
}

.hero-home .hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #040814;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-home .hero-video.hero-video-static {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.9);
}

.hero-home .hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 ratio */
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
}

.hero-video-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(13,110,253,0.18), transparent 45%),
              radial-gradient(circle at 70% 20%, rgba(10,181,167,0.18), transparent 40%),
              linear-gradient(135deg, #0c1b2d, #0b2a3f);
  opacity: 0.5;
}

.hero-video-play {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 14px 30px -16px rgba(0,0,0,0.45);
}

.lite-yt {
  background: #0b1728;
  background-image: var(--yt-thumb);
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.lite-yt .hero-video-backdrop {
  opacity: 0.38;
}
.lite-yt .hero-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 14px 30px -18px rgba(0,0,0,0.35);
}
.lite-yt .hero-video-play .icon {
  width: 1.2em;
  height: 1.2em;
}
.lite-yt:hover,
.lite-yt:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px -22px rgba(0,0,0,0.3);
}
.lite-yt:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.hero-home .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.52) 40%, rgba(255,255,255,0.35) 100%),
              radial-gradient(circle at 10% 10%, rgba(13,110,253,0.12), transparent 35%),
              radial-gradient(circle at 90% 20%, rgba(10,181,167,0.12), transparent 30%);
}

.hero-home .container {
  position: relative;
  z-index: 2;
}

@media (max-width: 767px) {
  .hero-home {
    min-height: 85vh;
  }

  .hero-home .hero-video iframe {
    width: 180vh;
    height: 100vh;
  }

  .hero-home .hero-overlay {
    background: linear-gradient(120deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.58) 50%, rgba(255,255,255,0.35) 100%),
                radial-gradient(circle at 10% 10%, rgba(13,110,253,0.12), transparent 35%),
                radial-gradient(circle at 90% 20%, rgba(10,181,167,0.12), transparent 30%);
  }
}

.media-slide-img {
  background-size: cover;
  background-position: center;
}

.media-thumb {
  background-size: cover;
  background-position: center;
  border: 1px solid #e5e7eb;
  min-height: 110px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.media-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -20px rgba(0,0,0,.25);
}

.media-figure {
  aspect-ratio: 4 / 3;
}
.media-figure-h { aspect-ratio: 16 / 9; }
.media-figure-v { aspect-ratio: 3 / 4; }
.media-figure-q { aspect-ratio: 1 / 1; }
.media-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: clamp(12px, 4vw, 32px);
}
.lightbox-content {
  max-width: min(1280px, 96vw);
  max-height: min(92vh, 1200px);
}
.lightbox-content img {
  max-width: 100%;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #000;
  border-radius: 12px;
}
.modal-open {
  overflow: hidden;
}

.content-card {
  padding: 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 30px -24px rgba(0,0,0,.2);
}

.content-card h2, .content-card h3 {
  margin-top: 1.5rem;
}

.breadcrumb a {
  text-decoration: none;
  color: var(--brand-primary);
}

.footer-links a {
  text-decoration: none;
  display: inline-block;
  margin-bottom: .35rem;
}

.footer-links a:hover {
  color: var(--brand-secondary) !important;
}

.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 18px 30px -18px rgba(0,0,0,.3);
  padding: 12px 0;
  display: none;
  z-index: 1080;
}

.cookie-banner.blocking {
  inset: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.55);
  border: none;
  border-radius: 0;
  padding: 24px;
  box-shadow: none;
}

.cookie-banner.blocking .container {
  background: #fff;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 24px 40px -18px rgba(0,0,0,.35);
}

body.cookie-locked {
  overflow: hidden;
}

.content-body p {
  margin-bottom: .75rem;
}

.card, .border, .navbar, .content-card, .p-3 {
  border-radius: 16px;
}

.btn-primary {
  background: var(--gradient);
  border: none;
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary));
}

.badge.bg-primary-subtle {
  background-color: #e6ecf7 !important;
  color: var(--brand-primary-dark) !important;
}

.home-banner {
  width: 100%;
  height: 140px;
  border-radius: 16px;
  background: repeating-linear-gradient(45deg, rgba(13,110,253,0.08), rgba(13,110,253,0.08) 12px, rgba(10,181,167,0.08) 12px, rgba(10,181,167,0.08) 24px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 991.98px) {
  .mega-menu {
    position: static;
    max-height: unset;
    overflow: visible;
  }
  .navbar-nav .nav-item + .nav-item {
    margin-top: 0.35rem;
  }
  .navbar-nav .nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 30px -24px rgba(0,0,0,.25);
  }
  .navbar-nav .dropdown-menu {
    padding: 0 0 0.75rem 0.75rem;
    border: none;
    box-shadow: none;
  }
  .navbar-nav .dropdown-menu .dropdown-item,
  .navbar-nav .dropdown-menu a.d-block {
    display: block;
    width: 100%;
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
  }
}

.brand-logo {
  height: 78px;
  width: auto;
  max-height: 88px;
}

@media (max-width: 991.98px) {
  .brand-logo {
    height: 64px;
    max-height: 72px;
  }
}

.search-bar {
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.search-form {
  width: 100%;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 18px 30px -18px rgba(0,0,0,.2);
  z-index: 1090;
  display: none;
}

.search-results.show {
  display: block;
}

.search-result-item {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f2f5;
}

.search-result-item:last-child {
  border-bottom: none;
}

.header-search {
  position: relative;
  min-width: 180px;
}

@media (min-width: 992px) {
  .header-search {
    min-width: 220px;
    max-width: 260px;
  }
}

.search-popover {
  position: absolute;
  top: 100%;
  right: 1rem;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  width: min(420px, 90vw);
  display: none;
  z-index: 2000;
}

.search-popover.show {
  display: block;
}

.hero-home #heroCarousel .carousel-inner,
.hero-home #heroCarousel .carousel-item {
  min-height: 260px;
}

.hero-home #heroCarousel .carousel-item > div {
  min-height: 260px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.hero-home #heroCarousel {
  contain: paint;
}

.placeholder-img {
  min-height: 180px;
  border: 1px dashed #d6d9df;
  background: linear-gradient(135deg, rgba(33,52,102,0.05), rgba(33,52,102,0.03));
}

.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gradient);
  color: #fff;
  font-size: 1.1rem;
}

.timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
}

.timeline .small {
  color: #111;
}

.profile-circle {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid #f3f5f9;
  box-shadow: 0 18px 35px -22px rgba(0,0,0,0.4);
}

.vita-timeline {
  position: relative;
  padding: 1rem 0;
}

.vita-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #e3e7ed;
}

.vita-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 1.5rem 0;
}

.vita-item .vita-card {
  width: 46%;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 1rem 1.25rem;
  box-shadow: 0 12px 28px -22px rgba(0,0,0,0.35);
}

.vita-item.vita-left .vita-card {
  margin-right: auto;
}

.vita-item.vita-right {
  flex-direction: row-reverse;
}

.vita-item.vita-right .vita-card {
  margin-left: auto;
}

.vita-dot {
  position: absolute;
  left: 50%;
  top: 26px;
  transform: translate(-50%, -50%);
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 10px 24px -16px rgba(0,0,0,0.35);
}

.vita-card .fw-semibold {
  font-size: 1rem;
}

.vita-card .text-muted {
  font-size: 0.95rem;
}

@media (max-width: 767px) {
  .vita-timeline::before {
    left: 18px;
  }
  .vita-item {
    padding-left: 54px;
  }
  .vita-item .vita-card {
    width: 100%;
  }
  .vita-item.vita-right {
    flex-direction: row;
  }
  .vita-dot {
    left: 18px;
    width: 52px;
    height: 52px;
    font-size: 0.9rem;
  }
  .profile-circle {
    width: 190px;
    height: 190px;
  }
}

.video-placeholder {
  border: 1px dashed #d6d9df;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(33,52,102,0.06), rgba(22,36,78,0.04));
}

.footer {
  background: #0b0f18;
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.footer-badge:hover,
.footer-badge:focus {
  background: rgba(255,255,255,0.14);
  color: #fff;
}
.footer-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
  max-width: 160px;
}
.footer-logos a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
}
.footer-logos a:hover,
.footer-logos a:focus {
  background: rgba(255,255,255,0.12);
}

.footer-press-links li + li {
  margin-top: 4px;
}

.media-video-thumb {
  background-size: cover;
  background-position: center;
  border: 1px solid #e5e7eb;
}
.media-video-thumb .hero-video-backdrop {
  opacity: 0.35;
}
.media-video-thumb .hero-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.book-cover-sm {
  width: 90px;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 16px -12px rgba(0,0,0,0.4);
}
