@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;700&display=swap');

:root {
  --radius: 12px;

  --color-bg: #F0F6FF;
  --color-bg-alt: #E8F0FF;
  --color-bg-card: #FFFFFF;

  --color-primary: #1E3A8A;
  --color-secondary: #1D83B8;
  --color-accent: #D4AF37;

  --color-text: #0A1929;
  --color-text-muted: #405070;
  --color-text-on-primary: #FFFFFF;

  --color-border: #DDE6F4;
  --color-shadow: rgba(0, 0, 0, 0.15);

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.75rem;
  --font-size-hero: 3.5rem;

  --line-height-tight: 1.2;
  --line-height-base: 1.6;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  max-width: 100%;
  font-family: 'Nunito', system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: var(--line-height-base);
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5rem 0;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

h1 { font-size: var(--font-size-3xl); line-height: var(--line-height-tight); }

h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }

p { font-size: var(--font-size-base); line-height: var(--line-height-base); color: var(--color-text); }

strong { font-weight: var(--font-weight-bold); }

em { font-style: italic; }

ul, ol { padding-left: 1.25rem; color: var(--color-text); }

.container {
  width: 100%;
  padding: 0 1rem;
  margin: 0 auto;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.section { padding: 2rem 0; }

.section-title { font-size: var(--font-size-2xl); margin: 0 0 1rem; }

.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--color-bg-card);
  box-shadow: 0 4px 6px rgba(0,0,0,.15), 0 10px 15px rgba(0,0,0,.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,.18), 0 14px 20px rgba(0,0,0,.08); }

.card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.card-content { padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; color: var(--color-text); }

.card-title { font-size: var(--font-size-lg); font-weight: var(--font-weight-bold); color: var(--color-text); }

.card-desc { font-size: var(--font-size-base); color: var(--color-text-muted); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: none;
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.btn:hover { filter: brightness(0.95); transform: translateY(-1px); }

.btn-primary { background: var(--color-primary); color: var(--color-text-on-primary); }
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.site-footer { background: #0b1b33; color: #fff; padding: 2rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 1rem; }
.footer-inner a { color: #fff; opacity: 0.9; }

.faq-section { padding: 2rem 0; }
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius); margin-bottom: 0.75rem; background: var(--color-bg-card); overflow: hidden; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.faq-item[open] { border-color: var(--color-primary); box-shadow: 0 2px 12px var(--color-shadow); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-md);
  list-style: none;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] > .faq-question::after { content: "−"; }

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--color-border);
}
.faq-answer p { margin: 0.75rem 0 0; color: var(--color-text-muted); }

.form-field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.75rem; }
.input, .textarea, .select {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: var(--font-size-sm);
  color: var(--color-text);
}
.label { font-size: var(--font-size-xs); color: var(--color-text-muted); }

.text-center { text-align: center; }
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; } .mt-4 { margin-top: 1rem; }

.hidden { display: none !important; }

/* Base mobile-first layout (≤767px) */
html, body { overflow-x: hidden; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--color-bg);
  min-height: 64px;
  overflow: visible;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  margin: 0 auto;
  justify-content: flex-start;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
  max-height: 52px;
}
.site-logo a { text-decoration: none; display: flex; align-items: center; }
.site-logo img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.nav-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.nav-toggle-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  padding: 0.4rem 0.6rem;
  z-index: 200;
  border-radius: 6px;
  background: rgba(0,0,0,0.45);
  border: 1.5px solid rgba(255,255,255,0.7);
}
.nav-toggle-label span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: 0.2s ease;
}
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  z-index: 500;
}
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
}
.nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: var(--font-size-xs);
  color: var(--color-text);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { text-decoration: underline; color: var(--color-primary); background: rgba(30,58,138,0.05); }

.nav-item { list-style: none; }

/* Dropdown navigation */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; white-space: nowrap; padding: 0.75rem 1rem; display: inline-block; color: var(--color-text); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  z-index: 9999;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  white-space: nowrap;
}
.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown:focus-within > .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu .nav-link {
  display: block;
  padding: 0.5rem 1.25rem;
  width: 100%;
  border-bottom: none;
}
.nav-dropdown-menu .nav-link:hover { background: var(--color-bg-alt); }

/* Mobile dropdown indentation */
@media (max-width: 767px) {
  .nav-dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 1rem; display: none; }
  .nav-dropdown:focus-within > .nav-dropdown-menu { display: block; }
}
@media (min-width: 768px) {
  .nav-dropdown-menu { position: absolute; top: 100%; left: 0; }
  .nav-list { flex-direction: row !important; flex-wrap: nowrap; align-items: center; justify-content: center; }
}

/* Hero layout with extra rules */
.hero {
  min-height: 50vh;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1E3A8A 0%, #0b2a55 100%);
  color: #fff;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: 100%;
  max-width: 1200px;
}
.hero-text { flex: 1 1 55%; }
.hero-media { flex: 1 1 40%; }
.hero-img { width: 100%; border-radius: var(--radius); object-fit: cover; max-height: 460px; display: block; }

/* 2 animation examples */
.hero .pulse {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.95; }
  100% { transform: scale(1); opacity: 1; }
}

/* Tablet (≥768px) adjustments and nav layout rules */
@media (min-width: 768px) {
  .container { max-width: 960px; padding: 0 1.5rem; margin: 0 auto; }
  .nav-toggle-label { display: none; }

  .site-nav { display: flex !important; position: static; background: transparent; border-top: none; box-shadow: none; }
  .nav-list { display: flex; flex-direction: row; gap: 1.25rem; padding: 0; margin: 0; align-items: center; justify-content: center; }
  .nav-link { font-size: var(--font-size-sm); padding: 0.25rem 0.5rem; text-decoration: none; color: var(--color-text); }
  .site-header .container { justify-content: center; gap: 2rem; }
  .site-nav { align-items: center; }
  .nav-dropdown-menu { min-width: 220px; }

  /* Hamburger hidden, full nav visible on tablet/desktop */
  .nav-toggle-input { width: 0; height: 0; opacity: 0; }
  .hero { min-height: 60vh; }
  .hero-inner { gap: 3rem; }
  .hero-text { flex: 1 1 55%; }
  .hero-media { flex: 1 1 40%; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .section { padding: 4rem 0; }
  .section-title { font-size: var(--font-size-2xl); }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; padding: 0; }
  .nav-link { font-size: var(--font-size-sm); }
  .nav-dropdown-menu { position: absolute; top: 100%; left: 0; }
  .hero h1 { font-size: var(--font-size-hero); }
  .container { margin: 0 auto; }
  html, body { line-height: var(--line-height-base); }
}

@media (min-width: 1024px) {
  .container { max-width: 1200px; padding: 0 2rem; }
  .hero { min-height: 70vh; }
  .hero h1 { font-size: var(--font-size-hero); }
  .section { padding: 4rem 0; }
}

/* Ensure logo sizing never exceeds header constraints on all viewports */
.site-logo img { height: 44px; }

.hero h1 { color: #fff; }

/* Ensure elevated shadow depth for cards in the premium feel */
.card { transition: transform 0.2s ease, box-shadow 0.2s ease; }

.hero p { color: #F0F6FF; opacity: 0.95; }

/* Links in nav on hover underline or color change for accessibility */
.nav-link:hover { text-decoration: underline; color: var(--color-accent); }

/* Tables (basic) */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.75rem; border-bottom: 1px solid var(--color-border); }
th { text-align: left; font-weight: var(--font-weight-bold); }

/* Form resets (basic) */
input, textarea, select, button { font-family: inherit; color: inherit; font-size: 1rem; }
button { cursor: pointer; background: var(--color-primary); color: var(--color-text-on-primary); border: none; padding: 0.5rem 0.9rem; border-radius: 6px; }

/* Ensure dark hero text remains readable on dark backgrounds */
.hero * { color: #fff; }