/* News Page Styles */

/* Category Tabs */
.news-category-tabs-section {
    padding: 30px 0;
    background: var(--light-bg);
}

.news-category-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.news-category-tab {
    padding: 10px 24px;
    border-radius: 30px;
    background: #fff;
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-category-tab:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.news-category-tab.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.news-category-tab .tab-count {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* News Sections */
.featured-news-section,
.news-listing-section {
    padding: 60px 0;
}

.featured-news-section {
    background: var(--light-bg);
}

/* News Card */
.news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.news-card.featured-news-card {
    border: 2px solid var(--accent-color);
}

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 15px;
    border-radius: 10px;
    text-align: center;
    line-height: 1;
}

.news-day {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.news-month {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.news-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-category-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    width: fit-content;
}

.news-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark-text);
    line-height: 1.4;
}

.news-content p {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.btn-news {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    margin-top: auto;
}

.btn-news:hover {
    color: var(--accent-color);
    gap: 12px;
}

/* News Detail Page */
.news-detail-section {
    padding: 60px 0;
}

.news-detail-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.news-featured-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}

.news-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-description {
    padding: 40px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dark-text);
}

.news-description h2,
.news-description h3,
.news-description h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--dark-text);
}

.news-description p {
    margin-bottom: 20px;
}

.news-description ul,
.news-description ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.news-description li {
    margin-bottom: 10px;
}

/* News Info Card (Sidebar) */
.news-info-card,
.related-news-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.news-info-card h3,
.related-news-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
    color: var(--dark-text);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item i {
    width: 40px;
    height: 40px;
    background: var(--light-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.info-label {
    display: block;
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 4px;
}

.info-value {
    font-weight: 600;
    color: var(--dark-text);
}

/* Related News */
.related-news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-news-item {
    display: flex;
    gap: 15px;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
}

.related-news-item:hover {
    background: var(--light-bg);
}

.related-news-image {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-news-image .no-image {
    width: 100%;
    height: 100%;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
}

.related-news-content h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 5px;
    line-height: 1.4;
}

.related-news-date {
    font-size: 0.8rem;
    color: var(--light-text);
}

/* Header Category Badge */
.news-header-category-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.news-header-category-badge:hover {
    transform: scale(1.05);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .news-category-tabs {
        gap: 8px;
    }

    .news-category-tab {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .news-image {
        height: 180px;
    }

    .news-content {
        padding: 20px;
    }

    .news-description {
        padding: 25px;
    }
}

