/* ==========================================================================
   IP Innominds — Blog
   Uses the same palette, type and components as the rest of the site
   (products/about/faq heroes, section labels, cards, CTA band).
   ========================================================================== */

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

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #1a1a2e;
  background: #ffffff;
}

a { color: #0057c2; }

/* ===== HERO ===== */
.blog-hero {
  background: linear-gradient(135deg, #0a2e6e 0%, #0057c2 100%);
  padding: 140px 60px 80px;
  color: #ffffff;
  text-align: center;
}

.blog-hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7ecce8;
  margin-bottom: 16px;
}

.blog-hero h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 900px;
  margin: 0 auto 18px;
}

.blog-hero h1 span { color: #f5b400; }

.blog-hero p {
  font-size: 19px;
  color: #c8d8f0;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.7;
}

.blog-meta {
  margin-top: 22px;
  font-size: 14px;
  color: #a8c0e0;
}

.blog-meta span + span::before {
  content: "\00B7";
  margin: 0 10px;
}

/* ===== BREADCRUMB ===== */
.blog-breadcrumb {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 30px 0;
  font-size: 14px;
  color: #6b7280;
}

.blog-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.blog-breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #b0c4de; }
.blog-breadcrumb a { color: #0057c2; text-decoration: none; }
.blog-breadcrumb a:hover { text-decoration: underline; }

/* ===== SECTION LABEL (matches products/about) ===== */
.section-label {
  display: inline-block;
  background: #e8f0fe;
  color: #0057c2;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 14px;
}

/* ===== ARTICLE ===== */
.article-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 30px 70px;
}

.article-toc {
  background: #f4f8ff;
  border: 1px solid #d6e4f7;
  border-radius: 12px;
  padding: 22px 26px;
  margin-bottom: 40px;
}

.article-toc-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0057c2;
  margin-bottom: 10px;
}

.article-toc ol { padding-left: 20px; }
.article-toc li { font-size: 15px; line-height: 1.6; padding: 3px 0; }
.article-toc a { text-decoration: none; }
.article-toc a:hover { text-decoration: underline; }

.article-body h2 {
  font-size: 28px;
  color: #0a2e6e;
  line-height: 1.3;
  margin: 46px 0 16px;
  scroll-margin-top: 120px;
}

.article-body h3 {
  font-size: 21px;
  color: #0a2e6e;
  line-height: 1.35;
  margin: 30px 0 12px;
}

.article-body p {
  font-size: 17px;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 18px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-body li {
  font-size: 17px;
  color: #374151;
  line-height: 1.75;
  padding: 3px 0;
}

.article-body a { font-weight: 600; text-decoration: none; }
.article-body a:hover { text-decoration: underline; }

.article-body strong { color: #1a1a2e; }

.article-lead {
  font-size: 19px !important;
  color: #1f2937 !important;
}

/* Screenshots / figures */
.article-figure { margin: 26px 0; }

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #d6e4f7;
}

.article-figure figcaption {
  font-size: 14px;
  color: #6b7280;
  margin-top: 8px;
}

/* Callouts reuse the FAQ ".note" look */
.callout {
  background: #f4f8ff;
  border-left: 4px solid #0057c2;
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin: 26px 0;
}

.callout p:last-child,
.callout ul:last-child { margin-bottom: 0; }

.callout-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0057c2;
  margin-bottom: 8px;
}

.callout.experience {
  background: #effcf9;
  border-left-color: #00bfa5;
}

.callout.experience .callout-title { color: #00897b; }

/* Tables */
.table-scroll { overflow-x: auto; margin: 22px 0 28px; }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 560px;
}

.article-body th,
.article-body td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  line-height: 1.55;
  color: #374151;
}

.article-body th {
  background: #0a2e6e;
  color: #ffffff;
  font-weight: 600;
}

.article-body tr:nth-child(even) td { background: #f8fafc; }

/* FAQ inside articles */
.article-faq h2 {
  font-size: 28px;
  color: #0a2e6e;
  line-height: 1.3;
  margin: 50px 0 18px;
  scroll-margin-top: 120px;
}

.article-faq a { font-weight: 600; text-decoration: none; }

.article-faq details {
  border: 1px solid #d6e4f7;
  border-radius: 10px;
  margin-bottom: 12px;
  background: #ffffff;
}

.article-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 17px;
  color: #0a2e6e;
}

.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary::after { content: "+"; float: right; color: #0057c2; font-weight: 700; }
.article-faq details[open] summary::after { content: "\2212"; }
.article-faq details > p { padding: 0 20px 16px; margin: 0; }

/* Author / about box (E-E-A-T) */
.author-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #f4f8ff;
  border: 1px solid #d6e4f7;
  border-radius: 12px;
  padding: 24px;
  margin-top: 50px;
}

.author-avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #0057c2, #00bfa5);
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-box h2 { font-size: 17px; color: #0a2e6e; margin-bottom: 6px; }
.author-box p { font-size: 15px; color: #4a5568; line-height: 1.7; }

/* Related reading */
.related {
  background: #f4f8ff;
  padding: 70px 30px;
}

.related-inner { max-width: 1100px; margin: 0 auto; }

.related h2 {
  font-size: 30px;
  color: #0a2e6e;
  margin-bottom: 28px;
}

/* ===== POST CARDS (index + related) — mirrors .product-card ===== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.post-card {
  background: #ffffff;
  border: 1px solid #d6e4f7;
  border-radius: 14px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s, transform 0.3s;
}

.post-card:hover {
  box-shadow: 0 12px 36px rgba(0, 91, 187, 0.13);
  transform: translateY(-4px);
}

.post-card .post-type {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #00897b;
  margin-bottom: 10px;
}

.post-card .post-type.pillar { color: #0057c2; }

.post-card h3 {
  font-size: 19px;
  color: #0a2e6e;
  line-height: 1.4;
  margin-bottom: 10px;
}

.post-card p {
  font-size: 15px;
  color: #4a5568;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}

.post-card .post-more {
  font-size: 14px;
  font-weight: 700;
  color: #0057c2;
}

/* ===== BLOG INDEX ===== */
.blog-section {
  padding: 70px 60px;
}

.blog-section:nth-of-type(even) { background: #f4f8ff; }

.blog-section-inner { max-width: 1200px; margin: 0 auto; }

.blog-section h2 {
  font-size: 32px;
  color: #0a2e6e;
  margin-bottom: 12px;
  line-height: 1.25;
}

.blog-section .section-sub {
  font-size: 17px;
  color: #4a5568;
  max-width: 760px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.cluster-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.cluster-links a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #d6e4f7;
  border-radius: 20px;
  padding: 7px 14px;
}

.cluster-links a:hover { border-color: #0057c2; }

/* ===== CTA (matches about.php CTA band) ===== */
.blog-cta {
  background: linear-gradient(135deg, #0057c2 0%, #00bfa5 100%);
  padding: 80px 40px;
  text-align: center;
  color: #ffffff;
}

.blog-cta h2 { font-size: 34px; margin-bottom: 14px; }

.blog-cta p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 620px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.blog-cta-btn {
  display: inline-block;
  background: #ffffff;
  color: #0057c2;
  padding: 15px 36px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.blog-cta-secondary {
  display: block;
  margin-top: 18px;
  font-size: 15px;
  color: #ffffff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .blog-hero { padding: 120px 24px 60px; }
  .blog-hero h1 { font-size: 30px; }
  .blog-hero p { font-size: 17px; }
  .blog-section { padding: 56px 24px; }
  .post-grid { grid-template-columns: 1fr; }
  .article-wrap { padding: 30px 22px 56px; }
  .article-body h2 { font-size: 24px; }
  .author-box { flex-direction: column; }
}
