/* ══════════════════════════════════════════════════════════════
   HitJuwa SEO Pages — Server-Rendered Blade Layout Styles
   Design tokens: Navy (#050D1A), Emerald (#1AE370), Gold (#F5BC3F)
   Fonts: system UI stack
   ══════════════════════════════════════════════════════════════ */

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

:root {
  --font-system: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

/* Legal & Trust directory — scoped to the new legal resources only. */
.legal-trust-layout {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr) minmax(220px, 280px);
  gap: 28px;
  align-items: start;
}

.legal-trust-rail,
.legal-operator-card {
  position: sticky;
  top: 92px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgba(255,255,255,0.035);
}

.legal-trust-rail nav,
.legal-policy-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-trust-rail a,
.legal-policy-sidebar nav a {
  color: rgba(255,255,255,0.75);
  font-size: 0.86rem;
  text-decoration: none;
}

.legal-trust-rail a:hover,
.legal-policy-sidebar nav a:hover {
  color: #fff;
}

.legal-trust-kicker {
  margin: 0 0 12px;
  color: #f5bc3f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-trust-main { min-width: 0; }
.legal-trust-hero { text-align: left; }
.legal-trust-safe-note {
  padding: 14px 16px;
  border-left: 3px solid #f5bc3f;
  background: rgba(245,188,63,0.08);
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
}

.legal-policy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.legal-policy-grid .seo-card { min-height: 220px; }

.legal-operator-card h2 { margin-top: 0; }
.legal-operator-card dl { margin: 0; }
.legal-operator-card dl > div {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.legal-operator-card dt {
  color: rgba(255,255,255,0.52);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.legal-operator-card dd {
  margin: 5px 0 0;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
}
.legal-operator-card a { color: #f5bc3f; }
.legal-operator-disclosure {
  margin: 18px 0 0;
  color: rgba(255,255,255,0.62);
  font-size: 0.78rem;
  line-height: 1.6;
}

.compliance-policy-layout .seo-article-body section + section { margin-top: 34px; }
.legal-policy-sidebar h2 { font-size: 1rem; }

@media (max-width: 1100px) {
  .legal-trust-layout { grid-template-columns: minmax(150px, 190px) minmax(0, 1fr); }
  .legal-operator-card { position: static; grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .legal-trust-layout { display: block; }
  .legal-trust-rail { display: none; }
  .legal-policy-grid { grid-template-columns: 1fr; }
  .legal-operator-card { margin-top: 28px; }
}

body.seo-page {
  font-family: var(--font-system);
  background: #050D1A;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  overflow-x: hidden;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-system);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.subheading, .section-title {
  font-family: var(--font-system);
  font-weight: 500;
  letter-spacing: -0.005em;
}

input, textarea, select, button {
  font-family: inherit;
}

a { color: #1AE370; text-decoration: none; transition: color 0.2s; }
a:hover { color: #5ff09a; }

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

/* ── Header ─────────────────────────────────────────────────── */
.seo-header {
  background: rgba(9, 22, 37, 0.95);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.seo-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.seo-logo img { height: 36px; width: auto; display: block; }

.seo-nav {
  display: flex;
  gap: 24px;
  flex: 1;
}

.seo-nav a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}
.seo-nav a:hover { color: #fff; }

.seo-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #1AE370, #0cc9e7);
  color: #050D1A !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.seo-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(26,227,112,0.3);
  color: #050D1A !important;
}
.seo-cta-sm { padding: 8px 16px; font-size: 0.82rem; }

/* ── Breadcrumbs ────────────────────────────────────────────── */
.seo-breadcrumbs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 0;
}

.seo-breadcrumbs ol {
  list-style: none;
  display: flex;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.seo-breadcrumbs li::after { content: '/'; margin-left: 8px; }
.seo-breadcrumbs li:last-child::after { content: ''; }
.seo-breadcrumbs a { color: rgba(255,255,255,0.6); }
.seo-breadcrumbs a:hover { color: #1AE370; }
.seo-breadcrumbs .current { color: rgba(255,255,255,0.8); }

/* ── Main Container ─────────────────────────────────────────── */
.seo-main {
  min-height: calc(100vh - 200px);
}

.seo-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ── Hero ────────────────────────────────────────────────────── */
.seo-hero {
  text-align: center;
  margin-bottom: 48px;
}

.seo-hero h1 {
  font-family: var(--font-system);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.seo-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.seo-hero-badge {
  display: inline-block;
  background: rgba(26,227,112,0.12);
  color: #1AE370;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

/* ── Card Grid ──────────────────────────────────────────────── */
.seo-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.seo-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 28px 24px;
  transition: border-color 0.25s, transform 0.25s;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
.seo-card:hover {
  border-color: rgba(26,227,112,0.3);
  transform: translateY(-2px);
  color: rgba(255,255,255,0.9);
}

.seo-card-num {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #1AE370, #0cc9e7);
  color: #050D1A;
  font-family: var(--font-system);
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.seo-card h2,
.seo-card h3 {
  font-family: var(--font-system);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.4;
}

.seo-card-topic {
  align-self: flex-start;
  color: #1AE370;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.seo-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  flex: 1;
}

.seo-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 0.82rem;
}
.seo-card-footer time { color: rgba(255,255,255,0.72); }

.seo-card-link {
  color: #1AE370;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 14px;
}

.seo-card-img {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}
.seo-card-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* ── Article Layout ─────────────────────────────────────────── */
.seo-article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.seo-article-header {
  margin-bottom: 32px;
}

.seo-article-header h1 {
  font-family: var(--font-system);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

.seo-article-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.seo-article-type {
  background: rgba(245,188,63,0.15);
  color: #F5BC3F;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 6px;
}

/* ── Article Body ───────────────────────────────────────────── */
.seo-article-body {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.8);
  overflow-wrap: anywhere;
}

.seo-article-body h2 {
  font-family: var(--font-system);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 40px 0 16px;
}

.seo-article-body h3 {
  font-family: var(--font-system);
  font-size: 1.05rem;
  font-weight: 700;
  color: #F0F4FF;
  margin: 28px 0 12px;
}

.seo-article-body p {
  margin-bottom: 18px;
}

.seo-article-body ul, .seo-article-body ol {
  margin: 0 0 18px 24px;
}
.seo-article-body li { margin-bottom: 8px; }

.seo-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.seo-article-body th,
.seo-article-body td {
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.1);
  text-align: left;
}
.seo-article-body th {
  background: rgba(255,255,255,0.06);
  font-weight: 600;
  color: #fff;
}

.seo-article-body blockquote {
  border-left: 3px solid #1AE370;
  padding: 12px 20px;
  margin: 24px 0;
  background: rgba(26,227,112,0.06);
  border-radius: 0 8px 8px 0;
}

.seo-article-body a { color: #1AE370; text-decoration: underline; }
.seo-article-body a:hover { color: #5ff09a; }

.seo-article-body img {
  border-radius: 10px;
  margin: 24px 0;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.seo-sidebar {
  position: sticky;
  top: 80px;
}

.seo-toc {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.seo-toc h3 {
  font-family: var(--font-system);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.seo-toc ul { list-style: none; }
.seo-toc li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.seo-toc li:last-child { border-bottom: none; }
.seo-toc a {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  line-height: 1.4;
}
.seo-toc a:hover { color: #1AE370; }

.seo-sidebar-cta {
  background: linear-gradient(160deg, rgba(26,227,112,0.1), rgba(12,201,231,0.05));
  border: 1px solid rgba(26,227,112,0.2);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 24px;
}

.seo-sidebar-cta h4 {
  font-family: var(--font-system);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.seo-sidebar-cta p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  line-height: 1.5;
}

.seo-sidebar-related {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 20px;
}

.seo-sidebar-related h4 {
  font-family: var(--font-system);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.seo-related-link {
  display: block;
  padding: 8px 0;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  line-height: 1.4;
}
.seo-related-link:last-child { border-bottom: none; }
.seo-related-link:hover { color: #1AE370; }

/* ── CTA Block ──────────────────────────────────────────────── */
.seo-cta-block {
  text-align: center;
  background: linear-gradient(160deg, #0C1D30, #091625);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 40px 32px;
  margin: 48px 0 24px;
}

.seo-cta-icon {
  font-size: 2rem;
  color: #1AE370;
  margin-bottom: 16px;
}

.seo-cta-block h3 {
  font-family: var(--font-system);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.seo-cta-block p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Welcome Offer Card ─────────────────────────────────────── */
.seo-welcome-offer-card {
  background: rgba(245,188,63,0.06);
  border: 1px solid rgba(245,188,63,0.2);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
}
.seo-wo-badge {
  display: inline-block;
  background: rgba(245,188,63,0.15);
  color: #F5BC3F;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.seo-welcome-offer-card h4 {
  font-family: var(--font-system);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.seo-welcome-offer-card p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
  line-height: 1.5;
}

/* ── Section ────────────────────────────────────────────────── */
.seo-learning-path h2,
.seo-section-title {
  font-family: var(--font-system);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.seo-section-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 28px;
}

/* ── Empty State ────────────────────────────────────────────── */
.seo-empty {
  text-align: center;
  padding: 80px 24px;
  color: rgba(255,255,255,0.4);
  font-size: 1.05rem;
}

/* ── Footer ─────────────────────────────────────────────────── */
.seo-footer {
  background: #060E18;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 24px 0;
}

.seo-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 3fr;
  gap: 48px;
  padding-bottom: 40px;
}

.seo-footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.seo-footer-brand img { height: 32px; width: auto; margin-bottom: 12px; }
.seo-footer-brand p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
}

.seo-footer-heading {
  font-family: var(--font-system);
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.seo-footer-col a {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  padding: 4px 0;
  transition: color 0.2s;
}
.seo-footer-col a:hover { color: #1AE370; }

.seo-footer-trustpilot {
  width: min(640px, calc(100% - 48px));
  margin: 0 auto 24px;
  padding: 12px 14px;
  border: 1px solid rgba(0,182,122,0.2);
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
  text-align: center;
}

.seo-footer-trustpilot-viewport {
  min-height: 28px;
  display: grid;
  align-items: center;
}

.seo-footer-trustpilot-widget {
  width: 100%;
  min-height: 24px;
}

.seo-footer-trustpilot-fallback,
.seo-footer-trustpilot-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  flex-wrap: wrap;
}

.seo-footer-trustpilot-fallback {
  color: rgba(255,255,255,0.56);
  font-size: 0.76rem;
}

.seo-footer-trustpilot-controls {
  margin-top: 8px;
  font-size: 0.72rem;
}

.seo-footer-trustpilot-controls a,
.seo-footer-trustpilot-controls button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.7);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.seo-footer-trustpilot-status {
  margin: 7px 0 0;
  color: #e7c879;
  font-size: 0.72rem;
}

.seo-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 24px;
  text-align: center;
}
.seo-footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.72);
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Related Cards Grid ────────────────────────────────────── */
.seo-related-grid {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.seo-related-grid h2 {
  font-family: var(--font-system);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}
.seo-related-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.seo-related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.seo-related-card:hover {
  border-color: rgba(26,227,112,0.3);
  transform: translateY(-2px);
}
.seo-related-card-type {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1AE370;
}
.seo-related-card-title {
  font-family: var(--font-system);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}
.seo-related-card-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

/* ── Provider Stats ────────────────────────────────────────── */
.provider-stats {
  background: rgba(26,227,112,0.06);
  border: 1px solid rgba(26,227,112,0.15);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 16px 0 24px;
}
.provider-stats p {
  margin: 0;
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
}

/* ── Sidebar Active State ──────────────────────────────────── */
.seo-related-link.is-active {
  color: #1AE370;
  font-weight: 600;
}

/* ── Glossary Definition List ──────────────────────────────── */
.seo-article-body dl {
  margin: 0 0 24px 0;
}
.seo-article-body dt {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.seo-article-body dt:first-child {
  border-top: none;
  padding-top: 0;
}
.seo-article-body dd {
  margin: 0 0 0 0;
  padding: 0 0 12px 0;
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .seo-article-layout {
    grid-template-columns: 1fr;
  }
  .seo-sidebar {
    position: static;
  }
  .seo-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .seo-footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .seo-header-inner {
    padding: 12px 16px;
    gap: 12px;
  }
  .seo-nav { display: none; }
  .seo-container { padding: 28px 16px 60px; }
  .seo-card-grid {
    grid-template-columns: 1fr;
  }
  .seo-related-cards {
    grid-template-columns: 1fr;
  }
  .seo-footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .seo-footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .seo-footer-trustpilot {
    width: calc(100% - 32px);
  }
  .seo-footer-trustpilot-fallback,
  .seo-footer-trustpilot-controls {
    display: grid;
  }
}
