:root {
    --brand-primary: #C02030;
    /* merah logo */
    --brand-secondary: #60B040;
    /* hijau logo */
    --brand-green-dark: #009050;
    --bg: #fbfcff;
    /* lebih cerah */
    --text: #1f2d3d;
    --muted: #6b7c93;
}

body {
    font-family: "Segoe UI", "Work Sans", sans-serif;
    background:
        radial-gradient(900px 500px at 10% 0%, rgba(192, 32, 48, .06), transparent 60%),
        radial-gradient(900px 500px at 90% 10%, rgba(96, 176, 64, .08), transparent 60%),
        var(--bg);
    color: var(--text);
}

/* offset untuk navbar fixed-top (topbar + navbar) */
body {
    padding-top: 110px;
}

@media (max-width: 991.98px) {
    body {
        padding-top: 120px;
    }
}

/* section abu2 jadi lebih terang */
.bg-light,
.ftco-section.bg-light {
    background: #f7f9ff !important;
}

/* TOPBAR */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1031;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.topbar .topbar-inner {
    padding: 8px 0;
    font-size: 14px;
    color: var(--muted);
}

.topbar .top-item {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.topbar .top-item .icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(192, 32, 48, .10);
    color: var(--brand-primary);
    flex: 0 0 auto;
}

.topbar a {
    color: var(--muted);
    text-decoration: none;
}

.topbar a:hover {
    color: var(--brand-primary);
}

/* NAVBAR */
#ftco-navbar {
    position: fixed !important;
    top: 46px;
    left: 0;
    right: 0;
    z-index: 1030;
    background: #ffffff !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 991.98px) {
    #ftco-navbar {
        top: 56px;
    }

    .topbar .topbar-inner {
        padding: 10px 0;
    }
}

#ftco-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: .2px;
    color: var(--text) !important;
}

#ftco-navbar .navbar-brand img {
    height: 46px;
    width: auto;
    display: block;
}

#ftco-navbar .nav-link {
    color: var(--text) !important;
    font-weight: 500;
    padding: 18px 14px;
}

#ftco-navbar .nav-link:hover {
    color: var(--brand-primary) !important;
}

#ftco-navbar .nav-item.active .nav-link {
    color: var(--brand-primary) !important;
}

.navbar-toggler {
    border: 0 !important;
    outline: none !important;
}

/* BUTTON */
.btn-primary,
.btn-secondary {
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary)) !important;
    border: none !important;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .12);
    color: #fff !important;
    transition: .3s;
}

.btn-primary:hover,
.btn-secondary:hover {
    opacity: .92;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* HERO / SLIDER */
.home-slider,
.home-slider .slider-item {
    position: relative;
}

.home-slider .slider-item {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    min-height: 78vh;
    display: flex;
    align-items: center;
}

.home-slider .slider-item .overlay {
    opacity: 1 !important;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, .35),
            rgba(0, 0, 0, .15)) !important;
}

.home-slider .slider-text .text {
    max-width: 560px;
    padding: 22px 22px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .78) !important;
    border: 1px solid rgba(255, 255, 255, .55);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
}

.home-slider h1 {
    font-weight: 800;
    font-size: 46px;
    line-height: 1.15;
    margin-bottom: 12px;
    color: #0f172a !important;
}

.home-slider .subheading {
    font-size: 18px;
    line-height: 1.65;
    margin-bottom: 14px;
    color: #334155 !important;
}

/* CARD / KOMPONEN */
.services,
.tab-content.bg-light,
.staff {
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .06);
}

.services {
    border-radius: 16px;
    margin: 10px 0;
}

.services .icon {
    border-radius: 14px;
    background: rgba(192, 32, 48, .10);
}

.services .icon span {
    color: var(--brand-primary);
}

/* TAB POLI */
.ftco-departments .nav-pills .nav-link {
    background: #ffffff;
    border-radius: 999px;
    margin: 6px;
    color: var(--text);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
}

.ftco-departments .nav-pills .nav-link.active {
    background: var(--brand-primary);
    color: #ffffff;
}

.tab-content.bg-light {
    background: #ffffff !important;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .06);
}

/* STAFF */
.staff {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .08);
    background: #fff;
}

/* FOOTER */
.ftco-footer {
    background: #1b1b1b !important;
}

.ftco-footer a:hover {
    color: var(--brand-secondary) !important;
}

.footer-aprillia.footer-compact {
    padding-top: 28px !important;
    padding-bottom: 18px !important;
}

.footer-aprillia .ftco-footer-widget {
    margin-bottom: 0 !important;
}

.footer-aprillia .row.mb-4 {
    margin-bottom: 14px !important;
}

.footer-aprillia .footer-copy {
    margin-top: 6px !important;
}

.footer-aprillia .footer-mini {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-aprillia .footer-desc {
    max-width: 520px;
    opacity: .92;
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-aprillia .footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-aprillia .footer-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-aprillia .footer-list .icon {
    width: 26px;
    min-width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .92);
    margin-top: 2px;
}

.footer-aprillia .footer-list .text {
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
    line-height: 1.5;
}

.footer-aprillia .insurance-card-mini {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 14px;
}

.footer-aprillia .insurance-img-mini {
    width: 100%;
    max-width: 520px;
    height: 160px;
    margin: 0 auto 10px auto;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    padding: 10px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-aprillia .insurance-img-mini img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* WHATSAPP FLOATING BUTTON */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.whatsapp-float:hover {
    text-decoration: none;
    color: #FFF;
    background-color: #128C7E;
    transform: scale(1.1);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
}

/* --- MODAL POPUP (INSTAGRAM AD) --- */
.rs-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    /* Mulai dengan hidden */
    align-items: center;
    justify-content: center;
    z-index: 99999;
    /* Sangat tinggi */
    opacity: 0;
    transition: opacity 0.4s ease;
}

.rs-popup-overlay.active {
    display: flex;
    opacity: 1;
}

.rs-popup-container {
    position: relative;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 580px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.7);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.rs-popup-overlay.active .rs-popup-container {
    transform: scale(1);
}

.rs-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    line-height: 1;
    z-index: 10001;
    transition: color 0.3s;
}

.rs-popup-close:hover {
    color: #c02030;
}

.rs-popup-content {
    display: flex;
    justify-content: center;
}

/* Hide scrollbar for popup container but keep functionality */
.rs-popup-container::-webkit-scrollbar {
    width: 6px;
}

.rs-popup-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.rs-popup-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.rs-popup-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}