/* 1. GLOBAL & SETUP */
:root {
    --brand-light-blue: #65e3ff;       /* Biru Utama (RSC) */
    --brand-blue: #1E3A8A;       /* Biru Utama (RSC) */
    --brand-dark-blue: #112252;  /* Biru Gelap untuk Card Olahraga */
    --brand-accent: #0dcaf0;     /* Biru Muda Aksen */
    --brand-green: #25D366;      /* Hijau WA */
    --brand-gold: #FFC107;       /* Kuning Marquee */
}

html, body {
    max-width: 100%;
    overflow-x: hidden !important; 
    position: relative; 
}

body {
    font-family: 'Outfit', sans-serif;
    color: #444;
    background-color: #f8f9fa;
    overflow-x: hidden;
    line-height: 1.6;
}

section {
    position: relative;
    scroll-margin-top: 80px; 
}

/* 2. NAVBAR */
.navbar {
    padding: 15px 0;
    transition: all 0.4s ease-in-out;
    background-color: transparent;
}

.navbar.scrolled {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 10px 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--brand-light-blue) !important;
}

.nav-link {
    font-weight: 600;
    color: #555 !important;
    margin: 0 5px;
    padding: 8px 20px !important;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-link:hover, 
.nav-link.active {
    background-color: var(--brand-blue);
    color: white !important;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.3);
    transform: translateY(-2px);
}

.btn-nav-custom {
    background-color: var(--brand-green);
    color: white !important;
    padding: 8px 25px;
    border-radius: 50px;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}
.btn-nav-custom:hover {
    background-color: #1da851;
    transform: scale(1.05);
}

/* 3. HERO CAROUSEL */
.carousel-item {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.hero-caption-centered {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    z-index: 2;
    padding: 0 15px;
    pointer-events: none; 
}

.hero-caption-centered > * {
    pointer-events: auto; 
}

.hero-caption-centered h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    margin-top: 15px;
    text-shadow: 
        2px 2px 0 #000, 
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        4px 4px 10px rgba(0,0,0,5); 
}

.hero-caption-centered p {
    text-shadow: 2px 2px 8px rgba(0,0,0,1);
    font-weight: 700;
}

.hero-caption-centered p {
    text-shadow: 2px 2px 4px #000000;
    font-weight: 600; 
}

/* Tombol Prev/Next Carousel */
.carousel-control-prev, 
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%); 
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    opacity: 1;
    margin: 0 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    z-index: 1050; 
}

.carousel-control-prev:hover, 
.carousel-control-next:hover {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
    transform: translateY(-50%) scale(1.1);
}

/* 4. KEUNGGULAN (ICON BOX) & VISI MISI */
.hover-card {
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    border-color: var(--brand-blue) !important;
}

.visi-misi-box {
    background: #fff;
    border-left: 5px solid var(--brand-blue);
    padding: 30px;
    border-radius: 10px;
}

.visi-misi-title {
    font-weight: 800;
    color: var(--brand-blue);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.list-mission li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.list-mission li::before {
    content: "\F26A"; 
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    color: var(--brand-green);
    font-weight: bold;
}

/* 5. MARQUEE (TEKS BERJALAN)*/
.marquee-wrapper {
    background:  #4cdbfb;
    border-top: 3px solid #000;
    border-bottom: 3px solid #000;
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
}
.marquee-content {
    display: inline-block;
    font-size: 1.5rem; 
    font-weight: bold;
    color: #000;
    animation: marquee-scroll 20s linear infinite;
}
@keyframes marquee-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* 6. CARDS (KOLAM, PROGRAM, FASILITAS) */
/* Program Card (Les/Terapi) */
.program-card-compact {
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: default;
}
.program-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
}

/* Icon Bulat di Program */
.icon-circle {
    width: 90px; height: 90px; 
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* Fasilitas Card (Amenity) */
.amenity-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.amenity-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-blue);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    background-color: #fff !important; 
}
.cursor-pointer { cursor: pointer; }

/* 7. UTILITIES */
.text-brand { color: var(--brand-blue) !important; }
.bg-light-blue { background-color: #eef7ff !important; }
.bg-light-warning { background-color: #fff8e1 !important; }
.bg-brand { background-color: var(--brand-blue) !important; }

.object-fit-cover {
    object-fit: cover;
    width: 100%;
}

/* 8. OLAHRAGA LAIN (GYM & SOCCER) */
.bg-sports-blue {
    background-color: var(--brand-blue) !important;
}

.card-sport {
    background-color: var(--brand-dark-blue); 
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}
.card-sport:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}
.card-sport-body {
    padding: 3rem;
}
.img-sport-cover {
    width: 100%;
    height: 100%;
    min-height: 350px;
    object-fit: cover;
}

/* 9. GALERI FOTO*/
.gallery-frame {
    background-color: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 15px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.gallery-frame img {
    border-radius: 10px;
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-frame:hover {
    transform: scale(1.03) rotate(1deg);
    box-shadow: 10px 10px 25px rgba(0,0,0,0.2);
    z-index: 10;
    border-color: var(--brand-blue);
}

.gallery-frame:hover img {
    transform: scale(1.1);
}

/* 10. INSTAGRAM EMBED WRAPPER */
.instagram-card-wrapper {
    background: #fff;
    position: relative;
    width: 100%;
}

/* 11. FOOTER & FLOATING WA*/
/* Social Links Bulat di Footer */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
    text-decoration: none;
}
.social-links a:hover {
    background: var(--brand-blue);
    transform: translateY(-3px);
}

/* Tombol WA Melayang */
.btn-floating-wa {
    position: fixed; bottom: 30px; right: 30px; z-index: 9999;
    background-color: var(--brand-green); color: white;
    padding: 12px 25px; border-radius: 50px;
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none; transition: 0.3s;
    border: 2px solid white;
}
.btn-floating-wa:hover {
    background-color: #1DA851; transform: scale(1.05); color: white;
}

/* 12. MOBILE RESPONSIVE (UPDATE FINAL - TEKS LEBIH KECIL)*/
@media (max-width: 768px) {
    
    /* --- 1. SETTING GAMBAR LANDSCAPE --- */
    .carousel-item {
        height: auto !important; 
        min-height: unset !important;
        aspect-ratio: 4 / 3; 
        background-size: cover;
        background-position: center;
    }

    /* --- 2. PENYESUAIAN TEKS HEADER --- */
    .hero-caption-centered {
        padding: 10px; 
        justify-content: center;
    }

    .hero-caption-centered h1 { 
        font-size: 1.5rem !important; 
        margin-bottom: 4px;
        text-shadow: 
            2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000,
            3px 3px 15px rgba(0,0,0,0.9);
    }
    
    /* Badge */
    .hero-caption-centered .badge {
         font-size: 0.65rem !important;
         padding: 0.3em 0.7em !important;
         margin-bottom: 4px !important;
    }

    /* --- 3. PARAGRAF DESKRIPSI (DIPERKECIL) --- */
    .hero-caption-centered p {
         display: block !important; 
         
         font-size: 0.75rem !important; 
         
         margin-bottom: 10px !important; 
         text-shadow: 1px 1px 4px #000; 
         font-weight: 600;
         line-height: 1.2; 
         max-width: 95%; 
         margin-left: auto;
         margin-right: auto;
    }

    /* --- 4. INDIKATOR (TITIK 3) --- */
    .carousel-indicators {
        bottom: 5px !important; 
        margin-bottom: 0 !important;
    }

    /* --- 5. HILANGKAN NAVIGASI PANAH --- */
    .carousel-control-prev, 
    .carousel-control-next {
        display: none !important;
    }

    /* --- 6. NAVBAR & LOGO --- */
    .navbar { 
        background-color: transparent; 
        border-bottom: none; 
        padding: 10px 0; 
    } 
    .container-fluid {
        padding-left: 20px;
        padding-right: 20px;
    }
    .navbar.scrolled {
        background-color: white !important;
        border-bottom: 1px solid #ddd;
        padding: 5px 0; 
    }
    .navbar-brand .img-logo { width: 35px; height: auto; } 
    .navbar-brand .brand-text { font-size: 1rem; }
    .navbar-collapse {
        background-color: white;
        padding: 15px;
        margin-top: 10px;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    .gallery-frame img { height: 200px; }
}

/*STYLE INDIKATOR CAROUSEL (TITIK 3)*/

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%; 
    background-color: rgba(255, 255, 255, 0.5); 
    border: none;
    margin: 0 5px; 
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: var(--brand-light-blue); 
    transform: scale(1.3); 
    opacity: 1;
}

.carousel-indicators {
    bottom: 15px;
    z-index: 10;
}

/* STYLE TAMBAHAN (GLOBAL)*/

.img-logo {
    width: 60px; 
    height: auto;
    transition: all 0.3s;
}

.brand-text {
    font-weight: 800;
}
/* 13. FIX KHUSUS APPLE DEVICES & LOAD MORE*/

/* --- A. FIX TAMPILAN IPHONE/MACBOOK --- */

/* 1. Font tajam di Mac/iOS */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. Fix Tinggi Hero Section di iPhone */
.carousel-item {
    height: 100vh; 
    height: 100svh; 
}

/* 3. Fix Efek Blur di Safari */
.carousel-control-prev, 
.carousel-control-next {
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

/* 4. Mencegah Zoom Otomatis di iPhone saat ngetik */
input, textarea, select {
    font-size: 16px !important; 
}


/* --- B. STYLE TOMBOL --- */

#btnLoadMore {
    border-width: 2px;
    letter-spacing: 0.5px;
    font-weight: 700;
    transition: all 0.3s ease;
    background-color: transparent;
    color: var(--brand-blue);
    border-color: var(--brand-blue);
}

#btnLoadMore:hover {
    background-color: var(--brand-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.2);
}


/* --- C. FIX RASIO GALERI --- */

.gallery-frame {
aspect-ratio: 4/3; 
    height: auto !important; 
    position: relative;
    border: none; 
}

.gallery-frame img {
    height: 100% !important;
    width: 100%;
    object-fit: cover;
}

@media (max-width: 576px) {
    .gallery-frame {
        border-radius: 12px;
    }
}