/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #0891B2; text-decoration: none; transition: color .2s; }
a:hover { color: #065f78; }
ul, ol { padding-left: 1.4em; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* ===== HEADER ===== */
.site-header {
  background: #1E2761;
  color: #fff;
  padding: .75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: .5rem; color: #fff; }
.logo:hover { color: #7dd3fc; }
.logo-icon { font-size: 2rem; }
.logo-text strong { display: block; font-size: 1.25rem; line-height: 1.2; }
.logo-text small { font-size: .8rem; opacity: .8; }

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.hamburger-line {
  width: 28px; height: 3px; background: #fff; border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.active .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.active .hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== NAVIGATION ===== */
.main-nav {
  background: #162050;
  border-bottom: 3px solid #0891B2;
}
.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-list > li { position: relative; }
.nav-list > li > a,
.nav-list > li > .submenu-toggle {
  display: block;
  padding: .75rem 1rem;
  color: #e2e8f0;
  font-size: .9rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.nav-list > li > a:hover,
.nav-list > li > .submenu-toggle:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Submenu */
.submenu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  border-radius: 0 0 8px 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .2s;
  z-index: 1001;
  padding: .5rem 0;
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.submenu li a {
  display: block;
  padding: .5rem 1rem;
  color: #1a1a2e;
  font-size: .88rem;
}
.submenu li a:hover { background: #F0F9FF; color: #0891B2; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1E2761 0%, #0891B2 100%);
  color: #fff;
  padding: 4rem 1rem 3rem;
  text-align: center;
}
.hero h1 { font-size: 2.5rem; margin-bottom: .75rem; }
.hero p { font-size: 1.15rem; max-width: 700px; margin: 0 auto 2rem; opacity: .9; }
.hero-cta {
  display: inline-block;
  background: #fff;
  color: #1E2761;
  padding: .8rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform .2s, box-shadow .2s;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); color: #1E2761; }

/* ===== CARDS GRID ===== */
.section-title {
  font-size: 1.8rem;
  color: #1E2761;
  margin-bottom: 1.5rem;
  text-align: center;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}
.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 8px 24px rgba(8,145,178,.12); transform: translateY(-3px); }
.card h3 { font-size: 1.1rem; color: #1E2761; margin-bottom: .5rem; }
.card p { font-size: .92rem; color: #555; margin-bottom: 1rem; }
.card-link { font-weight: 600; font-size: .9rem; }

/* ===== ARTICLE PAGE ===== */
.article-wrapper { max-width: 820px; margin: 0 auto; padding: 2rem 1rem 3rem; }
.article-wrapper h1 { font-size: 2rem; color: #1E2761; margin-bottom: .5rem; }
.article-lead { font-size: 1.1rem; color: #555; margin-bottom: 2rem; border-left: 4px solid #0891B2; padding-left: 1rem; }
.article-wrapper h2 { font-size: 1.4rem; color: #1E2761; margin: 2.5rem 0 1rem; padding-top: 1rem; border-top: 1px solid #e2e8f0; }
.article-wrapper h3 { font-size: 1.15rem; color: #0891B2; margin: 1.5rem 0 .75rem; }
.article-wrapper p { margin-bottom: 1rem; }
.article-wrapper ul, .article-wrapper ol { margin-bottom: 1rem; }
.article-wrapper li { margin-bottom: .35rem; }
.article-wrapper blockquote {
  background: #F0F9FF;
  border-left: 4px solid #0891B2;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #333;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs { padding: .75rem 0; font-size: .85rem; color: #666; max-width: 1200px; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
.breadcrumbs a { color: #0891B2; }
.breadcrumbs span { margin: 0 .4rem; color: #999; }

/* ===== TABLES ===== */
.table-wrapper { overflow-x: auto; margin: 1.5rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
th, td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid #e2e8f0; }
th { background: #1E2761; color: #fff; font-weight: 600; }
tr:nth-child(even) { background: #F0F9FF; }
tr:hover { background: #e0f2fe; }

/* ===== ACCORDION / FAQ ===== */
details {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: .75rem;
  overflow: hidden;
}
summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  background: #F0F9FF;
  color: #1E2761;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .2s;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '▸'; transition: transform .2s; font-size: 1.1rem; }
details[open] summary::after { transform: rotate(90deg); }
details[open] summary { background: #0891B2; color: #fff; }
details .faq-answer { padding: 1rem 1.25rem; }

/* ===== CALLOUT BOX ===== */
.callout {
  background: #F0F9FF;
  border: 1px solid #0891B2;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.callout.callout-warning { background: #fffbeb; border-color: #f59e0b; }
.callout.callout-danger { background: #fef2f2; border-color: #ef4444; }
.callout-title { font-weight: 700; margin-bottom: .5rem; }

/* ===== FOOTER ===== */
.site-footer {
  background: #1E2761;
  color: #cbd5e1;
  padding-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
}
.footer-col h3 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.footer-col p { font-size: .9rem; line-height: 1.6; margin-bottom: .75rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul a { color: #94a3b8; font-size: .9rem; }
.footer-col ul a:hover { color: #7dd3fc; }
.footer-social { display: flex; gap: .75rem; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1);
  color: #fff; font-size: .8rem; font-weight: 700;
}
.footer-social a:hover { background: #0891B2; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1rem 0;
  text-align: center;
  font-size: .8rem;
  color: #94a3b8;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #162050;
    max-height: 80vh;
    overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; }
  .nav-list > li > a,
  .nav-list > li > .submenu-toggle { padding: .85rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.05); }
  .submenu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none;
    background: rgba(0,0,0,.15);
    display: none;
    padding: 0;
  }
  .has-submenu.submenu-open .submenu { display: block; }
  .submenu li a { color: #cbd5e1; padding-left: 2rem; }
  .submenu li a:hover { background: rgba(255,255,255,.05); color: #fff; }
  .hero { padding: 3rem 1rem 2rem; }
  .hero h1 { font-size: 1.75rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .site-header { position: relative; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.4rem; }
  .cards-grid { grid-template-columns: 1fr; }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
