/* news.css - specific styles for the news listing page */

/* Banner Styles */
.news-banner {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 500px;
    overflow: hidden;
}

.news-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* News Intro Section */
.news-intro-section {
    padding: 3rem 0 2rem;
    background-color: #ffffff;
}

.news-intro-text {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4b5563;
}

/* News Listing Section */
.news-listing-section {
    padding: 2rem 0 4rem;
    background-color: #f9fafb;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-item {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-image {
    height: 250px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1E3C72;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-title a {
    color: #1E3C72;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-title a:hover {
    color: #FFC107;
}

.news-text {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more-link {
    display: inline-block;
    color: #1E3C72;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s ease;
}

.read-more-link::after {
    content: '';
    position: absolute;
    bottom: 0.4rem;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FFC107;
    transition: width 0.3s ease;
}

.read-more-link:hover {
    color: #FFC107;
}

.read-more-link:hover::after {
    width: 100%;
}

/* Pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #1E3C72;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.pagination-link:hover {
    background-color: #f0f0f0;
}

.pagination-link.active {
    background-color: #1E3C72;
    color: #ffffff;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-item {
        border-radius: 8px;
    }
    
    .news-image {
        height: 200px;
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .news-title {
        font-size: 1.3rem;
    }
    
    .news-text {
        font-size: 0.95rem;
    }
    
    .news-intro-text {
        padding: 0 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .news-listing-section {
        padding: 1.5rem 0 3rem;
    }
    
    .news-grid {
        gap: 1.5rem;
    }
    
    .news-title {
        font-size: 1.2rem;
    }
    
    .news-content {
        padding: 1.25rem;
    }
    
    .news-image {
        height: 200px;
    }
}