/* File: public/css/style.css */

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
}


/* Navbar Styles */
.navbar-brand {
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    margin: 0 5px;
    position: relative;
}

.nav-link.active {
    color: #2196F3 !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2196F3;
}

.nav-link.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
}

.nav-link.btn.active::after {
    display: none;
}

/* Card Styles */
.card {
    border-radius: 10px;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
}

.card-title {
    font-weight: 600;
}

/* Button Styles */
.btn-primary {
    background-color: #2196F3;
    border-color: #2196F3;
}

.btn-primary:hover {
    background-color: #0d8bf2;
    border-color: #0d8bf2;
}

.rounded-circle.btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.carousel-item img {
    height: 400px;
    object-fit: cover;
}

/* Section Titles */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

h1 span.text-primary, 
h2 span.text-primary, 
h3 span.text-primary {
    color: #2196F3 !important;
}

/* Programs Section */
.card.border-primary {
    border-color: #2196F3 !important;
    border-width: 1px;
}

/* Footer Styles */
.bg-primary {
    background-color: #2196F3 !important;
}

footer {
    color: white;
}

.social-icons a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Documentation Section */
.bg-primary h2 {
    font-size: 1.75rem;
}

/* Map Section */
.map-section .card {
    border: 1px solid #2196F3;
}

/* Gallery Styles */
.gallery-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 10px;
    overflow: hidden;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.gallery-thumbnail {
    height: 220px;
    object-fit: cover;
    width: 100%;
}

.gallery-image {
    height: 220px;
    object-fit: cover;
    width: 100%;
    transition: opacity 0.3s;
}

.gallery-image:hover {
    opacity: 0.9;
}

/* Lightbox Customization */
.lb-data .lb-caption {
    font-size: 16px;
    font-weight: 500;
}

.lb-data .lb-details {
    margin-top: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .carousel-item img {
        height: 250px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* Slider Styles */
.carousel-item img {
    object-fit: cover;
    height: 400px;
    width: 100%;
}

.carousel-indicators {
    margin-bottom: 1rem;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.7;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .carousel-item img {
        height: 250px;
    }
}

/* Style untuk kategori event - responsive */
.category-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 15px 0;
    position: relative;
}

.category-scroll {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.category-scroll .btn {
    margin: 0 5px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-arrow {
    display: none; /* Default: tombol tidak terlihat */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-arrow.prev {
    left: 0;
}

.nav-arrow.next {
    right: 0;
}

/* Media query untuk layar sempit/mobile */
@media (max-width: 767px) {
    .category-scroll {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-behavior: smooth;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        -webkit-overflow-scrolling: touch;
        padding: 5px 0;
    }
    
    .category-scroll::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .nav-arrow {
        display: flex; /* Tampilkan tombol pada mobile */
    }
    
    .category-container {
        padding: 0 30px; /* Beri ruang untuk tombol navigasi */
    }
}

    .custom-dropdown {
        position: relative;
        cursor: pointer;
    }
    
    .dropdown-menu {
        position: absolute;
        z-index: 1000;
        display: none;
        min-width: 100%;
        max-height: 300px;
        overflow-y: auto;
        padding: 0.5rem 0;
        background-color: #fff;
        border: 1px solid rgba(0, 0, 0, 0.15);
        border-radius: 0.25rem;
    }
    
    .dropdown-item {
        display: block;
        width: 100%;
        padding: 0.5rem 1rem;
        clear: both;
        font-weight: 400;
        color: #212529;
        text-align: inherit;
        white-space: nowrap;
        background-color: transparent;
        border: 0;
        cursor: pointer;
    }
    
    .dropdown-item:hover, .dropdown-item:focus {
        color: #16181b;
        text-decoration: none;
        background-color: #f8f9fa;
    }
    
    .dropdown-item.active, .dropdown-item:active {
        color: #fff;
        text-decoration: none;
        background-color: #2196F3;
    }

/* Header Sticky Style */
/* Header Sticky Style - Versi baru dengan delay */
.transition-ready {
    will-change: transform;
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.header-hidden {
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Tambahkan style di file public/css/style.css */

/* Album slider styles */
.album-slider-container {
    position: relative;
    overflow: hidden;
    padding: 10px 0;
    margin-bottom: 20px;
}

.album-slider {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

.album-slide {
    flex: 0 0 calc(33.333% - 14px); /* 3 items per view, dengan gap */
    max-width: calc(33.333% - 14px);
}

.album-slider-controls {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 10;
}

.album-slider-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e0e0e0;
    color: #2196F3;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.album-slider-arrow:hover {
    background-color: #2196F3;
    color: white;
}

.album-slider-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.album-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s;
}

.album-indicator.active {
    background-color: #2196F3;
    transform: scale(1.2);
}

/* Responsive styles */
@media (max-width: 991px) {
    .album-slide {
        flex: 0 0 calc(50% - 10px); /* 2 items per view */
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 767px) {
    .album-slide {
        flex: 0 0 100%; /* 1 item per view */
        max-width: 100%;
    }
}

@media (min-width: 768px) {
    .top-bar .col-md-4 span {
        white-space: nowrap;
        display: inline-block;
    }
}

/* Tambahkan CSS ini di file style.css untuk transisi yang lebih halus */

/* Navigation Menu Transitions */
.navbar-collapse {
    transition: all 0.3s ease-in-out;
}

.navbar-collapse.collapsing {
    transition: height 0.3s ease;
}

/* Sticky Header Enhancement */
.sticky-header .navbar-collapse {
    transition: all 0.2s ease-in-out;
}

/* Untuk animasi yang lebih halus saat menu tertutup */
.navbar-collapse:not(.show) {
    display: none !important;
}

/* Mobile Navigation Improvements */
@media (max-width: 767.98px) {
    /* Pastikan menu tidak overlap dengan konten saat sticky */
    .sticky-header .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-radius: 0 0 10px 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    /* Memberikan jarak yang cukup untuk konten saat menu terbuka di sticky header */
    .sticky-header .navbar-collapse.show {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
    /* Styling untuk menu item saat dalam sticky header */
    .sticky-header .navbar-nav .nav-link {
        color: #333 !important;
        padding: 10px 20px;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    .sticky-header .navbar-nav .nav-link:hover {
        background-color: rgba(33, 150, 243, 0.1);
    }
    
    /* Button login styling dalam sticky header */
    .sticky-header .navbar-nav .nav-link.btn {
        margin: 10px 20px;
        border-radius: 25px;
        border-bottom: none;
    }
}

/* Force navbar visibility on desktop */
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        justify-content: flex-end;
        visibility: visible !important;
    }
    
    .navbar-expand-lg .navbar-nav {
        flex-direction: row !important;
    }
}

/* Sticky Header Styles */
.transition-ready {
    will-change: transform;
    transition: transform 0.3s ease;
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-hidden {
    transform: translateY(-100%);
}

/* Ensure navbar is always visible on desktop */
#navbarNav {
    visibility: visible !important;
}

@media (min-width: 992px) {
    #navbarNav {
        display: flex !important;
    }
    
    /* Prevent sticky header from affecting navbar on desktop */
    .sticky-header .navbar-collapse {
        display: flex !important;
    }
}
 /* Navbar Layout Fix */
.navbar .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

@media (min-width: 992px) {
    /* Force navbar to show properly on desktop */
    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-basis: auto !important;
        justify-content: flex-end !important;
        visibility: visible !important;
        flex-grow: 1 !important;
    }
    
    .navbar-expand-lg .navbar-nav {
        flex-direction: row !important;
        align-items: center !important;
        margin-left: auto !important;
    }
    
    .navbar-expand-lg .navbar-nav .nav-item {
        margin-left: 0.5rem;
    }
    
    .navbar-expand-lg .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem !important;
        border-radius: 4px;
        transition: all 0.3s ease;
    }
    
    .navbar-expand-lg .navbar-nav .nav-link:hover {
        background-color: rgba(33, 150, 243, 0.1);
        color: #2196F3 !important;
    }
}

/* Responsive navigation */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
}

/* Sticky header compatibility */
.sticky-header .navbar .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.sticky-header .navbar-collapse {
    justify-content: flex-end !important;
}
