/* =========================================================
   HALAMAN PUBLIK BERITA
   YAYASAN NURUL ISLAM
   PREMIUM EMERALD
========================================================= */

:root {

    --emerald-950: #022c22;
    --emerald-900: #064b3b;
    --emerald-800: #07634c;
    --emerald-700: #087b5b;
    --emerald-600: #0a936b;
    --emerald-500: #10b981;

    --emerald-soft: #effbf6;
    --emerald-light: #dff8ee;

    --gold: #c9a84e;

    --white: #ffffff;

    --dark: #10231e;
    --text: #42564f;
    --muted: #7b8984;

    --border: rgba(3, 46, 36, .10);

}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    margin: 0;

    color: var(--text);

    background: #ffffff;

    font-family:
        "Poppins",
        Arial,
        sans-serif;

    overflow-x: hidden;

}


a {
    text-decoration: none;
}


img {
    max-width: 100%;
}


/* =========================================================
   CONTAINER
========================================================= */

.news-container {

    width:
        min(
            1180px,
            calc(100% - 40px)
        );

    margin:
        0 auto;

}


/* =========================================================
   HERO
========================================================= */

.news-hero {

    position: relative;

    overflow: hidden;

    padding:
        88px
        0
        78px;

    background:

        radial-gradient(
            circle at 85% 15%,
            rgba(86, 255, 197, .18),
            transparent 27%
        ),

        radial-gradient(
            circle at 8% 90%,
            rgba(16, 185, 129, .14),
            transparent 28%
        ),

        linear-gradient(
            135deg,
            #022c22,
            #064b3b 48%,
            #087b5b
        );

}


.news-hero::after {

    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #65e8b7,
            rgba(255,255,255,.55),
            #65e8b7,
            transparent
        );

}


.news-glow {

    position: absolute;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(5px);

}


.news-glow-one {

    width: 340px;
    height: 340px;

    right: -140px;
    top: -130px;

    background:
        radial-gradient(
            circle,
            rgba(89,255,194,.20),
            transparent 70%
        );

}


.news-glow-two {

    width: 300px;
    height: 300px;

    left: -150px;
    bottom: -170px;

    background:
        radial-gradient(
            circle,
            rgba(16,185,129,.18),
            transparent 70%
        );

}


.news-hero-content {

    position: relative;

    max-width: 820px;

}


.news-eyebrow {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 20px;

    padding:
        9px
        15px;

    border:
        1px solid
        rgba(190,255,230,.27);

    border-radius: 100px;

    color: #d9fff0;

    background:
        rgba(255,255,255,.07);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2px;

}


.news-eyebrow i {

    color: #72efc0;

}


.news-hero h1 {

    margin: 0;

    color: #ffffff;

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size:
        clamp(
            44px,
            5vw,
            72px
        );

    line-height: 1.05;

    letter-spacing: -1px;

}


.news-hero h1 span {

    display: block;

    color: #73efc1;

    text-shadow:
        0 0 30px
        rgba(80,255,192,.16);

}


.news-hero p {

    max-width: 700px;

    margin:
        24px
        0
        34px;

    color:
        rgba(255,255,255,.76);

    font-size: 15px;

    line-height: 1.85;

}


/* =========================================================
   STATS
========================================================= */

.news-stats {

    display: flex;

    align-items: center;

    gap: 25px;

}


.news-stat {

    display: flex;

    flex-direction: column;

    gap: 3px;

}


.news-stat strong {

    color: #ffffff;

    font-size: 22px;

    font-weight: 800;

}


.news-stat span {

    color:
        rgba(255,255,255,.58);

    font-size: 10px;

    font-weight: 500;

}


.news-stat-line {

    width: 1px;

    height: 38px;

    background:
        rgba(255,255,255,.18);

}


/* =========================================================
   LIST SECTION
========================================================= */

.news-list-section {

    padding:
        70px
        0
        100px;

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f7fcfa
        );

}


/* =========================================================
   FILTER
========================================================= */

.news-filter {

    margin-bottom: 60px;

    padding: 10px;

    background: #ffffff;

    border:
        1px solid
        var(--border);

    border-radius: 18px;

    box-shadow:
        0 15px 45px
        rgba(3,46,36,.07);

}


.news-filter form {

    display: grid;

    grid-template-columns:
        1.7fr
        1fr
        1fr
        auto
        auto;

    gap: 10px;

}


.filter-search,
.filter-select {

    position: relative;

}


.filter-search i,
.filter-select i {

    position: absolute;

    left: 16px;

    top: 50%;

    transform:
        translateY(-50%);

    color:
        var(--emerald-700);

    pointer-events: none;

}


.filter-search input,
.filter-select select {

    width: 100%;

    height: 52px;

    padding:
        0
        15px
        0
        44px;

    border:
        1px solid
        rgba(3,46,36,.10);

    border-radius: 13px;

    outline: none;

    background: #fbfefd;

    color: var(--dark);

    font-family: inherit;

    font-size: 13px;

    transition: .25s ease;

}


.filter-search input:focus,
.filter-select select:focus {

    background: #ffffff;

    border-color:
        rgba(16,185,129,.55);

    box-shadow:
        0 0 0 4px
        rgba(16,185,129,.08);

}


.filter-button {

    height: 52px;

    padding:
        0
        23px;

    border: 0;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #087b5b,
            #0a936b
        );

    color: #ffffff;

    font-family: inherit;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 10px 25px
        rgba(8,123,91,.18);

    transition: .25s ease;

}


.filter-button:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 15px 30px
        rgba(8,123,91,.25);

}


.filter-reset {

    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(8,123,91,.20);

    border-radius: 13px;

    color:
        var(--emerald-700);

    transition: .25s ease;

}


.filter-reset:hover {

    background:
        var(--emerald-soft);

    transform:
        rotate(-15deg);

}


/* =========================================================
   HEADING
========================================================= */

.news-heading {

    display: flex;

    justify-content: space-between;

    align-items: end;

    gap: 30px;

    margin-bottom: 32px;

}


.section-kicker {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    color:
        var(--emerald-700);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;

}


.section-kicker i {

    color: var(--gold);

}


.news-heading h2 {

    margin:
        8px
        0
        5px;

    color:
        var(--dark);

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size: 40px;

}


.news-heading p {

    margin: 0;

    color: var(--muted);

    font-size: 13px;

}


.news-total {

    display: flex;

    align-items: baseline;

    gap: 7px;

    color: var(--muted);

    font-size: 12px;

}


.news-total strong {

    color:
        var(--emerald-700);

    font-size: 27px;

}


/* =========================================================
   GRID
========================================================= */

.news-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0,1fr));

    gap: 28px;

}


/* =========================================================
   CARD
========================================================= */

.news-card {

    overflow: hidden;

    background: #ffffff;

    border:
        1px solid
        rgba(3,46,36,.09);

    border-radius: 22px;

    box-shadow:
        0 10px 35px
        rgba(3,46,36,.07);

    transition:
        .35s ease;

}


.news-card:hover {

    transform:
        translateY(-8px);

    border-color:
        rgba(16,185,129,.25);

    box-shadow:
        0 28px 70px
        rgba(3,46,36,.16);

}


/* =========================================================
   IMAGE
========================================================= */

.news-image {

    position: relative;

    height: 235px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #064b3b,
            #0a936b
        );

}


.news-image img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .7s
        cubic-bezier(.2,.8,.2,1);

}


.news-card:hover
.news-image img {

    transform:
        scale(1.07);

}


.news-placeholder {

    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    color:
        rgba(255,255,255,.8);

    font-size: 45px;

}


.image-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 45%,
            rgba(0,35,27,.62)
        );

}


.unit-badge {

    position: absolute;

    top: 16px;
    left: 16px;

    padding:
        7px
        12px;

    border:
        1px solid
        rgba(255,255,255,.25);

    border-radius: 100px;

    background:
        rgba(255,255,255,.91);

    color:
        var(--emerald-900);

    font-size: 9px;

    font-weight: 800;

}


.unit-tpq {
    color: #087b5b;
}


.unit-mdtu {
    color: #07634c;
}


.unit-yayasan {
    color: #806518;
}


.news-date {

    position: absolute;

    left: 17px;
    bottom: 15px;

    display: flex;

    align-items: center;

    gap: 6px;

    color: #ffffff;

    font-size: 10px;

    font-weight: 600;

}


/* =========================================================
   CARD BODY
========================================================= */

.news-card-body {

    padding:
        23px
        23px
        20px;

}


.news-category {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    margin-bottom: 9px;

    color:
        var(--emerald-700);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;

}


.news-category i {

    color: var(--gold);

    font-size: 8px;

}


.news-card h3 {

    margin:
        0
        0
        11px;

    color:
        var(--dark);

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size: 22px;

    line-height: 1.3;

}


.news-card p {

    min-height: 64px;

    margin:
        0
        0
        18px;

    color:
        var(--muted);

    font-size: 12px;

    line-height: 1.75;

}


/* =========================================================
   META
========================================================= */

.news-meta {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding-top: 15px;

    border-top:
        1px solid
        rgba(3,46,36,.08);

}


.author {

    display: flex;

    align-items: center;

    gap: 9px;

}


.author-icon {

    width: 32px;
    height: 32px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        var(--emerald-light);

    color:
        var(--emerald-800);

    font-size: 12px;

}


.author div {

    display: flex;

    flex-direction: column;

}


.author small {

    color: #9aa6a1;

    font-size: 8px;

}


.author strong {

    max-width: 150px;

    overflow: hidden;

    color:
        var(--dark);

    font-size: 10px;

    text-overflow: ellipsis;

    white-space: nowrap;

}


.views {

    display: flex;

    align-items: center;

    gap: 5px;

    color: #8c9893;

    font-size: 10px;

}


/* =========================================================
   CARD FOOTER
========================================================= */

.news-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 19px;

    padding-top: 16px;

    border-top:
        1px solid
        rgba(3,46,36,.07);

    color:
        var(--emerald-700);

    font-size: 10px;

    font-weight: 700;

}


.arrow {

    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(8,123,91,.18);

    border-radius: 50%;

    transition: .3s ease;

}


.news-card:hover
.arrow {

    color: #ffffff;

    background:
        var(--emerald-700);

    transform:
        rotate(45deg);

}


/* =========================================================
   EMPTY
========================================================= */

.news-empty {

    padding:
        80px
        25px;

    text-align: center;

    background: #ffffff;

    border:
        1px solid
        var(--border);

    border-radius: 22px;

    box-shadow:
        0 20px 55px
        rgba(3,46,36,.08);

}


.empty-icon {

    width: 75px;
    height: 75px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin:
        0
        auto
        20px;

    border-radius: 50%;

    background:
        var(--emerald-soft);

    color:
        var(--emerald-700);

    font-size: 28px;

}


.news-empty h3 {

    margin:
        0
        0
        8px;

    color:
        var(--dark);

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size: 28px;

}


.news-empty p {

    max-width: 500px;

    margin:
        0
        auto
        20px;

    color:
        var(--muted);

    font-size: 13px;

    line-height: 1.7;

}


.premium-button {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding:
        11px
        19px;

    border-radius: 100px;

    background:
        linear-gradient(
            135deg,
            #087b5b,
            #0a936b
        );

    color: #ffffff;

    font-size: 11px;

    font-weight: 700;

}


/* =========================================================
   PAGINATION
========================================================= */

.news-pagination {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 8px;

    margin-top: 55px;

}


.page-button,
.page-number {

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(8,123,91,.15);

    border-radius: 12px;

    background: #ffffff;

    color:
        var(--emerald-800);

    font-size: 12px;

    font-weight: 700;

    transition: .25s ease;

}


.page-button:hover,
.page-number:hover {

    transform:
        translateY(-2px);

    background:
        var(--emerald-soft);

}


.page-number.active {

    color: #ffffff;

    border-color:
        var(--emerald-700);

    background:
        linear-gradient(
            135deg,
            #087b5b,
            #0a936b
        );

    box-shadow:
        0 8px 20px
        rgba(8,123,91,.20);

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .news-filter form {

        grid-template-columns:
            1fr 1fr;

    }


    .filter-search {

        grid-column:
            1 / -1;

    }


    .news-grid {

        grid-template-columns:
            repeat(2, minmax(0,1fr));

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .news-container {

        width:
            calc(100% - 28px);

    }


    .news-hero {

        padding:
            62px
            0
            58px;

    }


    .news-hero h1 {

        font-size: 42px;

    }


    .news-hero p {

        font-size: 13px;

    }


    .news-stats {

        gap: 14px;

        flex-wrap: wrap;

    }


    .news-stat-line {

        display: none;

    }


    .news-list-section {

        padding:
            48px
            0
            70px;

    }


    .news-filter form {

        grid-template-columns:
            1fr;

    }


    .filter-search {

        grid-column: auto;

    }


    .news-heading {

        align-items: flex-start;

        flex-direction: column;

    }


    .news-heading h2 {

        font-size: 32px;

    }


    .news-grid {

        grid-template-columns:
            1fr;

        gap: 22px;

    }


    .news-image {

        height: 230px;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .news-hero h1 {

        font-size: 36px;

    }


    .news-eyebrow {

        font-size: 9px;

        letter-spacing: 1.4px;

    }


    .news-card-body {

        padding:
            21px
            18px;

    }


    .news-card h3 {

        font-size: 20px;

    }

}