/* News Page Styles */

.news-header {
    background: var(--secondary-color);
    color: var(--white);
    padding: 120px 0 60px;
    text-align: center;
    margin-top: 70px;
}

.news-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.news-section,
.news-detail-section {
    padding: 120px 0 80px;
    min-height: 50vh;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--tertiary-color);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--secondary-color);
    transform: translateX(-5px);
}

/* Article Detail Styles */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--tertiary-color);
}

.article-header h1 {
    text-align: left;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    color: #666;
    font-size: 0.95rem;
}

.article-meta .date {
    font-weight: 500;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-body .lang-en,
.article-body .lang-ku {
    margin-bottom: 1.5rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--bg-light);
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: var(--tertiary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--tertiary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.read-more:hover {
    gap: 0.8rem;
}

.no-news {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-light);
    font-size: 1.2rem;
}

.loading {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-light);
    font-size: 1.2rem;
}

.error-message {
    text-align: center;
    padding: 2rem;
    background: #fed7d7;
    color: #742a2a;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Admin Link */
.admin-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 100;
}

.admin-link:hover {
    background: var(--tertiary-color);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .news-header h1 {
        font-size: 2rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
}
