/********** Template CSS **********/

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed !important;
    display: none;
    right: 5px;
    bottom: 75px;
    z-index: 99;
}

/*** Fonts ***/
.font-work-sans {
  font-family: "Work Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.font-playfair-display {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.font-dancing-script {
    font-family: "Dancing Script", cursive;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}


/*** Button ***/
.btn {
    position: relative;
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-dark,
.btn-primary {
    margin: 10px;
}

.btn-primary::before,
.btn-primary::after {
    position: absolute;
    content: "";
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    top: -5px;
    left: -5px;
}

.btn-primary::before {
    top: -10px;
    height: calc(100% + 20px);
    border-left: 2px solid var(--bs-primary);
    border-right: 2px solid var(--bs-primary);
}

.btn-primary::after {
    left: -10px;
    width: calc(100% + 20px);
    border-top: 2px solid var(--bs-primary);
    border-bottom: 2px solid var(--bs-primary);
}

.btn-dark::before,
.btn-dark::after {
    position: absolute;
    content: "";
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    top: -5px;
    left: -5px;
}

.btn-dark::before {
    top: -10px;
    height: calc(100% + 20px);
    border-left: 2px solid var(--bs-dark);
    border-right: 2px solid var(--bs-dark);
}

.btn-dark::after {
    left: -10px;
    width: calc(100% + 20px);
    border-top: 2px solid var(--bs-dark);
    border-bottom: 2px solid var(--bs-dark);
}


/*** Navbar ***/
.sticky-top {
    top: -150px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin: 0 12px;
    padding: 0;
    outline: none;
    font-family: "Playfair Display", serif;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bs-dark);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary)
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
    color: var(--bs-white);
    background: var(--bs-primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.navbar .btn-primary {
    border-width: 2px;
    background: var(--bs-light);
}

.navbar .btn-primary:hover {
    background: var(--bs-primary);
}


/*** Hero Header ***/
/* .hero-header {
    background: url(../img/hero-bg.jpg) top left no-repeat;
    background-size: cover;
} */

@media (min-width: 992px) {
    .hero-header .container {
        max-width: 100% !important;
    }

    .hero-header .hero-header-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .hero-header .hero-header-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .hero-header .hero-header-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}

.header-carousel .owl-nav {
    position: absolute;
    right: 0;
    bottom: 0;
    text-align: center;
    display: flex;
    justify-content: center;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next{
    position: relative;
    margin-left: 2px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-dark);
    background: var(--bs-primary);
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    color: var(--bs-white);
}

.page-header {
    background: url(../img/page-header.jpg) center center no-repeat;
    background-size: contain;
}


/*** Service ***/
@media (max-width: 768px) {
    .service .service-item {
        border: none !important;
        box-shadow: 0 0 45px rgba(0, 0, 0, .05);
    }
}

@media (min-width: 992px) {
    .service .service-item.border-lg-end {
        border-right: 1px solid #dee2e6;
    }

    .service .service-item.border-lg-end-0 {
        border-right: none !important;
    }

    .service .service-item.border-lg-bottom-0 {
        border-bottom: none !important;
    }
}

.service .service-item .btn-primary {
    border-width: 2px;
    background: var(--bs-white);
}

.service .service-item .btn-primary:hover {
    background: var(--bs-primary);
}

.service .service-item img {
    width: 70px;
    margin-bottom: 20px;
}


/*** Team ***/
.team {
    position: relative;
}

.team::before {
    position: absolute;
    content: "";
    width: 200%;
    height: 200px;
    top: 50%;
    left: -50%;
    transform: translateY(-50%);
    margin-top: 1rem;
    background: var(--bs-primary);
}

.team-item img {
    transition: .5s;
}
  
.team-item:hover img {
    transform: scale(1.2);
}
  
.team-overlay {
    position: absolute;
    padding: 30px;
    right: 30px;
    bottom: 30px;
    left: 30px;
    text-align: center;
    background: rgba(255, 255, 255, .5);
    transition: .5s;
    z-index: 1;
}

.team-item:hover .team-overlay {
    background: rgba(255, 255, 255, .9);
}

.team-overlay p {
    letter-spacing: 1px;
}

.team-overlay .btn-dark {
    border-width: 2px;
    color: var(--bs-dark);
    background: transparent;
}

.team-overlay .btn-dark:hover {
    color: var(--bs-white);
    background: var(--bs-dark);
}


/*** Testimonial ***/
.testimonial-carousel .owl-item {
    position: relative;
}

.testimonial-carousel .owl-item::before {
    position: absolute;
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: .1;
}

.testimonial-carousel .owl-item img {
    position: relative;
    width: 100px;
    height: 100px;
    z-index: 1;
}

.testimonial-carousel .owl-item,
.testimonial-carousel .owl-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item span {
    letter-spacing: 2px;
}

.testimonial-carousel .owl-item.center .bg-light {
    background: var(--bs-primary) !important;
}

.testimonial-carousel .owl-item.center .bg-light * {
    color: var(--bs-dark) !important;
}

.testimonial-carousel .owl-nav {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--bs-dark);
    background: var(--bs-primary);
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--bs-white);
    background: var(--bs-dark);
}


/*** Footer ***/
@media (min-width: 992px) {
    .footer::after {
        position: absolute;
        content: "";
        width: 1px;
        height: 100%;
        top: 0;
        left: 50%;
        background: var(--bs-secondary);
    }
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, .5);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link:hover {
    color: var(--bs-primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: rgba(255, 255, 255, .5);
    margin-right: 10px;
}


/* ===================== */
/* HERO CAROUSEL FIX */
/* ===================== */

/* tinggi utama */
.header-carousel {
    height: 500px;
    overflow: hidden;
}

/* samakan semua item */
.header-carousel .owl-stage-outer,
.header-carousel .owl-stage,
.header-carousel .owl-item {
    height: 100%;
}

/* gambar */
.header-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;       /* auto crop 🔥 */
    object-position: center; /* fokus tengah */
    transition: transform 8s ease;
}

/* efek zoom halus */
.header-carousel .owl-item.active img {
    transform: scale(1.05);
}

/* ===================== */
/* RESPONSIVE */
/* ===================== */

@media (max-width: 768px) {

    .header-carousel {
        height: 280px;
    }

    .hero-header-text {
        text-align: left;
        padding: 30px 15px;
    }

    .header-carousel img {
        object-position: center;
    }
}

/* maps */
.map-responsive {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* rasio 16:9 */
    overflow: hidden;
    border-radius: 10px; /* biar lebih keren */
}

.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* About jadi even agar image responsip */
/* DESKTOP */
.img-wrapper {
    width: 100%;
    height: 630px;
    aspect-ratio: 3 / 4;
    /* border-radius: 12px;
    background: #f5f5f5; */

    display: flex;
    align-items: center;
    justify-content: center;
}

/* gambar */
.img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* hover */
.img-wrapper:hover img {
    transform: scale(1.03);
}

/* ===================== */
/* MOBILE FIX */
/* ===================== */
@media (max-width: 768px) {

    .img-wrapper {
        height: auto;       /* ini kunci */
        padding: 10px;
    }

    .img-wrapper img {
        width: 100%;
        height: auto;       /* biar ngikut gambar */
    }
}


/* ======================= NEWS CAROUSEL ======================= */

/* container fix */
.news-carousel {
    position: relative;
}

/* jarak antar item */
.news-carousel .owl-stage-outer {
    padding: 15px 0;
}

/* ================= CARD ================= */
.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;

    display: flex;
    flex-direction: column;
    height: 100%;
}

/* gambar */
.news-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

/* isi card */
.news-card .p-3 {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

/* judul biar sejajar */
.news-card h5{
    font-weight:700;
    line-height:1.4;

    min-height:90px; /* tinggi tetap */

    display:-webkit-box;
    -webkit-line-clamp:3; /* maksimal 3 baris */
    -webkit-box-orient:vertical;

    overflow:hidden;
}
.news-card .p-3{
    flex:1;
    display:flex;
    flex-direction:column;
}

.news-card .btn{
    margin-top:auto;
}

/* hover */
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* ================= BUTTON FIX ================= */
.news-card .btn-primary {
    margin-top: 10px;
    padding: 8px 18px;
    font-size: 14px;
    display: inline-block;
}

/* MATIKAN efek template lama */
.news-card .btn-primary::before,
.news-card .btn-primary::after {
    display: none !important;
}

/* ================= NAV PREMIUM ================= */
.news-carousel .owl-nav {
    position: absolute;
    top: -80px;
    right: 0;
    display: flex;
    gap: 10px;
}

/* tombol */
.news-carousel .owl-nav button {
    width: 45px;
    height: 45px;
    border-radius: 6px;
    background: #b88a44 !important;
    color: #fff !important;
    border: none;
    font-size: 16px;
    transition: 0.3s;
}

/* hover */
.news-carousel .owl-nav button:hover {
    background: #8c6a33 !important;
}

/* icon */
.news-carousel .owl-nav i {
    line-height: 45px;
}

/* ================= HIDE DOT ================= */
.news-carousel .owl-dots {
    display: none !important;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

    .news-card img {
        height: 180px;
    }

    .news-carousel .owl-nav {
        top: -60px;
    }
}

/* ================= GALERI ================= */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: 0.4s;
}

/* hover zoom */
.gallery-item:hover img {
    transform: scale(1.1);
}

/* overlay */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    opacity: 0;
    transition: 0.3s;
    font-weight: bold;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ================= MODAL ================= */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.9);
    text-align: center;
}

/* GANTI NAMA biar gak bentrok Bootstrap */
.modal-img {
    max-width: 90%;
    max-height: 80vh;
    margin-top: 50px;
    animation: zoomIn 0.3s;
}

/* tombol close */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 35px;
    color: #fff;
    cursor: pointer;
}

/* tombol download */
.download-btn {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

/* animasi */
@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
/* ===== FIX OVERFLOW FINAL ===== */

/* global */
html, body {
    overflow-x: hidden;
}

/* FIX UTAMA (team section) */
.team {
    overflow: hidden;
}

.team::before {
    width: 100%;
    left: 0;
}

/* tombol aman */
/* .btn {
    overflow: hidden;
} */

/* even di halaman detail event agar gambar selalu sama */
   .event-img{
        width:100%;
        max-height:550px;
        object-fit:contain;
        cursor:pointer;
        transition:.3s;
    }

    .event-img:hover{
        opacity:.9;
    }

    .image-modal{
        display:none;
        position:fixed;
        z-index:9999;
        left:0;
        top:0;
        width:100%;
        height:100%;
        background:rgba(0,0,0,.9);
        text-align:center;
        padding-top:30px;
    }

    .modal-content-img{
        max-width:90%;
        max-height:90%;
        border-radius:15px;
    }

    .close-modal{
        position:absolute;
        top:20px;
        right:40px;
        color:#fff;
        font-size:40px;
        cursor:pointer;
    }

    .sidebar-news{
    transition:.3s;
    border-radius:10px;
    padding:10px;
    }

    .sidebar-news:hover{
        background:#f8f9fa;
        transform:translateY(-2px);
    }

    /* --------- navbar di bawah ------------- */
   /* --------- navbar di bawah ------------- */

.fixed-bottom .nav-link{
    color: rgba(255,255,255,0.7);
    transition: 0.3s;
}

.fixed-bottom .nav-link:hover,
.fixed-bottom .nav-link.active{
    color: #fff !important;
}

.bottom-navbar{
    padding-top: 6px;
    padding-bottom: 6px;
}

.bottom-navbar .nav-link{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px; /* jarak icon & text */

    padding-top:6px;
    padding-bottom:6px;

    color:rgba(255,255,255,0.7);

    transition:0.3s;
}

.bottom-navbar .nav-link span{
    font-size:9px;
    line-height:1;
    margin-top:2px; /* text lebih turun */
}

.bottom-navbar .nav-link i{
    font-size:18px;
    transition:0.3s;
}

.bottom-navbar .nav-link.active,
.bottom-navbar .nav-link:hover{
    color:#fff !important;
}

.bottom-navbar .nav-link.active i{
    transform:scale(1.1);
}

/* end navbar bawah */
/* end navbar bawah */
