/**
 * News Page Styles
 * Add this to your theme's style.css or create a separate news-styles.css
 */

.news-page-wrapper {
    padding: 40px 0;
    background-color: #fff;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 16px;
    color: #5B5B5B;
    margin-bottom: 20px;
    background: transparent;
}

.breadcrumb a {
    color: #5B5B5B;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    margin-right: 5px;
}

.breadcrumb a:hover {
    color: #5B5B5B;
}

.breadcrumb span {
    color: #235582;
    font-weight: 700;
    display: inline-block;
    margin-left: 5px;
}

/* Header */
.news-header {
    margin-bottom: 50px;
    display: flex;
    gap: 25px;
}

.news-header h1 {
    font-size: 56px;
    font-weight: 600;
    color: #000;
    margin: 0 0 20px 0;
}

.news-intro {
    font-size: 16px;
    line-height: 26px;
    color: #000;
    max-width: 650px;
    margin-top: 15px;
}

/* Section Titles */
.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin-bottom: 0px;
    text-transform: uppercase;
    line-height: 30px;
}

/* Featured News Section */
.featured-news-section {
    margin-bottom: 60px;
}
.featured-news-section.home-style {
    background: #f4f4f4;
    padding-top: 80px;
    padding-bottom: 80px;
    margin-bottom: 0px;
}
.featured-news-section.home-style .section-title {
    font-size: 44px;
    font-weight: 600;
    color: #000;
}
.home-style .featured-news-grid {
    border-color: #D6D6D6;
    margin-top: 50px;
    padding-top: 50px;
}
.home-style .featured-news-card {
    background: transparent;
}
.home-style .featured-news-card .read-article-btn {
    color: #000;
    text-decoration: underline;
}

.featured-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: 30px;
    margin-top: 20px;
    padding-top: 40px;
    border-top: 1px solid #000;
}

/* Featured cards with images take more space */
.featured-news-card.has-image {
    grid-column: span 1;
    grid-row: span 2;
}

.featured-news-card {
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.featured-news-card:hover {
    transform: translateY(-2px);
}

.featured-news-image {
    width: 100%;
    height: 260px;
    overflow: hidden;
    flex-shrink: 0;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    margin-bottom: 20px;
}

.featured-news-card.has-image .featured-news-image {
    height: 320px;
}

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

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

.featured-news-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.news-date {
    display: block;
    font-size: 16px;
    color: #000;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.news-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 34px;
    flex-grow: 0;
}

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

.news-title a:hover {
    color: #000;
}

.news-excerpt {
    font-size: 16px;
    color: #000;
    line-height: 26px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-article-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    margin-top: auto;
}

.read-article-btn:hover {
    color: #0056b3;
}

/* All News Section */
.all-news-section {
    margin-bottom: 60px;
}

.news-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 510px;
    gap: 80px;
}

.all-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom:20px;
    border-bottom: 1px solid #000;
}

.news-filters {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 510px;
}

.date-filter-form label {
    font-size: 16px;
    color: #5B5B5B;
    font-weight: 500;
    min-width: 93px;
    margin-bottom: 0px;
    border-right: 1px solid #000000;
    padding-right: 20px;
    margin-right: 20px;
}

.date-filter-form select {
    padding: 8px 12px 8px 0px;
    border: 0px;
    borde-bottom: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: #fff;
    color: #000;
    cursor: pointer;
    transition: border-color 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.date-filter-form select:hover,
.date-filter-form select:focus {
    border-color: #0066cc;
    outline: none;
}

/* All News List */
.all-news-list {
    background: #fff;
}

.news-list-item {
    padding: 35px 0;
    border-bottom: 1px solid #E6E6E8;
}

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

.news-list-item .news-title {
    font-size: 22px;
}

/* Sidebar */
.news-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
    background: #F4F4F4;
    border-radius: 20px;
    padding: 40px;
}

.sidebar-title {
    font-size: 28px;
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
    line-height: 34px;
    padding-bottom: 10px;
}
.most-read-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.most-read-item .news-date {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 400;
    color: #000;
}

.most-read-item .news-title {
    font-size: 20px;
    color: #000;
    line-height: 34px;
    text-decoration: underline;
    margin: 0;
}

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

.news-pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-pagination .page-numbers:hover,
.news-pagination .page-numbers.current {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

.no-news {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .news-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .news-sidebar {
        position: static;
        margin-top: 40px;
    }
    
    .featured-news-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .featured-news-card.has-image {
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .featured-news-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-news-card.has-image {
        grid-row: span 1;
    }
    
    .all-news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .news-header h1 {
        font-size: 2rem;
    }
    
    .all-news-list {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .date-filter-form {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .date-filter-form select {
        width: 100%;
    }
    
    .news-header h1 {
        font-size: 1.75rem;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
    }
}