@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@200;400;600;700&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    overflow-x: hidden;
}

body {
    font-family: "Montserrat", sans-serif;
    min-height: 100vh;
}

.w-full {
    width: 100%;
    height: auto;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 320px) {
    .swiper-kegiatan .swiper-slide {
        height: auto;
    }

    .item-footer {
        padding: 15px 0;
    }

    .item-footer-1 {
        padding-top: 0;
        text-align: center;
    }



    .logo-footer {
        width: 200px;
    }

    .item-footer h3 {
        color: #fff;
        position: relative;
        font-size: 20px;
        margin-bottom: 30px;
    }

    .item-footer h3:after {
        content: "";
        width: 50px;
        height: 5px;
        background-color: #fff;
        position: absolute;
        left: 0;
        bottom: -10px;
    }

    .item-footer-2 ul {
        list-style: none;
        color: #fff;
        padding-left: 20px;
    }

    .item-footer-2 i {
        font-size: 25px;
        width: 35px;
    }

    .item-footer-2 ul li {
        display: flex;
        align-items: center;
        margin-bottom: 16px;
    }

    .item-footer-2 ul li:last-child {
        margin-bottom: 0;
    }

    .item-footer-3 iframe {
        width: 100%;
        height: 200px;
    }

    footer {
        background: #0a993c url(../img/pattern-green.png) repeat;
        background-blend-mode: multiply;
        padding: 40px 10%;
    }

    .d-desktop {
        display: none;
    }

    h2.title-section {
        color: #fff;
        text-align: center;
        font-size: 20px;
        margin-bottom: 30px;
        position: relative;
    }

    .swiper-kegiatan .swiper-slide:before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: transparent;
        z-index: -9999;
    }

    .swiper-kegiatan .swiper-slide {
        margin-bottom: 40px;
    }

    .swiper-kegiatan .swiper-pagination-bullet {
        width: var(--swiper-pagination-bullet-width,
                var(--swiper-pagination-bullet-size, 8px));
        height: var(--swiper-pagination-bullet-height,
                var(--swiper-pagination-bullet-size, 8px));
        display: inline-block;
        border-radius: 50%;
        background: #fff;
        opacity: var(--swiper-pagination-bullet-inactive-opacity, 0.5);
    }

    .swiper-kegiatan .swiper-pagination-bullet-active {
        opacity: var(--swiper-pagination-bullet-opacity, 1);
        background: #0a993c;
    }

    .description {
        color: #fff;
        padding: 30px 0;
    }

    .description h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    a.btn-green {
        background-color: #0a993c;
        color: #fff;
        text-decoration: none;
        font-size: 14px;
        padding: 10px 20px;
        border-radius: 5px;
        display: inline-block;
    }

    .button-kegiatan {
        text-align: right;
    }

    h2.title-section::after {
        content: "";
        width: 60px;
        height: 5px;
        background-color: green;
        position: absolute;
        bottom: -9px;
        left: 50%;
        transform: translateX(-50%);
    }

    .kegiatan-terbaru-sec {
        background-color: #262626;
        border-top: 15px solid #0a993c;
        padding: 40px 0;
        position: relative;
    }

    .kegiatan-terbaru-sec .swiper {
        width: 100%;
        margin: 0 auto;
    }

    .outer-swiper-kegiatan {
        position: relative;
        width: 80%;
        margin: 0 auto;
    }

    p {
        font-size: 14px;
    }

    section.infak-sec {
        padding: 40px 0;
        background-color: rgba(163, 255, 172, 0.2);
    }

    .wrapper-infak-section {
        width: 80%;
        margin: 0 auto;
    }

    .infak-section-left h2 {
        font-size: 25px;
        margin-bottom: 10px;
    }

    .small-text {
        font-size: 20px;
    }

    .text-green {
        color: #0a993c;
    }

    .text-red {
        color: #d60000;
    }

    .infak-section-left h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .infak-section-left article {
        margin-bottom: 20px;
    }

    .cta-infak {
        display: block;
        width: 100%;
        background-color: #0a993c;
        border: none;
        color: #fff;
        font-size: 26px;
        font-weight: 700;
        padding: 15px;
        border-radius: 5px;
        cursor: pointer;
        transition: 0.5s;
        -webkit-transition: 0.5s;
        -moz-transition: 0.5s;
        -ms-transition: 0.5s;
        -o-transition: 0.5s;
    }

    .cta-infak:hover {
        transform: scale(1.1);
        -webkit-transform: scale(1.1);
        -moz-transform: scale(1.1);
        -ms-transform: scale(1.1);
        -o-transform: scale(1.1);
    }

    .infak-section-left {
        margin-bottom: 30px;
    }

    .infak-section-right img {
        width: 80%;
    }

    .infak-section-right img:last-child {
        margin-left: auto;
        display: block;
        margin-top: -25px;
    }

    .video-section {
        background-color: #262626;
        padding: 50px 0;
        border-top: 15px solid #0a993c;
    }

    .wrapper-video {
        position: relative;
        padding-bottom: 56.25%;
    }

    .wrapper-video iframe {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }

    .welcome-section__left {
        text-align: center;
        color: #fff;
        margin-bottom: 30px;
    }

    .outer-video {
        width: 80%;
        margin: 0 auto;
    }

    .welcome-section__left article {
        margin: 15px 0;
    }

    .btn-black {
        background-color: #262626;
        color: #fff;
        border: none;
        padding: 10px 20px;
        border-radius: 5px;
        font-size: 14px;
        cursor: pointer;
    }

    .welcome-section__right img {
        box-shadow: 0px 3px 8px 1px rgb(0 0 0 / 50%);
        border-radius: 15px;
    }

    .welcome-section {
        width: 80%;
        margin: 40px auto;
        background: #0a993c url(../img/pattern-green.png) no-repeat center;
        background-size: cover;
        background-blend-mode: multiply;
        border-radius: 20px;
        padding: 20px;
    }

    p {
        margin-bottom: 15px;
    }

    p:last-child {
        margin-bottom: 0;
    }

    .hero-hadits {
        background-color: #262626;
        color: #fff;
        text-align: center;
        width: 300px;
        border-radius: 15px;
        margin: -75px auto 0;
        z-index: 9999;
        position: relative;
        padding: 28px;
        box-sizing: border-box;
        font-size: 12px;
    }

    .hero-hadits img {
        position: absolute;
        width: 37px;
        z-index: 999999;
    }

    .quote-left {
        top: -10px;
        left: 18px;
    }

    .quote-right {
        bottom: -10px;
        right: 18px;
    }

    .d-none {
        display: none !important;
    }

    .mySwiper {
        border-bottom: 0.5em solid #0a993c;
    }

    .text-hero h6 {
        font-weight: 400;
    }

    .swiper-slide:before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
    }

    .text-hero {
        position: absolute;
        top: 50%;
        left: 50%;
        z-index: 99;
        color: #fff;
        text-align: center;
        transform: translate(-50%, -50%);
    }

    .swiper-slide img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .swiper-slide {
        height: 400px;
        object-fit: cover;
    }

    .hamburger svg {
        width: 35px;
    }

    .hamburger {
        cursor: pointer;
    }

    .top-menu ul li a {
        color: #fff;
        text-decoration: none;
        font-size: 15px;
        line-height: 26px;
    }

    .top-menu ul li {
        text-align: center;
        margin: 10px 0;
        position: relative;
    }

    .btn-rounded-full {
        padding: 8px 19px;
        border-radius: 50px;
    }

    .top-menu ul li.active:before {
        content: "";
        position: absolute;
        bottom: -4px;
        left: 50%;
        height: 3px;
        background-color: #0a993c;
        width: 30%;
        transform: translateX(-50%);
    }

    .top-menu .btn-rounded-full {
        margin-top: 10px;
        display: inline-block;
    }

    .bg-green {
        background-color: #0a993c;
    }

    nav {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        padding: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 99999;
    }

    .close {
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 9999999;
        cursor: pointer;
    }

    img {
        max-width: 100%;
    }

    .close svg {
        width: 30px;
    }

    .top-menu {
        position: fixed;
        top: 0;
        right: -100vw;
        bottom: 0;
        background-color: #000;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100vw;
        transition: 0.3s;
    }

    .wrapper-popup {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999999;
        transform: scale(0);
        -webkit-transform: scale(0);
        -moz-transform: scale(0);
        -ms-transform: scale(0);
        -o-transform: scale(0);
        transition: 0.3s ease-in-out;
        -webkit-transition: 0.3s ease-in-out;
        -moz-transition: 0.3s ease-in-out;
        -ms-transition: 0.3s ease-in-out;
        -o-transition: 0.3s ease-in-out;
    }

    .wrapper-popup.show {
        transform: scale(1);
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
    }

    .close-popup {
        width: 30px;
        height: 30px;
        position: absolute;
        top: 5px;
        right: 5px;
        cursor: pointer;
    }

    .content-popup {
        color: #000;
        position: relative;
        z-index: 2;
        background-color: #fff;
        width: 90%;
        padding: 30px 20px;
        border-radius: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .backdrop {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 1;
    }
}

@media (min-width: 768px) {
    .swiper-kegiatan .swiper-slide {
        height: auto;
        object-fit: cover;
    }

    .wrapper-infak-section {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .infak-section-left {
        width: 50%;
        flex-shrink: 0;
        padding-right: 20px;
    }

    .content-popup {
        width: 25em;
    }

    .welcome-section {
        padding: 40px;
    }

    .hero-hadits {
        width: 500px;
        font-size: 14px;
        margin: -65px auto 10px;
    }

    .swiper-slide {
        height: 500px;
        object-fit: cover;
    }
}

@media (min-width: 1024px) {
    footer {
        padding: 40px 0;
    }

    .item-footer-3 iframe {
        width: 100%;
        height: 150px;
    }

    .container-fluid {
        display: grid;
        grid-template-columns: 33.3% 33.3% 33.3%;
    }

    .item-footer {
        padding: 0 15px;
    }

    .item-footer-1 {
        display: grid;
        place-content: center;
    }

    h2.title-section {
        font-size: 30px;
        margin-bottom: 45px;
    }

    .description h3 {
        font-size: 20px;
    }

    .outer-swiper-kegiatan .swiper-button-next,
    .outer-swiper-kegiatan .swiper-button-prev {
        position: absolute;
        top: 50%;
        width: 46px;
        height: 30px;
        margin-top: calc(0px - (var(--swiper-navigation-size) / 2));
        z-index: 10;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--swiper-navigation-color, var(--swiper-theme-color));
    }

    .swiper-button-next:after {
        content: "";
        width: 46px;
        height: 30px;
        background: url(../img/arrow-right.svg) no-repeat center;
        background-size: contain;
        font-family: unset;
        position: absolute;
        right: 0;
    }

    .swiper-button-prev:after {
        content: "";
        width: 46px;
        height: 30px;
        background: url(../img/arrow-left.svg) no-repeat center;
        background-size: contain;
        font-family: unset;
        position: absolute;
        right: 0;
    }

    .swiper-button-next {
        right: -60px;
    }

    .swiper-button-prev {
        left: -60px;
    }

    .d-mobile {
        display: none;
    }

    .d-desktop {
        display: block;
    }

    p {
        font-size: 16px;
    }

    .infak-section-left h2 {
        font-size: 40px;
    }

    .infak-section-left h3 {
        font-size: 20px;
    }

    .small-text {
        font-size: 25px;
    }

    .wrapper-infak-section {
        width: 800px;
    }

    .welcome-section {
        width: 890px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .outer-video {
        width: 700px;
    }

    .welcome-section__left {
        margin-bottom: 0;
        margin-right: 40px;
    }

    .hero-hadits img {
        width: 40px;
    }

    .hamburger {
        display: none;
    }

    .top-menu {
        right: 0;
        position: relative;
        width: auto;
        background-color: transparent;
    }

    .top-menu ul li {
        display: inline-block;
        margin: 0 0 0 30px;
    }

    .close {
        display: none;
    }
}

@media (min-width: 1200px) {
    .item-footer-3 iframe {
        width: 100%;
        height: 250px;
    }

    .item-footer-1 {
        place-content: unset;
        justify-content: center;
        align-items: start;
    }

    .wrapper-infak-section,
    .outer-swiper-kegiatan {
        width: 890px;
    }

    .welcome-section {
        padding: 60px;
    }

    .text-hero h2 {
        font-size: 55px;
    }

    .text-hero {
        width: 100%;
    }

    .text-hero h6 {
        font-size: 20px;
        line-height: 24px;
        width: 600px;
        margin: 0 auto;
    }

    .swiper-slide {
        height: 700px;
    }

    .container {
        max-width: 1140px;
        margin-left: auto;
        margin-right: auto;
    }

    .mySwiper {
        border-bottom: 1em solid #0a993c;
    }
}

@media (min-width: 1400px) {
    .swiper-slide {
        height: 900px;
    }

    .hero-hadits {
        font-size: 16px;
        padding: 60px 40px;
        width: 600px;
    }

    .hero-hadits img {
        width: 60px;
    }
}

/* New Styles for Dynamic Sections */

/* RA Section */
.ra-section {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.ra-section .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.ra-image {
    flex: 1 1 300px;
    /* Allow shrinking/growing but base at 300 */
    text-align: center;
}

.ra-text {
    flex: 1 1 400px;
}

.ra-image img {
    max-width: 100%;
    height: auto;
}

@media (min-width: 768px) {
    .ra-section .container {
        flex-direction: row;
    }
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .caption {
    transform: translateY(100%);
}

.gallery-item:hover .caption {
    transform: translateY(0);
}

/* Pagination */
.pagination .page-numbers {
    display: inline-block;
    padding: 5px 10px;
    background: #0a993c;
    color: #fff;
    border-radius: 5px;
    margin: 0 5px;
    text-decoration: none;
}

.pagination .page-numbers.current {
    background: #262626;
}

/* Contact Page */
.contact-info-section ul li i {
    width: 40px;
    text-align: center;
}