/* =========================================================
   BERITA DESA KANDANG
========================================================= */

/* =========================================================
   REVEAL
========================================================= */

.news-reveal {
    opacity: 0;
    transform: translateY(35px);

    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.news-reveal.news-visible {
    opacity: 1;
    transform: translateY(0);
}

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

.news-hero {
    position: relative;

    min-height: 430px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: #022c22;
}

.news-hero-pattern {
    position: absolute;
    inset: 0;

    opacity: 0.13;

    background-image: radial-gradient(
        circle at 20% 30%,
        rgba(255, 255, 255, 0.2) 1px,
        transparent 1px
    );

    background-size: 35px 35px;
}

.news-hero-glow {
    position: absolute;

    width: 450px;
    height: 450px;

    border-radius: 50%;

    filter: blur(5px);

    opacity: 0.13;
}

.news-glow-one {
    right: -180px;
    top: -220px;

    background: #34d399;
}

.news-glow-two {
    left: -220px;
    bottom: -270px;

    background: #22c55e;
}

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

.news-hero-content {
    max-width: 750px;

    padding: 80px 0;
}

.news-eyebrow {
    display: inline-block;

    margin-bottom: 18px;

    padding: 8px 14px;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50px;

    background: rgba(255, 255, 255, 0.05);

    color: #a7f3d0;

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

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

.news-hero h1 {
    margin: 0 0 18px;

    color: white;

    font-size: clamp(48px, 7vw, 75px);

    line-height: 1;

    letter-spacing: -3px;
}

.news-hero h1 span {
    color: #6ee7b7;
}

.news-hero p {
    max-width: 590px;

    margin: 0;

    color: rgba(255, 255, 255, 0.62);

    font-size: 14px;

    line-height: 1.8;
}

.news-breadcrumb {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-top: 27px;

    color: rgba(255, 255, 255, 0.4);

    font-size: 12px;
}

.news-breadcrumb a {
    color: #86efac;

    text-decoration: none;
}

.news-breadcrumb strong {
    color: white;
}

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

.news-section {
    padding: 100px 0;

    background: #f8fafc;
}

/* =========================================================
   TOP BAR
========================================================= */

.news-topbar {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 40px;

    margin-bottom: 35px;
}

.news-label {
    color: #16a34a;

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

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

.news-topbar h2 {
    margin: 9px 0 0;

    color: #0f172a;

    font-size: clamp(32px, 5vw, 48px);

    line-height: 1.1;

    letter-spacing: -1.5px;
}

.news-topbar h2 strong {
    color: #16a34a;
}

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

.news-search {
    width: 300px;

    display: flex;

    overflow: hidden;

    border: 1px solid #e2e8f0;

    border-radius: 12px;

    background: white;

    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.news-search:focus-within {
    border-color: #86efac;

    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.08);
}

.news-search input {
    width: 100%;

    padding: 13px 15px;

    border: 0;
    outline: 0;

    background: transparent;

    color: #0f172a;

    font-family: inherit;

    font-size: 12px;
}

.news-search input::placeholder {
    color: #94a3b8;
}

.news-search button {
    width: 48px;

    border: 0;

    background: transparent;

    cursor: pointer;

    font-size: 14px;
}

/* =========================================================
   CATEGORY
========================================================= */

.news-category {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;

    margin-bottom: 35px;
}

.category-btn {
    padding: 9px 15px;

    border: 1px solid #e2e8f0;
    border-radius: 50px;

    background: white;

    color: #64748b;

    font-family: inherit;

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

    cursor: pointer;

    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease,
        transform 0.25s ease;
}

.category-btn:hover {
    transform: translateY(-2px);

    border-color: #bbf7d0;

    color: #15803d;
}

.category-btn.active {
    border-color: #15803d;

    background: #15803d;

    color: white;
}

/* =========================================================
   FEATURED
========================================================= */

.news-featured {
    display: grid;

    grid-template-columns: 1.15fr 0.85fr;

    min-height: 440px;

    overflow: hidden;

    margin-bottom: 45px;

    border-radius: 22px;

    background: white;

    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);

    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

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

    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.11);
}

.featured-image {
    position: relative;

    min-height: 440px;

    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.7s ease;
}

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

.featured-badge {
    position: absolute;

    top: 22px;
    left: 22px;

    padding: 8px 12px;

    border-radius: 7px;

    background: #15803d;

    color: white;

    font-size: 9px;
    font-weight: 850;

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

.featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 50px;
}

.news-meta {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 17px;

    color: #94a3b8;

    font-size: 10px;
}

.news-category-tag {
    padding: 6px 9px;

    border-radius: 5px;

    background: #ecfdf5;

    color: #15803d;

    font-weight: 800;
}

.featured-content h3 {
    margin: 0 0 17px;

    color: #0f172a;

    font-size: clamp(26px, 3vw, 39px);

    line-height: 1.15;

    letter-spacing: -1px;
}

.featured-content > p {
    margin: 0;

    color: #64748b;

    font-size: 13px;

    line-height: 1.8;
}

.news-read-more {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    align-self: flex-start;

    margin-top: 28px;

    color: #15803d;

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

    text-decoration: none;

    transition: gap 0.25s ease;
}

.news-read-more span {
    font-size: 17px;
}

.news-read-more:hover {
    gap: 15px;
}

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

.news-grid {
    display: grid;

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

    gap: 22px;
}

.news-card {
    overflow: hidden;

    border: 1px solid #e2e8f0;

    border-radius: 18px;

    background: white;

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

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

    border-color: #bbf7d0;

    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.08);
}

/* =========================================================
   CARD IMAGE
========================================================= */

.news-card-image {
    position: relative;

    height: 215px;

    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.6s ease;
}

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

.news-card-image > span {
    position: absolute;

    top: 14px;
    left: 14px;

    padding: 6px 9px;

    border-radius: 5px;

    background: rgba(2, 44, 34, 0.9);

    color: #a7f3d0;

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

    text-transform: uppercase;
}

/* =========================================================
   CARD CONTENT
========================================================= */

.news-card-content {
    padding: 25px;
}

.news-card-date {
    margin-bottom: 10px;

    color: #94a3b8;

    font-size: 10px;
}

.news-card-content h3 {
    min-height: 52px;

    margin: 0 0 12px;

    color: #0f172a;

    font-size: 18px;

    line-height: 1.35;
}

.news-card-content p {
    min-height: 60px;

    margin: 0;

    color: #64748b;

    font-size: 11px;

    line-height: 1.7;
}

.news-card-content > a {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-top: 20px;

    color: #15803d;

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

    text-decoration: none;

    transition: gap 0.25s ease;
}

.news-card-content > a span {
    font-size: 15px;
}

.news-card-content > a:hover {
    gap: 13px;
}

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

.news-empty {
    display: none;

    padding: 70px 20px;

    text-align: center;
}

.news-empty.show {
    display: block;
}

.news-empty > div {
    width: 60px;
    height: 60px;

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

    margin: 0 auto 15px;

    border-radius: 18px;

    background: white;

    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);

    font-size: 22px;
}

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

    color: #0f172a;

    font-size: 20px;
}

.news-empty p {
    margin: 0;

    color: #94a3b8;

    font-size: 12px;
}

/* =========================================================
   PAGINATION
========================================================= */

.news-pagination {
    display: flex;

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

    gap: 7px;

    margin-top: 55px;
}

.page-btn,
.page-next {
    width: 38px;
    height: 38px;

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

    border: 1px solid #e2e8f0;
    border-radius: 9px;

    background: white;

    color: #64748b;

    font-family: inherit;

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

    cursor: pointer;

    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease,
        border-color 0.25s ease;
}

.page-btn:hover,
.page-next:hover {
    transform: translateY(-2px);

    border-color: #bbf7d0;

    color: #15803d;
}

.page-btn.active {
    border-color: #15803d;

    background: #15803d;

    color: white;
}

/* =========================================================
   CTA
========================================================= */

.news-cta {
    padding: 85px 0;

    background: #022c22;
}

.news-cta-content {
    display: flex;

    align-items: center;

    gap: 25px;

    max-width: 850px;

    margin: auto;
}

.news-cta-icon {
    width: 70px;
    height: 70px;

    flex-shrink: 0;

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

    border-radius: 20px;

    background: rgba(255, 255, 255, 0.08);

    font-size: 28px;
}

.news-cta-content span {
    color: #6ee7b7;

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

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

.news-cta-content h2 {
    margin: 7px 0 8px;

    color: white;

    font-size: clamp(26px, 4vw, 40px);

    line-height: 1.15;
}

.news-cta-content p {
    margin: 0;

    color: rgba(255, 255, 255, 0.55);

    font-size: 12px;

    line-height: 1.7;
}

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

@media (max-width: 1000px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {
    .news-section {
        padding: 75px 0;
    }

    .news-topbar {
        display: block;
    }

    .news-search {
        width: 100%;

        margin-top: 25px;
    }

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

    .featured-image {
        min-height: 300px;
        height: 300px;
    }

    .featured-content {
        padding: 32px;
    }

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

    .news-cta {
        padding: 65px 0;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 520px) {
    .news-hero {
        min-height: 470px;
    }

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

    .news-hero h1 {
        font-size: 47px;

        letter-spacing: -2px;
    }

    .news-category {
        overflow-x: auto;

        flex-wrap: nowrap;

        padding-bottom: 5px;

        scrollbar-width: none;
    }

    .news-category::-webkit-scrollbar {
        display: none;
    }

    .category-btn {
        flex-shrink: 0;
    }

    .featured-image {
        min-height: 240px;
        height: 240px;
    }

    .featured-content {
        padding: 27px;
    }

    .featured-content h3 {
        font-size: 27px;
    }

    .news-card-content h3,
    .news-card-content p {
        min-height: auto;
    }

    .news-cta-content {
        align-items: flex-start;
    }

    .news-cta-icon {
        width: 55px;
        height: 55px;

        font-size: 22px;
    }
}
