@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --primary: #020381;
  --primary-dark: #010250;
  --secondary: #eef1fb;
  --accent: #ff6900;
  --bg: #ffffff;
  --bg-alt: #eef1fb;
  --text: #000000;
  --text-light: #313131;
  --radius: 10px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 2px rgba(2, 3, 129, 0.06);
  --shadow-md: 0 6px 24px rgba(2, 3, 129, 0.10);
  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, sans-serif;
  --max-width: 1150px;
  --article-width: 760px;
}

* { box-sizing: border-box; }

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote {
  margin: 0 0 1rem;
}

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

p, li, h1, h2, h3, h4 {
  overflow-wrap: break-word;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}

a:hover { color: var(--primary-dark); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-top: 2.2rem; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.55rem); margin-top: 1.6rem; }

strong { font-weight: 700; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .9rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: .8rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  line-height: 1.2;
  min-height: 44px;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}

.btn:hover { transform: translateY(-1px); }

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

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

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

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-accent:hover { filter: brightness(.94); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.utility-bar {
  background: var(--secondary);
  font-size: .84rem;
  color: var(--text-light);
}

.utility-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  gap: 1rem;
}

.utility-bar a { color: var(--text-light); font-weight: 500; }
.utility-bar a:hover { color: var(--primary); }

.utility-links {
  display: flex;
  gap: 1.2rem;
}

.nav-bar {
  background: var(--primary);
}

.nav-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.logo:hover { color: #fff; opacity: .9; }
.logo svg { height: 32px; width: auto; flex: none; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: #fff;
  font-weight: 500;
  font-size: .98rem;
  padding: .35rem 0;
  position: relative;
}

.main-nav a:hover { color: #fff; opacity: .82; }

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .2s ease;
}

.main-nav a:hover::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: #fff;
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 600;
  padding: .6rem 1.3rem;
  border-radius: var(--radius-pill);
  min-height: 44px;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}

.nav-cta:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 0 auto;
  transition: transform .25s ease, opacity .25s ease;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--bg-alt);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero-content > * { min-width: 0; }

.hero h1 {
  margin-bottom: 1.1rem;
}

.hero p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

.hero-media {
  min-width: 0;
}

.hero-media img {
  border-radius: var(--radius);
  width: 100%;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: .85rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
}

.breadcrumb a { color: var(--primary); font-weight: 500; }
.breadcrumb span[aria-hidden] { opacity: .5; }

/* ---------- Sections ---------- */
.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 640px;
  margin-bottom: 2.2rem;
}

.section-head p { color: var(--text-light); }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.card-grid > * { min-width: 0; }

.card {
  background: var(--bg);
  border: 1px solid #e6e8f5;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-body {
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}

.card-body h3 { margin: 0; font-size: 1.2rem; }
.card-body p { color: var(--text-light); font-size: .95rem; margin: 0; }

.card-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary);
  background: var(--secondary);
  padding: .25rem .7rem;
  border-radius: var(--radius-pill);
}

.card-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  gap: .35rem;
  align-items: center;
}

/* ---------- Article ---------- */
.article {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.article .container { max-width: var(--article-width); }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: center;
  font-size: .88rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.article-meta .dot { opacity: .5; }

.article p { margin-bottom: 1.2rem; }
.article ul, .article ol { margin: 0 0 1.4rem; padding-left: 1.3rem; }
.article li { margin-bottom: .5rem; }

.article-img, figure {
  margin: 2rem 0;
}

.article-img img, figure img {
  border-radius: var(--radius);
  width: 100%;
}

figcaption {
  font-size: .85rem;
  color: var(--text-light);
  margin-top: .6rem;
  text-align: center;
}

/* ---------- Table ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 1.8rem 0;
  border-radius: var(--radius);
  border: 1px solid #e6e8f5;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  min-width: 480px;
}

thead th {
  background: var(--primary);
  color: #fff;
  text-align: left;
  font-weight: 600;
  padding: .9rem 1rem;
}

tbody td {
  padding: .85rem 1rem;
  border-top: 1px solid #e6e8f5;
}

tbody tr:nth-child(even) { background: var(--secondary); }

/* ---------- Info box ---------- */
.info-box {
  background: var(--secondary);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin: 1.8rem 0;
}

.info-box p:last-child { margin-bottom: 0; }

.info-box.tip { border-left-color: #00d084; }
.info-box.warning { border-left-color: var(--accent); }

.info-box strong { display: block; margin-bottom: .3rem; }

/* ---------- FAQ ---------- */
.faq { margin: 2rem 0; }

.faq details {
  border: 1px solid #e6e8f5;
  border-radius: var(--radius);
  margin-bottom: .8rem;
  background: var(--bg);
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-weight: 600;
  font-family: var(--font-display);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.faq summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--primary);
  transition: transform .2s ease;
  flex: none;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details > p {
  padding: 0 1.2rem 1.2rem;
  margin: 0;
  color: var(--text-light);
}

/* ---------- Related ---------- */
.related-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.related-cards > * { min-width: 0; }

.related-card {
  border: 1px solid #e6e8f5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  transition: transform .2s ease, box-shadow .2s ease;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.related-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.related-card .rc-body { padding: 1rem 1.1rem; }
.related-card h4 { margin: 0 0 .3rem; font-size: 1.05rem; }
.related-card p { margin: 0; font-size: .85rem; color: var(--text-light); }

/* ---------- Author ---------- */
.author-card {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin: 2.2rem 0;
}

.author-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.author-card h4 { margin: 0; font-size: 1.1rem; }
.author-card .role { color: var(--primary); font-weight: 600; font-size: .88rem; margin: .1rem 0 .4rem; }
.author-card p { margin: 0; font-size: .9rem; color: var(--text-light); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark);
  color: #d5d8f0;
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.footer-grid > * { min-width: 0; }

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: .6rem;
}

.site-footer p { color: #b9bde6; font-size: .92rem; }

.site-footer h4 {
  color: #fff;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.site-footer ul a {
  color: #c9ccf0;
  font-size: .92rem;
}

.site-footer ul a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 2.5rem;
  padding-top: 1.3rem;
  font-size: .85rem;
  color: #a4a8dc;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 1rem 1.25rem 1.5rem;
    display: none;
    box-shadow: var(--shadow-md);
  }

  .site-header.nav-open .main-nav { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: .3rem;
  }

  .main-nav a {
    display: block;
    padding: .75rem 0;
    min-height: 44px;
  }

  .nav-bar { position: relative; }

  .nav-actions { gap: .8rem; }

  .nav-cta { display: none; }

  .site-header.nav-open .nav-cta {
    display: inline-flex;
    margin-top: .8rem;
  }

  .hero .container { grid-template-columns: minmax(0, 1fr); }

  .hero-media { order: -1; }

  .card-grid,
  .related-cards { grid-template-columns: minmax(0, 1fr); }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }

  .site-header.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 480px) {
  body { font-size: 15.5px; }
  .utility-bar { font-size: .78rem; }
  .utility-bar .phone { display: none; }
  .author-card { flex-direction: column; text-align: center; }
}
