/* News Section Styles */
.news-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.news-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Main Content */
.news-main {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    border-bottom: 3px solid #007bff;
    padding-bottom: 15px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* News Cards */
.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

.news-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
}

.news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #007bff;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.news-card-content {
    padding: 25px;
}

.news-card-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.news-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: #007bff;
}

.news-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.news-read-more {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.news-read-more:hover {
    color: #0056b3;
}

/* Sidebar */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.widget-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #a8c8ff 0%, #c8a8ff 100%);
    border-radius: 8px;
    text-align: center;
}

/* Category List */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.category-item:hover {
    background: #e9ecef;
}

.category-item a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    flex: 1;
}

.category-toggle {
    color: #007bff;
    font-weight: bold;
    cursor: pointer;
}

/* Latest News */
.latest-news {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.latest-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.latest-number {
    background: #007bff;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

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

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

.latest-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.latest-content {
    flex: 1;
}

.latest-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.latest-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.latest-title a:hover {
    color: #007bff;
}

.latest-date {
    color: #666;
    font-size: 12px;
}

/* Pagination */
.news-pagination {
    text-align: center;
    margin-top: 40px;
}

.news-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: white;
    color: #007bff;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid #007bff;
    transition: all 0.3s ease;
}

.news-pagination .page-numbers:hover,
.news-pagination .page-numbers.current {
    background: #007bff;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .news-main {
        padding: 20px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-title {
        font-size: 24px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .news-section {
        padding: 30px 0;
    }
    
    .news-main {
        padding: 15px;
    }
    
    .news-card-content {
        padding: 20px;
    }
    
    .latest-item {
        gap: 10px;
    }
    
    .latest-image {
        width: 50px;
        height: 50px;
    }
}
