/* News Page Styles */

/* Container */
.container {
    margin: 0 auto;
    padding: 20px;
    max-width: 1200px;
}

/* Page Title */
.page-title {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

/* News Grid */
.news-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* News Item */
.news-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Add transition for smooth effect */
}

/* Hover Effect */
.news-item:hover {
    box-shadow: 0 8px 16px rgb(160, 82, 45); /* Increase shadow on hover */
    transform: translateY(-5px); /* Slightly move the item up */
}

/* Ensures images have consistent sizes */
.news-image img {
    width: 100%;
    height: 200px; /* Set a fixed height for uniformity */
    object-fit: cover; /* Crop image without distorting */
}

/* News Content */
.news-content {
    padding: 15px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1; /* Makes content fill available space */
}

/* Title Styling */
.news-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.news-title a {
    color: #2c3e50;
    text-decoration: none;
}

.news-title a:hover {
    text-decoration: underline;
}

/* Date Styling */
.news-date {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-bottom: 15px;
}

/* Excerpt Styling */
.news-excerpt {
    font-size: 1em;
    color: #2c3e50;
    margin-bottom: 15px;
}

/* "Read More" Button */
.read-more-btn {
    display: inline-block;
    background-color: #38B2AC;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.read-more-btn:hover {
    background-color: #319795;
}

/* News Detail Styles */
.news-detail-title {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: right;
}

.news-detail-date {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-bottom: 20px;
    text-align: right;
}

.news-detail-image img {
    width: 75%;
    height: auto;
    margin-bottom: 20px;
}

.news-detail-content {
    font-size: 1.1em;
    line-height: 1.8;
    color: #2c3e50;
    text-align: right;
    direction: rtl;
}

/* Button Container */
.button-container {
    text-align: center;
    margin-top: 30px;
}

.btn {
    background-color: #a0522d;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.btn:hover {
    background-color: #a0522d;
}

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

.pagination a {
    margin: 0 5px;
    text-decoration: none;
    color: #38B2AC;
}

.pagination span {
    margin: 0 5px;
}

.pagination a:hover {
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .news-grid {
        flex-direction: column;
        align-items: center;
    }

    .news-item {
        width: 100%;
    }
}

