/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-900: #0f2744;
  --blue-800: #1a365d;
  --blue-700: #1e4a7a;
  --blue-600: #2b6cb0;
  --blue-500: #3182ce;
  --blue-100: #ebf8ff;
  --gray-900: #1a202c;
  --gray-700: #2d3748;
  --gray-600: #4a5568;
  --gray-500: #718096;
  --gray-200: #e2e8f0;
  --gray-100: #f7fafc;
  --white: #ffffff;
  --green: #38a169;
  --red: #e53e3e;
  --radius: 10px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: var(--gray-700);
  background: var(--white);
  font-size: 15px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-800); text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.narrow { max-width: 820px; }

/* ===== Header ===== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-800);
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
}

.logo:hover { color: var(--blue-800); text-decoration: none; }

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: contain;
}

.logo-text { letter-spacing: -0.02em; }

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item { position: relative; }

.nav-link {
  color: var(--gray-600);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue-700);
  background: var(--blue-100);
  text-decoration: none;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 210px;
  padding: 8px 0;
  z-index: 50;
}

.nav-item:hover .nav-dropdown { display: block; }

.nav-dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--gray-700);
  font-size: 0.9rem;
  text-decoration: none;
}

.nav-dropdown a:hover {
  background: var(--blue-100);
  color: var(--blue-800);
}

/* ===== Hero (graphic, no photo) ===== */
.hero {
  background: linear-gradient(145deg, #0f2744 0%, #1a365d 45%, #1e4a7a 100%);
  color: var(--white);
  padding: 64px 0 68px;
  position: relative;
  overflow: hidden;
}

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

.hero-inner {
  max-width: 580px;
  text-align: left;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.95);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(1.75rem, 3.8vw, 2.35rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  text-align: left;
  white-space: nowrap;
}

.hero-sub {
  font-size: 1.12rem;
  opacity: 0.9;
  margin-bottom: 24px;
  line-height: 1.55;
  text-align: left;
  max-width: 520px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.95rem;
  opacity: 0.88;
  margin-bottom: 28px;
}

.btn-hero {
  display: inline-block;
  background: #fff;
  color: #1a365d;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-hero:hover {
  background: #ebf8ff;
  color: #0f2744;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Decorative soft circles */
.hero-deco {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.deco-2 {
  width: 260px;
  height: 260px;
  bottom: -60px;
  right: 180px;
  background: rgba(255,255,255,0.03);
}

.deco-3 { display: none; }



  .hero-wave { height: 80px; }
}

}


@media (max-width: 768px) {
  .hero { padding: 48px 0 56px; }
  .deco-1 { width: 280px; height: 280px; }
  .deco-2, .deco-3 { display: none; }
}

/* ===== Sections ===== */
.section {
  padding: 52px 0;
}

.bg-light { background: var(--gray-100); }

.section-title {
  font-size: 1.85rem;
  color: var(--blue-900);
  margin-bottom: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: left;
}

.lead {
  font-size: 1.05rem;
  color: var(--gray-700);
  margin-bottom: 14px;
  text-align: left;
}

.section p {
  margin-bottom: 14px;
  text-align: left;
}

.note-box {
  background: var(--blue-100);
  border-left: 4px solid var(--blue-600);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  font-size: 0.98rem;
}

.note-box strong { color: var(--blue-800); }

/* ===== Comparison Table ===== */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.comparison-table th {
  background: var(--blue-800);
  color: var(--white);
  text-align: left;
  padding: 13px 14px;
  font-weight: 600;
}

.comparison-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
  text-align: left;
}

.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: var(--blue-100); }

/* ===== Provider Cards ===== */
.provider-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 26px;
  box-shadow: var(--shadow);
  text-align: left;
}

.provider-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.provider-logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--blue-800);
  flex-shrink: 0;
  text-align: center;
  line-height: 1.2;
  padding: 4px;
}

.provider-header h3 {
  font-size: 1.4rem;
  color: var(--blue-900);
  font-weight: 700;
}

.provider-logo-wrap {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.provider-logo-wrap svg {
  display: block;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}





.badge {
  display: inline-block;
  background: var(--gray-200);
  color: var(--gray-700);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.badge-blue {
  background: var(--blue-100);
  color: var(--blue-700);
}

.pros-cons {
  list-style: none;
  margin: 16px 0 20px;
  display: grid;
  gap: 7px;
}

.pros-cons li {
  padding-left: 24px;
  position: relative;
  font-size: 0.93rem;
  text-align: left;
}

.pros-cons .pro::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.pros-cons .con::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-800);
  color: var(--white);
  text-decoration: none;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.85rem;
  background: var(--blue-100);
  color: var(--blue-700);
}

.btn-sm:hover {
  background: var(--blue-600);
  color: var(--white);
  text-decoration: none;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--blue-600);
  color: var(--blue-600);
}

.btn-outline:hover {
  background: var(--blue-600);
  color: var(--white);
  text-decoration: none;
}

/* ===== Tips Grid - 3 columns ===== */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: left;
}

.tip-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  text-align: left;
}

.tip-card h4 {
  color: var(--blue-800);
  margin-bottom: 8px;
  font-size: 1.05rem;
  text-align: left;
}

.tip-card p {
  font-size: 0.92rem;
  margin: 0;
  color: var(--gray-600);
  text-align: left;
}

.tip-card a { font-weight: 600; }

/* ===== Avoid List ===== */
.avoid-list {
  list-style: none;
  display: grid;
  gap: 12px;
  text-align: left;
}

.avoid-list li {
  padding: 14px 18px;
  background: var(--gray-100);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.96rem;
  text-align: left;
}

/* ===== FAQ – smooth open ===== */
.faq details {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: var(--white);
  text-align: left;
  overflow: hidden;
}

.faq summary {
  padding: 15px 18px;
  font-weight: 600;
  color: var(--blue-900);
  cursor: pointer;
  list-style: none;
  position: relative;
  text-align: left;
  font-size: 1rem;
  user-select: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--blue-600);
  transition: transform 0.25s ease;
}

.faq details[open] summary::after {
  content: "–";
}

.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}

.faq details[open] .faq-content {
  grid-template-rows: 1fr;
}

.faq-content-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-content-inner p {
  padding: 0 18px 18px;
  margin: 0;
  color: var(--gray-600);
  font-size: 0.94rem;
  text-align: left;
  line-height: 1.65;
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  color: var(--white);
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: 1.7rem;
  text-align: left;
}

.cta-section p {
  opacity: 0.92;
  margin-bottom: 22px;
  text-align: left;
}

.cta-section .btn-primary {
  background: var(--white);
  color: var(--blue-800);
}

.cta-section .btn-primary:hover {
  background: var(--blue-100);
}

/* ===== Footer ===== */
.footer {
  background: var(--blue-900);
  color: rgba(255,255,255,0.85);
  padding: 36px 0 22px;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 22px;
}

.footer-brand .logo-text {
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
  display: block;
  margin-bottom: 6px;
}

.footer-brand p {
  opacity: 0.7;
  margin: 0;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.footer-links a:hover { color: var(--white); }

.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 16px;
  text-align: left;
  opacity: 0.6;
  font-size: 0.85rem;
  margin: 0;
}

/* ===== Legal / Content Pages ===== */
.legal-content, .page-content {
  padding: 44px 0 60px;
  text-align: left;
}

.legal-content h1, .page-content h1 {
  font-size: 2rem;
  color: var(--blue-900);
  margin-bottom: 24px;
  text-align: left;
}

.legal-content h2, .page-content h2 {
  font-size: 1.4rem;
  color: var(--blue-800);
  margin: 28px 0 12px;
  text-align: left;
}

.legal-content h3, .page-content h3 {
  font-size: 1.15rem;
  color: var(--gray-800);
  margin: 20px 0 8px;
  text-align: left;
}

.legal-content p, .page-content p,
.legal-content li, .page-content li {
  margin-bottom: 11px;
  font-size: 0.96rem;
  color: var(--gray-600);
  text-align: left;
}

.legal-content ul, .page-content ul {
  margin: 10px 0 16px 22px;
}

.toc {
  background: var(--gray-100);
  padding: 18px 22px;
  border-radius: var(--radius);
  margin-bottom: 28px;
}

.toc a {
  display: block;
  padding: 4px 0;
  font-size: 0.95rem;
}

.lerntyp-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.lerntyp-card h3 {
  color: var(--blue-800);
  margin-bottom: 10px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-image-wrap {
    transform: none;
    max-width: 480px;
  }
  .tips-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner { height: 60px; }
  .nav { gap: 2px; }
  .nav-link { font-size: 0.85rem; padding: 6px 8px; }
  .tips-grid { grid-template-columns: 1fr; }
  .section { padding: 36px 0; }
  .provider-card { padding: 20px; }
  .footer-inner { flex-direction: column; }
  .comparison-table { font-size: 0.82rem; }
  .comparison-table th,
  .comparison-table td { padding: 9px 10px; }
}


/* ===== Hero graphic – right side only ===== */
.hero-graphic {
  position: absolute;
  top: 50%;
  right: 16px;
  left: auto;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
  opacity: 1;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 1100px) {
  .hero-graphic {
    width: 260px;
    height: 260px;
    right: 10px;
  }
}

@media (max-width: 900px) {
  .hero-graphic {
    width: 200px;
    height: 200px;
    right: 5px;
    opacity: 0.7;
  }
}

@media (max-width: 700px) {
  .hero-graphic {
    display: none;
  }
  .hero h1 {
    white-space: normal;
  }
}
