.news-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.news-header {
    text-align: center;
    margin-bottom: 50px;
	display: flex;
	flex-direction: column;
}

.news-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.news-header h1:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, orange 0%, red 100%);
    border-radius: 2px;
}

.news-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* News Card Styles */
.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    border: none;
    height: 100%; /* Equal height cards */
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.news-img-container {
    height: 200px;
    overflow: hidden;
    flex-shrink: 0; /* Prevent image container from shrinking */
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img {
    transform: scale(1.05);
}

.news-body {
    padding: 25px;
    flex-grow: 1; /* Allow body to grow and fill space */
    display: flex;
    flex-direction: column;
}

.news-date {
    color: #3498db;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.news-date i {
    margin-right: 8px;
}

.news-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-content {
    color: #555;
    line-height: 1.2;
    margin-bottom:5px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Show only 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    max-height: 3.6em; /* Approximately 3 lines (1.2 line-height * 3) */
}

.news-content.expanded {
    -webkit-line-clamp: unset;
    display: block;
    max-height: none;
}
.news-actions {
    margin-top: auto; /* Push actions to bottom */
}

.read-more-btn {
    color: #3498db;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.read-more-btn:hover {
    color: #2980b9;
    transform: translateX(5px);
}

.read-more-btn i {
    margin-left: 5px;
    transition: all 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(3px);
}

/* Pagination Styles */
.pagination {
    justify-content: center;
    margin-top: 50px;
}

.page-item.active .page-link {
    background-color: #3498db;
    border-color: #3498db;
}

.page-link {
    color: #3498db;
    margin: 0 5px;
    border-radius: 8px !important;
    border: none;
    padding: 8px 16px;
}

.page-link:hover {
    background-color: #f8f9fa;
    color: #2980b9;
}

/* No News Message */
.no-news {
    text-align: center;
    padding: 50px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.no-news i {
    font-size: 3rem;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.no-news h3 {
    color: #7f8c8d;
    margin-bottom: 15px;
}

/* Modal for expanded content */
.news-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 50px;
    border-radius: 12px;
    width: 80%;
    max-width: 800px;
	min-height: 80vh;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1px;
    right: 15px;
    font-size: 35px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
	z-index:3;
}
.close-modal:hover{
   color: red;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .news-header h1 {
        font-size: 2rem;
    }
    
    .news-header p {
        font-size: 1rem;
    }
    
    .news-img-container {
        height: 200px;
    }
    
    .news-body {
        padding: 20px;
    }
    
    .news-title {
        font-size: 1.3rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}