/* =========================================================
   BERITA - MEDNUS
========================================================= */

.berita-container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding-left: 20px;
    padding-right: 20px;
}


/* =========================================================
   HERO
========================================================= */

.berita-hero {
    position: relative;
    min-height: 410px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #0b3d91 0%,
            #0d6efd 55%,
            #38bdf8 100%
        );
}

.berita-hero::before {
    content: "";
    position: absolute;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    right: -150px;
    top: -200px;
    background: rgba(255,255,255,.08);
}

.berita-hero::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    left: -120px;
    bottom: -170px;
    background: rgba(255,255,255,.06);
}

.berita-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(3,37,84,.30),
            transparent
        );
}

.berita-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    color: #fff;
}

.berita-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.10);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .8px;
    margin-bottom: 22px;
    backdrop-filter: blur(8px);
}

.berita-hero-content h1 {
    margin: 0;
    font-size: clamp(40px, 5vw, 62px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.berita-hero-content h1 span {
    display: block;
    color: #dff5ff;
}

.berita-hero-content p {
    max-width: 680px;
    margin: 20px 0 0;
    color: rgba(255,255,255,.88);
    font-size: 16px;
    line-height: 1.8;
}

.berita-hero-line {
    width: 70px;
    height: 4px;
    margin-top: 26px;
    border-radius: 10px;
    background: #fff;
}


/* =========================================================
   SECTION
========================================================= */

.berita-section {
    padding: 80px 0 95px;
    background: #f8fafc;
}

.berita-page-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.berita-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #0d6efd;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.berita-page-heading h2 {
    margin: 0;
    color: #102a43;
    font-size: 36px;
    font-weight: 800;
}

.berita-total {
    padding: 8px 15px;
    border-radius: 50px;
    background: #eaf3ff;
    color: #0d6efd;
    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   SEARCH
========================================================= */

.berita-search-box {
    padding: 17px;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #e6edf4;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(15,23,42,.04);
}

.berita-search-box form {
    display: flex;
    gap: 12px;
}

.berita-search-input {
    position: relative;
    flex: 1;
}

.berita-search-input > i {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.berita-search-input input {
    width: 100%;
    height: 50px;
    padding: 0 45px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    color: #334155;
    font-family: inherit;
    font-size: 14px;
    transition: border .2s ease, box-shadow .2s ease;
}

.berita-search-input input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13,110,253,.08);
}

.berita-search-clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    text-decoration: none;
}

.berita-search-clear:hover {
    color: #0d6efd;
}

.berita-search-button {
    min-width: 110px;
    height: 50px;
    border: 0;
    border-radius: 12px;
    background: #0d6efd;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s ease;
}

.berita-search-button:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
}

.berita-search-result {
    margin: 20px 0;
    color: #64748b;
    font-size: 14px;
}


/* =========================================================
   GRID
========================================================= */

.berita-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 30px;
}

.berita-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e7edf4;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(15,23,42,.04);
    transition: transform .3s ease, box-shadow .3s ease;
}

.berita-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 40px rgba(15,23,42,.10);
}


/* =========================================================
   IMAGE
========================================================= */

.berita-image-link {
    display: block;
    text-decoration: none;
}

.berita-image {
    position: relative;
    width: 100%;
    height: 235px;
    overflow: hidden;
    background: #eaf0f6;
}

.berita-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform .5s ease;
}

.berita-card:hover .berita-image img {
    transform: scale(1.06);
}

.berita-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 50px;
}

.berita-image-badge {
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    color: #0d6efd;
    font-size: 17px;
    box-shadow: 0 5px 15px rgba(0,0,0,.12);
    transition: transform .3s ease;
}

.berita-card:hover .berita-image-badge {
    transform: rotate(5deg) scale(1.05);
}


/* =========================================================
   CARD BODY
========================================================= */

.berita-card-body {
    padding: 22px;
}

.berita-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    color: #94a3b8;
    font-size: 11px;
}

.berita-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.berita-meta i {
    color: #0d6efd;
}

.berita-card-body h3 {
    margin: 0;
    line-height: 1.45;
}

.berita-card-body h3 a {
    display: -webkit-box;
    overflow: hidden;
    color: #102a43;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color .2s ease;
}

.berita-card-body h3 a:hover {
    color: #0d6efd;
}

.berita-card-body p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 44px;
    margin: 12px 0 16px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.berita-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0d6efd;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: gap .25s ease;
}

.berita-read-more:hover {
    gap: 13px;
}


/* =========================================================
   EMPTY
========================================================= */

.berita-empty {
    padding: 75px 20px;
    text-align: center;
    background: #fff;
    border: 1px solid #e7edf4;
    border-radius: 22px;
}

.berita-empty-icon {
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 22px;
    background: #eaf3ff;
    color: #0d6efd;
    font-size: 30px;
}

.berita-empty h3 {
    margin: 0;
    color: #102a43;
    font-size: 23px;
    font-weight: 700;
}

.berita-empty p {
    max-width: 500px;
    margin: 10px auto 22px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.berita-empty-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 10px;
    background: #0d6efd;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   PAGINATION
========================================================= */

.berita-pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.berita-pagination ul {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.berita-pagination a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #fff;
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all .25s ease;
}

.berita-pagination a:hover,
.berita-pagination a.active {
    border-color: #0d6efd;
    background: #0d6efd;
    color: #fff;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .berita-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {

    .berita-hero {
        min-height: 370px;
    }

    .berita-section {
        padding: 60px 0 75px;
    }

    .berita-page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .berita-page-heading h2 {
        font-size: 30px;
    }

    .berita-search-box form {
        flex-direction: column;
    }

    .berita-search-button {
        width: 100%;
    }

    .berita-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 480px) {

    .berita-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .berita-hero-content h1 {
        font-size: 39px;
    }

    .berita-hero-content p {
        font-size: 14px;
    }

    .berita-image {
        height: 220px;
    }

    .berita-card-body {
        padding: 20px;
    }

    .berita-pagination ul {
        gap: 5px;
    }

    .berita-pagination a {
        width: 38px;
        height: 38px;
    }

}