/* ==========================================================================
   PrivaxisOS - Resources / Burime hub styles
   Reuses the existing design system (same palette, class names, breakpoints).
   Tokens mirror the inline styles used across the marketing site.
   ========================================================================== */

:root {
  --navy: #214663;
  --teal: #1a8d93;
  --teal-light: #5eead4;
  --teal-pale: #a5f3fc;
  --dark: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --border: #e2e8f0;
  --slate-bg: #f8fafc;
  --radius: 12px;
  --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text); background: #fff; line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; }
img { max-width: 100%; }

/* ---- Navigation (mirrors the site nav) ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { height: 180px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); font-weight: 600; }
.lang-selector { position: relative; margin-left: 8px; }
.lang-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 13px; font-weight: 500;
  color: #475569; transition: all 0.2s;
}
.lang-btn:hover { border-color: var(--muted-2); background: var(--slate-bg); }
.lang-btn .flag { font-size: 16px; line-height: 1; }
.lang-btn .arrow { font-size: 10px; color: var(--muted-2); transition: transform 0.2s; }
.lang-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1); min-width: 160px;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: all 0.2s; z-index: 200;
}
.lang-selector:hover .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-selector:hover .arrow { transform: rotate(180deg); }
.lang-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; font-size: 14px; font-weight: 500; color: #475569;
  transition: background 0.15s; cursor: pointer;
}
.lang-option:first-child { border-radius: 10px 10px 0 0; }
.lang-option:last-child { border-radius: 0 0 10px 10px; }
.lang-option:hover { background: #f1f5f9; color: var(--navy); }
.lang-option.active { background: #f0fdfa; color: var(--teal); font-weight: 600; }
.lang-option .flag { font-size: 18px; }

/* ---- Buttons (mirrors site buttons) ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; background: var(--teal); color: #fff;
  border: none; border-radius: var(--radius); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 20px rgba(26,141,147,0.4);
}
.btn-primary:hover { background: #158a8f; transform: translateY(-1px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; background: transparent; color: var(--navy);
  border: 2px solid var(--border); border-radius: var(--radius);
  font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

/* ---- Page header / hero for hub pages ---- */
.hub-hero {
  padding: 140px 80px 64px;
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a4f 40%, var(--teal) 100%);
  color: #fff; text-align: center;
}
.hub-hero-inner { max-width: 820px; margin: 0 auto; }
.hub-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  color: var(--teal-pale); padding: 8px 20px; border-radius: 100px;
  font-size: 13px; font-weight: 600; margin-bottom: 24px; letter-spacing: 0.5px;
}
.hub-hero h1 { font-size: 44px; font-weight: 900; line-height: 1.15; margin-bottom: 16px; }
.hub-hero p { font-size: 18px; color: #cbd5e1; max-width: 640px; margin: 0 auto; }

/* ---- Generic section wrappers (mirror site) ---- */
.section { padding: 64px 80px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.bg-slate { background: var(--slate-bg); }

/* ---- Filter bar ---- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 40px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-label { font-size: 12px; font-weight: 700; color: var(--muted-2); text-transform: uppercase; letter-spacing: 1px; margin-right: 4px; }
.chip {
  font-family: inherit; font-size: 13px; font-weight: 600; color: #475569;
  background: #fff; border: 1px solid var(--border); border-radius: 100px;
  padding: 7px 16px; cursor: pointer; transition: all 0.2s;
}
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---- Card grid ---- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: all 0.3s;
}
.card:hover { border-color: transparent; box-shadow: 0 20px 60px rgba(33,70,99,0.12); transform: translateY(-4px); }
.card-media { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy), var(--teal)); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.badge {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 4px 10px; border-radius: 100px;
}
.badge.insights { background: #f0fdfa; color: var(--teal); }
.badge.guide { background: #eff6ff; color: #2563eb; }
.badge.webinar { background: #faf5ff; color: #9333ea; }
.card-date { font-size: 13px; color: var(--muted-2); }
.card h3 { font-size: 19px; font-weight: 700; color: var(--navy); line-height: 1.3; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.6; flex: 1; margin-bottom: 16px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.card-link { font-size: 14px; font-weight: 600; color: var(--teal); display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s; }
.card:hover .card-link { gap: 10px; }
.empty-state { text-align: center; color: var(--muted); padding: 48px 0; font-size: 15px; }

/* ---- Section heading inside listing ---- */
.list-section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 8px 0 24px; flex-wrap: wrap; gap: 8px; }
.list-section-head h2 { font-size: 28px; font-weight: 800; color: var(--navy); }
.list-section-head p { font-size: 15px; color: var(--muted); }

/* ---- "Coming soon" (webinars) ---- */
.coming-soon {
  border: 1px dashed var(--border); border-radius: var(--radius-lg);
  padding: 48px 32px; text-align: center; background: var(--slate-bg);
}
.coming-soon .badge { margin-bottom: 16px; }
.coming-soon h3 { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.coming-soon p { font-size: 15px; color: var(--muted); max-width: 520px; margin: 0 auto; }

/* ---- Article layout ---- */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 120px 24px 64px; }
.breadcrumb { font-size: 13px; color: var(--muted-2); margin-bottom: 24px; }
.breadcrumb a:hover { color: var(--teal); }
.article-head { margin-bottom: 32px; }
.article-head .badge { margin-bottom: 16px; }
.article-head h1 { font-size: 38px; font-weight: 900; color: var(--navy); line-height: 1.15; margin-bottom: 16px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--muted); font-size: 14px; }
.article-meta .dot { color: var(--border); }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag-pill { font-size: 12px; font-weight: 600; color: #475569; background: var(--slate-bg); border: 1px solid var(--border); border-radius: 100px; padding: 5px 12px; }
.tag-pill:hover { border-color: var(--teal); color: var(--teal); }

.article-body { font-size: 17px; color: var(--text); line-height: 1.8; }
.article-body > * + * { margin-top: 20px; }
.article-body h2 { font-size: 26px; font-weight: 800; color: var(--navy); margin-top: 40px; line-height: 1.3; }
.article-body h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin-top: 32px; }
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body li { margin-top: 8px; }
.article-body ul li { list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body a { color: var(--teal); font-weight: 600; text-decoration: underline; }
.article-body blockquote {
  border-left: 4px solid var(--teal); background: var(--slate-bg);
  padding: 16px 24px; border-radius: 0 8px 8px 0; color: #475569; font-style: italic;
}
.article-body code { background: var(--slate-bg); border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; font-size: 15px; }

/* ---- CTA blocks (driven by cta[] frontmatter) ---- */
.cta-stack { display: grid; gap: 16px; margin: 48px 0; }
.cta-card {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; background: #fff;
}
.cta-card .cta-icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(26,141,147,0.08); color: var(--teal);
}
.cta-card .cta-text { flex: 1; min-width: 220px; }
.cta-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.cta-card p { font-size: 14px; color: var(--muted); }

/* ---- Footer (mirrors site) ---- */
.footer { background: var(--dark); color: var(--muted); padding: 48px 80px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-brand { font-size: 18px; font-weight: 700; color: #fff; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { text-align: center; padding-top: 24px; margin-top: 24px; border-top: 1px solid #1e293b; font-size: 13px; max-width: 1200px; margin-left: auto; margin-right: auto; }

/* ---- Focus visibility (accessibility) ---- */
a:focus-visible, button:focus-visible, input:focus-visible, .chip:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 6px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hub-hero { padding: 120px 40px 56px; }
  .hub-hero h1 { font-size: 34px; }
  .section { padding: 48px 40px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .footer { padding: 32px 24px; }
}
@media (max-width: 768px) {
  .hub-hero { padding: 110px 24px 48px; }
  .hub-hero h1 { font-size: 28px; }
  .section { padding: 40px 24px; }
  .cards-grid { grid-template-columns: 1fr; }
  .article-head h1 { font-size: 30px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}
