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

/* 1. Masthead (The Big Header) */
.dd-news-masthead {
    text-align: center;
    border-bottom: 4px solid var(--dd-text-main);
    padding: 40px 0 10px;
    margin-bottom: 30px;
}

.dd-news-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--dd-text-main);
}

.dd-news-date-line {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    text-transform: uppercase;
    border-top: 1px solid var(--exp-border);
    border-bottom: 1px solid var(--exp-border);
    padding: 8px 0;
    font-weight: 500;
}

.dd-news-edition {
    font-weight: 700;
}

/* 2. Main Grid Layout */
.dd-news-grid {
    display: grid;
    grid-template-columns: 1fr 300px 250px;
    gap: 30px;
    align-items: start;
}

.dd-news-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Borders between columns */
.dd-col-main {
    border-right: 1px solid var(--exp-border);
    padding-right: 30px;
}
.dd-col-secondary {
    border-right: 1px solid var(--exp-border);
    padding-right: 30px;
}

/* 3. Section Headers */
.dd-section-header {
    border-top: 2px solid var(--dd-text-main);
    border-bottom: 1px solid var(--dd-text-main);
    padding: 5px 0;
    margin-bottom: 15px;
}

.dd-section-header h2 {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

/* 4. Article Styles */
.dd-article {
    border-bottom: 1px solid var(--exp-border);
    padding-bottom: 20px;
}
.dd-article:last-child {
    border-bottom: none;
}

.article-title {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 8px;
}

.article-title a {
    color: var(--dd-text-main);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.article-title a:hover {
    color: var(--dd-primary);
}

.article-meta {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--dd-text-muted);
    margin-bottom: 10px;
}

.article-excerpt {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    color: var(--dd-text-main);
    line-height: 1.6;
}

.article-image img,
.article-image-small img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 15px;
    filter: grayscale(100%); /* Adds the old-school news feel */
    transition: filter var(--transition-speed);
}

.article-image:hover img,
.article-image-small:hover img {
    filter: grayscale(0%);
}

/* 5. Specific Layout Variations */

/* The massive featured post */
.article-featured .article-title {
    font-size: 2.2rem;
}
.article-featured .article-excerpt {
    font-size: 1.1rem;
}

/* Side-by-side compact layout for secondary column */
.article-compact {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}
.article-compact .article-content {
    flex: 1;
}
.article-compact .article-image-small {
    width: 100px;
    flex-shrink: 0;
    margin: 0;
}
.article-compact .article-title {
    font-size: 1.1rem;
}

/* Text only (Sidebar) */
.article-text-only .article-title {
    font-size: 1.3rem;
}

.dd-sidebar-block {
    margin-bottom: 40px;
}

/* 6. Responsive Design */
@media screen and (max-width: 1024px) {
    .dd-news-grid {
        grid-template-columns: 1fr 300px;
    }
    .dd-col-main {
        grid-column: span 2;
        border-right: none;
        padding-right: 0;
        border-bottom: 2px solid var(--dd-text-main);
        padding-bottom: 30px;
    }
    .dd-col-secondary {
        padding-right: 20px;
    }
}

@media screen and (max-width: 768px) {
    .dd-news-masthead {
        padding: 20px 0 10px;
    }
    .dd-news-title {
        font-size: 2.2rem;
    }
    .dd-news-date-line {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }
    .dd-news-grid {
        grid-template-columns: 1fr;
    }
    .dd-col-secondary {
        border-right: none;
        padding-right: 0;
        border-bottom: 2px solid var(--dd-text-main);
        padding-bottom: 30px;
    }
    .article-featured .article-title {
        font-size: 1.8rem;
    }
}