/* Berita Page Styles (matching template-jtipolije/berita.html) */

.featured {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    overflow: hidden;
    border: 1px solid var(--line, #e5eaf2);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow, 0 14px 40px rgba(15, 23, 42, .08));
    margin-bottom: 48px;
}

.featured-image {
    min-height: 350px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #dbeafe;
}

.featured-content {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--blue, #2563eb);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.featured h2 {
    margin: 14px 0 12px;
    font-size: clamp(1.45rem, 2.5vw, 2.1rem);
    line-height: 1.25;
    letter-spacing: -.04em;
    color: var(--navy, #0b1220);
}

.featured h2 a:hover {
    color: var(--blue, #2563eb);
}

.featured p {
    margin: 0 0 19px;
    color: var(--muted, #64748b);
    font-size: .88rem;
    line-height: 1.65;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--muted, #64748b);
    font-size: .74rem;
}

.meta i {
    margin-right: 5px;
    color: #94a3b8;
}

.read-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 23px;
    color: var(--blue, #2563eb);
    font-size: .86rem;
    font-weight: 800;
}

.read-link i {
    transition: transform .2s;
}

.read-link:hover i {
    transform: translateX(4px);
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.eyebrow {
    color: var(--blue, #2563eb);
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 7px 0 0;
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    letter-spacing: -.045em;
    line-height: 1.2;
    color: var(--navy, #0b1220);
}

.section-heading p {
    margin: 7px 0 0;
    color: var(--muted, #64748b);
    font-size: .86rem;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 0 0 24px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border: 1px solid var(--line, #e5eaf2);
    border-radius: 999px;
    background: #fff;
    color: #64748b;
    font-size: .76rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: .2s;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--blue, #2563eb);
    background: #eff6ff;
    color: var(--blue, #2563eb);
}

.search-box {
    position: relative;
    width: min(280px, 100%);
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: .85rem;
}

.search-box input {
    width: 100%;
    height: 42px;
    padding: 0 14px 0 39px;
    border: 1px solid var(--line, #e5eaf2);
    border-radius: 10px;
    outline: none;
    font-size: .8rem;
    box-sizing: border-box;
    font-family: inherit;
}

.search-box input:focus {
    border-color: var(--blue, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.news-card {
    overflow: hidden;
    border: 1px solid var(--line, #e5eaf2);
    border-radius: 16px;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow, 0 14px 40px rgba(15, 23, 42, .08));
}

.news-card[hidden] {
    display: none;
}

.news-card img {
    width: 100%;
    height: 205px;
    object-fit: cover;
    background: #dbeafe;
    display: block;
}

.news-body {
    padding: 19px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
    color: var(--muted, #64748b);
    font-size: .69rem;
}

.category {
    color: var(--blue, #2563eb);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.news-body h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    line-height: 1.45;
    letter-spacing: -.02em;
    color: var(--navy, #0b1220);
}

.news-body h3 a:hover {
    color: var(--blue, #2563eb);
}

.news-body p {
    margin: 0 0 15px;
    color: var(--muted, #64748b);
    font-size: .79rem;
    line-height: 1.7;
    flex: 1;
}

.card-link {
    color: var(--blue, #2563eb);
    font-size: .79rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
}

.card-link i {
    transition: transform .2s;
}

.card-link:hover i {
    transform: translateX(4px);
}

.empty-state {
    display: none;
    padding: 42px 20px;
    text-align: center;
    color: var(--muted, #64748b);
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
}

.empty-state i {
    display: block;
    margin-bottom: 10px;
    font-size: 1.6rem;
    color: #94a3b8;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span,
.page-btn {
    min-width: 39px;
    height: 39px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line, #e5eaf2);
    border-radius: 10px;
    background: #fff;
    color: #64748b;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: .2s;
}

.pagination a:hover,
.page-btn:hover,
.pagination .active,
.page-btn.active {
    background: var(--blue, #2563eb);
    border-color: var(--blue, #2563eb);
    color: #fff;
}

.pagination .disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}

.newsletter {
    margin-top: 65px;
    padding: 30px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-radius: 18px;
    background: linear-gradient(115deg, #0b1220, #17345f);
    color: #fff;
}

.newsletter h3 {
    margin: 0 0 5px;
    font-size: 1.2rem;
    color: #fff;
}

.newsletter p {
    margin: 0;
    color: #cbd7e7;
    font-size: .82rem;
}

.newsletter a {
    white-space: nowrap;
    padding: 12px 17px;
    border-radius: 10px;
    background: #fff;
    color: var(--blue, #2563eb);
    font-size: .8rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}

.newsletter a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
}

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

@media (max-width: 700px) {
    .featured {
        grid-template-columns: 1fr;
    }
    .featured-image {
        min-height: 230px;
        height: 230px;
    }
    .featured-content {
        padding: 24px;
    }
    .toolbar {
        align-items: stretch;
        flex-direction: column;
    }
    .search-box {
        width: 100%;
    }
    .news-grid {
        grid-template-columns: 1fr 1fr;
        gap: 13px;
    }
    .news-card img {
        height: 145px;
    }
    .news-body {
        padding: 14px;
    }
    .news-body h3 {
        font-size: .88rem;
    }
    .news-body p {
        font-size: .74rem;
    }
    .newsletter {
        padding: 24px;
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    .news-card img {
        height: 190px;
    }
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .filters {
        gap: 6px;
    }
    .filter-btn {
        padding: 8px 11px;
    }
    .featured-content {
        padding: 21px;
    }
}
