/* ==========================================================================
   SECTION: IMPACT AREA (COUNTER)
   ========================================================================== */
.impact-area {
    background-color: transparent;
}

.community-hero-banner {
    background-color: #5f8db8 !important;
    background-position: 50% 98% !important;
}

@media (min-width: 768px) {
    .community-hero-banner {
        background-size: 100% auto !important;
    }
}

.community-impact-section {
    margin-top: -78px;
    position: relative;
    z-index: 2;
}
.community-impact-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(10, 51, 103, 0.1);
    padding: clamp(2rem, 4vw, 3.25rem);
}
.community-impact-card .section-header h2 {
    color: #122a5e;
}
.community-impact-copy {
    color: #000000;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 900px;
    text-align: center;
}
.community-impact-list {
    margin-top: 2rem;
}
.impact-item {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: center;
    min-height: 76px;
    padding: 10px 1rem;
}
.impact-item__icon {
    align-items: center;
    background: #eef4ff;
    border-radius: 50%;
    color: #1a4f9b;
    display: inline-flex;
    flex: 0 0 50px;
    font-size: 1.25rem;
    height: 50px;
    justify-content: center;
    width: 50px;
}
.impact-item h3 {
    color: #123c85;
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 4px;
}
.impact-item p {
    color: #626d7d;
    font-size: 0.78rem;
    line-height: 1.3;
    margin: 0;
}
.section-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 15px;
}
.line-divider {
    width: 180px;
    height: 4px;
    background: linear-gradient(90deg, #e67e22, #f39c12);
    margin: 0 auto 25px auto;
    border-radius: 2px;
}

@media (max-width: 991.98px) {
    .community-impact-list > div:nth-child(-n + 2) .impact-item {
        border-bottom: 1px solid #e2e8f0;
    }
}

@media (max-width: 575.98px) {
    .community-impact-section {
        margin-top: -42px;
    }
    .community-impact-card {
        border-radius: 18px;
        padding: 1.5rem 1rem;
    }
    .impact-item {
        justify-content: flex-start;
    }
    .community-impact-list > div .impact-item {
        border-bottom: 1px solid #e2e8f0;
    }
    .community-impact-list > div:last-child .impact-item {
        border-bottom: 0;
    }
}

/* ==========================================================================
   SECTION: SUSTAINABILITY WHEEL (RODA)
   ========================================================================== */
.community-pillars-section {
    background-color: #fbfffd;
    background-image:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.3),
            rgba(255, 255, 255, 0.3)
        ),
        url("../images/tanggung-jawab/masyarakat/pemberdayaan-masyarakat.png");
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    margin-top: -340px;
    padding-top: 376px;
    position: relative;
    z-index: 0;
}
.community-pillars-section > .container {
    position: relative;
    z-index: 1;
}
.community-pillars-section .section-header h2 {
    color: #122a5e;
}
@media (max-width: 991.98px) {
    .community-pillars-section {
        margin-top: -150px;
        padding-top: 186px;
    }
}
.wheel-wrapper {
    width: 100%;
    max-width: min(780px, calc(100vw - 30px));
    margin: auto;
}
.wheel-svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}
.inner-seg,
.outer-seg {
    stroke: #ffffff;
    stroke-linejoin: round;
    transition:
        fill 0.3s ease,
        filter 0.3s ease;
}
.inner-seg {
    fill: #f1f4f8;
    stroke-width: 7;
}
.outer-seg {
    fill: #edf1f5;
    stroke-width: 7;
    cursor: pointer;
}
.outer-clickable {
    cursor: pointer;
}
.outer-clickable:hover .outer-seg {
    fill: #e2e8f0;
}
.outer-clickable.active .outer-seg,
.outer-seg.active {
    fill: #f3b63f !important;
    filter: drop-shadow(0 8px 14px rgba(222, 139, 0, 0.22));
}
.inner-seg.active-parent {
    fill: #f3b63f !important;
}
.wheel-icon {
    pointer-events: none;
    opacity: 0.92;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}
.wheel-copy-group {
    pointer-events: none;
}
.outer-clickable:hover .wheel-icon,
.outer-clickable.active .wheel-icon {
    opacity: 1;
}
.inner-label,
.outer-label {
    fill: #101010;
    font-weight: 800;
    pointer-events: none;
}
.inner-label {
    font-size: 15px;
}
.outer-label {
    font-size: 14px;
}

.community-scope-card {
    background: #eef4fa;
    border-radius: 12px;
    color: #596273;
    font-size: 0.9rem;
    line-height: 1.55;
    margin-top: 24px;
    padding: 20px 22px;
}
.community-detail-description {
    color: #6c757d;
    font-size: 1.25rem;
    line-height: 1.55;
}
.community-detail-description span {
    color: #000 !important;
}
.community-scope-card span {
    color: #5c5858 !important;
}
.community-detail-description b,
.community-detail-description strong,
.community-scope-card b,
.community-scope-card strong {
    color: #152b55 !important;
}
.community-detail-description p {
    margin-bottom: 1rem;
}
.community-scope-card strong,
.community-scope-card b {
    color: #152b55;
    font-weight: 800;
}
.community-scope-card p {
    color: #596273;
    font-size: inherit;
    line-height: 1.55;
    margin: 0 0 10px;
}
.community-scope-card p:last-child {
    margin-bottom: 0;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #dee2e6;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}
.dot.active {
    background-color: #e67e22;
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(230, 126, 34, 0.4);
}

/* ==========================================================================
   SECTION: PROGRAM SLIDER (DIAMOND TEXTURE & GRADIENT)
   ========================================================================== */
/* Container Utama */
.impact-area-program {
    background: linear-gradient(90deg, #f1c40f 0%, #f39c12 50%, #e67e22 100%);
    position: relative;
    padding: 80px 0;
    margin-top: 50px;
    width: 100%;
    min-height: 550px;
    display: block;
}

/* Elemen Khusus Diamond (Agar tidak menindih slider) */
.diamond-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
        linear-gradient(225deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
        linear-gradient(315deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%);
    background-position:
        10px 0,
        10px 0,
        0 0,
        0 0;
    background-size: 20px 20px;
    background-repeat: repeat;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1; /* Lapisan paling bawah */
}

/* Pastikan slider berada di depan */
.program-slider {
    position: relative;
    z-index: 5 !important; /* Jauh di atas diamond-overlay */
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.slider-item {
    outline: none;
    padding: 15px;
    display: block !important;
}

.slider-img-container {
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    height: 300px;
    background: #fff; /* Latar putih sementara agar konten terlihat */
}

.slider-content {
    padding: 25px;
    text-align: center;
    transition: all 0.4s ease;
}

.slider-content h3 {
    font-weight: 700;
    font-size: 1.8rem;
    color: #003366 !important; /* Warna biru gelap agar terbaca jelas di panel putih */
    margin-bottom: 8px;
}

.slider-content p {
    color: #666 !important;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Navigasi Panah Slider */
.slick-arrow-custom {
    position: absolute;
    top: 40%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    color: #003366;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
.slick-arrow-custom:hover {
    background: #003366;
    color: #fff;
    transform: scale(1.1);
}
.slick-prev-custom {
    left: 30px;
}
.slick-next-custom {
    right: 30px;
}

/* Responsivitas */
@media (max-width: 991px) {
    .impact-area-program {
        min-height: 500px;
    }
    .slider-img-container {
        height: 250px;
    }
    .slider-content h3 {
        font-size: 1.4rem;
    }
    .slick-prev-custom {
        left: 10px;
    }
    .slick-next-custom {
        right: 10px;
    }
}

/* Pastikan body tidak punya padding/margin bawaan jika section ini paling bawah/atas */
body,
html {
    margin: 0;
    padding: 0;
}

.program-viewer-container {
    position: relative;
    padding: 80px 0; /* Jarak atas bawah agar konten tidak sesak */
    width: 100vw; /* Full lebar layar browser */
    margin-left: calc(
        -50vw + 50%
    ); /* Trik untuk memaksa keluar dari container Bootstrap */
    margin-right: calc(-50vw + 50%);

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

    /* KUNING GRADASI */
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
}

/* TEKSTUR DIAMOND (Sesuai Screenshot Anda) */
.program-viewer-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%),
        linear-gradient(225deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%),
        linear-gradient(315deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%);
    background-position:
        10px 0,
        10px 0,
        0 0,
        0 0;
    background-size: 20px 20px;
    background-repeat: repeat;
    opacity: 0.4;
    z-index: 1;
}

.program-flex-row {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 100%;
}

/* Card Style (Kiri & Kanan Redup) */
.prog-card {
    flex: 0 0 25%;
    opacity: 0.3;
    filter: grayscale(100%);
    transform: scale(0.8);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* KARTU AKTIF (TENGAH) */
.prog-card.active {
    flex: 0 0 45%;
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1);
    z-index: 10;
}

.prog-card img {
    width: 100%;
    height: 350px; /* Sedikit lebih tinggi agar mantap */
    object-fit: cover;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.prog-info {
    margin-top: 30px;
    text-align: center;
    display: none;
}

.prog-card.active .prog-info {
    display: block;
}

.prog-info h4 {
    color: #ffffff;
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 15px; /* Jarak antara garis dan deskripsi di bawahnya */
    position: relative;
    padding-bottom: 12px; /* Ruang antara teks judul dan garis */
    display: inline-block; /* Agar kontainer mengikuti lebar teks */
    text-align: center;
    width: 60%; /* Memastikan judul mengambil ruang penuh agar bisa dicenter */
}

/* --- GARIS PUTIH CENTER --- */
.prog-info h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%; /* Letakkan di titik 50% */
    transform: translateX(
        -50%
    ); /* Geser balik ke kiri sebesar 50% lebarnya sendiri agar pas di tengah */
    width: 80%; /* Lebar garis sesuai permintaan Anda */
    height: 4px;
    background-color: #ffffff;
    border-radius: 2px;
}

.prog-info p {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;

    /* Membuat teks rata kanan-kiri */
    text-align: justify;

    /* Mengatur jarak antar baris agar tidak terlalu panjang/renggang */
    line-height: 1.4;

    /* Mengatur jarak atas bawah teks terhadap judul (h4) */
    margin-top: 10px;
    margin-bottom: 0;

    /* Menjaga agar teks tidak terlalu lebar jika deskripsinya panjang */
    max-width: 100%;
}

/* Panah Navigasi */
.nav-arrow {
    position: absolute;
    top: 45%;
    background: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    cursor: pointer;
    color: #003366;
}
.nav-arrow.left {
    left: 5%;
}
.nav-arrow.right {
    right: 5%;
}

/* Program carousel */
.program-viewer-container {
    background: #fff7e9;
    display: block;
    padding: 38px 0 48px;
}
.program-viewer-container::before {
    background-image:
        repeating-radial-gradient(
            ellipse at 10% 15%,
            transparent 0 10px,
            rgba(220, 166, 73, 0.18) 11px 12px,
            transparent 13px 22px
        ),
        repeating-radial-gradient(
            ellipse at 88% 76%,
            transparent 0 12px,
            rgba(220, 166, 73, 0.15) 13px 14px,
            transparent 15px 25px
        );
    background-size:
        320px 220px,
        360px 250px;
    opacity: 0.38;
}
.program-viewer-heading {
    margin: 0 auto 18px;
    max-width: 760px;
    position: relative;
    text-align: center;
    z-index: 2;
}
.program-viewer-heading > span {
    color: #ef8d00;
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    text-transform: uppercase;
}
.program-viewer-heading__divider {
    background: linear-gradient(90deg, #e67e22, #f39c12);
    border-radius: 2px;
    height: 4px;
    margin: 0 auto 25px !important;
    width: 180px;
}
.program-viewer-heading h2 {
    color: #122a5e;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 15px !important;
}
.program-viewer-heading p {
    color: #000000;
    font-size: 0.9rem;
    margin: 0;
}
.program-flex-row {
    gap: 24px;
    margin: 0 auto;
    max-width: 1280px;
    padding: 0 16px;
}
.prog-card,
.prog-card.active {
    background: #fff;
    border: 1px solid rgba(19, 57, 116, 0.08);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(30, 61, 112, 0.12);
    flex: 0 0 28%;
    opacity: 0.48;
    overflow: hidden;
    transform: scale(0.94);
    transition: all 0.35s ease;
}
.prog-card:not(.active) {
    filter: blur(1.1px) saturate(0.65);
}
.prog-card.active {
    box-shadow: 0 12px 28px rgba(30, 61, 112, 0.18);
    filter: none;
    flex-basis: 44%;
    opacity: 1;
    transform: scale(1);
    z-index: 3;
}
.prog-card__image {
    height: 180px;
    overflow: hidden;
    position: relative;
}
.prog-card img {
    border-radius: 0;
    box-shadow: none;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}
.prog-card__badge {
    background: #f89c0e;
    border-radius: 999px;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    left: 12px;
    padding: 6px 10px;
    position: absolute;
    top: 12px;
}
.prog-info,
.prog-card.active .prog-info {
    display: block;
    margin: 0;
    padding: 15px 16px 16px;
    text-align: left;
}
.prog-info h4 {
    color: #12336d;
    display: block;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 6px;
    padding: 0;
    text-align: left;
    width: auto;
}
.prog-info h4::after {
    content: none;
}
.prog-info p {
    color: #000000;
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.45;
    margin: 0 0 10px;
    max-width: none;
    text-align: left;
}

.prog-card:not(.active) .prog-info h4,
.prog-card:not(.active) .prog-info p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.prog-card:not(.active) .prog-info h4 {
    min-height: calc(1.3em * 2);
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.prog-card:not(.active) .prog-info p {
    min-height: calc(1.45em * 4);
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

.prog-card__link {
    color: #ef8d00;
    font-size: 0.8rem;
    font-weight: 800;
}
.prog-card__link i {
    font-size: 0.72rem;
    margin-left: 5px;
}
.nav-arrow {
    color: #16376e;
    top: 54%;
}
.nav-arrow.left {
    left: max(20px, calc(50% - 700px));
}
.nav-arrow.right {
    right: max(20px, calc(50% - 700px));
}

/* ==========================================================================
   SECTION: PARTNER LOGO MARQUEE
   ========================================================================== */
.partner-logo-area {
    background: linear-gradient(180deg, #f8fbff 0%, #edf5ff 100%);
    isolation: isolate;
    padding: 70px 0 80px;
    position: relative;
    overflow: hidden;
}
.partner-logo-area::before {
    background-image:
        repeating-radial-gradient(
            ellipse at 4% 105%,
            transparent 0 18px,
            rgba(65, 123, 190, 0.11) 19px 20px,
            transparent 21px 34px
        ),
        repeating-radial-gradient(
            ellipse at 96% -8%,
            transparent 0 18px,
            rgba(65, 123, 190, 0.1) 19px 20px,
            transparent 21px 34px
        );
    background-size:
        460px 330px,
        460px 330px;
    background-position:
        left bottom,
        right top;
    background-repeat: no-repeat;
    content: "";
    inset: 0;
    opacity: 0.75;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}
.partner-logo-area > * {
    position: relative;
    z-index: 1;
}

.partner-logo-heading {
    text-align: center;
    margin-bottom: 35px;
}

.partner-logo-heading h2 {
    display: inline-block;
    color: #122a5e;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: normal;
    margin: 0;
}

.partner-logo-heading .line-divider {
    margin-top: 15px;
    margin-bottom: 25px;
}

.partner-logo-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.partner-logo-marquee::before,
.partner-logo-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    z-index: 2;
    width: 120px;
    height: 100%;
    pointer-events: none;
}

.partner-logo-marquee::before {
    left: 0;
    background: linear-gradient(90deg, #eff6ff 0%, rgba(239, 246, 255, 0) 100%);
}

.partner-logo-marquee::after {
    right: 0;
    background: linear-gradient(
        270deg,
        #eff6ff 0%,
        rgba(239, 246, 255, 0) 100%
    );
}

.partner-logo-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: partnerLogoMarquee 28s linear infinite;
}

.partner-logo-marquee:hover .partner-logo-track {
    animation-play-state: paused;
}

.partner-logo-item {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e9eef5;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 51, 102, 0.08);
    display: flex;
    flex: 0 0 180px;
    height: 110px;
    justify-content: center;
    padding: 18px 22px;
}

.partner-logo-item img {
    display: block;
    max-height: 72px;
    max-width: 100%;
    object-fit: contain;
}

@keyframes partnerLogoMarquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-33.333%);
    }
}

@media (max-width: 768px) {
    .community-pillars-section {
        background-position: center bottom;
        background-size: auto 100%;
        margin-top: -90px;
        padding-top: 116px;
    }
    .wheel-wrapper {
        width: calc(100vw - 30px);
        max-width: calc(100vw - 30px);
    }
    .prog-card:not(.active) {
        display: none;
    }
    .prog-card.active {
        flex: 0 0 90%;
    }
    .partner-logo-area {
        padding: 50px 0 60px;
    }
    .partner-logo-heading h2 {
        font-size: 1.45rem;
    }
    .partner-logo-marquee::before,
    .partner-logo-marquee::after {
        width: 50px;
    }
    .partner-logo-item {
        flex-basis: 150px;
        height: 92px;
        padding: 14px 18px;
    }
    .partner-logo-item img {
        max-height: 60px;
    }
}

@media (max-width: 575px) {
    .wheel-wrapper {
        width: 330px;
        max-width: calc(100vw - 30px);
    }
}
