/* ===== BLOG POST PAGE ===== */

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

:root {
  --bg:         #f7f6f2;
  --bg-warm:    #f0ede6;
  --surface:    #ffffff;
  --surface-2:  #f4f2ee;
  --border:     rgba(30,25,20,0.09);
  --border-h:   rgba(30,25,20,0.16);
  --text-1:     #1a1714;
  --text-2:     #4a4540;
  --text-3:     #9a948c;
  --accent:     #2557f7;
  --accent-h:   #1a44d4;
  --accent-soft:rgba(37,87,247,0.08);
  --navbar:     64px;
  --col:        700px;
  --sidebar:    280px;
  --gap:        48px;
}

/* ===== BASE ===== */
.blog-page {
  background: var(--bg);
  color: var(--text-1);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.blog-container {
  max-width: calc(var(--col) + var(--sidebar) + var(--gap));
  margin: 0 auto;
  margin-top: calc(var(--navbar) + 3.5rem);
  padding: 0 24px 80px;
  font-family: 'Inter', system-ui, sans-serif;
  display: grid;
  grid-template-columns: var(--col) var(--sidebar);
  gap: 0 var(--gap);
  align-items: start;
}

/* ===== NAVBAR ===== */
.onira-navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: rgba(247,246,242,0.92);
  min-height: var(--navbar);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

.onira-navbar__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--navbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.onira-navbar__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.onira-navbar__logo img {
  display: block;
  height: auto;
  filter: invert(1);
}

.onira-navbar__cta {
  background: var(--accent);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.onira-navbar__cta:hover { background: var(--accent-h); transform: translateY(-1px); }

/* Hide navbar CTA on desktop — the sidebar already has a CTA */
@media (min-width: 1101px) {
  .onira-navbar__cta { display: none; }
}

/* ===== ARTICLE COLUMN ===== */
.post-wrap-title {
  grid-column: 1;
  background: transparent;
  padding: 0;
  box-shadow: none;
  margin-bottom: 0;
  border-radius: 0;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-3);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.15s;
}
.post-back:hover { color: var(--text-2); }

.post-tag-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.post-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 40px;
  font-weight: 600;
  margin: 0 0 18px;
  letter-spacing: -0.025em;
  line-height: 1.14;
  color: var(--text-1);
}

.post-sub {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0 0 22px;
  padding: 0 0 0 16px;
  border-left: 3px solid var(--border-h);
}

.post-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.03em;
  margin: 0 0 32px;
}

.post-meta-divider {
  display: block;
  height: 1px;
  background: var(--border);
  margin: 0 0 36px;
}

/* ===== CONTENT ===== */
.post-wrap-content {
  grid-column: 1;
  padding: 0;
  font-size: 17px;
  line-height: 1.82;
  color: var(--text-2);
}

.post-wrap-content h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin: 48px 0 14px;
  line-height: 1.22;
}

.post-wrap-content h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-1);
  margin: 32px 0 10px;
  line-height: 1.35;
}

.post-wrap-content p { margin: 0 0 20px; }

/* Links inside content — exclude CTA buttons so they keep white text */
.post-wrap-content a:not([class]) {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(37,87,247,0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}
.post-wrap-content a:not([class]):hover { text-decoration-color: var(--accent); }

.post-wrap-content ul,
.post-wrap-content ol { padding-left: 1.3rem; margin: 0 0 20px; }
.post-wrap-content li { margin-bottom: 7px; }

.post-wrap-content blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  color: var(--text-1);
  font-size: 18px;
  line-height: 1.62;
}

.post-wrap-content strong { color: var(--text-1); font-weight: 600; }

.post-wrap-content code {
  background: var(--bg-warm);
  color: var(--text-1);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.88em;
  border: 1px solid var(--border-h);
}

.post-wrap-content pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 0 0 22px;
}

/* ===== INLINE CTA ===== */
.post-inline-cta {
  grid-column: 1;
  font-family: 'Inter', sans-serif;
  margin: 44px 0;
  padding: 28px 30px;
  border: 1px solid var(--border-h);
  border-radius: 12px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  box-shadow: 0 2px 12px rgba(30,25,20,0.06);
}
.post-inline-cta__body { flex: 1; }
.post-inline-cta__title { font-size: 15px; font-weight: 500; line-height: 1.5; margin: 0 0 5px; color: var(--text-1); }
.post-inline-cta__note { font-size: 13px; color: var(--text-3); margin: 0; line-height: 1.4; }

.post-inline-cta__button {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  white-space: nowrap;
  transition: background 0.18s, transform 0.15s;
  flex-shrink: 0;
}
.post-inline-cta__button:hover { background: var(--accent-h); transform: translateY(-1px); }

/* ===== POST END ===== */
.onira-post-end { grid-column: 1; margin-top: 56px; }

.onira-divider { height: 1px; background: var(--border); margin: 0 0 48px; }

/* ===== END CTA ===== */
.onira-cta {
  grid-column: 1;
  margin-top: 0;
  font-family: 'Inter', sans-serif;
  padding: 52px 44px;
  text-align: center;
  background: var(--text-1);
  border-radius: 16px;
}

.onira-cta__title {
  margin: 0 0 10px;
  font-family: 'Lora', Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #fff;
}

.onira-cta__sub {
  margin: 0 auto 28px;
  max-width: 380px;
  font-size: 15px;
  line-height: 1.62;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
}

.onira-cta__btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--text-1);
  background: #fff;
  transition: background 0.18s, transform 0.15s;
}
.onira-cta__btn:hover { background: var(--bg-warm); transform: translateY(-1px); }

/* ===== RELATED ARTICLES ===== */
.onira-related { grid-column: 1; margin-top: 52px; padding: 0; }

.onira-related__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }

.onira-related__title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0;
}

.onira-related__all { font-size: 13px; color: var(--text-3); text-decoration: none; transition: color 0.15s; }
.onira-related__all:hover { color: var(--text-2); text-decoration: underline; }

.onira-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--border);
}

.onira-related-card {
  padding: 20px 18px;
  text-decoration: none;
  color: var(--text-1);
  background: var(--surface);
  transition: background 0.15s;
  display: flex;
  flex-direction: column;
}
.onira-related-card:hover { background: var(--surface-2); }
.onira-related-card__meta { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.onira-related-card__title { font-size: 14px; font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; margin-bottom: 8px; color: var(--text-1); flex: 1; }
.onira-related-card__excerpt { font-size: 12.5px; line-height: 1.52; color: var(--text-3); }

/* ===== COMPARISON TABLE ===== */
.compare { grid-column: 1; max-width: 100%; margin: 32px 0; padding: 0; }
.compare__title { font-family: 'Lora', Georgia, serif; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--text-1); }
.compare__subtitle { margin: 0 0 18px; font-size: 15px; color: var(--text-2); font-weight: 300; }
.compare__table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }

.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 540px; background: var(--surface); }
.compare-table thead th { text-align: left; padding: 13px 16px; font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.compare-table__feature { width: 44%; }
.compare-table__col { width: 28%; }
.compare-table tbody td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 14px; color: var(--text-2); }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody tr:hover td { background: var(--surface-2); }

.compare-table__badge { display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; background: var(--accent-soft); border: 1px solid rgba(37,87,247,0.2); color: var(--accent); }

.pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill--ok { background: rgba(22,163,74,0.1); border: 1px solid rgba(22,163,74,0.25); color: #16a34a; }
.pill--no { background: transparent; border: 1px solid var(--border-h); color: var(--text-3); }
.note { display: inline-block; margin-left: 8px; font-size: 12px; color: var(--text-3); }
.link-other-blog { color: var(--accent); font-weight: 500; text-decoration: none; transition: color 0.15s; }
.link-other-blog:hover { text-decoration: underline; }

/* ===== SIDEBAR ===== */
.post-sidebar {
  grid-column: 2;
  grid-row: 1 / 20;
  position: sticky;
  top: calc(var(--navbar) + 28px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: 'Inter', sans-serif;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: 0 1px 6px rgba(30,25,20,0.05);
}

/* Feature card */
.sidebar-feature__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.sidebar-feature__title {
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-1);
  margin: 0 0 16px;
}

.sidebar-feature__list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sidebar-feature__item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.45;
}

.sidebar-feature__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--accent-soft);
  border: 1px solid rgba(37,87,247,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.sidebar-feature__icon svg {
  width: 10px;
  height: 10px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-feature__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  padding: 11px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  transition: background 0.18s, transform 0.15s;
  text-align: center;
}
.sidebar-feature__btn:hover { background: var(--accent-h); transform: translateY(-1px); }

/* Stat grid */
.sidebar-stat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sidebar-stat__item {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 12px 12px;
}

.sidebar-stat__number {
  font-family: 'Lora', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}

.sidebar-stat__label {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.35;
}

/* Quote card */
.sidebar-quote {
  background: var(--text-1);
  border-color: transparent;
}

.sidebar-quote__text {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin: 0 0 14px;
}

.sidebar-quote__author {
  font-size: 12px;
  color: rgba(255,255,255,0.42);
  font-weight: 500;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .blog-container {
    grid-template-columns: 1fr;
    max-width: var(--col);
  }
  .post-sidebar {
    grid-column: 1;
    grid-row: auto;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sidebar-card { flex: 1 1 240px; }
}

@media (max-width: 760px) {
  .blog-container {
    margin-top: calc(var(--navbar) + 2rem);
    padding: 0 18px 56px;
    display: block;
  }
  .post-title { font-size: 28px; }
  .post-sub { font-size: 16px; }
  .post-wrap-content { font-size: 16px; line-height: 1.78; }
  .post-wrap-content h2 { font-size: 21px; margin-top: 38px; }
  .post-wrap-content h3 { font-size: 16px; }
  .post-inline-cta { flex-direction: column; align-items: flex-start; padding: 22px 20px; gap: 14px; }
  .onira-cta { padding: 36px 22px; }
  .onira-cta__title { font-size: 24px; }
  .onira-related__grid { grid-template-columns: 1fr; }
  .post-sidebar { flex-direction: column; margin-top: 40px; }
  .onira-navbar__container { padding: 0 1.25rem; }
  .onira-navbar__cta { font-size: 0.85rem; padding: 0.5rem 1.1rem; }
}

@media (max-width: 420px) {
  .blog-container { padding: 0 14px 44px; }
  .post-title { font-size: 24px; }
  .post-sub { font-size: 15px; }
  .post-wrap-content { font-size: 15.5px; }
  .onira-navbar__logo img { width: 80px; }
  .onira-navbar__container { margin: 0; padding: 0 1rem; }
  .onira-navbar__cta { font-size: 0.75rem; padding: 0.45rem 1rem; }
}