@font-face {
  font-family: "Poppins";
  src: url("./fonts/Poppins-Regular.woff2") format("woff2"),
       url("./fonts/Poppins-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/Poppins-SemiBold.woff2") format("woff2"),
       url("./fonts/Poppins-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
}

html {
    overflow-x: hidden;
}
body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    padding-top: 75px;
}


#preloader {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

:root {
    --main-color: #ef8619;
    --main-color-light: #ffe5cc;
}
.text-justify {
    text-align: justify;
}
.text-main { color: var(--main-color) !important; }
.bg-main { background-color: var(--main-color) !important; }
.btn-main {
    background-color: var(--main-color);
    border-color: var(--main-color);
    color: #fff;
}
.btn-main:hover {
    background-color: #d97415;
    border-color: #d97415;
    color: #fff;
}
.hover-scale:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}
.card .hover-scale {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card .hover-scale:hover {
    transform: scale(1.05);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

/* Navbar hover efek */
.navbar .nav-link.nav-hover {
    position: relative;
    transition: color 0.3s;
    font-weight: 500;
}
.navbar .nav-link.nav-hover:hover,
.navbar .nav-link.nav-hover:focus {
    color: #ef8619 !important;
}

/* Dropdown hover efek */
.navbar .dropdown-item.dropdown-hover {
    transition: color 0.3s, background-color 0.3s;
}
.navbar .dropdown-item.dropdown-hover:hover,
.navbar .dropdown-item.dropdown-hover:focus {
    color: #fff !important;
    background-color: #ef8619;
}

/* Optional: underline animation for nav links */
.navbar .nav-link.nav-hover::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: #ef8619;
    transition: width 0.3s;
    margin-top: 3px;
}
.navbar .nav-link.nav-hover:hover::after {
    width: 100%;
}

/* CSS Footer */
.footer-link:hover {
    color: #ef8619 !important;
    transition: color 0.3s ease;
    text-decoration: none; /* hilangkan garis bawah */
}

/* Ukuran default desktop */
.banner-img-1 { max-width: 265px; }
.banner-img-2 { max-width: 320px; }

/* Untuk layar kecil / HP */
@media (max-width: 767.98px) {
    .banner-img-1 { max-width: 150px; }
    .banner-img-2 { max-width: 170px; }
}

#hero-section,
#hero-section .carousel-item {
    height: calc(100vh - 75px);
    min-height: calc(100vh - 75px);
    position: relative;
}

#hero-section .carousel-item .container {
    height: calc(100vh - 75px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Tambahkan efek gelap di atas gambar agar teks lebih kontras */
#hero-section .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* Pastikan teks hero tampil di atas overlay */
#hero-section .carousel-item .container {
    position: relative;
    z-index: 2;

}

.img-square {
  width: 100%;
  aspect-ratio: 1 / 1; /* bikin 1:1 */
  object-fit: cover;   /* biar gambar tidak ketarik */
  border-top-left-radius: 0.375rem; /* optional: samain dengan .card-img-top */
  border-top-right-radius: 0.375rem;
}

.konten-artikel img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px auto; /* opsional: biar di tengah */
}

