/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: #f7f8f5;
    color: #18352b;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}



/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    width: 100%;
    height: 72px;

    background: #0b6b43;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 7%;

    position: sticky;
    top: 0;
    z-index: 1000;

    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
}


/* LOGO */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.logo-text h2 {
    color: white;

    font-family: "Playfair Display", serif;

    font-size: 19px;

    line-height: 1.1;
}

.logo-text span {
    color: #d5eadf;

    font-size: 10px;
}



/* MENU */

.menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.menu li a {
    color: white;

    font-size: 13px;

    font-weight: 600;

    padding: 9px 13px;

    border-radius: 8px;

    transition: .3s ease;
}

.menu li a:hover,
.menu li a.active {
    background: rgba(255, 255, 255, .14);
}



/* LOGIN */

.menu .login-btn {
    background: #ffd54f;

    color: #174d37;

    margin-left: 7px;

    padding: 10px 15px;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, .12);
}

.menu .login-btn:hover {
    background: #ffe27b;

    transform: translateY(-2px);
}

.login-btn i {
    margin-right: 5px;
}



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

.berita-hero {
    min-height: 310px;

    position: relative;

    overflow: hidden;

    display: flex;
    align-items: center;

    background:
        linear-gradient(110deg,
            rgba(5, 49, 31, .97),
            rgba(11, 107, 67, .90),
            rgba(27, 137, 87, .72));
}


/* DEKORASI */

.berita-hero::before {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    border:
        1px solid rgba(255, 255, 255, .13);

    border-radius: 50%;

    right: -100px;
    top: -150px;
}

.berita-hero::after {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    border:
        1px solid rgba(255, 255, 255, .1);

    border-radius: 50%;

    left: -80px;
    bottom: -120px;
}



/* HERO CONTENT */

.hero-content {
    width: 86%;
    max-width: 1200px;

    margin: auto;

    position: relative;

    z-index: 2;

    color: white;
}

.hero-label {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 7px 12px;

    background:
        rgba(255, 255, 255, .12);

    border:
        1px solid rgba(255, 255, 255, .17);

    border-radius: 50px;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.4px;

    margin-bottom: 14px;
}


.hero-content h1 {
    font-family:
        "Playfair Display", serif;

    font-size:
        clamp(36px, 5vw, 58px);

    line-height: 1.1;

    margin-bottom: 12px;
}

.hero-content h1 span {
    color: #ffd54f;
}


.hero-content>p {
    max-width: 600px;

    color: #e5f2ec;

    font-size: 13px;

    line-height: 1.7;
}



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

.hero-stat {
    display: flex;

    align-items: center;

    gap: 25px;

    margin-top: 22px;
}

.hero-stat-item {
    display: flex;

    flex-direction: column;
}

.hero-stat-item strong {
    color: #ffd54f;

    font-size: 23px;

    line-height: 1;
}

.hero-stat-item span {
    color: #d7e9df;

    font-size: 10px;

    margin-top: 4px;
}

.hero-divider {
    width: 1px;

    height: 35px;

    background:
        rgba(255, 255, 255, .3);
}



/* =====================================================
   CONTAINER
===================================================== */

.berita-container {
    width: 86%;

    max-width: 1200px;

    margin: auto;
}



/* =====================================================
   SECTION
===================================================== */

.berita-section {
    padding: 55px 0 25px;
}


/* HEADING */

.section-heading {
    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 30px;

    margin-bottom: 25px;
}


.section-label {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #0b6b43;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.5px;

    margin-bottom: 5px;
}


.section-heading h2 {
    font-family:
        "Playfair Display", serif;

    color: #173d2e;

    font-size: 30px;

    line-height: 1.2;

    margin-bottom: 6px;
}


.section-heading p {
    max-width: 600px;

    color: #6c7d75;

    font-size: 12px;
}



/* =====================================================
   SEARCH
===================================================== */

.search-box {
    width: 230px;

    min-width: 230px;

    height: 40px;

    display: flex;

    align-items: center;

    gap: 9px;

    background: white;

    border:
        1px solid #e2e9e4;

    border-radius: 10px;

    padding: 0 12px;

    box-shadow:
        0 6px 20px rgba(23, 61, 46, .05);

    transition: .3s ease;
}

.search-box:focus-within {
    border-color: #0b6b43;

    box-shadow:
        0 6px 20px rgba(11, 107, 67, .1);
}

.search-box i {
    color: #0b6b43;

    font-size: 13px;
}

.search-box input {
    width: 100%;

    border: none;

    outline: none;

    background: transparent;

    color: #18352b;

    font-family:
        "DM Sans", sans-serif;

    font-size: 11px;
}

.search-box input::placeholder {
    color: #9aa8a1;
}



/* =====================================================
   GRID BERITA
===================================================== */

.berita-grid {
    display: grid;

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

    gap: 18px;
}



/* =====================================================
   CARD BERITA
===================================================== */

.berita-card {
    background: white;

    border:
        1px solid #e8eee9;

    border-radius: 16px;

    overflow: hidden;

    box-shadow:
        0 8px 25px rgba(23, 61, 46, .06);

    transition: .3s ease;
}

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

    box-shadow:
        0 15px 35px rgba(23, 61, 46, .11);
}



/* =====================================================
   FOTO
===================================================== */

.berita-foto {
    height: 175px;

    position: relative;

    overflow: hidden;

    background: #edf2ef;
}

.berita-foto img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: .4s ease;
}

.berita-card:hover .berita-foto img {
    transform: scale(1.04);
}



/* KATEGORI */

.berita-kategori {
    position: absolute;

    left: 12px;
    bottom: 12px;

    padding: 5px 9px;

    background:
        rgba(11, 107, 67, .92);

    color: white;

    border-radius: 7px;

    font-size: 9px;

    font-weight: 700;
}

.berita-kategori i {
    margin-right: 4px;
}



/* =====================================================
   INFO BERITA
===================================================== */

.berita-info {
    padding: 17px;
}


.berita-tanggal {
    display: flex;

    align-items: center;

    gap: 5px;

    color: #0b6b43;

    font-size: 9px;

    font-weight: 700;

    margin-bottom: 7px;
}

.berita-tanggal i {
    font-size: 9px;
}

.berita-info h3 {
    font-family: "Playfair Display", serif;
    color: #193e30;
    font-size: 17px;
    line-height: 1.35;
    margin-bottom: 7px;

    max-height: 46px;
    overflow: hidden;
}

.berita-deskripsi {
    color: #718078;
    font-size: 11px;
    line-height: 1.7;
    margin-bottom: 12px;

    max-height: 56px;
    overflow: hidden;
}

/* =====================================================
   BUTTON
===================================================== */

.btn-info {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #0b6b43;

    font-size: 10px;

    font-weight: 800;

    transition: .3s ease;
}

.btn-info i {
    font-size: 9px;

    transition: .3s ease;
}

.btn-info:hover {
    color: #075334;
}

.btn-info:hover i {
    transform:
        translateX(4px);
}



/* =====================================================
   DATA KOSONG
===================================================== */

.berita-kosong {
    grid-column: 1 / -1;

    text-align: center;

    background: white;

    border:
        1px solid #e8eee9;

    border-radius: 16px;

    padding: 50px 20px;

    box-shadow:
        0 8px 25px rgba(23, 61, 46, .05);
}

.kosong-icon {
    width: 55px;
    height: 55px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin:
        0 auto 12px;

    border-radius: 15px;

    background: #e2f3e9;

    color: #0b6b43;

    font-size: 22px;
}

.berita-kosong h3 {
    font-family:
        "Playfair Display", serif;

    color: #193e30;

    font-size: 20px;

    margin-bottom: 5px;
}

.berita-kosong p {
    color: #829089;

    font-size: 11px;
}



/* =====================================================
   INFO BOX
===================================================== */

.berita-info-box {
    margin:
        20px 0 55px;

    padding: 25px 30px;

    display: flex;

    align-items: center;

    gap: 18px;

    border-radius: 18px;

    background:
        linear-gradient(120deg,
            #0b6b43,
            #104e38);

    color: white;

    position: relative;

    overflow: hidden;
}

.berita-info-box::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    border:
        1px solid rgba(255, 255, 255, .1);

    border-radius: 50%;

    right: -70px;
    top: -80px;
}


.info-icon {
    min-width: 50px;

    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        rgba(255, 255, 255, .12);

    border-radius: 13px;

    color: #ffd54f;

    font-size: 20px;
}


.info-text {
    position: relative;

    z-index: 2;
}

.info-text>span {
    color: #ffd54f;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.3px;
}

.info-text h2 {
    font-family:
        "Playfair Display", serif;

    font-size: 20px;

    margin: 2px 0 4px;
}

.info-text p {
    color: #d6e9df;

    font-size: 11px;

    max-width: 650px;
}

/* =====================================================
   FOOTER
===================================================== */

footer {
    background: #123c2d;

    color: white;
}

.footer-container {
    width: 86%;

    max-width: 1200px;

    margin: auto;

    padding: 40px 0 30px;

    display: grid;

    grid-template-columns: 1fr 1fr 1fr;

    gap: 35px;
}

.footer-column h3 {
    font-family: "Playfair Display", serif;

    font-size: 16px;

    margin-bottom: 12px;
}

.footer-column ul {
    display: flex;

    flex-direction: column;

    gap: 6px;
}

.footer-column ul li a {
    color: #c5d9d0;

    font-size: 10px;

    transition: .3s ease;
}

.footer-column ul li a:hover {
    color: #ffd54f;

    padding-left: 3px;
}

.footer-column p {
    color: #c5d9d0;

    font-size: 10px;

    margin-bottom: 6px;
}

.footer-column p i {
    width: 16px;

    color: #ffd54f;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);

    text-align: center;

    padding: 13px;
}

.footer-bottom p {
    color: #9fb9ad;

    font-size: 9px;
}

footer span {

    color: #FFD54F;

    font-weight: 600;
}

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

@media (max-width: 950px) {

    .navbar {
        padding: 0 4%;
    }

    .menu {
        gap: 2px;
    }

    .menu li a {
        padding: 8px 8px;

        font-size: 11px;
    }


    .berita-container,
    .hero-content {
        width: 90%;
    }


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


    .section-heading {
        align-items: flex-start;

        flex-direction: column;
    }


    .search-box {
        width: 100%;
    }


    .footer-container {
        width: 88%;

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

        gap: 30px;
    }

}

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

@media (max-width: 650px) {

    .navbar {
        height: auto;

        min-height: 72px;

        padding: 10px 5%;

        flex-direction: column;

        gap: 10px;
    }


    .logo img {
        width: 40px;
        height: 40px;
    }


    .logo-text h2 {
        font-size: 17px;
    }


    .logo-text span {
        font-size: 9px;
    }


    .menu {
        flex-wrap: wrap;

        justify-content: center;
    }


    .menu li a {
        font-size: 10px;

        padding: 6px 7px;
    }


    .menu .login-btn {
        margin-left: 0;
    }



    /* HERO */

    .berita-hero {
        min-height: 280px;
    }


    .hero-content h1 {
        font-size: 37px;
    }


    .hero-content>p {
        font-size: 11px;
    }


    .hero-stat {
        margin-top: 18px;

        gap: 18px;
    }


    .hero-stat-item strong {
        font-size: 20px;
    }



    /* SECTION */

    .berita-section {
        padding-top: 45px;
    }


    .section-heading h2 {
        font-size: 27px;
    }



    /* GRID */

    .berita-grid {
        grid-template-columns: 1fr;

        gap: 15px;
    }


    .berita-foto {
        height: 185px;
    }



    /* INFO */

    .berita-info-box {
        padding: 22px;

        align-items: flex-start;
    }



    /* FOOTER */

    .footer-container {
        width: 85%;

        grid-template-columns: 1fr;

        gap: 25px;

        padding: 35px 0 25px;
    }

}

/* =====================================================
   HAMBURGER MENU
===================================================== */

.menu-toggle {
    display: none;

    width: 40px;
    height: 40px;

    padding: 0;

    border: none;
    border-radius: 8px;

    background: transparent;

    color: #087443;

    font-size: 21px;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition: 0.2s ease;
}

.menu-toggle:hover {
    background: #e8f5ec;
}


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

@media (max-width: 768px) {

    .navbar {
        position: relative;

        min-height: 70px;

        padding: 10px 18px;

        display: flex;
        align-items: center;

        z-index: 9999;
    }


    /* LOGO */

    .navbar .logo {
        display: flex;

        align-items: center;

        gap: 9px;

        min-width: 0;
    }


    .navbar .logo img {
        width: 42px;
        height: 42px;

        object-fit: contain;

        flex-shrink: 0;
    }


    .navbar .logo-text {
        min-width: 0;
    }


    .navbar .logo-text h2 {
        margin: 0;

        font-size: 16px;

        white-space: nowrap;
    }


    .navbar .logo-text span {
        display: block;

        font-size: 8px;

        white-space: nowrap;
    }


    /* =================================================
       HAMBURGER
    ================================================= */

    .menu-toggle {
        display: flex;

        margin-left: auto;

        flex-shrink: 0;
    }


    /* =================================================
       MENU NAVBAR
    ================================================= */

    .navbar nav {
        position: absolute;

        top: 70px;
        left: 0;

        width: 100%;

        background: #ffffff;

        box-shadow:
            0 8px 20px rgba(0, 0, 0, 0.10);

        opacity: 0;

        visibility: hidden;

        transform: translateY(-10px);

        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s ease;
    }


    /* MENU TERBUKA */

    .navbar nav.active {
        opacity: 1;

        visibility: visible;

        transform: translateY(0);
    }


    /* LIST */

    .navbar nav .menu {
        display: flex;

        flex-direction: column;

        width: 100%;

        margin: 0;

        padding: 7px 0;

        gap: 0;
    }


    .navbar nav .menu li {
        width: 100%;

        list-style: none;
    }


    /* LINK */

    .navbar nav .menu li a {
        display: flex;

        align-items: center;

        width: 100%;

        min-height: 44px;

        padding: 10px 20px;

        box-sizing: border-box;

        color: #123c2d;

        font-size: 12px;

        font-weight: 600;

        text-decoration: none;

        transition: 0.2s ease;
    }


    /* HOVER */

    .navbar nav .menu li a:hover {
        background: #e8f5ec;

        color: #087443;
    }


    /* ACTIVE */

    .navbar nav .menu li a.active {
        background: #e8f5ec;

        color: #087443;

        font-weight: 700;
    }


    /* =================================================
       LOGIN ADMIN
    ================================================= */

    .navbar nav .menu li .login-btn {

        width: calc(100% - 36px);

        min-height: 40px;

        margin: 8px 18px;

        justify-content: center;

        background: #ffd54f;

        color: #123c2d;

        border-radius: 8px;
    }


    .navbar nav .menu li .login-btn:hover {

        background: #f5c933;

        color: #123c2d;
    }


    .navbar nav .menu li .login-btn i {

        margin-right: 7px;
    }

}


/* =====================================================
   HP KECIL
===================================================== */

@media (max-width: 480px) {

    .navbar {

        min-height: 65px;

        padding: 8px 14px;
    }


    .navbar .logo img {

        width: 39px;
        height: 39px;
    }


    .navbar .logo-text h2 {

        font-size: 15px;
    }


    .navbar .logo-text span {

        font-size: 7px;
    }


    .menu-toggle {

        width: 38px;
        height: 38px;

        font-size: 20px;
    }


    .navbar nav {

        top: 65px;
    }


    .navbar nav .menu li a {

        min-height: 42px;

        padding: 9px 17px;

        font-size: 12px;
    }

}