:root {
    --primary: #00842d;
    --primary-hover: #00571d;
    --white: #fff;
    --light: #f4f4f4;
    --dark: #454545;
    --semi-white: #dddddd;
    --overlay: rgba(0, 255, 87, 0.14);
    --footer-color: #202020;
    --post-bg-color: #f6fff9;
    --body-bg-color: #e9e9e9;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: var(--white);
}
.navbar {
    top: 0;
    z-index: 9;
}
.bottom-navbar {
    margin-top: 20px;
}
/* swiper */

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s;
    filter: brightness(70%);
}

.swiper-slide:hover img {
    transform: scale(1.1);
}

.swiper-slide .swiper-text {
    line-height: 40px;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--light) !important;
}

.swiper-pagination-bullet-active {
    background-color: var(--light);
    width: 30px;
    border-radius: 10px;
    transition: all 0.2s;
}
/* .swiper-slide .swiper-timestamp{
        font-size: 20px;
    } */
/* swiper end */

/* scrollbar */
.c-scrollbar::-webkit-scrollbar {
    height: 4px;
    width: 6px;
}

.c-scrollbar::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 10px;
    transition: all 0.2s;
}

.c-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-hover);
}

.c-scrollbar::-webkit-scrollbar-track {
    background-color: #f6fff1;
}
/* scrollbar end */

/* default */
.btn-default {
    background-color: var(--primary);
    color: var(--white);
}

.btn-default:hover {
    background-color: var(--primary-hover);
    color: var(--light);
}

.btn-default-transparent {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-default-transparent:hover {
    background-color: var(--primary-hover);
    color: var(--light);
}

.text-default {
    color: var(--primary);
}

.text-semi-white {
    color: var(--semi-white);
}

.warp-reverse {
    flex-direction: row-reverse !important;
}

.badge-link {
    background-color: var(--primary);
    width: max-content;
    padding: 5px 15px 5px 15px;
    text-decoration: none;
    color: var(--light);
}
.mini-badge {
    font-size: 15px;
}
/* default end */

/* font */
.f-poppins {
    font-family: "Poppins", sans-serif;
}
.f-anek-tamil {
    font-family: "Anek Tamil", sans-serif;
}
/* font end*/

/* header */
.icon-link {
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
}
.icon-link img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
/* header end */

/* header */

/* bottom navbar */
.bottom-navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: auto;
}
.bottom-navbar ul li a {
    text-decoration: none;
    display: block;
    color: var(--dark);
    white-space: nowrap;
    padding: 20px;
}

.bottom-navbar ul li .active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
    font-weight: 500;
}
/* bottom navbar end */
/* header end */

/* main */

/* gutters */
.top-title .gutters {
    width: 100%;
    display: flex;
    align-items: center;
}
.top-title .gutters .child-1 {
    width: 40%;
    height: 5px;
    background-color: var(--primary);
}
.top-title .gutters .child-2 {
    width: 100%;
    height: 5px;
    background-color: #d9d9d9;
}
/* gutters end */

/* three sec */
.main-three-sec .sec-1 {
    width: 30%;
    height: 560px;
}
.main-three-sec .sec-2,
.main-three-sec .sec-3 {
    width: 35%;
}

.main-three-sec h4,
.main-two-sec h4 {
    font-size: 20px;
    font-weight: 700;
}

.main-three-sec .sec-1 img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    filter: brightness(90%) saturate(110%);
}

.main-three-sec .sec-1 .detail-text-section {
    background: rgb(0, 0, 0);
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.7567401960784313) 0%,
        rgba(0, 0, 0, 0.3253676470588235) 62%,
        rgba(0, 0, 0, 0) 100%
    );
}
.home-news-slider {
    height: 400px;
}

.main-three-sec .card-news-side .sec-1-news-side {
    width: 60% !important;
}
.main-three-sec .card-news-side .sec-2-news-side {
    width: 40% !important;
    height: auto;
    display: flex;
    justify-content: center;
}
.like-comment-link a {
    font-size: 17px;
}
.like-comment-link-card a {
    font-size: 14px;
}
.like-comment-link-card-md a {
    font-size: 16px;
}
.card-news-side .sec-2-news-side img {
    display: block;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.card-news-side img {
    transition: all 0.2s;
}
.card-news-side:hover .sec-2-news-side img {
    transform: scale(1.1);
}

.card-news-side .sec-1-news-side span {
    font-size: 15px;
}

.main-three-sec .side-news {
    height: 460px;
    overflow: auto;
}
/* three sec end */
/* two sec */
.main-two-sec .sec-1 {
    width: 60%;
}
.main-two-sec .sec-2 {
    width: 40%;
}

.home-news-slider {
    height: 400px;
}

.card-news-side .sec-1-news-side {
    width: 60%;
}
.card-news-side .sec-2-news-side {
    width: 40%;
    height: auto;
    display: flex;
    justify-content: center;
}
.card-news-side .sec-2-news-side img {
    display: block;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.card-news-side .sec-1-news-side span {
    font-size: 15px;
}

.side-news {
    height: 300px;
    overflow: auto;
}
/* two sec end */

/* one sec */
.main-one-sec .card-news-scrollable {
    flex: 0 0 auto;
    width: 600px;
    white-space: normal;
}
.main-one-sec .card-news-scrollable .sec-1 {
    width: 50%;
}
.main-one-sec .card-news-scrollable .sec-1 img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.main-one-sec .card-news-scrollable .sec-2 {
    width: 50%;
}
.main-one-sec .card-news-scrollable .sec-2 p {
    font-size: 15px;
}

.main-one-sec .scrollable-news-section {
    overflow: auto;
    white-space: nowrap;
}

.main-one-sec .right-white-fade {
    width: 100px;
    height: 200px;
    background: rgb(233, 233, 233);
    background: linear-gradient(
        90deg,
        rgba(233, 233, 233, 0) 0%,
        rgba(233, 233, 233, 1) 86%
    );
    z-index: 9999;
    transform: translateY(80px);
}
/* one sec end */

/* ctr-card-news-normal */
.ctr-card-news-normal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    justify-content: center; /* Menyelaraskan konten ke tengah jika tidak memenuhi lebar penuh */
}

.ctr-card-news-normal .card-news-normal {
    height: auto;
    max-width: 400px;
    background-color: #fff;
}

.ctr-card-news-normal .card-news-normal .banner-news {
    width: 100%;
    height: 150px;
    display: flex;
    justify-content: center;
}
.ctr-card-news-normal .card-news-normal .banner-news img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.ctr-card-news-normal .card-news-normal .detail-news h6 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ctr-card-news-normal .card-news-normal .detail-news p {
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ctr-card-news-normal .card-news-normal .detail-news .timestamp {
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* ctr-card-news-normal end */

/* infografik section */
.infografik-ctr {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}
.infografik-card {
    max-width: 450px;
}

.infografik-card .banner-infografik {
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
}
.infografik-card .banner-infografik img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.infografik-card .detail-infografik h5 {
    font-size: 15px;
}
.infografik-card .detail-infografik p {
    font-size: 15px;
}
.infografik-card .detail-infografik .timestamp {
    font-size: 18px;
}
/* infografik section end */
/* main end */

/* footer */
.footer {
    margin-top: 30px;
    background-color: var(--footer-color);
}
.footer .footer-in ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .footer-in .sec-1 p {
    width: 350px;
}
.footer .footer-in a {
    text-decoration: none;
    color: #b8b8b8;
}

.footer .footer-in .icon {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
}
.footer .footer-in .icon img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.inverted-color {
    filter: invert(100%);
}
/* footer end */

/* inner-topic */
/* page current */
.page-current {
    width: max-content;
}
/* page current end */

/* inner-topic end */

/* custom pagination */
.page-link {
    border: 0;
    color: var(--dark);
}

.page-item .active {
    background-color: var(--primary) !important;
    color: var(--white) !important;
}
/* custom pagination end */
/* detail-news*/
.detail-news-banner {
    height: 400px;
}
.detail-news-banner img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.social-media-icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
}
/* detail-news end*/

/* commentar */
.profile-sec {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    display: flex;
    justify-content: center;
}
.profile-sec img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.comentar-section h6 {
    font-size: 20px;
}
.comentar-section p {
    font-size: 17px;
}

.footer-card-comment span {
    font-size: 14px;
}
.reply-open .parent-line-comentar {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    z-index: -999;
}
.parent-line-comentar {
    transition: all 0.2s;
}
.reply-open .parent-line-comentar .line {
    width: 2px;
    height: 100%;
    background-color: #a7a7a7;
}
.reply-open .child-line-comentar {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    z-index: -99;
}
.reply-open .child-line-comentar .line {
    width: 100%;
    height: 2px;
    background-color: #a7a7a7;
    transform: translateX(-34px) translateY(22px);
    transition: all 0.2s;
}
/* reply hidden */
.reply-hidden .reply-ctr {
    display: none !important;
}
.reply-hidden .parent-line-comentar {
    display: none;
}
.reply-hidden .parent-line-comentar .line {
    width: 2px;
    height: 0%;
}
.reply-hidden .child-line-comentar {
    display: none;
}
.reply-hidden .child-line-comentar .line {
    display: none;
}
/* commentar end */

/* responsive */
@media (max-width: 992px) {
    /* three sec */
    .main-three-sec {
        flex-wrap: wrap;
    }
    .main-three-sec .sec-1 {
        width: 100%;
        height: 560px;
    }
    .main-three-sec .sec-2 {
        width: 100%;
    }
    .main-three-sec .sec-3 {
        width: 100%;
    }
    /* three sec end */
    /* main two sec */
    .main-two-sec .sec-1 {
        width: 100%;
    }
    .main-two-sec .sec-2 {
        width: 100%;
    }
    .main-two-sec {
        flex-wrap: wrap;
    }

    .infografik-card {
        max-width: 100%;
    }
    /* main two sec end */

    /* footer */

    .footer .footer-in {
        flex-direction: column;
        text-align: center;
        gap: 20px !important;
    }
    .footer .footer-in ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer .footer-in .sec-1 p {
        width: 450px;
    }

    .footer .footer-in .icon-ctr {
        justify-content: center;
    }
    /* footer end */
}

@media (max-width: 768px) {
    .infografik-ctr {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .main-one-sec .right-white-fade {
        width: 100px;
        height: 200px;
        background: rgb(233, 233, 233);
        background: linear-gradient(
            90deg,
            rgba(233, 233, 233, 0) 0%,
            rgba(233, 233, 233, 1) 86%
        );
        z-index: 9999;
        transform: translateY(82px);
    }

    /* footer */
    .footer .footer-in .sec-1 p {
        width: 250px;
    }
    /* footer end */
}

@media (max-width: 576px) {
    .main-one-sec .right-white-fade {
        width: 100px;
        height: 230px;
        background: rgb(233, 233, 233);
        background: linear-gradient(
            90deg,
            rgba(233, 233, 233, 0) 0%,
            rgba(233, 233, 233, 1) 86%
        );
        z-index: 9999;
        transform: translateY(82px);
    }

    .main-three-sec .sec-1 {
        width: 100%;
        min-height: 290px !important;
    }

    /* inner-topic */
    /* page current */
    .page-current a {
        font-size: 15px;
    }
    .page-current span {
        font-size: 15px;
    }
    /* page current end */

    /* inner-topic end */

    /* swiper text */
    .swiper-text {
        line-height: 35px !important;
        font-size: 28px !important;
    }
    /* swiper text end */
}
