.news-article {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.article-header {
    margin-bottom: 3rem;
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.article-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-meta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.article-date,
.article-category {
    display: inline-flex;
    align-items: center;
}

.article-date::before {
    content: "📅";
    margin-right: 0.5rem;
}

.article-category {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

.article-content {
    margin-bottom: 3rem;
}

.article-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-lead {
    font-size: 1.25rem !important;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 2rem !important;
}

.article-gallery {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.gallery-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.gallery-image,
.newsdivimage img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
}

.back-to-news {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.back-to-news:hover {
    transform: translateX(-4px);
}

.share-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.share-buttons span {
    color: var(--text-secondary);
    font-weight: 500;
}

.share-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.newsdiv {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.newsdiv h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 2rem;
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.newsdiv p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
    color: var(--text-secondary);
}

.newsdivimage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.newsdivimage img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.newsdivimage img:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .news-article,
    .newsdiv {
        padding: 0 1rem;
    }

    .article-title,
    .newsdiv h1 {
        font-size: 1.75rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .gallery-grid,
    .newsdivimage {
        grid-template-columns: 1fr;
    }

    .article-footer {
        flex-direction: column;
        gap: 1.5rem;
    }

    .article-content p,
    .newsdiv p {
        text-align: left;
    }
}