.news-page {
    padding-top: 100px;
}

.news-heading {
    font-size: var(--text-6xl);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 20px;
}

.news-featured-body {
    display: grid;
    grid-template-columns: 40% minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

.news-featured-media {
    display: flex;
    flex-direction: column;
}

.news-img {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 10px;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-detail-img {
    width: auto;
    height: 500px;
    overflow: hidden;
    border-radius: 10px;
}

.news-container {
    width: min(1200px, 90%);
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    box-sizing: border-box;
    /* background-color: rgb(224, 224, 224); */
    background-color: rgb(242, 240, 240);
    border-radius: 10px;
}

.other-news-container {
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 10px;
    /* background-color: #e0e0e0; */
    background-color: rgb(242, 240, 240);
    padding: 20px;
    border-radius: 10px;
    max-width: 520px;
    margin: 50px auto;
    box-sizing: border-box;
    justify-items: center;
    text-align: center;
}

.news-container-detail {
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 10px;

    background-color: #e0e0e0;
    padding: 20px;
    border-radius: 10px;
    max-width: 520px;
    margin: 140px auto;

    box-sizing: border-box;
}

.other-news-news-img {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.other-news-news-img img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.other-news-text {
    line-height: 1.6;
    font-size: var(--text-md);
}

.news-title {
    font-weight: bold;
    color: var(--color-secondary);
    font-size: var(--text-4xl);
    margin-bottom: 30px;
}

.news-img img:hover {
    transform: scale(1.03);
}

.news-date {
    color: var(--color-secondary);
    margin-top: 10px;
}

.news-meta {
    display: grid;
    grid-auto-flow: column;
    gap: 15px;
    font-size: var(--text-sm);
    color: #555;
}

.news-text {

    line-height: 1.6;
    font-size: var(--text-md);

    column-count: 2;
    column-gap: 30px;

    text-align: justify;
    hyphens: auto;

    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.news-text a, .news-button {
    text-decoration: none;
    color: var(--color-secondary);
}

.news-page-divider-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 80px;
}

#image-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#modal-img {
    max-width: 90%;
    max-height: 90%;
    cursor: zoom-in;
}

#modal-img.zoomed {
    transform: scale(2);
    cursor: zoom-out;
}

#image-modal {
    overflow: auto;
}

#image-modal span {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}


/* SVG */
.news-page-divider img {
    width: 30px;
    margin-bottom: 40px;
}
.news-page-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.other-news-title {
    font-size: var(--text-4xl);
    margin-bottom: 10px;
    font-family: var(--font-heading);
    color: var(--color-secondary);
    margin: 0;
}


/*********** THE LINE BREAKERS **************/
.hr {
    width: 350px;
    height: 3px;
    background: var(--color-secondary);
}

.news-button {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid rgb(255, 255, 255);
    text-decoration: none;
    font-size: var(--text-md);
    font-weight: 400;
    font-family: system-ui, sans-serif;
    transition: all 0.2s ease;
    color: white;
    background-color: var(--color-secondary);
    border-radius: 5px;
}

.news-button:hover {
  background-color: white;
  color: var(--color-secondary);
}
@media (max-width: 800px) {

    .news-page {
        padding-top: 60px;
    }

    /* .news-heading {
        font-size: var(--text-4xl);
        letter-spacing: 0.05em;
        margin-bottom: 20px;
    } */

    .news-container {
        width: auto;
        margin: 30px 20px;
        padding: 20px;
    }

    .news-title {
        font-size: var(--text-2xl);
        margin-bottom: 20px;
    }

    /* Featured article */
    .news-featured-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-img {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .news-text {
        column-count: 1;
        column-gap: 0;
        text-align: left;
    }

    /* Other news */
    .other-news-container {
        width: auto;
        max-width: none;
        margin: 30px 20px;
        padding: 20px;
    }

    .other-news-news-img img {
        height: auto;
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }

    .other-news-title {
        font-size: var(--text-2xl);
    }

    .hr {
        width: 100px;
    }
}


@media (max-width: 400px) {

    .news-container,
    .other-news-container {
        width: auto;
        margin: 25px 15px;
        padding: 15px;
    }

    /* .news-heading {
        font-size: var(--text-3xl);
    } */

    .news-title {
        font-size: var(--text-xl);
    }

    .news-text,
    .other-news-text {
        font-size: var(--text-sm);
    }

    .news-button {
        padding: 9px 16px;
        font-size: var(--text-sm);
    }

    .hr {
        width: 70px;
    }
}