/* Optinex Blog — editorial layout + virtual silo breadcrumbs */
.blog-page {
  padding: 160px 6% 100px;
  background: #060606;
  min-height: 100vh;
  position: relative;
}

.blog-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(191, 161, 129, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(191, 161, 129, 0.01) 1px, transparent 1px);
  background-size: 120px 120px;
  z-index: 1;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 0%, transparent 100%);
}

.blog-container {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.blog-container--wide {
  max-width: 1100px;
}

.blog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 30px;
}

.blog-breadcrumb a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-breadcrumb a:hover {
  color: var(--gold);
}

.blog-breadcrumb .sep {
  font-size: 8px;
  color: rgba(191, 161, 129, 0.4);
}

.blog-breadcrumb [aria-current="page"] {
  color: rgba(255, 255, 255, 0.75);
}

.blog-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 25px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.blog-eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--gold);
}

.blog-hero {
  padding: 20px 0 50px;
  border-bottom: 1px solid rgba(191, 161, 129, 0.1);
  margin-bottom: 50px;
}

.blog-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 30px;
}

.blog-title em {
  color: var(--gold);
  font-style: italic;
}

.blog-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.blog-meta-item strong {
  color: rgba(255, 255, 255, 0.85);
}

.blog-meta-divider {
  width: 1px;
  height: 14px;
  background: rgba(191, 161, 129, 0.25);
  align-self: center;
}

.blog-body {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.75;
}

.blog-body h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--white);
  margin: 48px 0 20px;
}

.blog-body h3 {
  font-size: 20px;
  color: var(--white);
  margin: 32px 0 16px;
}

.blog-body p {
  margin-bottom: 1.25em;
}

.blog-body p strong {
  color: var(--white);
}

.blog-body ul,
.blog-body ol {
  margin: 1.25em 0 1.5em 1.25em;
}

.blog-body li {
  margin-bottom: 0.5em;
}

.blog-body blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 24px;
  margin: 2em 0;
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
}

.blog-body p.lead {
  font-size: 1.2em;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
}

.blog-body mark {
  background: rgba(191, 161, 129, 0.25);
  color: inherit;
  padding: 0 0.15em;
}

.blog-body .table-wrap {
  overflow-x: auto;
  margin: 2em 0;
  -webkit-overflow-scrolling: touch;
}

.blog-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}

.blog-body th,
.blog-body td {
  border: 1px solid rgba(191, 161, 129, 0.2);
  padding: 12px 14px;
  text-align: left;
}

.blog-body th {
  background: rgba(191, 161, 129, 0.1);
  color: var(--white);
}

.blog-body caption {
  caption-side: bottom;
  padding-top: 10px;
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.5);
}

.blog-body .blog-figure {
  margin: 2em 0;
}

.blog-body .blog-figure img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.blog-body figcaption,
.blog-body .figure-credit {
  display: block;
  margin-top: 10px;
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.5);
}

.blog-body .code-block pre {
  background: #111;
  border: 1px solid rgba(191, 161, 129, 0.15);
  border-radius: 8px;
  padding: 1.25em;
  overflow-x: auto;
  font-size: 0.9em;
}

.blog-body .blog-embed .embed-ratio {
  position: relative;
  aspect-ratio: var(--aspect, 16 / 9);
  background: #111;
  border-radius: 8px;
  overflow: hidden;
}

.blog-body .blog-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.blog-body hr.divider-gold {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 3em 0;
}

.blog-body .divider-spacer {
  height: 3rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.blog-card {
  border: 1px solid rgba(191, 161, 129, 0.12);
  border-radius: 12px;
  padding: 28px;
  background: linear-gradient(160deg, rgba(28, 28, 28, 0.9) 0%, rgba(12, 12, 12, 0.95) 100%);
  transition: border-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  display: block;
}

.blog-card:hover {
  border-color: rgba(191, 161, 129, 0.4);
  transform: translateY(-2px);
}

.blog-card__cat {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.blog-card__title {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-card__excerpt {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

.blog-card__meta {
  margin-top: 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.blog-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 8px;
}

.blog-pill {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid rgba(191, 161, 129, 0.25);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-pill:hover,
.blog-pill.is-active {
  border-color: var(--gold);
  color: var(--gold);
}

@media (max-width: 768px) {
  .blog-page {
    padding-top: 120px;
  }
  .blog-meta-divider {
    display: none;
  }
}
