
/* ==========================================
   BERITA & KEGIATAN - MI HUBBUL QUR'AN
========================================== */

.berita-page-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.berita-detail-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */

.berita-page-hero,
.berita-detail-header {
    position: relative;
    overflow: hidden;
    padding: 90px 20px;
    background: linear-gradient(
        125deg,
        #007F8E,
        #009FAE
    );
    text-align: center;
}

.berita-page-hero::after,
.berita-detail-header::after {
    content: "";
    position: absolute;
    top: -250px;
    right: -80px;
    width: 350px;
    height: 350px;
    border: 1px solid rgba(245,173,36,.35);
    border-radius: 50%;
    pointer-events: none;
}

.berita-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    color: #E4F5F6;
    font-size: 12px;
}

.berita-breadcrumb a {
    color: #FFD06A;
    text-decoration: none;
}

.berita-page-hero h1,
.berita-detail-header h1 {
    max-width: 850px;
    margin: 0 auto 17px;
    color: #FFFFFF;
    font-size: clamp(32px,4vw,49px);
    font-weight: 700;
    line-height: 1.35;
}

.berita-page-hero p,
.berita-detail-header p {
    max-width: 670px;
    margin: 0 auto;
    color: #E4F5F6;
    font-size: 14px;
    line-height: 1.9;
}

/* INTRO */

.berita-page-intro {
    padding: 85px 0 65px;
    background: #FFFFFF;
    text-align: center;
}

.berita-eyebrow {
    display: inline-block;
    margin-bottom: 15px;
    color: #F5AD24;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.7px;
}

.berita-page-intro h2 {
    margin: 0 auto 20px;
    color: #009FAE;
    font-size: clamp(28px,3vw,38px);
    line-height: 1.4;
}

.berita-page-intro h2 span {
    display: block;
    color: #F5AD24;
}

.berita-page-intro p {
    max-width: 720px;
    margin: 0 auto;
    color: #47686D;
    font-size: 14px;
    line-height: 1.9;
}

/* CONTENT */

.berita-page-content {
    padding: 65px 0 105px;
    background: #F3FAFA;
}

/* SEARCH */

.berita-search-form {
    display: flex;
    gap: 12px;
    max-width: 780px;
    margin: 0 auto 30px;
}

.berita-search-form input {
    flex: 1;
    min-width: 0;
    padding: 15px 20px;
    background: #FFFFFF;
    border: 1px solid #D9EAEC;
    border-radius: 12px;
    color: #009FAE;
    font: inherit;
    font-size: 13px;
}

.berita-search-form input:focus {
    outline: 2px solid #009FAE;
    outline-offset: 2px;
}

.berita-search-form button {
    padding: 14px 25px;
    border: 0;
    border-radius: 12px;
    background: #009FAE;
    color: #FFFFFF;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.berita-search-form button:hover {
    background: #007F8E;
}

/* FILTER */

.berita-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 55px;
}

.berita-filter a {
    display: inline-block;
    padding: 10px 17px;
    border: 1px solid #D9EAEC;
    border-radius: 50px;
    background: #FFFFFF;
    color: #47686D;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: .25s ease;
}

.berita-filter a:hover,
.berita-filter a.active {
    border-color: #009FAE;
    background: #009FAE;
    color: #FFFFFF;
}

/* FEATURED ARTICLE */

.berita-featured {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    overflow: hidden;
    margin-bottom: 80px;
    background: #FFFFFF;
    border: 1px solid #D9EAEC;
    border-radius: 20px;
}

.berita-featured-image {
    display: block;
    overflow: hidden;
    min-height: 390px;
}

.berita-featured-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 390px;
    object-fit: cover;
}

.berita-featured-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 45px;
}

.berita-featured-label {
    margin-bottom: 17px;
    color: #F5AD24;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.berita-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    color: #718C90;
    font-size: 11px;
}

.berita-featured-content h2 {
    margin: 16px 0;
    color: #009FAE;
    font-size: clamp(24px,2.5vw,32px);
    line-height: 1.45;
}

.berita-featured-content p {
    margin: 0 0 25px;
    color: #47686D;
    font-size: 13px;
    line-height: 1.9;
}

.berita-readmore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 21px;
    border-radius: 50px;
    background: #F5AD24;
    color: #009FAE;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.berita-readmore:hover {
    background: #FFD06A;
}

/* NEWS GRID */

.berita-list-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.berita-list-heading h2 {
    margin: 0;
    color: #009FAE;
    font-size: clamp(24px,3vw,32px);
}

.berita-count {
    color: #718C90;
    font-size: 12px;
}

.berita-card-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 25px;
}

.berita-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #D9EAEC;
    border-radius: 17px;
    background: #FFFFFF;
    transition: transform .3s ease, box-shadow .3s ease;
}

.berita-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 35px rgba(0,127,142,.10);
}

.berita-card-image {
    display: block;
    overflow: hidden;
}

.berita-card-image img {
    display: block;
    width: 100%;
    height: 225px;
    object-fit: cover;
    transition: transform .4s ease;
}

.berita-card:hover .berita-card-image img {
    transform: scale(1.04);
}

.berita-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.berita-card-content h3 {
    margin: 13px 0;
    color: #009FAE;
    font-size: 18px;
    line-height: 1.5;
}

.berita-card-content h3 a {
    color: inherit;
    text-decoration: none;
}

.berita-card-content h3 a:hover {
    color: #009FAE;
}

.berita-card-content p {
    margin: 0 0 23px;
    color: #47686D;
    font-size: 12px;
    line-height: 1.9;
}

.berita-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: #007F8E;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.berita-card-link:hover {
    color: #D9900C;
}

/* DETAIL */

.berita-detail-meta {
    justify-content: center;
    margin-bottom: 20px;
    color: #FFE4AC;
}

.berita-detail-body {
    padding: 75px 0 85px;
    background: #FFFFFF;
}

.berita-detail-image {
    overflow: hidden;
    margin-bottom: 45px;
    border-radius: 20px;
}

.berita-detail-image img {
    display: block;
    width: 100%;
    max-height: 510px;
    object-fit: cover;
}

.berita-article-text {
    max-width: 760px;
    margin: 0 auto;
}

.berita-article-text p {
    margin: 0 0 24px;
    color: #47686D;
    font-size: 15px;
    line-height: 2.1;
}

.berita-detail-back {
    max-width: 760px;
    margin: 40px auto 0;
    padding-top: 25px;
    border-top: 1px solid #D9EAEC;
}

.berita-detail-back a {
    color: #007F8E;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.berita-related {
    padding: 80px 0 100px;
    background: #F3FAFA;
}

.berita-not-found,
.berita-empty {
    padding: 80px 20px;
    text-align: center;
}

.berita-not-found h1,
.berita-empty h2 {
    color: #009FAE;
}

.berita-not-found p,
.berita-empty p {
    color: #47686D;
}

.berita-not-found a,
.berita-empty a {
    display: inline-block;
    margin-top: 18px;
    padding: 12px 22px;
    border-radius: 50px;
    background: #009FAE;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

/* RESPONSIVE */

@media (max-width: 992px) {
    .berita-featured-content {
        padding: 30px;
    }

    .berita-card-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 768px) {
    .berita-page-hero,
    .berita-detail-header {
        padding: 75px 20px;
    }

    .berita-page-intro {
        padding: 70px 0 45px;
    }

    .berita-page-content {
        padding: 50px 0 75px;
    }

    .berita-search-form {
        flex-direction: column;
    }

    .berita-search-form button {
        min-height: 46px;
    }

    .berita-filter {
        justify-content: flex-start;
        margin-bottom: 40px;
    }

    .berita-featured {
        grid-template-columns: 1fr;
        margin-bottom: 60px;
    }

    .berita-featured-image,
    .berita-featured-image img {
        min-height: 0;
        height: 260px;
    }

    .berita-featured-content {
        padding: 27px;
    }

    .berita-card-grid {
        grid-template-columns: 1fr;
    }

    .berita-list-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .berita-detail-body {
        padding: 50px 0 65px;
    }

    .berita-article-text p {
        font-size: 14px;
        line-height: 2;
    }

    .berita-related {
        padding: 65px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .berita-card,
    .berita-card-image img {
        transition: none;
    }

    .berita-card:hover {
        transform: none;
    }

    .berita-card:hover .berita-card-image img {
        transform: none;
    }
}
/* ==========================================
   COMPACT HERO - BERITA & KEGIATAN
========================================== */

.berita-page-hero {
    height: auto;
    min-height: 0;
    padding: 35px 20px 40px;
    text-align: center;
}

/* BREADCRUMB */

.berita-page-hero .berita-breadcrumb {
    margin: 0 0 12px;
    font-size: 12px;
}

/* JUDUL */

.berita-page-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.25;
}

/* DESKRIPSI */

.berita-page-hero p {
    max-width: 720px;
    margin: 0 auto;
    font-size: 13px;
    line-height: 1.7;
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .berita-page-hero {
        padding: 28px 16px 35px;
    }

    .berita-page-hero h1 {
        font-size: 29px;
    }

    .berita-page-hero p {
        font-size: 12px;
    }
}
/* ==========================================
   FIX ALIGNMENT HERO BERITA
========================================== */

.berita-page-hero {
    text-align: center;
}

.berita-page-hero h1 {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 auto 12px;
    padding: 0;
    text-align: center;
    transform: none;
}

.berita-page-hero p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}