/* =========================
   SiteAuditLint Blog
   ========================= */

.blog-hero {
  padding: 100px 0 80px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.blog-eyebrow,
.article-category,
.blog-section-heading {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #FF3737;
}

.blog-hero h1 {
  max-width: 900px;
  margin: 18px 0 22px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: .98;
  letter-spacing: -.045em;
}

.blog-hero p {
  max-width: 760px;
  margin: 0;
  font-size: 20px;
  line-height: 1.65;
  opacity: .78;
}

.blog-section {
  padding: 70px 0 110px;
}

.blog-section-heading {
  margin-bottom: 30px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.blog-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
  transition: transform .2s ease, border-color .2s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(254,217,0,.45);
}

.blog-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255,255,255,.04);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 30px;
}

.blog-card-category {
  margin-bottom: 13px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #FED900;
}

.blog-card h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.blog-card h2 a {
  color: inherit;
  text-decoration: none;
}

.blog-card p {
  margin: 17px 0 20px;
  line-height: 1.65;
  opacity: .72;
}

.blog-card-meta {
  margin-bottom: 22px;
  font-size: 13px;
  opacity: .55;
}

.blog-read {
  color: #FED900;
  font-weight: 700;
  text-decoration: none;
}

.blog-read:hover {
  text-decoration: underline;
}


/* =========================
   Article
   ========================= */

.article-header {
  padding: 90px 0 65px;
}

.article-wrap {
  max-width: 1100px;
}

.article-category {
  margin-bottom: 18px;
}

.article-header h1 {
  max-width: 950px;
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.article-excerpt {
  max-width: 850px;
  margin: 28px 0 22px;
  font-size: 20px;
  line-height: 1.65;
  opacity: .75;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  opacity: .55;
}

.article-featured {
  margin: 0 0 70px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255,255,255,.04);
}

.article-featured img {
  display: block;
  width: 100%;
  height: auto;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 260px;
  gap: 80px;
  align-items: start;
  padding-bottom: 110px;
}

.article-content {
  min-width: 0;
  font-size: 18px;
  line-height: 1.8;
}

.article-content > * {
  margin-top: 0;
  margin-bottom: 1.35em;
}

.article-content h2 {
  margin-top: 2em;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.article-content h3 {
  margin-top: 1.8em;
  font-size: 25px;
  line-height: 1.3;
}

.article-content p {
  opacity: .88;
}

.article-content a {
  color: #FED900;
}

.article-content strong {
  font-weight: 700;
}

.article-content ul,
.article-content ol {
  padding-left: 1.5em;
}

.article-content li {
  margin-bottom: .55em;
}

.article-content blockquote {
  margin: 35px 0;
  padding: 20px 25px;
  border-left: 4px solid #FED900;
  background: rgba(254,217,0,.05);
}

.article-content pre {
  overflow-x: auto;
  padding: 22px;
  border-radius: 12px;
  background: #111;
}

.article-content code {
  font-family: "JetBrains Mono", monospace;
}

.article-content :not(pre) > code {
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(255,255,255,.08);
  font-size: .9em;
}

.article-image {
  margin: 40px 0;
}

.article-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.article-image figcaption {
  margin-top: 9px;
  font-size: 13px;
  opacity: .5;
}

.article-sidebar {
  position: sticky;
  top: 30px;
}

.sidebar-box {
  padding: 25px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
}

.sidebar-label {
  margin-bottom: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #FED900;
}

.sidebar-box strong {
  display: block;
  line-height: 1.35;
}

.sidebar-box p {
  margin: 14px 0 20px;
  font-size: 14px;
  line-height: 1.6;
  opacity: .65;
}

.sidebar-box .btn {
  display: inline-flex;
}


/* =========================
   Mobile
   ========================= */

@media (max-width: 900px) {

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

  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .article-sidebar {
    position: static;
  }

}

@media (max-width: 700px) {

  .blog-hero {
    padding: 65px 0 55px;
  }

  .blog-section {
    padding: 50px 0 80px;
  }

  .blog-card-body {
    padding: 24px;
  }

  .article-header {
    padding: 60px 0 45px;
  }

  .article-header h1 {
    font-size: 42px;
  }

  .article-excerpt {
    font-size: 17px;
  }

  .article-content {
    font-size: 17px;
  }

  .article-featured {
    margin-bottom: 45px;
    border-radius: 12px;
  }

}

/* Blog content links */
.blog-card h2 a,
.blog-card .read-more,
.article-content a:not(.btn),
.article-sidebar a:not(.btn) {
  color: #FF3737;
  text-decoration-color: rgba(255, 55, 55, 0.45);
  text-underline-offset: 3px;
}

.blog-card h2 a:hover,
.blog-card .read-more:hover,
.article-content a:not(.btn):hover,
.article-sidebar a:not(.btn):hover {
  color: #FF3737;
  text-decoration-color: #FF3737;
}

/* Article body links */
.article-content p a:not(.btn),
.article-content li a:not(.btn) {
  color: #FF3737;
  font-weight: 600;
}

.article-content p a:not(.btn):hover,
.article-content li a:not(.btn):hover {
  color: #FF3737;
}

/* Article sidebar */
.article-sidebar .sidebar-box {
  color: #111827 !important;
  background: #FFFFFF;
}

.article-sidebar .sidebar-label {
  color: #FF3737 !important;
}

.article-sidebar .sidebar-box strong {
  display: block;
  color: #111827 !important;
}

.article-sidebar .sidebar-box p {
  color: #111827 !important;
}

.article-sidebar .sidebar-box a.btn,
.article-sidebar .sidebar-box a.btn:hover {
  color: #FFFFFF !important;
  text-decoration: none !important;
}

.blog-card img,
.blog-card-image,
.blog-card-thumb,
.blog-card-media {
  display: none !important;
}

.blog-card-category {
  color: #FF3737 !important;
}

.blog-read {
  color: #FF3737 !important;
  text-decoration: none !important;
}

.blog-read:hover {
  color: #FF3737 !important;
  text-decoration: underline !important;
}

.blog-card h2 a {
  color: #111827 !important;
}

.blog-card h2 a:hover {
  color: #FF3737 !important;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
  overflow: hidden;
}

.article-table th,
.article-table td {
  border: 1px solid #e5e7eb;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.article-table th {
  font-weight: 700;
  background: #f3f4f6;
}

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

@media (max-width: 700px) {
  .article-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* =========================================================
   ARTICLE META
   ========================================================= */

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  margin-bottom: 28px;
  font-size: 14px;
  line-height: 1.5;
  color: #737373;
}

.article-author {
  font-weight: 500;
}

.article-date {
  color: #8a8a8a;
}

.article-date::before {
  content: "•";
  margin-right: 8px;
  color: #b0b0b0;
}


/* =========================================================
   AI OVERVIEW
   ========================================================= */

.article-overview {
  position: relative;
  margin-top: 30px;
  padding: 22px 24px 24px;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #FF3737;
  border-radius: 10px;
  background: #fafafa;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.article-overview-label {
  margin-bottom: 9px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #FF3737;
}

.article-overview p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: #303030;
}


/* =========================================================
   RELATED ARTICLES
   ========================================================= */

.related-articles {
  margin-top: 80px;
  padding-top: 50px;
  border-top: 1px solid #e5e7eb;
}

.related-articles-heading {
  margin-bottom: 28px;
}

.related-articles-eyebrow {
  margin-bottom: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #FF3737;
}

.related-articles-heading h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
  color: #18181b;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.related-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  border-color: #d4d4d8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.related-card-category {
  margin-bottom: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FF3737;
}

.related-card h3 {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 700;
}

.related-card h3 a {
  color: #18181b;
  text-decoration: none;
}

.related-card h3 a:hover {
  color: #FF3737;
}

.related-card p {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.65;
  color: #666666;
}

.related-card-link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
  color: #FF3737;
  text-decoration: none;
}

.related-card-link:hover {
  text-decoration: underline;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

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

}


@media (max-width: 700px) {
/* =========================================================
   ARTICLE HERO
   ========================================================= */

.article-hero {
  padding-top: 58px;
  padding-bottom: 34px;
}

.article-category {
  margin-bottom: 22px;

  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  color: #FF3737;
}

.article-hero h1 {
  margin: 0;

  max-width: 1050px;

  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 800;

  color: #18181b;
}


/* =========================================================
   ARTICLE META
   ========================================================= */

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 8px;

  margin-top: 28px;
  margin-bottom: 40px;

  font-size: 14px;
  line-height: 1.5;

  color: #737373;
}

.article-author {
  font-weight: 500;
}

.article-date {
  color: #8a8a8a;
}

.article-date::before {
  content: "•";

  margin-right: 8px;

  color: #b8b8b8;
}


/* =========================================================
   AI OVERVIEW
   ========================================================= */

.article-overview {
  position: relative;

  margin-top: 0;
  margin-bottom: 48px;

  padding: 27px 30px 29px 32px;

  border: 1px solid #e2e4e8;
  border-left: 5px solid #FF3737;

  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      #fffafa 0%,
      #fafafa 55%,
      #f7f7f8 100%
    );

  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.055);

  overflow: hidden;
}


/*
 * Subtle AI-style glow in the upper-right corner.
 */

.article-overview::after {
  content: "";

  position: absolute;

  top: -70px;
  right: -70px;

  width: 170px;
  height: 170px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(255, 55, 55, 0.10) 0%,
      rgba(255, 55, 55, 0.04) 40%,
      transparent 70%
    );

  pointer-events: none;
}


/*
 * AI OVERVIEW label
 */

.article-overview-label {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;

  margin-bottom: 13px;

  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;

  letter-spacing: 0.14em;
  text-transform: uppercase;

  color: #FF3737;
}


/*
 * Small AI indicator.
 */

.article-overview-label::before {
  content: "✦";

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 20px;
  height: 20px;

  margin-right: 8px;

  border-radius: 50%;

  background: #FF3737;

  color: #FFFFFF;

  font-family: Arial, sans-serif;
  font-size: 11px;
  line-height: 1;
}


/*
 * Overview text
 */

.article-overview p {
  position: relative;
  z-index: 1;

  max-width: 920px;

  margin: 0;

  font-size: 17px;
  line-height: 1.7;

  color: #33363b;
}


/* =========================================================
   ARTICLE CONTENT
   ========================================================= */

.article-content {
  line-height: 1.75;
}

.article-content > p:first-child {
  margin-top: 0;
}

.article-content p {
  margin-top: 0;
  margin-bottom: 27px;
}

.article-content h2 {
  margin-top: 56px;
  margin-bottom: 21px;

  line-height: 1.2;
}

.article-content h3 {
  margin-top: 44px;
  margin-bottom: 17px;

  line-height: 1.25;
}


/* =========================================================
   ARTICLE LAYOUT
   ========================================================= */

.article-layout {
  align-items: start;
}

.article-sidebar {
  padding-top: 5px;
}


/* =========================================================
   RELATED ARTICLES
   ========================================================= */

.related-articles {
  margin-top: 85px;
  padding-top: 52px;

  border-top: 1px solid #e5e7eb;
}

.related-articles-heading {
  margin-bottom: 30px;
}

.related-articles-eyebrow {
  margin-bottom: 9px;

  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;

  color: #FF3737;
}

.related-articles-heading h2 {
  margin: 0;

  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;

  color: #18181b;
}

.related-articles-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 20px;
}

.related-card {
  display: flex;
  flex-direction: column;

  min-width: 0;

  padding: 24px;

  border: 1px solid #e5e7eb;
  border-radius: 12px;

  background: #ffffff;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.related-card:hover {
  transform: translateY(-2px);

  border-color: #d4d4d8;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.06);
}

.related-card-category {
  margin-bottom: 12px;

  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  color: #FF3737;
}

.related-card h3 {
  margin: 0 0 12px;

  font-size: 19px;
  line-height: 1.35;
  font-weight: 700;
}

.related-card h3 a {
  color: #18181b;
  text-decoration: none;
}

.related-card h3 a:hover {
  color: #FF3737;
}

.related-card p {
  margin: 0 0 20px;

  font-size: 14px;
  line-height: 1.65;

  color: #666666;
}

.related-card-link {
  margin-top: auto;

  font-size: 14px;
  font-weight: 700;

  color: #FF3737;

  text-decoration: none;
}

.related-card-link:hover {
  text-decoration: underline;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

  .article-hero {
    padding-top: 42px;
  }

  .article-hero h1 {
    font-size: clamp(38px, 8vw, 52px);
  }

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

}


@media (max-width: 700px) {

  .article-hero {
    padding-top: 34px;
    padding-bottom: 26px;
  }

  .article-category {
    margin-bottom: 17px;
  }

  .article-hero h1 {
    font-size: 38px;
    line-height: 1.08;
  }

  .article-meta {
    margin-top: 22px;
    margin-bottom: 32px;
  }

  .article-overview {
    margin-bottom: 38px;

    padding: 22px 20px 23px 22px;

    border-left-width: 4px;
    border-radius: 11px;
  }

  .article-overview p {
    font-size: 16px;
    line-height: 1.65;
  }

  .related-articles {
    margin-top: 60px;
    padding-top: 38px;
  }

  .related-articles-heading h2 {
    font-size: 26px;
  }

  .related-card {
    padding: 20px;
  }

}