/* News Page Styles */

/* News Section Layout */
.feature-records {
    position: initial;
    margin-top: 93px; /* Add margin to account for fixed header height */
    padding: 0;
    background-color: #000;
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scrolling due to full-width elements */
}

/* Container styles to work with full-width dividers */
.container {
    position: relative; /* Required for the full-width elements positioning */
    overflow-x: visible; /* Allow child elements to extend beyond container */
}

.feature-item {
    display: flex;
    position: relative;
    align-items: center;
    gap: 40px;
    justify-content: space-between;
    width: 100%;
    padding: 30px 0;
}

.feature-item.reverse {
    flex-direction: row-reverse;
}

/* Feature image styles */
.feature-image {
    flex: 0 0 65%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    height: 300px;
    z-index: 2;
}

.feature-image img {
    width: 100% !important; 
    height: 100% !important;
    object-fit: fill !important; /* Force stretch regardless of aspect ratio */
    display: block !important; /* Removes any potential gaps */
    transition: none !important; /* Remove any hover animations */
    min-height: 100% !important; /* Force minimum height */
    max-height: 100% !important; /* Restrict maximum height */
    /* Override any inline styles */
    margin: 0 !important;
    padding: 0 !important;
}

/* Background image styles */
.feature-content-background-image {
    position: absolute;
    width: 40%;
    height: 85%;
    right: 5%;
    top: 10%;
    z-index: 1;
    overflow: hidden;
}

.feature-content-background-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-item .feature-content-background-image {
    right: 5%;
    width: 40%;
}

.feature-item .feature-image {
    margin-right: -20%;
}

.feature-item.reverse .feature-content-background-image {
    left: 5%;
    right: auto;
}

.feature-item.reverse .feature-image {
    margin-left: -20%;
    margin-right: 0;
}

/* Feature content styles */
.feature-content {
    flex: 0 0 30%;
    position: relative;
    z-index: 3;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    text-align: left;
    align-self: flex-end;
    margin-bottom: 20px;
}

.feature-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
}

.feature-content p {
    color: #ccc;
    margin-bottom: 15px;
}

.feature-content .news-date {
    margin-top: 15px;
    color: #ccc;
    font-size: 14px;
}

.feature-content .btn {
    margin-top: 15px;
    display: inline-block;
    padding: 12px 30px;
    background-color: #fff;
    color: #000;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.feature-content .btn:hover {
    background-color: #ccc;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Section divider */
.section-divider-line {
    height: 50px;
    background-color: #505050;
    margin: 0;
    width: 100vw; /* Use viewport width instead of percentage */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Pagination styles */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    background-color: #505050;
    width: 100vw; /* Use viewport width instead of percentage */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.pagination {
    display: flex;
    list-style: none;
    gap: 10px;
}

.pagination li {
    display: inline-block;
}

.pagination a, .pagination span {
    display: block;
    padding: 8px 15px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.pagination a:hover, .pagination .active span {
    background-color: #000;
}

.pagination .disabled span {
    background-color: #666;
    cursor: not-allowed;
}

/* Responsive styles */
@media (max-width: 992px) {
    .feature-item,
    .feature-item.reverse {
        flex-direction: column;
        gap: 30px;
    }

    .feature-item .feature-image,
    .feature-item.reverse .feature-image {
        margin-right: 0;
        margin-left: 0;
    }

    .feature-content-background-image {
        display: none;
    }
}

@media (max-width: 768px) {
    .feature-records {
        margin-top: 60px; /* Reduced margin for smaller screens */
    }

    .feature-image {
        width: 100%;
        flex: 0 0 100%;
        height: auto;
        min-height: 250px;
    }

    .feature-content {
        width: 100%;
        flex: 0 0 100%;
    }
}

@media (max-width: 576px) {
    .feature-content h3 {
        font-size: 20px;
    }

    .feature-content .btn {
        padding: 10px 20px;
    }
}