/* Grid Layout for Article Index */
.article-grid {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 60px;
  flex-wrap: wrap;
}

.article-list-banner-wrap {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.article-list {
  flex: 0 0 800px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.article-list-item {
  display: flex;
  gap: 20px;
  text-decoration: none;
  background: #1a1a1a;
  padding: 15px;
  border-radius: 6px;
  color: #fff;
}

.article-list-item:hover {
  background: #2a2a2a;
}

.article-list-item img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
}
/* ======================================
   ARTICLE IMAGES
====================================== */

.article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 8px;
}
/* ======================================
   RESPONSIVE YOUTUBE
====================================== */

.video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 35px auto;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.article-list-text h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.article-list-text p {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 4px;
}

.article-list-text .updated-date {
  font-size: 12px;
  color: #777;
}

.article-banner {
  flex: 0 0 400px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  color: #fff;
  text-decoration: none;
  width: 100%;
  max-width: 370px;
  border-radius: 8px;
  overflow: hidden;
  transition: background 0.2s;
}

.article-card:hover {
  background: #2a2a2a;
}

.article-img {
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  background-size: cover;
  background-position: center;
}
.article-meta {
  padding: 15px;
}
.article-meta h2 {
  font-size: 18px;
  margin: 0 0 10px;
}
.article-meta .updated-date {
  font-size: 12px;
  color: #777;
}
.article-meta .desc {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 8px;
}
.updated-date {
  font-size: 12px;
  color: #888;
}
@media (max-width: 767px) {
  .article-grid {
    flex-direction: column;
    align-items: center;
  }

  .article-columns {
    flex-direction: column;
  }

  .article-left,
  .article-banner {
    flex: 1 1 100%;
    width: 100%;
  }

  .article-banner {
    position: static;
    margin-top: 30px;
  }

  .article-card {
    max-width: 100%;
  }
}
/* 800/400 Column Layout */
.article-columns {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.article-left {
  flex: 0 0 800px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.article-banner {
  flex: 0 0 400px;
  position: sticky;
  top: 100px;
  height: fit-content;
}
.compare-link {
  display: inline-block;
  padding: 6px 12px;
  background: #333;
  color: #fff;
  border-radius: 5px;
  margin: 12px 0;
  text-decoration: none;
}

/* Article Layout Container */
.articles-container {
  max-width: 1160px; /* 820 body + 300 sidebar + ~gap */
  margin: 0 auto;
  display: flex;
  gap: 20px;
  padding: 20px;
  flex-wrap: nowrap; /* keep sidebar on the side on desktop */
}

/* Main Content Area */
/* Main Content Area */
.articles-body {
  flex: 1 1 0;
  max-width: 820px;
  font-family: "Arial", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  padding: 25px;
  background-color: #222;
  color: #f0f0f0;
  border-radius: 8px;
}
.article-body h2,
.article-body h3,
.article-body h4 {
  margin-top: 25px;
  color: #fff;
}
.article-body p {
  margin-bottom: 16px;
  font-size: 18px;
  line-height: 1.6;
}
.article-date {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 10px;
}
.hero-img {
  width: 100%;
  max-width: 800px;
  margin: 20px 0;
  border-radius: 6px;
}

/* Sidebar */
.articles-sidebar {
  flex: 0 0 300px;
  max-width: 400px;
  padding: 20px;
  background: #1a1a1a;
  border-radius: 8px;
  color: #ccc;
  text-align: center;
}
.articles-sidebar iframe,
.articles-sidebar img {
  display: block;
  margin: 0 auto;
}
/* Link styling inside article body */
.articles-body a:not(.buy-button) {
  color: #7fd1ff;         /* readable on dark background */
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 209, 255, 0.35);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.articles-body a:not(.buy-button):hover {
  color: #b3e5ff;
  border-bottom-color: rgba(179, 229, 255, 0.8);
}

.articles-body a:visited:not(.buy-button) {
  color: #a8c9ff;         /* subtle visited color */
}
/* Link styling inside article body */
.articles-body a.cm-link {
  color: #7fd1ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 209, 255, 0.35);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.articles-body a.cm-link:hover {
  color: #b3e5ff;
  border-bottom-color: rgba(179, 229, 255, 0.8);
}
.articles-body a.cm-link:visited {
  color: #a8c9ff;
}
/* Brand Link Box */
.brand-links {
  margin: 20px 0;
  background: #f6f6f6;
  padding: 15px;
  border-radius: 8px;
}
.brand-links h4 {
  margin-bottom: 10px;
}
.brand-links ul {
  list-style: none;
  padding: 0;
}
.brand-links li {
  margin-bottom: 6px;
}

/* Embedded Product Block */
.product-block {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #333;
}
.product-block img.thumb {
  width: 100px;
  height: auto;
  border-radius: 4px;
}
.product-info h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.product-info p {
  margin: 0 0 10px;
  color: #ffffff;
}
.buy-button {
  display: inline-block;
  background: #2e7d32;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}
.buy-button:hover {
  background: #1b5e20;
}
.product-title { font-size: 1.1rem; margin: 0 0 8px; }
/* Responsive Layout */
@media (max-width: 1024px) {
  .articles-container {
    max-width: 100%;
    padding: 16px;
    gap: 16px;
  }
  .articles-body {
    max-width: 100%;
  }
}
/* Responsive Layout */
@media (max-width: 768px) {
  .articles-container {
    flex-direction: column;
  }
  .article-body {
    padding: 20px;
  }
  .articles-sidebar {
    display: none;
  }
  .product-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .product-block img.thumb {
    max-width: 80%;
  }
}
.articles-sidebar {
  flex: 0 0 300px;
  max-width: 400px;
  padding: 20px;
  background: #1a1a1a;
  border-radius: 8px;
  text-align: center;
  color: #ccc;
}

.responsive-banner {
  margin-bottom: 20px;
  max-width: 160px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .articles-sidebar {
    display: none;
  }
}
.brand-card-mini {
  margin: 20px 0;
  background: #222;
  padding: 15px;
  border-radius: 8px;
  color: #f0f0f0;
}
/* Headings inside brand cards */
.brand-card-mini h4 {
  margin-bottom: 12px;
  font-size: 18px;
  color: #fff;
}
.brand-card-mini ul {
  list-style: none;
  padding: 0;
  margin-bottom: 12px;
}

.brand-card-mini ul li {
  margin-bottom: 6px;
}
/* Links inside brand mini card */
.brand-card-mini a {
  color: #7fd1ff;               /* The same accent color you use for article links */
  text-decoration: none;        /* No underline */
  border-bottom: none;          /* Ensure no border from other rules */
  transition: color 0.2s ease;
}

.brand-card-mini a:hover {
  color: #b3e5ff;               /* Lighter hover color */
}

/* Social icons row */
.brand-social-icons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.brand-social-icons img {
  width: 26px;
  height: 26px;
  display: block;
  transition: opacity 0.2s ease;
}

.brand-social-icons a:hover img {
  opacity: 0.75;
}
/* Pattern thumbnails row */
.pattern-thumbs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 15px;
}

/* Each pattern block */
.pattern-thumb {
  width: 75px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pattern-thumb img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pattern-label {
  font-size: 13px;
  margin-top: 4px;
  color: #ddd;
}

/* Hover effect */
.pattern-thumb:hover img {
  transform: scale(1.05);
  box-shadow: 0 0 6px rgba(127, 209, 255, 0.6); /* matches your accent blue */
}
.article-mini-sep {
  margin: 40px 0 20px;
  border: none;
  border-top: 1px solid #333;
}

.article-mini-wrap {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.article-mini-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: #1a1a1a;
  padding: 10px;
  border-radius: 4px;
  color: #fff;
  transition: background 0.2s;
  width: 160px;
}

.article-mini-card:hover {
  background: #2a2a2a;
}

.article-mini-card img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 6px;
}

.article-mini-card p {
  font-size: 13px;
  text-align: center;
  line-height: 1.2;
}
.breadcrumb {
  font-size: 14px;
  margin: 15px 0 25px;
  color: #bbb;
}

.breadcrumb a {
  color: #ddd;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: #888;
}
.article-header {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 0 15px; /* keeps safe gutters on small screens */
  text-align: left; /* if you want it centered; switch to left if preferred */
}

.article-header .breadcrumb {
  font-size: 14px;
  margin-bottom: 12px;
  color: #bbb;
}
.article-header .breadcrumb a { color: #ddd; text-decoration: none; }
.article-header .breadcrumb a:hover { text-decoration: underline; }

.article-header .intro {
  margin-bottom: 30px;
  font-size: 16px;
  color: #ccc;
}
.cm-divider { border-top: 1px solid #333; margin: 24px 0; }
.tldr { color:#ddd; margin-bottom: 10px; }
.jump-link { font-size:14px; color:#9ad; text-decoration:none; }
.jump-link:hover { text-decoration:underline; }

.tldr-block { background:#1a1a1a; border-radius:6px; padding:10px 14px; }
.tldr-block > summary { cursor:pointer; color:#ddd; font-weight:600; }
.tldr-block[open] { background:#222; }
/* ============================= */
/* ===== Article Series ======== */
/* ============================= */

/* Series Hero */
.series-hero {
  margin-bottom: 30px;
  text-align: center;
}

.series-hero-img {
  width: 100%;
  max-width: 760px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}

.series-hero-caption {
  font-size: 0.9rem;
  color: #aaa;
  margin-top: 10px;
}

/* Series Header */
.series-header {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.series-header h1 {
  margin-bottom: 15px;
}

.series-intro {
  font-size: 1.1rem;
}

/* Credentials Grid */
.series-credentials {
  max-width: 1000px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  text-align: center;
}

.cred-item {
  padding: 20px 10px;
  border-top: 2px solid #333;
}

.cred-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 600;
}

.cred-label {
  font-size: 0.85rem;
  color: #aaa;
}

/* Series Content */
.series-content {
  margin-top: 40px;
  line-height: 1.7;
}

.series-content h2 {
  margin-top: 40px;
  font-size: 1.5rem;
}

.series-content ul {
  margin: 15px 0 20px 20px;
}

.series-content hr {
  margin: 40px 0;
  border: none;
  border-top: 1px solid #333;
}

/* Series Navigation List */
.series-mini-list {
  margin: 10px 0 15px;
  padding-left: 20px;
  font-size: 14px;
  color: #ccc;
}

.series-mini-list li {
  margin-bottom: 4px;
}

.series-mini-list li a {
  color: #7fd1ff;
  text-decoration: none;
}

.series-mini-list li.current-series-item {
  color: #fff;
}
/* Eddie Claypool Series Sidebar Feature */
/* Eddie Claypool Series Sidebar Feature */
.series-feature {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 25px;
}

.series-feature img {
  width: 100%;
  height: auto;
  display: block;
}

.series-content {
  padding: 18px;
  color: #ddd;
}

.series-content h3 {
  margin-top: 0;
  font-size: 17px;
  color: #fff;
}

.series-content p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.series-button {
  display: inline-block;
  padding: 8px 14px;
  background: #2f6b2f;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
}

.series-button:hover {
  background: #3c8a3c;
}
/* Series inline photo blocks */
.series-photo {
  margin: 34px 0;
}

.series-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.series-photo figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: #cfcfcf; /* works on your dark theme */
  opacity: 0.95;
}
.article-patterns-section{
    margin-top:40px;
}

.article-patterns-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
    gap:12px;
}

.article-pattern-card{
    display:block;
    background:#f5f5f5;
    border-radius:6px;
    padding:12px;
    text-decoration:none;
    color:#222;
    transition:all .15s ease;
}

.article-pattern-card:hover{
    background:#e9e9e9;
}

.article-pattern-name{
    font-weight:600;
}

.article-pattern-brand{
    font-size:13px;
    color:#666;
}
.article-patterns-section{
    margin-top:40px;
}

.article-patterns-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
    gap:12px;
}

.article-pattern-card{
    display:block;
    background:#f5f5f5;
    border-radius:6px;
    padding:12px;
    text-decoration:none;
    color:#222;
    transition:all .15s ease;
}

.article-pattern-card:hover{
    background:#e9e9e9;
}

.article-pattern-name{
    font-weight:600;
}

.article-pattern-brand{
    font-size:13px;
    color:#666;
}
.lab-shortcode-block {
  text-align: center;
  margin: 20px 0;
}

.lab-cta-button {
  display: inline-block;
  background: #c62828;
  color: #fff;
  padding: 14px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.lab-cta-button:hover {
  background: #b71c1c;
}