body {
    margin: 0;
    background: #fff;
    color: var(--ag-ink, #15242b);
    font-family: "Segoe UI", sans-serif;
}

/* LANGUAGE SWITCH, HEADER, HERO, FOOTER, NAV TOGGLE and RESPONSIVE HEADER
   behaviour all come from css/sabic-inspired.css so this page matches the
   rest of the site exactly. Only the news-specific grid/card/modal styling
   lives here. */

/* NEWS GRID */
.news-grid {
    max-width: 1380px;
    margin: 0 auto;
    padding: 72px clamp(22px, 5vw, 68px);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 26px;
    background: #fff;
}

.news-card {
    position: relative;
    width: 330px;
    background: #fff;
    color: var(--ag-ink, #15242b);
    border: 1px solid var(--ag-line, #dbe4e8);
    border-radius: 0;
    box-shadow: var(--ag-shadow, 0 14px 38px rgba(20, 52, 62, .10));
    overflow: hidden;
    cursor: pointer;
    transition: .3s ease;
}

.news-card:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--ag-green, #007a4d), var(--ag-teal, #00a6a6), var(--ag-blue, #1675b9));
}

.news-card:hover {
    transform: translateY(-7px);
    border-color: #b9d1d8;
    box-shadow: 0 24px 55px rgba(20, 62, 74, .14);
}

.news-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--ag-soft, #f2f6f7);
}

.news-info {
    padding: 20px 22px 24px;
}

.news-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--ag-ink, #15242b);
    margin-bottom: 6px;
    line-height: 1.3;
}

.news-date {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ag-green, #007a4d);
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: 12px;
}

.news-desc {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ag-muted, #65757d);
}

/* POPUP MODAL */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(4, 28, 35, .78);
    backdrop-filter: blur(7px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.hidden {
    display: none;
}

.modal-content {
    position: relative;
    width: 650px;
    background: #fff;
    color: var(--ag-ink, #15242b);
    border: 0;
    border-top: 7px solid var(--ag-green, #007a4d);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 25, 35, .28);
    padding-bottom: 30px;
    animation: popIn 0.3s ease-out;
}

@keyframes popIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--ag-soft, #f2f6f7);
}

.modal-content h2 {
    padding: 20px 25px 5px;
    color: var(--ag-ink, #15242b);
    text-align: center;
}

.modal-date {
    padding: 0 25px;
    color: var(--ag-muted, #65757d);
    font-size: 14px;
    text-align: center;
}

.modal-content p {
    padding: 20px 25px;
    line-height: 1.7;
    font-size: 17px;
    text-align: center;
    color: var(--ag-muted, #65757d);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: var(--ag-green, #007a4d);
    font-size: 32px;
    cursor: pointer;
    z-index: 2;
}

/* RTL SUPPORT */
body.rtl .news-card,
body.rtl .modal-content {
    text-align: center;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .news-grid {
        padding: 50px 20px;
    }

    .modal-content {
        width: 90%;
    }
}
