/* ============================================================
   FORNAX BLOG PAGE STYLES
   ============================================================ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.fornax-blog {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0d0906;
  color: #e8ddd4;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.fornax-blog h1,
body.fornax-blog h2,
body.fornax-blog h3,
body.fornax-blog h4 {
  font-family: 'Outfit', sans-serif;
}

/* ─── Navbar ─── */
.blog-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 9, 6, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 165, 80, 0.1);
  padding: 12px 0;
}

.blog-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-nav-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.blog-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.blog-nav-links a {
  color: #c4b5a8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}

.blog-nav-links a:hover {
  color: #ff8c42;
}

.blog-nav-cta {
  background: linear-gradient(135deg, #ff8c42, #e0682a);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: transform 0.2s, box-shadow 0.3s;
}

.blog-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 140, 66, 0.3);
}

/* ─── Blog Hero ─── */
.blog-hero {
  position: relative;
  padding: 80px 24px 60px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 140, 66, 0.06) 0%, transparent 100%);
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 140, 66, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.blog-hero-breadcrumb {
  font-size: 13px;
  color: #9a8a7a;
  margin-bottom: 20px;
}

.blog-hero-breadcrumb a {
  color: #ff8c42;
  text-decoration: none;
}

.blog-hero-breadcrumb span {
  margin: 0 8px;
}

.blog-hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.blog-hero h1 .accent {
  color: #ff8c42;
  font-style: italic;
}

.blog-hero-subtitle {
  font-size: 17px;
  color: #b0a090;
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.blog-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
  color: #8a7a6a;
}

.blog-hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ─── Blog Content ─── */
.blog-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.blog-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin: 48px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255, 140, 66, 0.2);
}

.blog-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #f0e0d0;
  margin: 32px 0 12px;
}

.blog-content p {
  font-size: 16px;
  color: #c4b5a8;
  margin-bottom: 18px;
}

.blog-content ul, .blog-content ol {
  margin: 16px 0 24px 24px;
  color: #c4b5a8;
}

.blog-content li {
  margin-bottom: 10px;
  font-size: 15px;
}

.blog-content strong {
  color: #f0e0d0;
}

/* ─── Spec Table ─── */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  border-radius: 10px;
  overflow: hidden;
}

.spec-table th {
  background: rgba(255, 140, 66, 0.15);
  color: #ff8c42;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 18px;
  text-align: left;
}

.spec-table td {
  padding: 12px 18px;
  font-size: 14px;
  color: #c4b5a8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

/* ─── Product Cards ─── */
.blog-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 24px 0 32px;
}

.blog-product-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.3s, transform 0.2s;
}

.blog-product-card:hover {
  border-color: rgba(255, 140, 66, 0.3);
  transform: translateY(-3px);
}

.blog-product-card .icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.blog-product-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.blog-product-card p {
  font-size: 13px;
  color: #9a8a7a;
  margin-bottom: 0;
}

/* ─── CTA Section ─── */
.blog-cta {
  background: linear-gradient(135deg, rgba(255, 140, 66, 0.12), rgba(224, 104, 42, 0.08));
  border: 1px solid rgba(255, 140, 66, 0.2);
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  margin: 48px 0;
}

.blog-cta h3 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 12px;
  border: none;
  padding: 0;
}

.blog-cta p {
  font-size: 15px;
  color: #b0a090;
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.blog-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #ff8c42, #e0682a);
  color: #fff;
  padding: 14px 36px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: transform 0.2s, box-shadow 0.3s;
}

.blog-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 140, 66, 0.35);
}

/* ─── FAQ Section ─── */
.blog-faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 12px;
}

.blog-faq-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: #f0e0d0;
  margin-bottom: 8px;
}

.blog-faq-item p {
  font-size: 14px;
  color: #9a8a7a;
  margin: 0;
}

/* ─── Footer ─── */
.blog-footer {
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 24px;
  text-align: center;
}

.blog-footer p {
  font-size: 13px;
  color: #6a5a4a;
}

.blog-footer a {
  color: #ff8c42;
  text-decoration: none;
}

/* ─── Related Links ─── */
.blog-related {
  margin: 40px 0;
}

.blog-related h3 {
  border: none;
  padding: 0;
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.blog-related-grid a {
  display: block;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 14px 16px;
  color: #c4b5a8;
  text-decoration: none;
  font-size: 14px;
  transition: border-color 0.3s, color 0.3s;
}

.blog-related-grid a:hover {
  border-color: rgba(255, 140, 66, 0.3);
  color: #ff8c42;
}

/* ─── Mobile Responsive ─── */
@media (max-width: 768px) {
  .blog-nav-links {
    display: none;
  }

  .blog-hero {
    padding: 50px 20px 40px;
  }

  .blog-hero h1 {
    font-size: 26px;
  }

  .blog-content h2 {
    font-size: 22px;
  }

  .blog-products {
    grid-template-columns: 1fr;
  }

  .blog-cta {
    padding: 32px 20px;
  }

  .blog-related-grid {
    grid-template-columns: 1fr 1fr;
  }

  .spec-table {
    font-size: 13px;
  }

  .spec-table th, .spec-table td {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .blog-related-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   BLOG HUB (DIRECTORY) PAGE
   ============================================================ */
.hub-content {
  max-width: 1100px;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0 48px;
}

.hub-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 20px 22px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1),
              border-color 0.3s ease, background 0.3s ease,
              box-shadow 0.3s ease;
}

.hub-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right,
    rgba(255, 140, 66, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.hub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 140, 66, 0.35);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

.hub-card:hover::before {
  opacity: 1;
}

.hub-card-flag {
  font-size: 22px;
  line-height: 1;
}

.hub-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #f0e0d0;
  line-height: 1.4;
}

.hub-card-sub {
  font-size: 12px;
  color: #9a8a7a;
  font-weight: 500;
}

/* Lightweight reveal for hub cards */
@media (prefers-reduced-motion: no-preference) {
  .hub-card {
    opacity: 0;
    transform: translateY(16px);
    animation: hubReveal 0.6s cubic-bezier(0.16,1,0.3,1) forwards;
  }
  .hub-grid .hub-card:nth-child(1) { animation-delay: 0.02s; }
  .hub-grid .hub-card:nth-child(2) { animation-delay: 0.05s; }
  .hub-grid .hub-card:nth-child(3) { animation-delay: 0.08s; }
  .hub-grid .hub-card:nth-child(4) { animation-delay: 0.11s; }
  .hub-grid .hub-card:nth-child(5) { animation-delay: 0.14s; }
  .hub-grid .hub-card:nth-child(6) { animation-delay: 0.17s; }
  .hub-grid .hub-card:nth-child(n+7) { animation-delay: 0.2s; }
}

@keyframes hubReveal {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .hub-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .hub-card {
    padding: 14px 14px;
  }
  .hub-card-title {
    font-size: 13px;
  }
}

