/* ===============================
   HERO EXACT STYLE
================================= */

#heroSlider {
    margin: 0;
}

.hero-image {
    width: 100%;
    height: 640px;
    object-fit: cover;
}

/* overlay */
#heroSlider .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.45) 38%,
        rgba(0, 0, 0, 0.15) 100%
    );
    z-index: 1;
}

/* posisi caption */
.hero-caption {
    z-index: 3;
    left: 6%;
    right: 6%;
    top: 0;
    bottom: 0;
    max-width: 720px;
    justify-content: center;
}

/* DISPORABUDPAR */
.hero-title {
    color: rgba(255, 255, 255, 0.93);
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 0.95;
    margin: 0;
}

/* Kabupaten Nganjuk */
.hero-subtitle {
    color: rgba(239, 167, 53, 0.92);
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 8px;
    margin-bottom: 24px;
}
/* deskripsi */
.hero-desc {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
    line-height: 1.8;
    max-width: 650px;
    margin-bottom: 0;
}
/* tombol */

.hero-caption .btn-outline-light {
    background: #e8d6f4;
    border: none;
    color: #5e1992;
    font-weight: 700;
    font-size: 1.08rem;
    border-radius: 12px;
    padding: 14px 28px;
}

.hero-caption .btn:hover {
    transform: translateY(-2px);
    transition: 0.25s;
}

/* teks transparan halus */
.hero-top-text {
    color: rgba(255, 255, 255, 0.88);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 8px;
}

.hero-caption .btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
}

/* ===============================
   HERO BUTTON TRANSPARENT
================================= */

.hero-caption .btn-warning,
.hero-caption .btn-outline-light {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 14px;
    padding: 13px 28px;
    font-weight: 700;
    transition: all 0.28s ease;
}

/* tombol utama */
.hero-caption .btn-warning {
    background: rgba(239, 167, 53, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.hero-caption .btn-warning:hover {
    background: rgba(239, 167, 53, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(239, 167, 53, 0.28);
}

/* tombol kedua */
.hero-caption .btn-outline-light {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.95);
}

.hero-caption .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* mobile */
@media (max-width: 768px) {
    .hero-caption .btn-warning,
    .hero-caption .btn-outline-light {
        width: 100%;
        max-width: 240px;
    }
}

/* ===============================
   ARROW NAVIGATION BAGUSKAN
================================= */

#heroSlider .carousel-control-prev,
#heroSlider .carousel-control-next {
    width: 7%;
    opacity: 1;
}

/* lingkaran tombol */
#heroSlider .carousel-control-prev-icon,
#heroSlider .carousel-control-next-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-size: 38% 38%;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.28s ease;
}

/* hover */
#heroSlider .carousel-control-prev:hover .carousel-control-prev-icon,
#heroSlider .carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(239, 167, 53, 0.78);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.08);
}

/* ===============================
   BANNER DINAMIS TEXT STYLE
================================= */

.banner-caption {
    z-index: 3;
    left: 6%;
    right: 6%;
    top: 0;
    bottom: 0;
    max-width: 760px;
    text-align: left;
}

/* label kecil */
.banner-label {
    display: inline-block;
    width: max-content;
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 18px;
}

/* judul utama */
.banner-title {
    color: rgba(255, 255, 255, 0.94);
    font-size: 3.7rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
    max-width: 760px;
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

/* tombol */
.btn-banner {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 14px;
    background: rgba(239, 167, 53, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.28s ease;
}

.btn-banner:hover {
    background: rgba(239, 167, 53, 0.96);
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(239, 167, 53, 0.24);
}

/* animasi */
.banner-caption {
    animation: fadeBanner 0.8s ease;
}

@keyframes fadeBanner {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 992px) {
    .banner-title {
        font-size: 2.9rem;
    }
}

@media (max-width: 768px) {
    .banner-caption {
        left: 5%;
        right: 5%;
        max-width: 100%;
        text-align: center;
        align-items: center;
    }

    .banner-label {
        font-size: 0.82rem;
        margin-bottom: 14px;
    }

    .banner-title {
        font-size: 2rem;
        line-height: 1.25;
    }

    .btn-banner {
        padding: 12px 22px;
        width: 100%;
        max-width: 220px;
    }
}

@media (max-width: 480px) {
    .banner-title {
        font-size: 1.55rem;
    }

    .banner-label {
        font-size: 0.78rem;
    }
}
/* mobile hide */
@media (max-width: 768px) {
    #heroSlider .carousel-control-prev,
    #heroSlider .carousel-control-next {
        display: none;
    }
}

/* ===============================
   LAPTOP KECIL
================================= */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 2rem;
    }
}

/* ===============================
       TABLET
    ================================= */
@media (max-width: 992px) {
    .hero-image {
        height: 560px;
    }

    .hero-caption {
        max-width: 620px;
    }

    .hero-top-text {
        font-size: 1.6rem;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .hero-subtitle {
        font-size: 1.65rem;
    }

    .hero-desc {
        font-size: 0.98rem;
        line-height: 1.7;
    }
}

/* ===============================
       MOBILE
    ================================= */
@media (max-width: 768px) {
    .hero-image {
        height: 520px;
    }

    .hero-caption {
        left: 5%;
        right: 5%;
        max-width: 100%;
        text-align: center !important;
        align-items: center;
    }

    .hero-top-text {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 2.35rem;
        line-height: 1;
    }

    .hero-subtitle {
        font-size: 1.35rem;
        margin-bottom: 18px;
    }

    .hero-desc {
        font-size: 0.92rem;
        line-height: 1.65;
        max-width: 100%;
    }

    .hero-caption .d-flex {
        justify-content: center;
    }

    .hero-caption .btn {
        width: 100%;
        max-width: 220px;
    }
}

/* ===============================
       MOBILE KECIL
    ================================= */
@media (max-width: 480px) {
    .hero-image {
        height: 470px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .hero-desc {
        font-size: 0.86rem;
    }

    .hero-caption .btn {
        padding: 10px 18px;
        font-size: 0.92rem;
    }
}

/* paksa banner ke kiri (override bootstrap) */
.banner-caption {
    text-align: left !important;
    align-items: flex-start !important;
    justify-content: center;
}

/* desktop tetap kiri */
.banner-caption {
    text-align: left;
    align-items: flex-start;
}

/* mobile jadi tengah */
@media (max-width: 768px) {
    .banner-caption {
        text-align: center !important;
        align-items: center !important;
    }
}

.banner-title {
    margin-left: 0;
}

.banner-label {
    margin-left: 0;
}

/* ===============================
   CARD BIDANG + GIF
================================= */

.bidang-card {
    border: none;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(61, 16, 95, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* garis atas */
.bidang-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5e1992, #8e3cac, #efa735);
}

/* hover */
.bidang-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(61, 16, 95, 0.14);
}

/* gif */
.bidang-gif {
    width: 95px;
    height: 95px;
    object-fit: contain;
    margin: 0 auto;
    transition: 0.3s ease;
}

.bidang-card:hover .bidang-gif {
    transform: scale(1.08);
}

/* title */
.bidang-card h5 {
    color: #3d105f;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* text */
.bidang-card p {
    color: #6c757d;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* responsive */
@media (max-width: 768px) {
    .bidang-gif {
        width: 75px;
        height: 75px;
    }
}

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

/* garis bawah */
.section-title::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    margin: 10px auto 0;
    border-radius: 20px;
    background: linear-gradient(90deg, #5e1992, #8e3cac, #efa735);
}

/* subtitle */
.section-subtitle {
    color: #6c757d;
    font-size: 1.02rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 15px auto 0;
}

/* responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        padding: 0 10px;
    }
}

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

.section {
    position: relative;
}

/* putih */
.section-light {
    background: #ffffff;
}

/* efek transisi halus antar section */
.section {
    transition: background 0.3s ease;
}

/* kasih pembeda tipis */
.section-soft::before {
    content: "";
    display: block;
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
}

.section {
    padding-top: 20px;
    padding-bottom: 20px;
}

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

.artikel-card {
    border: none;
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(61, 16, 95, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

/* garis atas */
.artikel-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5e1992, #8e3cac, #efa735);
}

.artikel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(61, 16, 95, 0.14);
}

/* image */
.artikel-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: 0.3s ease;
}

.artikel-card:hover .artikel-img {
    transform: scale(1.05);
}

/* title */
.artikel-title {
    font-weight: 700;
    color: #3d105f;
    margin-top: 8px;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

/* desc */
.artikel-desc {
    color: #6c757d;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* button */
.btn-artikel {
    margin-top: 10px;
    padding: 8px 18px;
    border-radius: 10px;
    background: #efa735;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s ease;
}

.btn-artikel:hover {
    background: #ffbc54;
    transform: translateY(-1px);
}

/* responsive */
@media (max-width: 768px) {
    .artikel-img {
        height: 180px;
    }
}

/* ===============================
   SECTION HEADER PREMIUM
================================= */

.section-header {
    max-width: 680px;
    margin: 0 auto;
}

/* label kecil */
.section-label {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 30px;
    background: #f3e7ff;
    color: #5e1992;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* title tetap pakai style lama */
.section-title {
    color: #3d105f;
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

/* subtitle */
.section-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.7;
}

.section-soft .container {
    padding-top: 40px !important;
    padding-bottom: 50px !important;
}

.artikel-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.artikel-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.section-header {
    margin-bottom: 30px;
}

.section-label {
    display: block; /* WAJIB */
    width: fit-content;
    margin: 0 auto 10px; /* center + jarak bawah */
}

/* ===============================
   NEWS PREMIUM STYLE
================================= */

.news-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
}

/* hover beda dari artikel */
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.12);
}

/* image wrapper */
.news-img-wrap {
    position: relative;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: 0.3s ease;
}

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

/* tanggal badge */
.news-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

/* title */
.news-title {
    font-weight: 700;
    color: #2b2b2b;
    font-size: 1rem;
    margin-bottom: 10px;
}

/* desc */
.news-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* button beda style */
.news-btn {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #5e1992;
    text-decoration: none;
    position: relative;
}

.news-btn::after {
    content: "→";
    margin-left: 6px;
    transition: 0.2s;
}

.news-btn:hover::after {
    margin-left: 10px;
}

/* artikel (soft ungu branding) */
.section-soft {
    background: linear-gradient(
        to bottom,
        #f3e7ff 0%,
        #f3e7ff 60%,
        #ffffff 100%
    );
}

/* berita tetap clean */
.section-light {
    background: #ffffff;
}

.section-header {
    max-width: 680px;
    margin: 0 auto 40px;
}

.section-label {
    display: block;
    width: fit-content;
    margin: 0 auto 10px;
    padding: 6px 14px;
    border-radius: 30px;

    background: #5e1992; /* lebih tegas */
    color: #ffffff;

    font-size: 0.8rem;
    font-weight: 600;
}

.section-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===============================
   HERO TEXT ANIMATION
================================= */

.hero-top-text,
.hero-title,
.hero-subtitle,
.hero-desc,
.hero-caption .btn {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s ease forwards;
}

/* delay biar bertahap */
.hero-top-text {
    animation-delay: 0.2s;
}
.hero-title {
    animation-delay: 0.35s;
}
.hero-subtitle {
    animation-delay: 0.5s;
}
.hero-desc {
    animation-delay: 0.65s;
}
.hero-caption .btn {
    animation-delay: 0.8s;
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* reset tiap slide */
.carousel-item .hero-caption > * {
    opacity: 0;
    transform: translateY(20px);
}

/* aktif saat slide aktif */
.carousel-item.active .hero-caption > * {
    animation: heroFadeUp 0.8s ease forwards;
}

/* ===============================
   SCROLL ANIMATION
================================= */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

.bidang-card,
.artikel-card,
.news-card {
    transition: all 0.3s ease;
}

.bidang-card:hover,
.artikel-card:hover,
.news-card:hover {
    transform: translateY(-8px) scale(1.01);
}

.btn-banner,
.btn-artikel,
.news-btn {
    transition: all 0.25s ease;
}

.btn-banner:hover,
.btn-artikel:hover {
    transform: translateY(-2px) scale(1.02);
}

/* animasi ulang tiap slide aktif */
.carousel-item.active .hero-caption > * {
    animation: heroFadeUp 0.8s ease forwards;
}

/* ===============================
   FIX HEADER BERITA
================================= */

.section-header {
    text-align: center;
}

.section-header .section-label {
    display: block;
    width: fit-content;
    margin: 0 auto 12px;
}

.section-header .section-title {
    display: block;
    width: 100%;
    margin: 0 auto 14px;
}

.section-header .section-title::after {
    margin: 12px auto 0;
}

.news-title {
    font-weight: 700;
    color: #3d105f;
    font-size: 1.05rem;
    margin-top: 8px;
    margin-bottom: 10px;
}

h6.news-title {
    font-size: 1rem !important;
    font-weight: 700;
    line-height: 1.5;
    color: #3d105f;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .news-title {
        font-size: 0.88rem;
    }
}
