:root {
    --primary: #00A3FF;
    /* Light Blue (Biru Muda) */
    --light: #E0F4FF;
    /* Very Light Blue for backgrounds */
    --dark: #00566B;
    /* Dark Blue Text */
}

/* Force body background to white to avoid pink/beige sides */
body {
    background-color: #ffffff !important;
}

/* Bootstrap Overrides to match new Primary (Light Blue) */
.text-primary {
    color: #00A3FF !important;
}

.bg-primary {
    background-color: #00A3FF !important;
}

.border-primary {
    border-color: #00A3FF !important;
}

.btn-primary {
    background-color: #00A3FF !important;
    border-color: #00A3FF !important;
}

.btn-primary:hover {
    background-color: #0084CC !important;
    border-color: #0084CC !important;
}

a.text-primary:hover,
a.text-primary:focus {
    color: #0084CC !important;
}

/* Force bg-light to use our light blue variable */
.bg-light {
    background-color: var(--light) !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}


/*** Heading ***/
h1,
h2,
h3,
h4,
.h1,
.h2,
.h3,
.h4,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-family: 'Heebo', sans-serif;
    font-weight: 700;
}

/* Responsive Headings */
@media (max-width: 992px) {
    .display-2 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .display-2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .display-2 {
        font-size: 2rem;
    }
}

.hero-title {
    font-family: 'Lobster Two', cursive;
}

h5,
h6,
.h5,
.h6 {
    font-weight: 600;
}



.font-secondary {
    font-family: 'Heebo', sans-serif;
}


/*** Navbar ***/
.navbar .navbar-nav .nav-link {
    padding: 30px 15px;
    color: var(--dark);
    font-weight: 500;
    outline: none;
}

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

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 5px;
    transition: .5s;
}

.navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

.sidebar-close {
    display: none;
}

@media (max-width: 991.98px) {

    .navbar {
        z-index: 10001 !important;
        /* Higher than Overlay */
    }

    .navbar .navbar-collapse,
    .navbar .collapsing {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh !important;
        background: #FFFFFF !important;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s !important;
        transform: translateX(100%);
        z-index: 10002 !important;
        padding: 80px 15px 25px 15px;
        display: block !important;
        overflow-y: auto;
        visibility: hidden;
        margin: 0 !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .navbar .navbar-collapse.show {
        transform: translateX(0) !important;
        visibility: visible;
    }

    .navbar .navbar-nav .nav-link {
        padding: 12px 20px;
        margin: 5px 0;
        display: block;
        width: 100%;
        color: var(--dark) !important;
        border-radius: 8px;
        transition: 0.2s;
        font-weight: 500;
    }

    /* Active Highlight (Biru) */
    .navbar .navbar-nav .nav-link.active {
        background-color: var(--primary) !important;
        color: #FFFFFF !important;
    }

    .navbar .navbar-nav .dropdown-item.active {
        color: var(--primary) !important;
        background-color: rgba(0, 163, 255, 0.05) !important;
        font-weight: 600;
    }

    /* Press Effect */
    .navbar .navbar-nav .nav-link:active,
    .navbar .navbar-nav .dropdown-item:active {
        transform: scale(0.95);
        background-color: rgba(0, 163, 255, 0.1);
    }

    .navbar .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        padding: 5px 0 5px 20px;
        margin: 0;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        display: none;
    }

    .navbar .navbar-nav .dropdown-menu.show {
        display: block;
    }

    /* Rotate Chevron on Mobile when open */
    .navbar .navbar-nav .dropdown-toggle::after {
        transition: transform 0.3s;
    }

    .navbar .navbar-nav .dropdown-toggle.show::after {
        transform: rotate(-180deg);
    }

    /* Backdrop */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 10000;
        /* Lower than Navbar */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease-in-out, visibility 0.4s;
    }

    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    .sidebar-close {
        position: absolute;
        top: 20px;
        right: 15px;
        font-size: 20px;
        cursor: pointer;
        color: var(--primary);
        z-index: 100020;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f8f9fa;
        border-radius: 50%;
        transition: 0.3s;
    }

    .sidebar-close:hover {
        background: var(--primary);
        color: #ffffff;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        top: calc(100% - 15px);
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;

    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.header-carousel,
.page-header {
    background: #ffffff;
}

.header-carousel::before,
.header-carousel::after,
.page-header::before,
.page-header::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 10px;
    top: 0;
    left: 0;
    background: url(../img/bg-header-top.png) center center repeat-x;
    z-index: 1;
}

.header-carousel::after,
.page-header::after {
    height: 19px;
    top: auto;
    bottom: 0;
    background: #ffffff url(../img/bg-header-bottom.png) center center repeat-x !important;
    z-index: 10;
    /* Pastikan di atas overlay gambar */
}

@media (max-width: 768px) {
    .header-carousel {
        margin-top: 0;
    }

    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 600px;
        padding-top: 0;
        padding-bottom: 0;
        background: #ffffff !important;
    }

    /* Jarak khusus untuk teks agar tetap di tengah */
    .header-carousel .owl-carousel-item .container {
        padding-top: 130px;
        padding-bottom: 50px;
    }

    .header-carousel .owl-item,
    .header-carousel .owl-stage-outer {
        background: #ffffff !important;
    }

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

    .header-carousel .owl-carousel-item p {
        font-size: 16px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 32px;
        font-weight: 700;
        line-height: 1.2;
    }

    .header-carousel .owl-carousel-item .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .header-carousel .owl-carousel-item {
        min-height: 700px;
        background: #ffffff !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 26px;
    }

    .facility-item .facility-text {
        min-height: 200px;
        padding: 20px;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)), url(../img/carousel-1.jpeg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, .5);
}


/*** Facility ***/
.facility-item .facility-icon {
    position: relative;
    margin: 0 auto;
    width: 100px;
    height: 100px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -50px;
    /* Overlap effect */
    z-index: 3;
    position: relative;
}

/* Facility Icon - white circle behind icon */
.facility-item .facility-icon::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.5);
    /* semi-transparent white or just white */
    border-radius: 50%;
    transition: .5s;
    z-index: 1;
}

.facility-item .facility-icon span {
    display: none;
}

.facility-item .facility-icon i {
    position: relative;
    z-index: 2;
}

/* Pastel Backgrounds */
.bg-pastel-primary {
    background-color: #E0F4FF;
    /* Light Blue */
}

/* Light Blue */
.bg-pastel-success {
    background-color: #E8FFF3;
}

/* Light Green */
.bg-pastel-warning {
    background-color: #FFF9E6;
}

/* Light Yellow */
.bg-pastel-info {
    background-color: #E6F7FF;
}

/* Light Blue */
.bg-pastel-danger {
    background-color: #D1EFFF;
    /* Another Light Blue shade */
}

/* Light Blue variant */

.facility-item {
    transition: .5s;
}



/* Card Style for Facilities */
.facility-item .facility-text {
    position: relative;
    min-height: 250px;
    padding: 30px;
    border-radius: 20px;
    /* Slightly rounded square */
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    /* Center content vertically */
    flex-direction: column;
    transition: .5s;
    box-shadow: 0 0 45px rgba(0, 0, 0, .03);
    /* Very soft shadow default */
    height: 100%;
    /* Ensure uniform height in grid */
}

/* Hover for Card - Rise effect and box shadow */
.facility-item:hover .facility-text {
    transform: translateY(-10px);
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.05);
    /* "Bayangan kotak" offset shadow on hover */
}



.facility-item .facility-text * {
    position: relative;
    z-index: 2;
}



.facility-item * {
    transition: .5s;
}




/*** About ***/
.about-img img {
    transition: .5s;
}

.about-img img:hover {
    background: var(--primary) !important;
}

/* Image layout normalization for index sections */
.header-carousel .owl-carousel-item {
    height: clamp(500px, 56vw, 680px);
    min-height: 500px;
}

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

.about-img .col-12 img,
.about-img .col-6 img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
}

.about-img .col-12 {
    display: flex;
    justify-content: center;
}

.about-img .col-12 img {
    width: min(72%, 390px) !important;
}

.about-img .col-6 {
    margin-top: -95px !important;
}

.about-img .col-6 img {
    width: min(100%, 265px) !important;
}

.classes-item .bg-light.rounded-circle {
    width: min(230px, 80%);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.classes-item .bg-light.rounded-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.footer .row.g-2.pt-2 .col-4 img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
}

#testimonial-container-index .rounded-circle,
.testimonial-item .rounded-circle {
    object-fit: cover;
    object-position: center;
}


/*** Classes ***/
.classes-item {
    transition: .5s;
}

.classes-item:hover {
    margin-top: -10px;
}


/*** Team ***/
.team-item {
    min-height: 420px;
}

.team-item img {
    width: 75% !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    display: block;
    margin-left: auto;
}

.team-item .team-text {
    position: absolute;
    width: 250px;
    height: 250px;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #FFFFFF;
    border: 17px solid var(--light);
    border-radius: 250px;
    transition: .5s;
}

.team-item .team-text h3 {
    margin-bottom: 6px;
    padding: 0 14px;
    font-size: clamp(0.95rem, 1.6vw, 1.2rem);
    line-height: 1.3;
    text-align: center;
    overflow-wrap: anywhere;
}

.team-item .team-text p {
    margin-bottom: 12px;
    font-size: 0.9rem;
    text-align: center;
}

.team-item:hover .team-text {
    border-color: var(--primary);
}

@media (max-width: 576px) {
    .header-carousel .owl-carousel-item {
        height: 580px;
        min-height: 580px;
    }

    .about-img .col-6 {
        margin-top: -65px !important;
    }

    .about-img .col-12 img {
        width: min(82%, 330px) !important;
    }

    .about-img .col-6 img {
        width: min(100%, 190px) !important;
    }

    .team-item {
        min-height: 360px;
    }

    .team-item .team-text {
        width: 210px;
        height: 210px;
        border-width: 12px;
    }

    .team-item .team-text h3 {
        font-size: 0.92rem;
    }

    .team-item .team-text p {
        font-size: 0.82rem;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) and (min-width: 577px) {
    .header-carousel .owl-carousel-item {
        height: 620px;
        min-height: 620px;
    }
}


/*** Testimonial ***/
.testimonial-carousel {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.testimonial-carousel .owl-stage {
    display: flex;
}

@media (min-width: 576px) {
    .testimonial-carousel {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

.testimonial-carousel .testimonial-item .border {
    border: 1px dashed rgba(0, 185, 142, .3) !important;
}

.testimonial-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 350px;
    /* Adjust this value as needed to fit the longest text */
}

.testimonial-item p {
    flex-grow: 1;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 45px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 45px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    border-color: var(--primary);
    background: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    font-size: 16px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary) !important;
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .form-control {
    border-color: rgba(255, 255, 255, 0.5);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: #FFFFFF;
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .copyright a:hover,
.footer .footer-menu a:hover {
    color: var(--primary) !important;
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

.what-we-do {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(to bottom, var(--light), #ffffff);
    /* Background Biru Lembut */
}

.what-we-do .subtitle {
    color: var(--primary);
    /* Primary Blue */
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.what-we-do .title {
    color: var(--dark);
    /* Dark Blue Text */
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 40px;
    line-height: 1.3;
}

/* Container untuk cards */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Card Style */
.card {
    background: white;
    border: 2px solid var(--primary);
    /* Border Blue */
    border-radius: 20px 60px 20px 20px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: left;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 163, 255, 0.4);
    /* Bayangan Blue */
}

/* Card Heading */
.card h3 {
    color: var(--primary);
    /* Primary Blue */
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Card Text */
.card .short-text {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Batasi 3 baris */
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Button */
.read-more {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease, color 0.3s ease;
}

.read-more:hover {
    background: #0084CC;
    color: #fff;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    max-width: 700px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
    position: relative;
}

.modal-content h2 {
    margin-top: 0;
    color: #2c2c54;
}

.modal-content p {
    color: #555;
    line-height: 1.6;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.close:hover {
    color: red;
}

.custom-list {
    list-style: none;
    margin: 10px 0 20px 0;
    padding-left: 0;
}

.custom-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    color: #444;
    line-height: 1.6;
}

.custom-list li::before {
    content: "✔";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-footer {
    margin-top: auto;
    text-align: left;
}

/* Tablet */
@media (max-width: 992px) {
    .what-we-do {
        padding: 40px 15px;
    }

    .what-we-do .title {
        font-size: 28px;
        /* lebih kecil di tablet */
        margin-bottom: 30px;
    }

    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        /* 2 kolom di tablet */
        gap: 15px;
    }

    .card h3 {
        font-size: 18px;
    }

    .card .short-text {
        font-size: 13px;
    }
}

/* HP */
@media (max-width: 576px) {
    .what-we-do {
        padding: 30px 10px;
    }

    .what-we-do .subtitle {
        font-size: 16px;
    }

    .what-we-do .title {
        font-size: 22px;
        /* lebih kecil di HP */
        margin-bottom: 20px;
    }

    .cards-container {
        grid-template-columns: 1fr;
        /* 1 kolom penuh */
        gap: 15px;
    }

    .card {
        padding: 15px;
        border-radius: 15px 40px 15px 15px;
    }

    .card h3 {
        font-size: 16px;
    }

    .card .short-text {
        font-size: 12px;
    }

    .read-more {
        width: 100%;
        /* tombol full width di HP */
        text-align: center;
        padding: 10px;
    }

    .modal-content {
        margin: 10% 15px;
        /* biar nggak mepet layar */
        padding: 20px;
    }
}

/*** Star Rating ***/
.star-rating {
    direction: rtl;
    display: inline-block;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    color: #bbb;
    font-size: 2rem;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.star-rating label:hover,
.star-rating label:hover~label,
.star-rating input[type="radio"]:checked~label {
    color: #f2b600;
}

.testimonial-stars {
    color: #f2b600;
}