/* Bulletproof Grid Layout for News Articles */
.article-grid-wrapper {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
    width: 100% !important;
    max-width: 1250px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
    align-items: start !important;
}

/* Desktop layout: 850px body, 320px sidebar */
@media (min-width: 1024px) {
    .article-grid-wrapper {
        grid-template-columns: 850px 320px !important;
        justify-content: center !important;
    }
}

.article-main-content {
    min-width: 0 !important; /* Critical for grid content sizing */
    width: 100% !important;
    overflow: hidden !important; /* Prevent content from leaking out */
}

.article-sidebar {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2.5rem !important;
}

@media (min-width: 1024px) {
    .article-sidebar {
        width: 320px !important;
        flex-shrink: 0 !important;
    }
}

/* Content Containment */
.article-body-content {
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure ALL media elements stay within the 850px width */
.article-body-content img,
.article-body-content iframe,
.article-body-content table,
.article-body-content video,
.article-body-content div,
.article-body-content p {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
}

.article-body-content table {
    display: block !important;
    overflow-x: auto !important;
    width: 100% !important;
}

/* Featured image scaling */
.featured-image-container {
    width: 100% !important;
    border-radius: 1.5rem !important;
    overflow: hidden !important;
    background-color: #f9fafb !important;
    margin-bottom: 2.5rem !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

.featured-image-container img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover !important;
}

/* Professional No-Image Placeholder */
.news-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    gap: 1rem;
}

.news-placeholder i {
    font-size: 4rem;
    opacity: 0.4;
}

.news-placeholder span {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    opacity: 0.5;
}
