.info-hero {
     /* Allow the hero to sit flush with the top of the viewport while keeping the navbar visible.
         Set --nav-height to match your site's navbar (fallback 64px). */
     width: 100%;
     min-height: 340px;
     background-color: #0b0e12; /* fallback */
     background-size: cover;
     background-position: center top;
     position: relative; /* creates stacking context for z-index */
     display: flex;
     align-items: flex-end;
     /* Add top padding equal to navbar height so hero content (title etc.) remains visible */
     padding-top: calc(var(--nav-height, 64px) + 20px);
     z-index: 0; /* keep it beneath the navbar which will have higher z-index */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11,14,18,0.55) 0%, rgba(11,14,18,0.85) 80%);
}

.hero-inner {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    box-sizing: border-box;
}

/* Raise the navbar above the hero without changing HTML: give the navbar container a higher z-index */
.blob {
    position: relative; /* ensure z-index applies */
    z-index: 30;
}

.hero-meta {
    color: #fff;
    max-width: 880px;
}

.hero-meta .subtitle {
    color: rgba(255,255,255,0.7);
    margin: 0 0 8px 0;
    font-size: 0.95rem;
}

.main-title {
    font-size: 2.2rem;
    line-height: 1.05;
    margin: 0 0 12px 0;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hero-description {
    color: rgba(255,255,255,0.86);
    font-size: 1.05rem;
    margin: 0;
}

.info-container {
    max-width: 1100px;
    margin: 28px auto;
    padding: 0 24px 48px 24px;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.article-panel {
    background: linear-gradient(180deg, #0f1720 0%, #0b0f14 100%);
    border-radius: 8px;
    padding: 28px;
    color: #e6eef6;
    box-shadow: 0 8px 30px rgba(2,6,23,0.6);
}

.panel-thumbnail {
    width: 100%;
    max-height: 340px;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 18px;
}

.panel-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.card-content {
    font-size: 1.05rem;
    color: #dbe9fb;
    line-height: 1.8;
    width: 100%;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: #fff;
    margin-top: 1.8rem;
    margin-bottom: 0.6rem;
}

.article-content p {
    margin-bottom: 1rem;
    color: rgba(235,245,255,0.92);
}

.article-content a {
    color: #86b9ff;
    text-decoration: none;
    border-bottom: 1px dotted rgba(134,185,255,0.25);
}

.article-content ul,
.article-content ol {
    margin-left: 1.25rem;
    margin-bottom: 1rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    display: block;
    border-radius: 6px;
}

.article-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
}

.article-content table, 
.article-content th, 
.article-content td {
    border: 1px solid rgba(255,255,255,0.06);
    padding: 10px;
}

.article-content th {
    background-color: rgba(255,255,255,0.03);
    font-weight: 700;
}

.back-link {
    margin-top: 28px;
}

.btn-back {
    display: inline-block;
    padding: 10px 18px;
    background-color: transparent;
    color: #cfe6ff;
    border: 1px solid rgba(206,230,255,0.12);
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background-color 0.15s, transform 0.08s;
}

.btn-back:hover {
    background-color: rgba(206,230,255,0.03);
    transform: translateY(-1px);
}

/* Accessibility helper class (visually hidden) */
.sr-only {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .main-title { font-size: 1.6rem; }
    .hero-inner { padding: 28px 18px; }
    .info-container { padding: 0 18px 36px; }
}

@media (max-width: 480px) {
    .info-hero { min-height: 260px; }
    .hero-meta .subtitle { font-size: 0.85rem; }
}
