@media (min-width: 992px) {
    .container {
        padding-left: 6rem !important;
        padding-right: 6rem !important;
    }
}

@media (min-width: 768px) {
    .container {
        padding-left: 6rem !important;
        padding-right: 6rem !important;
    }
}

@media (min-width: 768px) {
    .navbar-nav.mx-auto {
        flex: 1;
        justify-content: center;
        display: flex;
    }
}

/* css for animated content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-pair div {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

/* Tambah terus jika perlu */

.scroll-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Efek hanya untuk layar >= 768px (desktop) */
@media (min-width: 768px) {
    .navbar.transparent-navbar {
        background-color: rgba(131, 26, 21, 0);
        transition: background-color 0.3s ease;
    }

    .navbar.solid-navbar {
        background-color: #831a15 !important;
        transition: background-color 0.3s ease;
    }

    .navbar .nav-link,
    .navbar .navbar-brand,
    .navbar .dropdown-toggle {
        color: #fff !important;
        position: relative;
    }

    .navbar .nav-link::after,
    .navbar .dropdown-toggle::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        height: 2px;
        width: 0;
        background-color: white;
        transition: width 0.3s ease;
    }

    .navbar .nav-link:hover::after,
    .navbar .dropdown-toggle:hover::after {
        width: 100%;
    }
}

@media (max-width: 1199px) {
    #mainNavbar {
        background-color: #831a15 !important;
    }
}

/* end css for animated content */

.image-wrapper1 {
    max-width: 100%; /* Prevent it from exceeding the container */
    margin: 0 auto 0 auto; /* Center it */
    overflow: hidden;
    border-radius: 15px;
    transition: width 0.1s linear; /* Smooth continuous scaling */
}

.image-wrapper1 video {
    max-width: 100%; /* Prevent it from exceeding the container */
    margin: 0 auto 0 auto; /* Center it */
    overflow: hidden;
    border-radius: 15px;
    transition: width 0.1s linear; /* Smooth continuous scaling */
}

.image-wrapper1 img {
    max-width: 100%; /* Prevent it from exceeding the container */
    margin: 0 auto 0 auto; /* Center it */
    overflow: hidden;
    border-radius: 15px;
    transition: width 0.1s linear; /* Smooth continuous scaling */
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transition: transform 0.3s ease-in-out;
    z-index: 30000 !important;
}

.primary-color {
    color: #831a15 !important;
}

.primary-color-bg {
    background-color: #831a15 !important;
}

.textHeading1 {
    font-family: "Epilogue", sans-serif !important;
    font-optical-sizing: auto !important;
    font-style: normal !important;
    font-size: clamp(24px, 5vw, 98px);
    font-weight: 800 !important;
    padding: 12px 0 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.textHeading2 {
    font-family: "Epilogue", sans-serif !important;
    font-optical-sizing: auto !important;
    font-style: normal !important;
    font-size: clamp(24px, 5vw, 45px) !important;
    font-weight: 600 !important;
    padding: 12px 0 !important;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); */
}

.textHeading3 {
    font-family: "Epilogue", sans-serif !important;
    font-optical-sizing: auto !important;
    font-style: normal !important;
    font-size: clamp(24px, 5vw, 32px) !important;
    font-weight: 600 !important;
    padding: 12px 0 !important;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); */
}

.textSubTitle3 {
    font-family: "Epilogue", sans-serif;
    font-optical-sizing: auto !important;
    font-style: normal !important;
    font-size: clamp(12px, 5vw, 24px) !important;
    font-weight: 600 !important;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); */
}

.textSideArticleTitle {
    font-family: "Epilogue", sans-serif;
    font-optical-sizing: auto !important;
    font-style: normal !important;
    font-size: clamp(12px, 5vw, 14px) !important;
    font-weight: 600 !important;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); */
}

.textSideArticleBody {
    font-family: "Epilogue", sans-serif;
    font-optical-sizing: auto !important;
    font-style: normal !important;
    font-size: clamp(8px, 5vw, 12px) !important;
    font-weight: 400 !important;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); */
}

.textSideArticleDate {
    font-family: "Epilogue", sans-serif;
    font-optical-sizing: auto !important;
    font-style: normal !important;
    font-size: clamp(6px, 5vw, 10px) !important;
    font-weight: 400 !important;
    color: #919191; /* Warna abu-abu untuk tanggal */
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); */
}

.textSubHeading3 {
    font-family: "Epilogue", sans-serif;
    font-optical-sizing: auto !important;
    font-style: normal !important;
    font-size: clamp(12px, 5vw, 16px) !important;
    font-weight: 400 !important;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); */
}

.textSubHeading1 {
    font-family: "Epilogue", sans-serif;
    font-optical-sizing: auto !important;
    font-style: normal !important;
    font-size: clamp(24px, 5vw, 1.3rem) !important;
    font-weight: 400 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-video::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* ini yang bikin ngedim */
    z-index: 1;
}

/* Pastikan konten tetap di atas dim */
.hero-video .container {
    position: relative;
    z-index: 2;
}

/* Pastikan video tetap paling bawah */
.hero-video video {
    z-index: 0;
}

.brand-grid-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
    background-color: transparent;
    max-height: 100px;
}

.brand-track {
    display: flex;
    width: fit-content;
    animation: slideLeft 30s linear infinite;
}

.brand-grid {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-logo {
    width: 160px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-logo img {
    max-height: 50px;
    max-width: 100%;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.brand-logo img:hover {
    opacity: 1;
    transform: scale(1.05);
}

@keyframes slideLeft {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .brand-logo {
        width: 100px;
        height: 40px;
    }

    .brand-logo img {
        max-height: 40px;
        max-width: clamp(50px, 16vw, 80px);
    }
}

.brand-inline-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px; /* atur jarak antar logo */
    flex-wrap: nowrap; /* ini yang bikin tidak turun ke bawah */
    overflow-x: auto; /* biar tetap bisa scroll kalau terlalu sempit */
    padding: 10px 0;
}

.brand-inline-group img {
    max-height: 50px;
    height: auto;
    width: auto;
    max-width: clamp(50px, 16vw, 100%); /* scaling di mobile */
    object-fit: contain;
    flex-shrink: 0;
}

.scrolling-wrapper2 {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 20px;
    /* padding: 10px; */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
    width: 100vw; /* Ensure it takes full width */
    min-width: 100%;
    padding-bottom: 30px; /* Adds space between cards and scrollbar */
}

.scrolling-wrapper3 {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 20px;
    /* padding: 10px; */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
    width: 100vw; /* Ensure it takes full width */
    min-width: 100%;
    padding-bottom: 30px; /* Adds space between cards and scrollbar */
}

.card2 {
    flex: 0 0 auto; /* Prevent cards from shrinking */
    width: 24rem; /* Ensure cards maintain their width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
    overflow: hidden;
}

@media (max-width: 720px) {
    .card2 {
        width: 100%; /* Full width on smaller screens */
        max-width: 100%; /* Prevents it from exceeding the container */
    }
}

.card-img-custom {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin: 0;
    border: none;
    border-radius: 0;
}

/* Scrollbar container */
::-webkit-scrollbar {
    width: 6px; /* Thin scrollbar */
    height: 6px; /* Thin scrollbar for horizontal scrolling */
}

/* Scrollbar track (background) */
::-webkit-scrollbar-track {
    background: transparent; /* Hide track for a cleaner look */
}

/* Scrollbar thumb (draggable part) */
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2); /* Subtle dark thumb */
    border-radius: 10px; /* Rounded corners */
}

/* Scrollbar thumb on hover */
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4); /* Darker when hovered */
}

.card-resize {
    width: 80% !important; /* Adjusts the card width to 80% of its parent */
    max-width: 300px !important; /* Prevents it from getting too large */
    padding: 25px 25px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    padding-bottom: 10px;
}

.style_pageWrapper2 {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin: 0;
    /* padding-left: 24px; */
    /* padding-right: 24px; */
    width: 100%;
}

.scrolling-wrapper {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    /* max-width: var(--page-max-width); */
    /* width: var(--page-width) !important; */
    gap: 20px;
    white-space: nowrap;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
    transition: scroll 0.5s ease-in-out;

    padding-right: 7.4vw;
    padding-left: 7.4vw;
    /* margin-left: calc(-1 * (var(--page-width) - 100vw)); */

    /* Hide scrollbar (Works on WebKit browsers like Chrome, Safari) */
    &::-webkit-scrollbar {
        display: none;
    }

    /* Hide scrollbar for Firefox */
    scrollbar-width: none;

    /* Hide scrollbar for IE/Edge */
    -ms-overflow-style: none;
}

@media (max-width: 720px) {
    .style_buttonTags2 {
        visibility: hidden;
    }
    .image-wrapper {
        height: 28vh !important;
    }
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-wrapper {
    margin: 0 auto 0 auto; /* Center it */
    overflow: hidden;
    border-radius: 24px;
    transition: width 0.1s linear; /* Smooth continuous scaling */
    flex-direction: column !important;
    height: 266px;
    max-width: var(--page-max-width) !important;
    width: var(--page-width) !important;
    box-sizing: content-box !important;
    flex: 0 0 auto; /* Prevent resizing */
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f1f1f3;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
}

.progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f1f1f3;
    border-radius: 54px;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0px 25px;
    height: 60px;
}

/* Dots container */
.dots {
    display: flex;
    gap: 8px;
}

/* Individual dots */
.dot {
    width: 12px;
    height: 12px;
    background: #bbb;
    border-radius: 50%;
    transition: width 0.3s ease, border-radius 0.3s ease, background 0.3s ease;
}

/* Active dot (gradual animation) */
.dot.active {
    width: 30px;
    border-radius: 25px;
    background: #555;
}

/* Hover effect */
.dot:hover {
    width: 30px;
    border-radius: 25px;
    background: #777; /* Slightly different hover color */
}

/* Use these classes to switch */
.filled {
    font-variation-settings: "FILL" 1; /* Filled */
}

.rounded {
    font-family: "Material Symbols Rounded"; /* Rounded */
}

.sharp {
    font-family: "Material Symbols Sharp"; /* Sharp */
}

.material-symbols-outlined {
    cursor: pointer; /* Change to a hand cursor */
    user-select: none; /* Prevent text selection */
    display: inline-flex; /* Ensure proper alignment */
    align-items: center;
    justify-content: center;
}

/* .carousel-item .row {
    height: 40vh;
} */

/* .carousel-item .col img {
    height: 30vh;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
} */

/* #multiImageCarousel .carousel-item {
    min-height: 40vh;
} */

/* #multiImageCarousel .carousel-item .col {
    height: 60%;
} */

/* Default (mobile-first) */
#multiImageCarousel img {
    height: 40vh !important;
    width: 100%;
    object-fit: cover;
    border-radius: 110px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* Untuk layar ≥768px (tablet ke atas) */
@media (min-width: 768px) {
    #multiImageCarousel img {
        height: 54vh !important;
    }
}

#multiImageCarousel .carousel-item .col img:hover {
    transform: scale(1.05);
}

.desc2 {
    padding: 50px 0 !important;
    font-family: "Epilogue", sans-serif;
    font-optical-sizing: auto !important;
    font-style: normal !important;
    font-weight: 600 !important;
    font-size: clamp(14px, 5vw, 22px) !important;
    font-weight: 400 !important;
    color: #919191;
}

.text-justify {
    text-align: justify;
}

.address-link {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.address-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.btn-circle {
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 18px;
    background-color: #6c757d; /* abu-abu */
    transition: background-color 0.3s ease;
    color: rgba(255, 255, 255, 0.497) !important; /* ikon tetap putih */
}

.btn-circle:hover {
    background-color: #ffffff; /* hover jadi putih */
    color: white !important; /* tetap putih walau background putih */
}

.btn-circle i {
    line-height: 1;
    color: white !important; /* paksa ikon tetap putih */
}

.berita-section h5 {
    font-weight: 500 !important;
    display: inline-block !important;
    padding: 6px 12px !important;
    margin-bottom: 1rem !important;
    color: #000000 !important;
    background-color: #f8f9fa !important;
    border-radius: 4px !important;
}

.berita-utama {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 18px !important;
}

.berita-utama img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
}

.berita-overlay {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 1rem !important;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7),
        transparent
    ) !important;
    color: #fff !important;
}

.berita-grid .berita-card {
    background: none !important;
    border: none !important;
}

.berita-grid img {
    border-radius: 15px !important;
    width: 100% !important;
    height: auto !important;
}

.berita-grid .judul-artikel {
    font-weight: 600 !important;
    margin-top: 0.5rem !important;
    font-size: 0.95rem !important;
}

.berita-grid .text-muted {
    font-size: 0.8rem !important;
}

.berita-grid p {
    font-size: 0.8rem !important;
    color: #666 !important;
}

.sidebar-info h6 {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
}

.sidebar-info img {
    border-radius: 15px !important;
    width: 100% !important;
    margin-bottom: 0.5rem !important;
}

.sidebar-info .text-danger {
    font-size: 0.85rem !important;
}

/* Gambar 16:9 untuk semua thumbnail */
.berita-thumbnail {
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
    border-radius: 15px !important;
}
.berita-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Gambar besar */
.berita-utama img {
    object-fit: cover !important;
}

/* Fix gambar sidebar */
.sidebar-info img {
    object-fit: cover !important;
    height: 100% !important;
}

/* Agar tidak rusak saat zoom */
.berita-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* Hover efek untuk berita-card */
.berita-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.berita-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15) !important;
}

/* Hover efek untuk gambar utama */
.berita-utama {
    transition: transform 0.3s ease !important;
}
.berita-utama:hover {
    transform: scale(1.01) !important;
}

/* Hover efek untuk sidebar image */
.sidebar-info .ratio {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.sidebar-info .ratio:hover {
    transform: scale(1.01) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1) !important;
}

#multiImageCarousel img {
    height: 468px;
    object-fit: cover;
    border-radius: 10px;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    font-size: 28px;
    padding: 14px 20px;
    border-radius: 100%;
    z-index: 9999;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    text-decoration: none;
}

.back-to-top {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 28px;
    background-color: #831a15;
    color: white;
    font-size: 9px;
    padding: 10px 12px;
    border-radius: 100%;
    z-index: 9999;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}
.back-to-top:hover {
    transform: scale(1.1);
    text-decoration: none;
}

/* .expired-card {
    filter: grayscale(70%);
    opacity: 0.8;
    pointer-events: none;
}
.expired-card button {
    cursor: not-allowed;
} */

#modalImage {
    max-width: 100%;
    max-height: 90vh; /* Maksimal 90% tinggi viewport */
    object-fit: contain;
}

.object-fit-cover {
    object-fit: cover !important;
}

.hero-custom {
    padding-top: 150px;
    padding-bottom: 40px; /* tambahkan bottom padding */
    min-height: 32vh; /* biar tetap proporsional */
    height: auto; /* ini penting supaya tidak fixed */
}

@media (max-width: 767.98px) {
    .hero-custom {
        padding-top: 100px;
        padding-bottom: 20px;
        min-height: 32vh;
        height: auto;
    }
}

.login-page {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 40px 0;
}

.brochure-preview {
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brochure-preview:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Overlay fullscreen */
.brochure-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    cursor: zoom-out;
}

.brochure-fullscreen img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}
