/* newsclass.css - editorial news article layout */

/* ===== Article page layout ===== */
.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px 60px;
    font-family: Georgia, 'Times New Roman', serif;
}

.news-article-main {
    min-width: 0;
}

.news-article-sidebar {
    min-width: 0;
}

.news-article-sidebar .news-sidebar-section {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
}

/* ===== Article header ===== */
.news-article-header {
    margin-bottom: 28px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

.news-article-category {
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #0066cc;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.news-article-title {
    font-family: Arial, sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 14px;
    color: #1a1a1a;
}

.news-article-dek {
    font-size: 19px;
    color: #444;
    margin: 0 0 18px;
    line-height: 1.4;
}

.news-article-meta {
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #666;
}

/* ===== Article content typography ===== */
.news-article-content p {
    margin: 0 0 20px;
    text-align: justify;
    font-size: 18px;
    line-height: 1.7;
    text-indent: 2em;
    color: #1a1a1a;
}

.news-article-content > div:first-child > p:first-of-type {
    text-indent: 0;
}

.news-article-content .news-p:first-of-type::first-letter {
    font-size: 36px;
    font-weight: bold;
    float: left;
    line-height: 1;
    margin-right: 6px;
    color: #1a1a1a;
}

/* ===== Sidebar ===== */
.news-sidebar-section {
    margin-bottom: 32px;
}

.news-sidebar-title {
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #000;
}

/* ===== Related article cards ===== */
.news-related-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-related-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.news-related-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-related-card__image {
    width: 90px;
    height: 60px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 2px;
}

.news-related-card__body {
    flex: 1;
    min-width: 0;
}

.news-related-card__category {
    font-family: Arial, sans-serif;
    font-size: 10px;
    color: #0066cc;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.news-related-card__title {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 4px;
}

.news-related-card__title a {
    color: #111;
    text-decoration: none;
}

.news-related-card__title a:hover {
    color: #0066cc;
}

.news-related-card__dek {
    font-size: 13px;
    color: #555;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Mobile responsive ===== */
@media (max-width: 900px) {
    .news-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 16px 16px 48px;
    }

    .news-article-title {
        font-size: 28px;
    }

    .news-article-dek {
        font-size: 17px;
    }

    .news-article-sidebar {
        border-top: 2px solid #000;
        padding-top: 24px;
    }
}

@media (max-width: 600px) {
    .news-article-title {
        font-size: 24px;
    }

    .news-article-content p {
        font-size: 17px;
        line-height: 1.65;
    }

    .news-image-text-row { 
        flex-direction: column !important; 
        gap: 12px !important; 
    }

    .news-image { 
        flex: 0 0 100% !important; 
    }
}
