/* 
==============================================
KARANG TARUNA GIANYAR WEBSITE STYLESHEET
==============================================
- Mobile Optimization
- Color Consistency dengan skema warna baru
- Perbaikan UI/UX untuk semua perangkat

Skema Warna:
- Primary Blue: #004c9e (rgba(0,76,158,255))
- Secondary Teal: #01919a (rgba(1,145,154,255))
- Accent Yellow: #dadb0c (rgba(218,219,12,255))
==============================================
*/

:root {
    /* Consistent Color Palette - Berdasarkan Rekomendasi Warna */
    --primary-blue: #004c9e; /* Biru utama sesuai rekomendasi */
    --secondary-teal: #01919a; /* Teal sesuai rekomendasi */
    --accent-yellow: #dadb0c; /* Kuning sesuai rekomendasi */
    --dark-blue: #00376e; /* Turunan lebih gelap dari primary-blue */
    --light-blue: #4db1b7; /* Turunan lebih cerah dari secondary-teal */
    --white: #ffffff;
    --dark: #212529;
    --light-bg: #f8f9fa;
    --light-gray: rgba(255, 255, 255, 0.95);
    --overlay-dark: rgba(0, 0, 0, 0.7);

    /* Gradients with updated colors */
    --gradient-primary: linear-gradient(
        135deg,
        var(--primary-blue),
        var(--dark-blue)
    );
    --gradient-secondary: linear-gradient(
        135deg,
        var(--secondary-teal),
        var(--light-blue)
    );
    --gradient-accent: linear-gradient(135deg, var(--accent-yellow), #ffe74c);
}
/* Hero Carousel Styling - FIXED untuk Mobile */
#heroCarousel {
    position: relative;
    overflow: hidden;
    margin-top: -76px; /* Sesuaikan dengan tinggi navbar */
}

/* Desktop - Normal height */
/* Hero Carousel Styling - FIXED */
#heroCarousel {
    position: relative;
    overflow: hidden;
    margin-top: -76px; /* Sesuaikan dengan tinggi navbar */
}

/* Image Container */
.carousel-image-container {
    position: relative;
    height: 500px; /* Desktop height */
}

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

/* Overlay Background */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.6) 70%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 1;
}

/* Desktop Caption Styling */
.carousel-caption-desktop {
    position: absolute;
    bottom: 8%; /* Posisi yang lebih presisi */
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-width: 900px;
    text-align: center;
    z-index: 2;
}

.caption-content {
    background: rgba(0, 76, 158, 0.85); /* Transparansi yang tepat */
    backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    border-top: 4px solid var(--accent-yellow);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.caption-content h1 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem;
    font-weight: 800;
}

.caption-content .lead {
    font-size: 1.2rem;
    line-height: 1.5;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.caption-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Mobile Caption Styling */
.carousel-caption-mobile {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

.mobile-caption-content {
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem;
    text-align: center;
}

.mobile-caption-content h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.mobile-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mobile-buttons .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 8%;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
}

/* Indicators */
.carousel-indicators {
    bottom: 20px;
    margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    width: 30px;
    border-radius: 15px;
    background-color: var(--accent-yellow);
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .carousel-image-container {
        height: 400px;
    }
    
    .caption-content {
        padding: 2rem 1.5rem;
    }
    
    .caption-content h1 {
        font-size: 2rem;
    }
    
    .caption-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .caption-buttons .btn {
        width: 100%;
        max-width: 250px;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .carousel-image-container {
        height: 300px; /* Tinggi yang sesuai untuk mobile */
    }
    
    .mobile-caption-content h2 {
        font-size: 1.1rem;
    }
    
    .mobile-caption-content p {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .carousel-image-container {
        height: 250px;
    }
    
    .mobile-caption-content {
        padding: 0.75rem;
    }
    
    .mobile-buttons .btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

/* MOBILE - Slider pendek seperti banner, NO ZOOM */
@media (max-width: 768px) {
    .hero-img {
        height: 150px !important;
        min-height: 150px !important;
        max-height: 150px !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    /* PENTING: Hapus semua zoom effect di mobile */
    .carousel-item .hero-img {
        transform: none !important;
        transition: none !important;
    }

    .carousel-item.active .hero-img {
        transform: none !important;
    }

    /* Caption disembunyikan karena slider pendek */
    .carousel-caption {
        display: none !important;
    }

    .main-caption {
        display: none !important;
    }

    .slide-caption {
        display: none !important;
    }

    /* Control button lebih kecil */
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 1.5rem !important;
        height: 1.5rem !important;
    }

    .carousel-indicators {
        bottom: 10px;
    }

    .hero-wave {
        display: none; /* Sembunyikan wave di mobile */
    }
}

/* Phone Portrait - Extra small */
@media (max-width: 575.98px) {
    .hero-img {
        height: 120px !important;
        min-height: 120px !important;
        max-height: 120px !important;
    }

    .carousel-indicators {
        bottom: 5px;
    }
}
/* Global styling */
body {
    font-family: "Poppins", sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
    padding-top: 70px; /* Padding untuk kompensasi fixed navbar */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

.section-padding {
    padding: 80px 0;
}

.carousel-img {
    max-height: 100vh;
}

.carousel-caption {
    border-top: 5px solid var(--secondary-teal);
    background-color: rgba(
        0,
        76,
        158,
        0.75
    ); /* Warna primary dengan transparansi */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.vh-50 {
    height: 50vh;
}

.primary {
    color: var(--white);
}

.active {
    color: var(--accent-yellow) !important;
}

.title-container {
    position: relative;
    padding-bottom: 40px;
}

.title-container h2::after {
    content: "";
    position: absolute;
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-secondary);
    bottom: 0;
    left: calc(50% - 30px);
    margin-bottom: 20px;
    border-radius: 2px;
}

.about-us-title {
    font-size: 50px;
    color: var(--primary-blue);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.about-us-subtitle {
    font-size: 28px;
    color: var(--secondary-teal);
    font-weight: 600;
}

.card-icon {
    transition: transform 0.5s, color 0.3s;
    color: var(--primary-blue);
}

.card-icon:hover {
    color: var(--secondary-teal);
    transform: translateY(-5px);
}

.mansory-sizer,
.mansory-item {
    width: 30%;
}

.brand-image {
    width: 50%;
    object-fit: cover;
    filter: grayscale(1);
    transition: all 0.5s ease;
}

.brand-image:hover {
    filter: grayscale(0);
    transform: scale(1.15);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

a {
    color: var(--primary-blue);
    transition: all 0.3s ease;
    text-decoration: none;
}

a:hover {
    color: var(--secondary-teal);
}

/* Buttons styling */
.btn {
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 76, 158, 0.3);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 76, 158, 0.2);
}

/* Accent colored button */
.btn-accent {
    background: var(--gradient-accent) !important;
    border: none !important;
    color: var(--dark) !important;
    font-weight: 600;
}

.btn-accent:hover {
    background: linear-gradient(
        135deg,
        #c7c80b,
        var(--accent-yellow)
    ) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(218, 219, 12, 0.3);
}

.badge.bg-accent {
    background: var(--gradient-accent) !important;
    color: var(--dark) !important;
}

.btn-subscribe {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 0 25px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: 0 5px 5px 0;
}

.btn-subscribe::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: all 0.6s;
    z-index: -1;
}

.btn-subscribe:hover::after {
    left: 100%;
}

.btn-subscribe:hover {
    background: var(--gradient-secondary);
}

.btn-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-to-top:hover {
    background: var(--secondary-teal);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.bg-darker {
    background: var(--dark);
}

.portfolio-filters li {
    transition: all 0.5s ease;
    cursor: pointer;
}

.portfolio-filters .filter-active,
.breadcumbs {
    background: var(--secondary-teal);
}

.breadcumbs {
    margin-top: 55px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.breadcumbs li + li::before {
    display: inline-block;
    color: var(--white);
    padding-right: 10px;
    padding-left: 10px;
    content: "/";
}

.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.img-testimonial {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 3px solid var(--accent-yellow);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.testimonial-item .card-body h4 {
    font-size: 18px;
    color: var(--primary-blue);
    font-weight: 700;
}

.btn-submit {
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--secondary-teal);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* List Group Styling */
.list-group-item.active {
    background: var(--gradient-primary) !important;
    border-color: var(--primary-blue) !important;
    color: var(--white) !important;
}

.list-group-item:hover {
    background-color: var(--secondary-teal) !important;
    color: var(--white) !important;
    transform: translateX(5px);
}

.list-group-item {
    transition: all 0.3s ease !important;
    border-left: 3px solid transparent;
}

.list-group-item:hover {
    border-left: 3px solid var(--accent-yellow);
}

/* About Section */
.about-title {
    margin-top: 30px;
    text-align: left;
    position: relative;
    left: 20px;
    color: var(--primary-blue);
    padding-bottom: 10px;
}

.about-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

/* Team Section Responsive */
@media (max-width: 768px) {
    .teams .row .col-md-3 {
        width: 50%;
        margin-bottom: 20px;
    }

    .card {
        width: auto !important;
    }
}

@media (max-width: 576px) {
    .teams .row .col-md-3 {
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    .card {
        width: 100% !important;
    }

    .card-body h5 {
        font-size: 16px !important;
    }

    .card-body p {
        font-size: 14px !important;
    }
}

/* Carousel Styling */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

button.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--overlay-dark);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

button.carousel-control:hover {
    background-color: var(--primary-blue);
    transform: translateY(-50%) scale(1.1);
}

#prevBtn {
    left: 20px;
}

#nextBtn {
    right: 20px;
}

.carousel-dots {
    text-align: center;
    margin-top: 15px;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary-blue);
    width: 25px;
    border-radius: 10px;
}

/* Navbar Styling */
.navbar {
    background: transparent;
    transition: all 0.3s ease-in-out;
    padding: 15px 0;
    z-index: 1030;
}

.navbar.scrolled {
    background: var(--primary-blue);
    padding: 8px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Ukuran dan posisi logo */
#mainNav .navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    z-index: auto;
}

#mainNav .logo {
    height: 40px;
    width: auto;
    margin-right: 5px;
}

/* Perbaikan teks brand */
#mainNav .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

#mainNav .kt-text,
#mainNav .gianyar-text {
    font-size: 14px;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    color: var(--white);
    font-weight: 600;
    padding: 10px 15px !important;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent-yellow);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 3px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 70%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-yellow);
}

/* Hero Section */
.hero-img {
    height: 100vh;
    object-fit: cover;
    filter: brightness(0.9);
}

/* Caption Styling */
.carousel-item {
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.carousel-caption.bottom-caption {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.carousel-caption {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    text-align: center;
    background: rgba(0, 76, 158, 0.75);
    padding: 25px;
    border-radius: 15px;
    border-top: 5px solid var(--secondary-teal);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.carousel-caption h1 {
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.carousel-caption p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* Hover Effects */
.hover-scale {
    transition: transform 0.5s ease, box-shadow 0.3s ease;
    transform-origin: center;
}

.hover-scale:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.hover-shadow {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

/* Icon Boxes */
.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 76, 158, 0.2);
    transition: all 0.3s ease;
}

.icon-box:hover {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 76, 158, 0.3);
}

.mission-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.mission-icon:hover {
    transform: rotate(10deg);
}

/* Image Overlay */
.img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(20px);
}

.position-relative:hover .img-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Ribbon Effect */
.ribbon {
    position: absolute;
    z-index: 2;
    overflow: hidden;
    width: 150px;
    height: 150px;
}

.ribbon span {
    position: absolute;
    display: block;
    width: 225px;
    padding: 10px 0;
    background: var(--gradient-secondary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    color: var(--white);
    font-size: 13px;
    text-transform: uppercase;
    text-align: center;
    font-weight: 700;
    letter-spacing: 1px;
}

.ribbon-top-right {
    top: -10px;
    right: -10px;
}

.ribbon-top-right span {
    left: -25px;
    top: 30px;
    transform: rotate(45deg);
}

.card-stats {
    margin-top: -30px;
    margin-left: 20px;
    margin-right: 20px;
    z-index: 10;
    position: relative;
    background: var(--gradient-primary) !important;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-stats h3 {
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 5px;
    background: var(--accent-yellow);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Kegiatan Section Styling */
.hover-lift {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Kegiatan Item Styling */
.kegiatan-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.kegiatan-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .kegiatan-img-wrapper img {
    transform: scale(1.08);
}

.kegiatan-img-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1;
}

/* Badge Colors */
.badge {
    padding: 8px 15px;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.badge.bg-primary {
    background: var(--gradient-primary) !important;
}

.badge.bg-success {
    background: var(--gradient-secondary) !important;
}

.badge.bg-warning {
    background-color: var(--accent-yellow) !important;
    color: var(--dark);
}

.badge.bg-info {
    background-color: var(--light-blue) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #dc3545, #ff6b81) !important;
}

/* Stats Icons */
.stat-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-icon:hover {
    transform: translateY(-5px) rotate(10deg);
}

/* Avatar */
.avatar {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.avatar:hover {
    transform: scale(1.1);
}

/* Kontak Form Styling */
#kontak .form-control,
#kontak .form-select {
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

#kontak .form-control:focus,
#kontak .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.25rem rgba(0, 76, 158, 0.15);
}

#kontak .form-floating label {
    padding: 12px 15px;
}

#kontak .card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

#kontak .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#kontak .social-icons a:hover {
    transform: translateY(-5px);
}

#kontak .rounded-circle {
    display: flex;
    align-items: center;
    justify-content: center;
}

#kontak .bg-primary {
    background: var(--gradient-primary) !important;
}

#kontak .text-primary {
    color: var(--primary-blue) !important;
}

/* Footer Styling */
.footer-area {
    position: relative;
    overflow: hidden;
    margin-top: 100px;
}

.wave-top {
    position: relative;
    height: 150px;
    margin-bottom: -5px;
}

.wave-top svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: var(--dark) !important;
}

.bg-dark {
    background-color: var(--dark) !important;
}

.text-light-blue {
    color: var(--light-gray);
}

/* Footer Branding */
.logo-hex {
    transition: transform 0.5s;
}

.footer-brand:hover .logo-hex {
    transform: rotate(30deg);
}

/* Footer Icon Styling */
.icon-bubble {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-yellow);
    font-size: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.icon-bubble:hover {
    transform: scale(1.1);
    background: rgba(0, 76, 158, 0.2);
}

.contact-info a {
    text-decoration: none;
    transition: all 0.3s;
    color: var(--light-gray);
}

.contact-info a:hover {
    color: var(--accent-yellow);
    transform: translateX(5px);
    display: inline-block;
}

/* Footer Links Styling */
.footer-links h4 {
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
}

.footer-links h4::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-teal);
    border-radius: 10px;
}

.list-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-links li {
    margin-bottom: 15px;
}

.footer-link {
    color: var(--light-gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-yellow);
    transform: translateX(8px);
}

.link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 0.7rem;
    color: var(--secondary-teal);
    transition: all 0.3s ease;
}

.footer-link:hover .link-icon {
    color: var(--accent-yellow);
    transform: rotate(45deg);
}

/* Newsletter Styling */
.newsletter-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 12px 15px;
    height: auto;
    backdrop-filter: blur(10px);
    border-radius: 5px 0 0 5px;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(1, 145, 154, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.btn-subscribe {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0 25px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: 0 5px 5px 0;
}

/* Social Media Icons */
.social-links {
    margin-top: 20px;
    display: flex;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background: var(--secondary-teal);
    transform: translateY(-5px);
}

/* Copyright Section */
.copyright {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
    margin-top: 50px;
}

.copyright p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.copyright a {
    color: var(--secondary-teal);
    font-weight: 600;
    transition: all 0.3s ease;
}

.copyright a:hover {
    color: var(--accent-yellow);
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--primary-blue);
        border-radius: 10px;
        padding: 15px;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .about-us-title {
        font-size: 40px;
    }

    .about-us-subtitle {
        font-size: 24px;
    }

    .card-stats {
        margin-top: 20px;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 60px 0;
    }

    .title-container h2 {
        font-size: 1.8rem;
    }

    .carousel-caption h1 {
        font-size: 1.8rem;
    }

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

    .about-us-title {
        font-size: 32px;
    }

    .about-us-subtitle {
        font-size: 20px;
    }

    .mansory-sizer,
    .mansory-item {
        width: 45%;
    }

    .footer-area {
        margin-top: 60px;
    }

    .footer-links {
        margin-bottom: 30px;
    }
}

@media (max-width: 575.98px) {
    body {
        padding-top: 60px;
    }

    .section-padding {
        padding: 40px 0;
    }

    .title-container h2 {
        font-size: 1.5rem;
    }

    .carousel-caption {
        padding: 15px;
    }

    .carousel-caption h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .about-us-title {
        font-size: 28px;
    }

    .about-us-subtitle {
        font-size: 18px;
    }

    .card-stats h3 {
        font-size: 1.8rem;
    }

    .mansory-sizer,
    .mansory-item {
        width: 100%;
    }

    .footer-area {
        margin-top: 40px;
    }

    .wave-top {
        height: 80px;
    }

    .icon-bubble {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.slide-up {
    animation: slideUp 0.8s ease-in-out;
}

.slide-right {
    animation: slideRight 0.8s ease-in-out;
}

.zoom-in {
    animation: zoomIn 0.8s ease-in-out;
}

/* Keyframes Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideRight {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
.navbar-toggler {
    margin-top: 0cm; /* Menggeser ke atas sejauh 1 cm */
    transform: translateX(-22px); /* Menggeser ke kiri sejauh 20px */
    position: relative; /* Memastikan posisi berfungsi */
    z-index: 1031; /* Menjaga agar tetap di atas elemen lain */
}

/* Mobile Navigation Toggle Button */
.navbar-toggler {
    width: 40px;
    height: 40px;
    position: relative;
    border: none;
    background: transparent;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler-icon {
    width: 25px;
    height: 2px;
    background: var(--white);
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -12.5px;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    transform: translateY(-8px);
}

.navbar-toggler-icon::after {
    transform: translateY(8px);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
}

/* Loading Animation */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--primary-blue);
    border-bottom-color: var(--secondary-teal);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Pagination Styling */
.pagination .page-item .page-link {
    color: var(--primary-blue);
    border: 1px solid #dee2e6;
    margin: 0 3px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.pagination .page-item .page-link:hover {
    background-color: var(--secondary-teal);
    color: var(--white);
    border-color: var(--secondary-teal);
}

/* Tooltip Styling */
.custom-tooltip {
    position: relative;
    display: inline-block;
}

.custom-tooltip .tooltip-text {
    visibility: hidden;
    width: auto;
    min-width: 120px;
    background-color: var(--dark);
    color: var(--white);
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    font-size: 0.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.custom-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--dark) transparent transparent transparent;
}

.custom-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }

    body {
        padding-top: 0 !important;
        color: #000 !important;
    }

    a {
        text-decoration: underline !important;
        color: #000 !important;
    }

    .container {
        max-width: 100% !important;
        width: 100% !important;
    }
}
/* CSS untuk Tentang Kami Section */

/* Background pattern */
.bg-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23004c9e' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Section header styling */
.section-badge {
    display: inline-block;
}

.divider-line {
    height: 4px;
    width: 80px;
}

.text-accent {
    color: var(accent-yellow--);
}

/* Image container styling */
.image-container {
    border-radius: 15px;
    transition: all 0.5s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container:hover .image-overlay {
    opacity: 1;
}

/* Stats card styling */
.card-stats {
    background: var(--gradient-primary) !important;
}

.stat-icon {
    width: 50px;
    height: 50px;
}

.rounded-xl {
    border-radius: 15px !important;
}

.z-index-1 {
    z-index: 1;
}

.mt-n5 {
    margin-top: -3rem;
}

/* Counter animation */
.counter {
    font-size: 2rem;
    background: linear-gradient(45deg, #fff, var(--accent-yellow));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Ribbon effect */
.ribbon {
    position: absolute;
    overflow: hidden;
    width: 150px;
    height: 150px;
    z-index: 1;
}

.ribbon span {
    position: absolute;
    display: block;
    width: 225px;
    padding: 8px 0;
    background: var(--gradient-secondary);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    text-align: center;
    font-weight: 700;
    letter-spacing: 1px;
}

.ribbon-top-right {
    top: -10px;
    right: -10px;
}

.ribbon-top-right span {
    left: -25px;
    top: 30px;
    transform: rotate(45deg);
}

/* Dasa item styling */
.dasa-item {
    transition: all 0.3s ease;
    background-color: rgba(248, 249, 250, 0.7);
}

.icon-bubble {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.hover-lift-sm {
    transition: all 0.3s ease;
}

.hover-lift-sm:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Quote card styling */
.quote-card {
    transition: all 0.3s ease;
}

.quote-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

/* CTA Button animations */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Modal styling for Dasa Sakti */
#dasa-sakti-modal .modal-content {
    overflow: hidden;
}

.dasa-sakti-list .dasa-item:hover {
    background-color: #f0f8ff;
    transform: translateX(5px);
}

/* Responsive styles */
@media (max-width: 991.98px) {
    .counter {
        font-size: 1.75rem;
    }
}

@media (max-width: 767.98px) {
    .counter {
        font-size: 1.5rem;
    }

    .ribbon {
        width: 100px;
        height: 100px;
    }

    .ribbon span {
        width: 170px;
        font-size: 10px;
    }
}
/* Optimasi untuk Mobile */
@media (max-width: 767.98px) {
    /* Mengurangi ukuran padding dan margin */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .row {
        margin-left: -10px;
        margin-right: -10px;
    }

    .col,
    [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Memperkecil shadow untuk performa render lebih baik */
    .card,
    .shadow-lg,
    .shadow-sm {
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1) !important;
    }

    /* Mengoptimalkan font */
    body {
        font-size: 0.95rem;
    }

    /* Mengurangi jarak di card-body */
    .card-body {
        padding: 1.25rem;
    }

    /* Button yang lebih touch-friendly */
    .btn {
        padding: 0.5rem 1rem;
        min-height: 44px; /* Minimum touch target size */
    }

    /* Mengurangi tinggi carousel pada mobile */
    #heroCarousel .hero-img {
        height: 60vh;
    }

    /* Memperbaiki caption carousel */
    .main-caption {
        padding: 1.5rem 1rem;
    }

    /* Memperbaiki navigasi pada mobile */
    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
    }

    /* Ruang untuk tombol navigasi yang lebih besar (touch-friendly) */
    .navbar-toggler {
        width: 44px;
        height: 44px;
    }

    /* Sticky footer pada mobile */
    .footer-area {
        margin-top: 40px;
    }
}

/* Perbaikan untuk perangkat dengan layar sangat kecil */
@media (max-width: 359.98px) {
    body {
        font-size: 0.9rem;
    }

    h1,
    .h1 {
        font-size: 1.75rem;
    }

    h2,
    .h2 {
        font-size: 1.5rem;
    }

    .lead {
        font-size: 1rem;
    }

    .btn {
        font-size: 0.875rem;
    }
}
/* Styling untuk accordion pada modal Dasa Sakti */
#accordionDasaSakti .accordion-button {
    box-shadow: none;
    border: none;
}

#accordionDasaSakti .accordion-button:not(.collapsed) {
    background-color: rgba(0, 76, 158, 0.1);
    color: var(--primary-blue);
}

#accordionDasaSakti .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 76, 158, 0.1);
}

/* Styling hover untuk item Dasa Sakti */
.dasa-item {
    transition: all 0.3s ease;
}

.dasa-item:hover {
    transform: translateX(5px);
    background-color: rgba(0, 76, 158, 0.05) !important;
}
/* CSS untuk optimasi mobile */
@media (max-width: 767.98px) {
    /* Font sizing for mobile */
    .fs-7 {
        font-size: 0.875rem !important;
    }

    .fs-8 {
        font-size: 0.75rem !important;
    }

    /* Icon untuk mobile */
    .icon-bubble {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Optimasi padding dan margin pada mobile */
    .card-body {
        padding: 1rem !important;
    }

    .mb-md-3 {
        margin-bottom: 0.5rem !important;
    }

    /* Card stats optimasi untuk mobile */
    .card-stats {
        margin-top: -1.5rem !important;
    }

    .stat-icon {
        width: 30px !important;
        height: 30px !important;
    }

    /* Ribbon hanya ditampilkan pada desktop */
    .ribbon {
        display: none;
    }

    /* Modal optimasi untuk mobile */
    .modal-dialog {
        margin: 0.5rem;
    }

    .accordion-button {
        padding: 0.75rem 1rem;
    }
}

/* Bootstrap extended utility classes */
.rounded-xl {
    border-radius: 1rem !important;
}

.hover-lift-sm {
    transition: all 0.3s ease;
}

.hover-lift-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.hover-shadow {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Modal Dasa Sakti responsif */
#accordionDasaSakti .accordion-button:focus {
    box-shadow: none;
}

#accordionDasaSakti .accordion-button:not(.collapsed) {
    background-color: rgba(0, 76, 158, 0.05);
    color: var(--primary-blue);
}

.dasa-item {
    transition: all 0.3s ease;
}

.dasa-item:hover {
    transform: translateX(5px);
    background-color: rgba(0, 76, 158, 0.05) !important;
}

/* Utility class untuk z-index */
.z-index-1 {
    z-index: 1;
}

/* Margin negative responsive */
@media (min-width: 768px) {
    .mt-n5 {
        margin-top: -3rem !important;
    }
}

@media (max-width: 767.98px) {
    .mt-n4 {
        margin-top: -1.5rem !important;
    }
}

/* CSS Perbaikan untuk Navbar dan Halaman Utama di HP */
@media (max-width: 767.98px) {
    /* Navbar Fix */
    #mainNav {
        background: var(
            --primary-blue
        ) !important; /* Selalu latar gelap di mobile */
        padding: 10px 0;
    }

    #mainNav .navbar-brand {
        padding-left: 10 px;
    }

    #mainNav .logo {
        height: 32px;
    }

    #mainNav .kt-text {
        font-size: 11px;
    }

    #mainNav .gianyar-text {
        font-size: 13px;
    }

    .navbar-toggler {
        padding: 4px 8px;
        margin-right: 10px;
    }

    .navbar-collapse {
        margin-top: 10px !important;
        padding: 15px !important;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    /* Hero Carousel Fix */
    #heroCarousel {
        margin-top: -62px !important; /* Sesuaikan dengan tinggi navbar di mobile */
    }
    #kontak .title-container h2::after {
        display: none;
    }
    .no-line::after {
        display: none !important;
    }
    .hero-img {
        height: 100vh !important;
        object-fit: cover;
    }

    .main-caption {
        bottom: 0;
        padding: 1.5rem 0.75rem;
    }

    .main-caption h1 {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem;
    }

    .main-caption .lead {
        font-size: 0.875rem !important;
        margin-bottom: 1rem;
    }

    .caption-buttons {
        flex-direction: column;
        width: 100%;
    }

    .caption-buttons .btn {
        width: 100%;
        margin-bottom: 8px;
        padding: 8px 16px;
        font-size: 0.875rem;
    }

    .hero-wave {
        display: none; /* Sembunyikan wave di mobile untuk memperbaiki layout */
    }

    /* Perbaikan padding global pada mobile */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    section {
        padding: 40px 0;
    }

    /* Fix margin untuk About Section */
    #tentang-kami {
        margin-top: -20px;
    }
}

/* Fix untuk Phone Landscape */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-img {
        height: 120vh !important;
    }

    .main-caption {
        padding: 1rem 0.5rem;
    }
}

/* Struktur Organisasi Styling - Nuansa Gelap/Futuristik */
.org-structure {
    background-color: #1a1f2b; /* Background gelap */
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(0, 123, 255, 0.1);
    margin-top: 20px;
    padding: 30px;
    border: 1px solid rgba(0, 123, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.org-structure::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 110, 253, 0.05),
        rgba(25, 135, 84, 0.05)
    );
    z-index: 0;
}

.profile-image-container {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid transparent;
    position: relative;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
    z-index: 1;
}

.team-member:nth-child(1) .profile-image-container {
    border-color: #0d6efd; /* Warna untuk Sekretaris */
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.4);
}

.team-member:nth-child(2) .profile-image-container {
    border-color: #198754; /* Warna untuk Ketua */
    box-shadow: 0 0 15px rgba(25, 135, 84, 0.4);
}

.team-member:nth-child(3) .profile-image-container {
    border-color: #0dcaf0; /* Warna untuk Bendahara */
    box-shadow: 0 0 15px rgba(13, 202, 240, 0.4);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member {
    padding: 15px;
    transition: all 0.3s ease;
    border-radius: 10px;
    background-color: rgba(30, 40, 56, 0.7);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.team-member:hover {
    transform: translateY(-5px);
    background-color: rgba(40, 50, 70, 0.9);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 10px rgba(0, 123, 255, 0.2);
}

.team-member:hover .profile-image {
    transform: scale(1.08);
}

.member-info {
    padding: 12px;
    background-color: rgba(40, 50, 70, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    border-left: 3px solid rgba(255, 255, 255, 0.1);
}

.member-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #ffffff;
    display: block;
    padding: 6px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.member-position {
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    color: white;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.sekretaris-color {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
}

.ketua-color {
    background: linear-gradient(135deg, #198754, #146c43);
}

.bendahara-color {
    background: linear-gradient(135deg, #0dcaf0, #0aa2c0);
}

/* Tombol dengan nuansa gelap/futuristik */
.btn-dark-primary {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border: none;
    color: white;
    border-radius: 30px;
    padding: 10px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-dark-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: all 0.6s;
    z-index: -1;
}

.btn-dark-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.4);
}

.btn-dark-primary:hover::before {
    left: 100%;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .profile-image-container {
        width: 140px;
        height: 140px;
    }

    .team-member {
        margin-bottom: 15px;
    }

    .org-structure {
        padding: 20px 15px;
    }
}
/* Tambahkan ke file navbar.css atau style.css */
@media (max-width: 767.98px) {
    /* Navbar selalu solid di mobile */
    #mainNav {
        background: var(--primary-blue) !important;
        padding: 8px 0;
    }

    /* Perbesar area touch untuk tombol toggle */
    .navbar-toggler {
        padding: 8px;
        margin-right: 5px;
        min-width: 44px;
        min-height: 44px;
    }

    /* Perbaikan menu dropdown */
    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
        padding: 15px !important;
    }

    /* Menu items lebih besar untuk touch */
    .navbar-nav .nav-link {
        padding: 12px 15px !important;
        margin-bottom: 5px;
    }

    /* Tombol bergabung full width di mobile */
    .navbar-nav .btn-accent {
        width: 100%;
        padding: 12px !important;
        font-size: 14px;
    }
}
/* Tambahkan ke style.css */
@media (max-width: 767.98px) {
    /* Mengurangi ukuran padding dan margin */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .section-padding {
        padding: 40px 0;
    }

    /* Ukuran font lebih kecil pada mobile */
    h1,
    .h1 {
        font-size: 1.75rem !important;
    }

    h2,
    .h2 {
        font-size: 1.5rem !important;
    }

    /* Card dan button yang lebih touch-friendly */
    .card-body {
        padding: 1rem !important;
    }

    .btn {
        padding: 0.5rem 1rem;
        min-height: 44px; /* Minimum touch target size */
    }

    /* Struktur kolom untuk mobile */
    .featured-article .card-img-top {
        height: 250px !important;
    }

    /* Footer optimasi */
    .footer-links h4 {
        font-size: 1.1rem;
    }
}

/* Fix untuk phone landscape */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-img {
        height: 100vh !important;
    }
}

/* Lebih responsif untuk layar sangat kecil */
@media (max-width: 359.98px) {
    body {
        font-size: 0.9rem;
    }

    .btn {
        font-size: 0.875rem;
    }
}
/* CSS Enhancements */

/* Text shadow for carousel captions */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Improved News Ticker */
.news-ticker-wrapper {
    width: 100%;
    position: relative;
}

.news-ticker {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 25s linear infinite;
    padding-right: 100%;
}

.news-ticker span {
    display: inline-block;
}

.news-ticker .news-item:hover {
    color: var(--bs-primary) !important;
}

.news-ticker-wrapper:hover .news-ticker {
    animation-play-state: paused;
}

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

/* Improved sidebar sticky */
.sidebar-sticky {
    position: sticky;
    top: 20px;
}

/* Animate cards on hover */
.animate-card {
    transition: all 0.3s ease;
}

.animate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Featured card enhancements */
.featured-card {
    transition: all 0.3s ease;
}

.featured-card:hover img {
    transform: scale(1.03);
    transition: transform 0.5s ease;
}

/* Gallery overlay effect */
.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 0.25rem;
}

.gallery-item img {
    transition: all 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Back to top button enhancements */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bs-primary);
    color: white;
    text-align: center;
    line-height: 40px;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.back-to-top:hover {
    background-color: var(--bs-primary-dark, #0056b3);
    transform: translateY(-3px);
}
@media (max-width: 767.98px) {
    .carousel-item .hero-img {
        transform: scale(1); /* default (no zoom) */
        transition: transform 10s ease !important;
    }

    .carousel-item.active .hero-img {
        transform: scale(1.25) !important; /* zoom when active */
    }
}
/* Mobile - tinggi pendek seperti banner */
@media (max-width: 768px) {
    .carousel-item img {
        height: 150px !important; /* atau 120px kalau mau lebih pendek */
        min-height: 150px;
        max-height: 150px;
        object-fit: cover;
        object-position: center top; /* fokus ke bagian atas foto */
    }
}
/* PERBAIKAN CAROUSEL - Hapus Duplikasi Overlay */

/* 1. Reset semua styling carousel lama untuk menghindari konflik */
#heroCarousel .carousel-caption {
    display: none !important; /* Hapus caption default Bootstrap */
}

/* 2. Hero Carousel dengan margin navbar yang tepat */
#heroCarousel {
    position: relative;
    overflow: hidden;
    margin-top: -76px; /* Sesuaikan dengan tinggi navbar Anda */
    z-index: 1;
}

/* 3. Image Container - Single overlay saja */
.carousel-image-container {
    position: relative;
    height: 500px; /* Desktop height */
}

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

/* 4. SINGLE Overlay Background - hapus yang lama */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

/* 5. Desktop Caption - Single layer saja */
.carousel-caption-desktop {
    position: absolute !important;
    bottom: 12% !important; /* Posisi lebih tinggi dari navbar */
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 85% !important;
    max-width: 900px !important;
    text-align: center !important;
    z-index: 3 !important; /* Pastikan di atas overlay */
    display: block !important; /* Force tampil di desktop */
}

/* 6. Caption Content - SINGLE background saja */
.caption-content {
    background: rgba(0, 76, 158, 0.9) !important; /* Satu layer saja */
    backdrop-filter: blur(8px) !important;
    padding: 2rem 1.5rem !important;
    border-radius: 12px !important;
    border-top: 3px solid var(--accent-yellow, #ffc107) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    margin-bottom: 0 !important;
}

.caption-content h1 {
    font-size: 2.2rem !important;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8) !important;
    margin-bottom: 1rem !important;
    font-weight: 700 !important;
    color: white !important;
}

.caption-content .lead {
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 1.5rem !important;
}

/* 7. Mobile Caption - dengan konten yang jelas */
.carousel-caption-mobile {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 3 !important;
    display: block !important; /* Force tampil di mobile */
}

.mobile-caption-content {
    background: rgba(0, 0, 0, 0.85) !important; /* Background yang jelas */
    padding: 1.2rem 1rem !important;
    text-align: center !important;
    border-top: 2px solid var(--accent-yellow, #ffc107) !important;
}

.mobile-caption-content h2 {
    font-size: 1.2rem !important;
    margin-bottom: 0.6rem !important;
    color: white !important;
    font-weight: 600 !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8) !important;
}

.mobile-caption-content p {
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.85) !important;
    margin-bottom: 1rem !important;
    line-height: 1.3 !important;
}

.mobile-buttons {
    display: flex !important;
    justify-content: center !important;
    gap: 0.6rem !important;
    flex-wrap: wrap !important;
}

.mobile-buttons .btn {
    font-size: 0.8rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 20px !important;
}

/* 8. Responsive Adjustments */
@media (max-width: 991.98px) {
    #heroCarousel {
        margin-top: -70px !important; /* Adjust untuk tablet */
    }
    
    .carousel-image-container {
        height: 400px !important;
    }
    
    .caption-content {
        padding: 1.8rem 1.2rem !important;
    }
    
    .caption-content h1 {
        font-size: 1.9rem !important;
    }
}

@media (max-width: 767.98px) {
    #heroCarousel {
        margin-top: -60px !important; /* Mobile navbar height */
    }
    
    .carousel-image-container {
        height: 280px !important; /* Mobile height yang pas */
    }
    
    /* Hide desktop caption di mobile */
    .carousel-caption-desktop {
        display: none !important;
    }
    
    /* Show mobile caption */
    .carousel-caption-mobile {
        display: block !important;
    }
}

@media (max-width: 575.98px) {
    .carousel-image-container {
        height: 250px !important;
    }
    
    .mobile-caption-content {
        padding: 1rem 0.8rem !important;
    }
    
    .mobile-caption-content h2 {
        font-size: 1.1rem !important;
    }
    
    .mobile-caption-content p {
        font-size: 0.85rem !important;
    }
    
    .mobile-buttons .btn {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.8rem !important;
    }
}

/* 9. Indicators styling */
.carousel-indicators {
    bottom: 15px !important;
    margin-bottom: 0 !important;
    z-index: 4 !important;
}

.carousel-indicators [data-bs-target] {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    margin: 0 3px !important;
    background-color: rgba(255, 255, 255, 0.6) !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.carousel-indicators .active {
    width: 25px !important;
    border-radius: 12px !important;
    background-color: var(--accent-yellow, #ffc107) !important;
}

/* 10. Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 8% !important;
    opacity: 0.7 !important;
    z-index: 4 !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1 !important;
}

/* 11. IMPORTANT: Hapus semua styling carousel yang konflik */
#heroCarousel .carousel-item .carousel-caption:not(.carousel-caption-desktop):not(.carousel-caption-mobile) {
    display: none !important;
}

/* 12. Ensure proper stacking order */
#heroCarousel .carousel-item {
    position: relative;
}

#heroCarousel .carousel-item * {
    box-sizing: border-box;
}
