
/* =========================================================
   SURDA NEWS
   Clean / Comfortable Editorial Layout
========================================================= */

.news-page {
    --primary: #032f3c;
    --accent: #036268;
    --text: #20282b;
    --muted: #727d81;
    --soft: #ffffff;
    --card: #ffffff;
    --border: #edf0f0;

    direction: {% if is_ar %}rtl{% else %}ltr{% endif %};
    background: #ffffff;
    color: var(--text);
}

.news-page a {
    text-decoration: none;
}


/* =========================================================
   HERO
========================================================= */

.news-hero {
    position: relative;
    overflow: hidden;
    padding: 210px 0 30px;
    background: var(--soft);
}

.news-hero::before,
.news-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border: 1px solid rgba(3, 98, 104, .07);
    border-radius: 50%;
}

.news-hero::before {
    width: 320px;
    height: 320px;
    top: 120px;

    {% if is_ar %}
        right: -190px;
    {% else %}
        left: -190px;
    {% endif %}
}

.news-hero::after {
    width: 190px;
    height: 190px;
    bottom: -100px;

    {% if is_ar %}
        left: 7%;
    {% else %}
        right: 7%;
    {% endif %}
}

.news-hero-grid {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns:
        minmax(0, .9fr)
        minmax(0, 1.1fr);

    gap: 80px;
    align-items: center;
}


/* =========================================================
   HERO CONTENT
========================================================= */

.news-hero-content {
    min-width: 0;
}

.news-kicker {
    display: inline-block;
    margin-bottom: 20px;

    color: var(--accent);

    font-size: 12px;
    line-height: 1;
    font-weight: 800;

    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.news-hero-title {
    margin: 0 0 22px;

    color: var(--primary);

    font-size: 36;
    line-height: 1.18;
    font-weight: 800;

    letter-spacing: -1px;
}

.news-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 23px;

    color: var(--muted);

    font-size: 12px;
    font-weight: 600;
}

.news-hero-meta-line {
    width: 25px;
    height: 2px;

    background: var(--accent);
}

.news-hero-description {
    max-width: 560px;

    margin: 0 0 32px;

    color: #5e696d;

    font-size: 15px;
    line-height: 2;
}

.news-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 48px;

    padding: 0 25px;

    border-radius: 7px;

    background: var(--accent);
    color: #ffffff !important;

    font-size: 13px;
    font-weight: 800;

    transition:
        background .25s ease,
        transform .25s ease;
}

.news-hero-button:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.news-hero-button span {
    font-size: 17px;
}


/* =========================================================
   HERO MEDIA
========================================================= */

.news-hero-media {
    position: relative;

    width: 100%;
    aspect-ratio: 1.18 / 1;

    overflow: hidden;

    border-radius: 18px;

    background: #e7eceb;

    box-shadow:
        0 22px 60px rgba(3, 47, 60, .08);
}

.news-hero-media > a {
    display: block;
    width: 100%;
    height: 100%;
}

.news-hero-media img,
.news-hero-media iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;

    object-fit: cover;
}

.news-hero-media img {
    transition: transform .6s ease;
}

.news-hero-media:hover img {
    transform: scale(1.025);
}


/* =========================================================
   FALLBACK HEADER IF NO MAIN
========================================================= */

.news-simple-head {
    padding: 165px 0 75px;

    background: var(--soft);

    text-align: center;
}

.news-simple-head span {
    display: block;

    margin-bottom: 10px;

    color: var(--accent);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.news-simple-head h1 {
    margin: 0;

    color: var(--primary);

    font-size: 36px;
    font-weight: 800;
}


/* =========================================================
   NEWS LIBRARY
========================================================= */

.news-library {
    padding: 95px 0 110px;

    background: #ffffff;
}

.news-library-head {
    max-width: 720px;

    margin: 0 auto 60px;

    text-align: center;
}

.news-library-kicker {
    display: block;

    margin-bottom: 10px;

    color: var(--accent);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.news-library-title {
    margin: 0 0 14px;

    color: var(--primary);

    font-size: 35px;
    line-height: 1.25;
    font-weight: 800;
}

.news-library-description {
    max-width: 610px;

    margin: 0 auto;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.85;
}


/* =========================================================
   FEATURED NEWS
   main_1 + main_2
========================================================= */

.featured-news-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 32px;

    margin-bottom: 70px;

    align-items: stretch;
}


/* FULL FEATURED CARD */

.featured-news-card {
    min-width: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: #ffffff;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.featured-news-card:hover {
    transform: translateY(-5px);

    border-color: rgba(3, 98, 104, .12);

    box-shadow:
        0 18px 45px rgba(3, 47, 60, .07);
}


/* FEATURED IMAGE */

.featured-news-image {
    position: relative;

    display: block;

    width: 100%;
    aspect-ratio: 16 / 10;

    overflow: hidden;

    margin: 0;

    background: #edf1f1;
}

.featured-news-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform .55s ease;
}

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


/* FEATURED BODY */

.featured-news-body {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 26px 28px 28px;
}

.featured-news-label {
    display: inline-block;
    align-self: flex-start;

    margin-bottom: 12px;

    padding: 6px 9px;

    border-radius: 4px;

    background: rgba(3, 98, 104, .07);
    color: var(--accent);

    font-size: 10px;
    line-height: 1;
    font-weight: 800;

    letter-spacing: .8px;
    text-transform: uppercase;
}

.featured-news-title {
    max-width: 560px;

    margin: 0 0 12px;

    font-size: 23px;
    line-height: 1.5;
    font-weight: 800;
}

.featured-news-title a {
    color: var(--primary);

    transition: color .2s ease;
}

.featured-news-title a:hover {
    color: var(--accent);
}

.featured-news-description {
    max-width: 570px;

    margin: 0 0 22px;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.9;
}


/* pushes footer to bottom so both cards stay visually aligned */

.featured-news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    margin-top: auto;
    padding-top: 17px;

    border-top: 1px solid var(--border);

    color: #8a9498;

    font-size: 11px;
}

.featured-news-more {
    color: var(--accent);

    font-size: 11px;
    font-weight: 800;

    transition: color .2s ease;
}

.featured-news-more:hover {
    color: var(--primary);
}


/* =========================================================
   OTHER NEWS TITLE
========================================================= */

.other-news-head {
    display: flex;
    align-items: center;
    gap: 22px;

    margin-bottom: 32px;
}

.other-news-head h3 {
    margin: 0;

    color: var(--primary);

    font-size: 22px;
    font-weight: 800;

    white-space: nowrap;
}

.other-news-head-line {
    width: 100%;
    height: 1px;

    background: var(--border);
}


/* =========================================================
   OTHER NEWS GRID
========================================================= */

.news-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 32px 28px;

    align-items: stretch;
}

.news-card {
    min-width: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: var(--card);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.news-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 18px 45px rgba(3, 47, 60, .07);
}

.news-card-image {
    position: relative;

    display: block;

    width: 100%;
    aspect-ratio: 1.45 / 1;

    overflow: hidden;

    background: #edf1f1;
}

.news-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform .55s ease;
}

.news-card:hover
.news-card-image img {
    transform: scale(1.035);
}

.news-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 23px 24px 24px;
}

.news-card-label {
    display: inline-block;
    align-self: flex-start;

    margin-bottom: 11px;

    padding: 5px 8px;

    border-radius: 3px;

    background: rgba(3, 98, 104, .07);
    color: var(--accent);

    font-size: 9px;
    line-height: 1;
    font-weight: 800;

    letter-spacing: .6px;
    text-transform: uppercase;
}

.news-card-title {
    margin: 0 0 11px;

    font-size: 18px;
    line-height: 1.55;
    font-weight: 800;
}

.news-card-title a {
    color: var(--primary);

    transition: color .2s ease;
}

.news-card-title a:hover {
    color: var(--accent);
}

.news-card-description {
    margin: 0 0 18px;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.85;
}

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-top: auto;
    padding-top: 15px;

    border-top: 1px solid var(--border);
}

.news-card-date {
    color: #8a9498;

    font-size: 10px;
    font-weight: 600;
}

.news-card-more {
    color: var(--accent);

    font-size: 10px;
    font-weight: 800;

    transition: color .2s ease;
}

.news-card-more:hover {
    color: var(--primary);
}


/* =========================================================
   EMPTY STATE
========================================================= */

.news-empty {
    max-width: 700px;

    margin: 0 auto;

    padding: 55px 30px;

    border-radius: 10px;

    background: var(--soft);

    text-align: center;
}

.news-empty h3 {
    margin: 0 0 8px;

    color: var(--primary);

    font-size: 21px;
    font-weight: 800;
}

.news-empty p {
    margin: 0;

    color: var(--muted);

    font-size: 14px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1199px) {

    .news-hero-grid {
        gap: 55px;
    }

    .news-hero-title {
        font-size: 38px;
    }
}


@media (max-width: 991.1px) {

    .news-hero {
        padding: 70px 0 75px;
    }

    .news-hero-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .news-hero-content {
        max-width: 700px;
    }

    .news-hero-media {
        aspect-ratio: 16 / 10;
    }

    .news-simple-head {
        padding: 70px 0 55px;
    }

    .news-library {
        padding: 70px 0 85px;
    }

    .featured-news-grid {
        gap: 25px;
        margin-bottom: 60px;
    }

    .news-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 767px) {

    .news-hero {
        padding: 55px 0 60px;
    }

    .news-hero-grid {
        gap: 35px;
    }

    .news-hero-title {
        font-size: 37px;
        letter-spacing: -.5px;
    }

    .news-hero-description {
        font-size: 14px;
        line-height: 1.85;
    }

    .news-hero-media {
        border-radius: 12px;
    }

    .news-library {
        padding: 60px 0 70px;
    }

    .news-library-head {
        margin-bottom: 42px;
    }

    .news-library-title {
        font-size: 29px;
    }

    .featured-news-grid {
        grid-template-columns: 1fr;

        gap: 30px;

        margin-bottom: 55px;
    }

    .featured-news-body {
        padding: 23px 22px 24px;
    }

    .featured-news-title {
        font-size: 21px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .news-card-image {
        aspect-ratio: 16 / 10;
    }
}


@media (max-width: 480px) {

    .news-hero-title {
        font-size: 32px;
    }

    .news-hero-button {
        width: 100%;
    }

    .news-card-body {
        padding: 21px 20px 22px;
    }

    .featured-news-body {
        padding: 21px 20px 22px;
    }

    .featured-news-meta {
        flex-wrap: wrap;
        gap: 12px;
    }
}


