/* Enforce Close O Matic header font weight */
.main-header .navigation > li > a,
.main-header .navigation li a {
  font-weight: 800; /* or 700 if your main site uses bold */
}

.main-header.fixed-header .navigation > li > a,
.main-header.fixed-header .navigation li a {
  font-weight: 400 !important;
}

/* === Blog Card Layout Fixes (Quadruple Decker Cheese Edition) === */

.bricklayer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.card-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.card-body {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4; /* Show 4 lines of summary text */
  overflow: hidden;
  min-height: 6.6em; /* keeps the cards uniform */
  line-height: 1.65;
}

.card-title a,
.card-title h5,
.card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* limit to 2 lines */
  overflow: hidden;
}

@media (max-width: 768px) {
  .bricklayer {
    grid-template-columns: 1fr;
  }
  .card-image img {
    height: 220px;
  }
}

/* === Category Page Layout Enhancements (Cheese Refinement v2) === */

/* Adds vertical spacing below hero area (even if class differs) */
#body-wrapper.section,
.section.blog-listing,
.blog-listing.section {
  padding-top: 60px;
  padding-bottom: 90px;
}

/* Adds breathing room between top content (category heading/summary) and cards */
.category-hero,
.content-title,
.category-description,
.taxonomy-content {
  margin-bottom: 50px;
}

/* Ensures category card grid matches home */
.bricklayer {
  margin-top: 40px;
  gap: 32px;
}

/* === Nuclear Override: Fix hero image width on article + category pages === */
.category-hero img[style] {
    max-width: 820px !important;     /* contained width */
    width: 100% !important;          /* responsive */
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}

/* === Omni Rocket Author Box === */

.author-box {
    margin-top: 60px;
    padding: 30px;
    background: #f8f9fb;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.author-box-inner {
    display: flex;
    align-items: center;
    gap: 25px;
}

.author-rocket-img {
    width: 120px;
    height: auto;
    border-radius: 12px;
}

.author-text h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
}

.author-text p {
    margin-top: 8px;
    font-size: 1.05rem;
    line-height: 1.55;
    color: #444;
}

/* === PREMIUM Related Articles Section === */

.article-related-premium {
    margin-top: 50px;
    padding: 35px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f6fb 100%);
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.article-related-premium .related-title {
    margin: 0 0 25px 0;
    font-size: 1.45rem;
    font-weight: 800;
    color: #2A2E41;
    text-align: left;
}

/* Card grid layout */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

/* Each card */
.related-card {
    display: block;
    text-decoration: none;
    background: #ffffff;
    border-radius: 14px;
    padding: 22px;
    border: 1px solid rgba(0,0,0,0.07);
    transition: all 0.25s ease;
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    border-color: rgba(82,116,206,0.45); /* COM blue accent */
}

.related-card-inner {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.related-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.related-card h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #2A2E41;
    line-height: 1.35;
}

/* Footer links */
.related-footer-links {
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.related-footer-links a {
    text-decoration: none;
    font-weight: 600;
    color: #5274CE;
    font-size: 1rem;
}

.related-footer-links a:hover {
    text-decoration: underline;
}

/* === Custom Comment Section Styles === */
.comments-section {
    margin-top: 50px;
    padding: 25px;
    background: #f8f9fb;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.comments-section h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.comment {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.comment .author {
    font-weight: bold;
}

.comment .content {
    margin-top: 10px;
}

/* === h1 like h3 === */
h1 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}

#breadcrumbs {
  font-size: 16px;
  text-align: center;
}