@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

:root {
    --red: #d20a2d;
    --dark-red: #b90013;
    --blue: #006fb9;
    --dark-blue: #0f5096;
    --light-blue: #0f6eb9;
    --gray: #b0b0b0;
    --dark-gray: gray;
}

* {
    font-family: "Work Sans", sans-serif;
    color: black;
}

body {
    font-family: "Inter";
    font-weight: 400;
    box-sizing: border-box;
}

/* Navbar */
.navbar {
    background: white;
    box-shadow: 0px 0px 20px 0px #d6d6d6;
}
.navbar-brand img {
    height: 100px;
}
nav .dropdown-menu {
    box-shadow: 0px 0px 20px #00000047;
    border-top: 8px solid var(--gray);
}
nav .dropdown-menu li a {
    padding: 10px 32px;
    text-align: center !important;
    font-size: 18px;
    border: unset !important;
}
nav .dropdown-menu li a:hover {
    background: #006fb926;
}
nav .lang-img-wrap {
    width: 22px;
    height: 22px;
    overflow: hidden;
}
/* ============ desktop view ============ */
@media all and (min-width: 992px) {
    .dropdown-menu li {
        position: relative;
    }
    .nav-item .submenu {
        display: none;
        position: absolute;
        left: 100%;
        top: -7px;
    }
    .dropdown-menu.left .submenu {
        left: -160px;
    }
    .nav-item .submenu-left {
        right: 100%;
        left: auto;
    }
    .dropdown-menu > li:hover {
        background-color: #f1f1f1;
    }
    .dropdown-menu > li:hover > .submenu {
        display: block;
    }
    .lang-mobile {
        display: none;
    }
    .dropdown-menu.left {
        right: 0;
    }
}
/* ============ desktop view .end// ============ */

/* ============ small devices ============ */
@media (max-width: 991px) {
    .navbar .dropdown-menu[data-bs-popper] {
        margin-left: 0.7rem;
        margin-right: 0.7rem;
        margin-bottom: 0.5rem;
        left: 50%;
        transform: translateX(-50%);
    }
    .dropdown-menu.show .submenu.show {
        display: block !important;
    }
    .navbar .navbar-top-left {
        width: 100%;
    }
    .navbar-brand img {
        height: 70px;
    }
    .navbar .navbar-toggler-icon {
        font-size: 14px;
    }
    .navbar .date-mob {
        font-size: 12px;
    }
    .navbar .container.py-20 {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
    .navbar .navbar-collapse ul {
        flex-direction: column !important;
    }
    .navbar .navbar-collapse li {
        padding-top: 4px !important;
        padding-bottom: 4px !important;
    }
    .navbar .navbar-collapse li a {
        font-weight: 400 !important;
        font-size: 12px;
    }
}

/* Footer */
@media (min-width: 920px) {
    footer {
        height: 60vh;
    }
}
footer .footer-bottom {
    padding: 32px 0 !important;
}
footer .footer-bottom p {
    color: black !important;
}
footer .wrapper-img-btm {
    left: 0;
    bottom: 0;
    right: 0;
    top: unset;
    overflow: hidden;
    height: 100%;
}
footer .wrapper-img-btm img {
    width: 100%;
    top: -30%;
    height: unset !important;
    position: absolute;
    right: 0px;
    opacity: 0.7;
}
footer .social-media a {
    width: 50px;
    height: 50px;
    border-radius: 100px;
    background: transparent;
    border: 1.5px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
}
footer .social-media a:hover {
    background: white;
    border-color: white;
    transition: all 250ms ease-in-out;
}
footer .social-media img {
    max-width: 20px;
}
@media (max-width: 920px) {
    footer .wrapper-img-btm img {
        top: unset;
        bottom: 0;
        height: 100% !important;
        width: unset;
        left: 40%;
        transform: translateX(-50%);
    }
}

/* Elipsis text */
.elipsis-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.elipsis-text-lineclamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.elipsis-text-lineclamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Card Item Detail */
.card-item-detail {
    border-radius: 5px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16),
        0 2px 10px 0 rgba(0, 0, 0, 0.12);
    -webkit-transition: all 0.1s ease-out;
    transition: all 0.1s ease-out;
    padding: 10px;
    border-radius: 10px;
    height: 350px;
    position: relative;
}
.card-item-detail .image-card {
    position: relative;
    overflow: hidden;
    height: 230px;
    background: #e3dddd;
    border-radius: 8px;
    -webkit-transition: all 200ms ease-in-out;
    transition: all 200ms ease-in-out;
}
.card-item-detail img {
    overflow: hidden;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.card-item-detail:hover .image-card {
    height: 0;
    -webkit-transition: all 200ms ease-in-out;
    transition: all 200ms ease-in-out;
}
.card-item-detail .detail-card .title-card {
    font-size: 1.1rem;
    line-height: 1.2em;
    color: black;
    font-weight: 700;
    margin: 0;
    padding: 10px 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}
.card-item-detail:hover .detail-card .title-card {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}
.card-item-detail .description-card {
    font-size: 16px;
    line-height: 1.4em;
    color: black;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    transition: all 50ms ease-in-out;
}
.card-item-detail:hover .description-card {
    visibility: visible;
    opacity: 1;
    max-height: 1000px;
    transform: translateY(0);
    transition: all 1000ms ease;
}
.card-item-detail .date-card {
    position: absolute;
    bottom: 0.5rem;
    right: 1rem;
}
.card-item-detail .date-card p {
    font-size: 14px;
    color: black;
    margin: 0;
}
.card-item-detail .btn-card {
    border-radius: 4px;
    padding: 4px 10px;
    border: 0;
    font-size: 1rem;
    background-color: var(--blue);
    color: white;
    text-decoration: none;
    outline: none;
    margin-top: 10px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    transition: all 50ms ease-in-out;
}
.card-item-detail:hover .btn-card {
    visibility: visible;
    opacity: 1;
    max-height: 1000px;
    transform: translateY(0);
    transition: all 1800ms ease;
}

/* Infografis */
.infographic-container .gallery-item,
.video-container .gallery-item,
.photo-container .gallery-item {
    box-shadow: 0px 0px 20px 0px #d6d6d6;
    margin-right: 26px;
    margin-bottom: 16px;
}
.infographic-container .qty-photo,
.video-container .qty-photo,
.photo-container .qty-photo {
    padding: 10px 16px;
    background: #006fb9;
}
.infographic-container .bg-item,
.video-container .bg-item,
.photo-container .bg-item {
    box-shadow: 0px 0px 20px 0px #d6d6d6;
    height: 100%;
    width: 100%;
    background: var(--gray);
    top: 10px;
    left: 10px;
    z-index: -1;
}
.infographic-container .gallery-item,
.video-container .gallery-item {
    height: min-content;
    max-height: 570px;
}

.infographic-container-detail .card-item-detail {
    height: 570px;
}
.infographic-container-detail .image-card {
    position: relative;
    overflow: hidden;
    height: 460px;
    border-radius: 8px;
    -webkit-transition: all 200ms ease-in-out;
    transition: all 200ms ease-in-out;
}
.infographic-container .card-item-detail {
    border-radius: 5px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16),
        0 2px 10px 0 rgba(0, 0, 0, 0.12);
    -webkit-transition: all 0.1s ease-out;
    transition: all 0.1s ease-out;
    padding: 10px;
    border-radius: 10px;
    height: 550px;
    position: relative;
}
@media (max-width: 1020px) {
    .infographic-container-detail .card-item-detail {
        height: 450px;
    }
    .infographic-container-detail .image-card {
        height: 300px;
    }
}

.photo-container .gallery-item {
    height: min-content;
    max-height: 420px;
}
.photo-container .img-wrap,
.video-container .img-wrap {
    height: 275px;
}
.infographic-container .img-wrap {
    height: 360px;
}

/* Fancybox */
.fancybox-caption__body {
    margin-bottom: 50px;
    color: #f8f8f8;
    font-size: 18px;
}

/* Video Page */
.video-container .play-wrapper img {
    height: 58px;
    width: 58px;
    transition: all 250ms ease-in-out;
}
.video-container .play-wrapper .play-wrapper-inner {
    width: max-content;
    height: max-content;
    padding: 6px;
    /* background: var(--gray); */
    border-radius: 999px;
}
.video-container .gallery-item:hover .play-wrapper img {
    transform: scale(1.1);
    transition: all 250ms ease-in-out;
}

/* Detail Berita */
.detail-content p {
    margin: 0 !important;
    margin-bottom: 20px !important;
    font-size: 18px !important;
    line-height: 2em !important;
}
@media (max-width: 769px) {
    .detail-header .title p {
        font-size: 16px;
    }
    .detail-header .breadcrumb .breadcrum-item a,
    .detail-header .breadcrumb .breadcrum-item,
    .detail-header .date-wrapper p,
    .detail-header .date-wrapper span {
        font-size: 14px;
    }
}
@media (max-width: 430px) {
    .detail-header .breadcrumb a,
    .detail-header .breadcrumb li,
    .detail-header .date-wrapper p,
    .detail-header .date-wrapper button {
        font-size: 14px;
    }
    .detail-content .banner.img-wrap {
        height: 145px;
        min-height: 145px;
        border-radius: 0;
        margin: 0 -14px;
        width: 108%;
    }
    .detail-content .banner.img-wrap img {
        border-radius: 0;
    }
    .detail-content p {
        font-size: 14px !important;
    }
}

/* Article Item */
.article-item {
    box-shadow: 0px 0px 20px 0px #e9e9e9;
    border-radius: 8px;
    overflow: hidden;
}
.article-item .img-wrap {
    max-width: 285px;
    min-width: 285px;
    height: 285px;
    overflow: hidden;
    border-radius: 8px;
}
@media (max-width: 920px) {
    .article-item {
        flex-direction: column;
        padding: 16px;
        box-shadow: unset;
        border: 1px solid var(--gray);
    }
    .article-item .left-section .img-wrap {
        min-width: unset;
        max-width: unset;
    }
    .article-item .right-section {
        margin-top: 20px;
        padding: 0 !important;
    }
    .article-item p {
        font-size: 14px;
    }
}

.fancybox-button {
    background-color: #fff !important; /* Set button background color to white */
    color: #000 !important; /* Set text color to black or any color you prefer */
    border: 1px solid #000 !important; /* Optional: Add a border if needed */
    box-shadow: none !important; /* Remove any default box shadow */
}

.fancybox-button:hover {
    background-color: #f0f0f0 !important; /* Change hover background color */
    color: #000 !important; /* Change hover text color */
    border-color: #000 !important; /* Change hover border color */
}

.fancybox-caption .btn-primary {
    background-color: #fff !important; /* Button background color */
    color: #000 !important; /* Button text color */
    border: 1px solid #000 !important; /* Button border color */
}

.fancybox-caption .btn-primary:hover {
    background-color: #f0f0f0 !important; /* Hover background color */
    color: #000 !important; /* Hover text color */
    border-color: #000 !important; /* Hover border color */
}
