/* ===== BLOG LAYOUT ===== */

.blog-page {
    padding: 32px 20px 56px;
}




.blog-header {
  max-width: 820px;
  margin: 30px auto 40px;
  padding: 0 20px;
  text-align: center;
}

.blog-header h1 {
    margin-bottom: 15px;
    font-size: 2.6rem;
}

.blog-header p {
    margin: 0;
    color: #aaa;
    line-height: 1.6;
}

/* ===== FILTERS ===== */

.blog-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 18px 0 18px;
}

.blog-filters button {
    background: rgba(255,255,255,0.04);
    border: 1px solid #2a2a2a;
    color: #bdbdbd;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.blog-filters button.active,
.blog-filters button:hover {
    background: #f5c77a;
    border-color: #f5c77a;
    color: #000;
}

/* ===== FEATURED ===== */

.featured-container {
    max-width: 1200px;
    margin: 0 auto 36px;
}

.featured-card {
    height: 360px;
    border-radius: 22px;
    position: relative;
    overflow: hidden;
}

.featured-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.featured-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,.8), rgba(0,0,0,.3));
    padding: 40px;
    /* sits above the img */
    z-index: 1;
}

.featured-card .tag {
    display: inline-block;
    margin-bottom: 12px;
    background: #f5c77a;
    color: #000;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
}

.featured-card h2 {
    font-size: 2.1rem;
    margin-bottom: 10px;
}

.featured-card p {
    max-width: 600px;
    color: #ddd;
}

/* ===== GRID ===== */

.blog-grid-container {
    max-width: 1300px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.blog-card {
    position: relative; /* creates local stacking context */
    background: #070707;
    border-radius: 18px;
    border: 1px solid #1f1f1f;
    overflow: hidden;
}


.blog-card.critical {
    border-left: 3px solid #b00020;
}

/* ===== IMAGE + TAGS (SINGLE SYSTEM) ===== */

.blog-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* prevent layout shift — size is explicit in HTML */
}

.blog-tags {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.blog-tag {
    background: rgba(0,0,0,0.75);
    border: 1px solid #333;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    white-space: nowrap;
}

.blog-tag.critical {
    background: #b00020;
    border-color: #b00020;
}

.blog-tag.cve {
    color: #f5c77a;
    border-color: #f5c77a;
}

.blog-tag.ai,
.blog-tag.cloud,
.blog-tag.web {
    background: rgba(255,255,255,0.08);
}

.blog-tag.compliance {
    background: rgba(16,185,129,0.15);
    border-color: rgba(16,185,129,0.4);
    color: #34D399;
}

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

.blog-content {
    padding: 22px;
    line-height: 1.75;
    font-size: 1.05rem;
}


.blog-content h3 {
    font-size: 1.2rem;
}

.meta {
    font-size: 0.8rem;
    color: #888;
}

.blog-content a {
    color: #f5c77a;
    font-weight: 600;
}

/* ===== LOAD MORE ===== */

.load-more-container {
    text-align: center;
    margin-top: 48px;
}

#loadMoreBtn {
    background: transparent;
    border: 1px solid #f5c77a;
    color: #f5c77a;
    padding: 11px 24px;
    border-radius: 8px;
    cursor: pointer;
}


.blog-grid {
    justify-content: center;
}

.blog-card {
    max-width: 520px;
    margin: 0 auto;
}


.blog-wrapper {
  max-width: 820px;
  margin: 80px auto;
  padding: 0 20px;
}

.back-link {
  color: var(--gold-soft);
  text-decoration: none;
  font-weight: 500;
}

.blog-content {
  line-height: 1.75;
  font-size: 1.05rem;
}

.blog-content h1,
.blog-content h2,
.blog-content h3 {
  margin-top: 40px;
  margin-bottom: 16px;
}

.blog-content img {
  max-width: 100%;
  border-radius: 14px;
  margin: 28px 0;
}

.blog-content pre {
  padding: 18px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 24px 0;
}

.blog-content a {
  color: var(--gold-soft);
  text-decoration: underline;
}

.blog-content blockquote {
  border-left: 3px solid var(--gold-soft);
  padding-left: 16px;
  opacity: 0.85;
  margin: 28px 0;
}