/* Style for the container that holds both image and caption inside .image-with-pdf-link */
.image-with-pdf-link .image-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Align items to the start */
    margin-bottom: 20px;
    /* Spacing between images */
}

/* Style for the image inside .image-with-pdf-link */
.image-with-pdf-link .image-container img {
    max-width: 100%;
    /* Ensure image is responsive */
    height: auto;
    margin-right: 20px;
    /* Add space between image and caption */
}

/* Style for the caption on the right side inside .image-with-pdf-link */
.image-with-pdf-link .caption-inner-image {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    max-width: 250px;
    /* Limit caption width */
}

/* Style for the description below the image inside .image-with-pdf-link */
.image-with-pdf-link .image-description {
    font-size: 0.75em;
    /* Smaller font size */
    color: #999;
    /* Lighter color for copyright */
    text-align: center;
    /* Center the description */
    margin-top: 10px;
    /* Space between image and description */
}

/* Optional: Make layout stack vertically on mobile inside .image-with-pdf-link */
@media (max-width: 768px) {
    .image-with-pdf-link .image-container {
        flex-direction: column;
        /* Stack items vertically on mobile */
        align-items: center;
        /* Center items horizontally */
    }

    .image-with-pdf-link .image-container img {
        margin-right: 0;
        /* Remove right margin on smaller screens */
        margin-bottom: 10px;
        /* Add space between image and caption */
    }

    .image-with-pdf-link .caption-inner-image,
    .image-with-pdf-link .image-description {
        text-align: center;
        /* Center caption and description on smaller screens */
    }
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Space between news items */
}

.news-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px 50px;
    min-height: 266px;
    margin-top: -90px;
}

.news-content {
    flex: 1;
    margin-right: 20px;
    /* Space between content and image */
}

.news-title {
    font-size: 18.66px;
    font-family: 'CircularXX-Bold';
    margin-top: 10px;
    margin-bottom: 2vh;
}

.news-image img {
    width: 220px;
    /* Adjust width as needed */
    height: auto;
    object-fit: cover;
    /* Keep aspect ratio */
    border-radius: 5px;
    /* Optional: rounded corners */
    margin-top: 20px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Space between news items */
}

/* Full width stacking for mobile */
.news-item {
    display: flex;
    flex-direction: column;
    /* Stack items */
    align-items: center;
    justify-content: center;
    min-height: auto;
    margin-top: 0;
    width: 100%;
    /* Ensure full width */
}

/* Make content take full width */
.news-content {
    width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
    max-width: 100%;
    /* Ensure it stretches across */
}

/* Full width title */
.news-title {
    font-size: 1.5rem;
    /* Slightly larger for readability */
    font-family: 'CircularXX-Bold';
    margin-top: 10px;
    margin-bottom: 2vh;
    width: 100%;
    /* Ensures it spans the full row */
}

/* Make images responsive and full-width */
.news-image {
    width: 100%;
}

.news-image img {
    width: 100%;
    /* Full width on mobile */
    max-width: 500px;
    /* Prevents it from getting too large */
    height: auto;
    object-fit: cover;
    border-radius: 0px;
    margin-top: 10px;
}

/* Separator line takes full width */
.news-seperator-line {
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1vh 2vh 0 0;
    width: 100%;
    /* Full width */
    margin: 20px 0;
}

.news-seperator-line::before,
.news-seperator-line::after {
    content: '';
    height: 1px;
    background-color: #ccc;
    width: 10%
}

/* Tablet & Desktop: Return to side-by-side layout */
@media (min-width: 768px) {
    .news-item {
        flex-direction: row;
        /* Side-by-side for larger screens */
        align-items: center;
        text-align: left;
    }

    .news-item {
        display: flex;
        min-height: auto;
        margin-top: 0;
        width: 100%;
        /* Ensure full width */
    }

    .news-content {
        width: 50%;
        margin-right: 20px;
        text-align: left;
    }

    .news-image {
        width: 50%;
    }

    .news-image img {
        width: 220px;
        /* Keep a fixed size on larger screens */
    }

    .news-seperator-line::before,
    .news-seperator-line::after {
        content: '';
        height: 1px;
        background-color: #ccc;
        width: 20%;
    }
}