/* ========== VARIABLES & RESET ========== */
:root {
    --biru-tua: #0a2b4e;
    --biru-muda: #3498db;
    --hijau: #2ecc71;
    --biru-gelap: #1a3a5f;
    --hijau-muda: #58d68d;
    --abu-muda: #f8fafc;
    --abu-gelap: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    font-family: 'Segoe UI', 'Poppins', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background: #f0f8ff;
    -webkit-tap-highlight-color: transparent;
}

/* ========== NAVBAR STYLING ========== */
.navbar {
    background: #0a2b4e;
    padding: 0.8rem 0;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: white !important;
}

.navbar-brand span {
    color: #2ecc71;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

/* Hanya efek hover warna - TANPA garis bawah */
.nav-link:hover {
    color: #2ecc71 !important;
}

/* Dropdown menu */
.dropdown-menu {
    background: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 0.5rem;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    color: #333;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: #3498db;
    color: white;
}

.dropdown-divider {
    margin: 0.3rem 0;
    border-color: #eee;
}

/* Navbar scrolled effect */
.navbar-scrolled {
    padding: 0.4rem 0;
    background: #0a2b4e;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* Responsive Navbar */
@media (max-width: 991px) {
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .nav-link {
        padding: 0.5rem 0;
    }
    
    .dropdown-menu {
        background: transparent;
        box-shadow: none;
        padding-left: 1.5rem;
    }
    
    .dropdown-item {
        color: rgba(255,255,255,0.8);
        padding: 0.4rem 0;
    }
    
    .dropdown-item:hover {
        background: transparent;
        color: #2ecc71;
    }
}

/* ========== SLIDER/CAROUSEL ========== */
.carousel-item {
    height: 600px;
    position: relative;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10,43,78,0.7) 0%, rgba(52,152,219,0.5) 100%);
    z-index: 1;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.carousel-caption {
    z-index: 2;
    bottom: 30%;
    text-align: left;
    animation: fadeInUp 1s ease;
}

.carousel-caption h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.carousel-caption p {
    font-size: 1.2rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== SECTION STYLING ========== */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--biru-tua);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    font-weight: bold;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--biru-muda), var(--hijau));
    margin: 15px auto;
    border-radius: 2px;
}

/* ========== CARD STYLING ========== */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s;
    background: white;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--biru-tua);
    font-weight: bold;
    margin-bottom: 1rem;
}

.btn-custom {
    background: linear-gradient(135deg, var(--biru-muda), var(--biru-tua));
    color: white;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s;
    border: none;
    display: inline-block;
    text-decoration: none;
}

.btn-custom:hover {
    background: linear-gradient(135deg, var(--hijau), var(--biru-muda));
    color: white;
    transform: translateY(-2px);
}

/* ========== AGENDA STYLING ========== */
.agenda-item {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--hijau);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.agenda-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.agenda-item h4 {
    color: var(--biru-tua);
    margin-bottom: 0.5rem;
}

.agenda-date {
    color: var(--hijau);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* ========== SERVICE CARD ========== */
.service-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    transition: all 0.3s;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-card i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--biru-muda), var(--hijau));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.service-card h4 {
    color: var(--biru-tua);
    margin-bottom: 1rem;
}

/* ========== GALLERY ========== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(10,43,78,0.9), rgba(52,152,219,0.9));
    color: white;
    padding: 1rem;
    transition: all 0.5s;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

/* ========== VIDEO SECTION ========== */
.video-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.ratio-16x9 {
    aspect-ratio: 16/9;
}

/* ========== FOOTER ========== */
footer {
    background: linear-gradient(135deg, var(--biru-tua) 0%, #0a1a2e 100%);
    color: white;
    padding: 60px 0 20px;
}

.footer-widget h4 {
    color: var(--hijau);
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.footer-widget p, .footer-widget ul {
    color: #b0c4de;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 0.8rem;
}

.footer-widget ul li a {
    color: #b0c4de;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-widget ul li a:hover {
    color: var(--hijau);
    padding-left: 5px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    color: white;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--hijau);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: #b0c4de;
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--hijau), var(--biru-muda));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* ========== LOADING SPINNER ========== */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--abu-muda);
    border-top-color: var(--hijau);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
}

/* ========== FORM STYLING ========== */
.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--hijau);
    box-shadow: 0 0 0 0.2rem rgba(46, 204, 113, 0.25);
}

/* ========== BG LIGHT ========== */
.bg-light {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* ========== TEXT COLORS ========== */
.text-primary-custom {
    color: var(--biru-tua);
}

.text-success-custom {
    color: var(--hijau);
}

/* ========== BREADCRUMB STYLING ========== */
.breadcrumb-section {
    margin-top: 70px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    text-decoration: none;
    transition: all 0.3s;
}

.breadcrumb-item a:hover {
    color: var(--hijau) !important;
}

.breadcrumb-item.active {
    color: rgba(255,255,255,0.8);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: white;
    content: "›";
}

/* ========== MODAL STYLING ========== */
.modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--biru-tua), var(--biru-muda));
    border: none;
}

.modal-title {
    font-weight: bold;
}

.modal-footer {
    border-top: 1px solid #e0e0e0;
}

/* ========== CARD HEADER STYLING ========== */
.card-header {
    background: linear-gradient(135deg, var(--biru-tua), var(--biru-muda)) !important;
    color: white !important;
    border: none;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 12px 12px 0 0 !important;
}

.card-header h5, 
.card-header .mb-0 {
    color: white !important;
}

.card-header i {
    color: white !important;
}

.card-header .fa-chevron-down,
.card-header .fa-chevron-up {
    color: white !important;
}

.card-header:hover {
    background: linear-gradient(135deg, var(--hijau), var(--biru-muda)) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.card-header:active {
    transform: translateY(0);
}

/* Hover effect untuk icon chevron */
.card-header:hover .fa-chevron-down,
.card-header:hover .fa-chevron-up {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}