/*** Spinner Start ***/
/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity 0.5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}
/*** Spinner End ***/

.back-to-top {
    color: var(--bs-light);
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 99;
}

/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: 0.5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50%;
}

.btn.btn-primary {
    box-shadow: inset 0 0 0 0 var(--bs-primary);
}

.btn.btn-primary:hover {
    box-shadow: inset 300px 0 0 0 var(--bs-light) !important;
    color: var(--bs-primary) !important;
}

.btn.btn-light {
    box-shadow: inset 0 0 0 0 var(--bs-primary);
}

.btn.btn-light:hover {
    box-shadow: inset 300px 0 0 0 var(--bs-primary);
    color: var(--bs-light) !important;
}

.btn-hover {
    transition: 0.5s;
}

.btn-hover:hover {
    color: var(--bs-secondary) !important;
}

.btn-gradient {
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-tertiary));
    color: #fff;
    border: none;
    font-weight: 600;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(34, 100, 176, 0.25);
}

.btn-gradient .arrow-move-left,
.btn-gradient .arrow-move-right {
    transition: transform 0.3s ease;
}

.btn-gradient:hover .arrow-move-right {
    transform: translateX(5px);
}

.btn-gradient:hover .arrow-move-left {
    transform: translateX(-5px);
}

/*** Section Title Start ***/
.section-title {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

.section-title .sub-style {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.section-title .sub-style::before {
    content: '';
    width: 100px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-top: 8px;
    margin-left: -100px;
    border: 1px solid var(--bs-primary) !important;
}

.section-title .sub-style::after {
    content: '';
    width: 50px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-bottom: 5px;
    margin-left: -50px;
    border: 1px solid var(--bs-primary) !important;
}

.sub-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.sub-title::before {
    content: '';
    width: 100px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-top: 8px;
    margin-right: -100px;
    border: 1px solid var(--bs-primary) !important;
}

.sub-title::after {
    content: '';
    width: 50px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-bottom: 8px;
    margin-right: -50px;
    border: 1px solid var(--bs-primary) !important;
}

/*** Topbar Start ***/
.fixed-top .container {
    transition: 0.5s;
}

.topbar {
    padding: 2px 10px 2px 20px;
    background: var(--bs-dark) !important;
}

.topbar a,
.topbar a i {
    transition: 0.5s;
}

.topbar a:hover,
.topbar a i:hover {
    color: var(--bs-white) !important;
}

@media (max-width: 576px) {
    .topbar {
        display: none;
    }
}
/*** Topbar End ***/

/*** Navbar ***/
.navbar-light .navbar-nav .nav-link {
    font-family: 'Open Sans', sans-serif;
    position: relative;
    margin-right: 25px;
    padding: 35px 0;
    color: var(--bs-dark) !important;
    font-size: 16px;
    font-weight: 400;
    outline: none;
    transition: 0.5s;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--bs-primary) !important;
}

.navbar-light .navbar-brand img {
    max-height: 50px;
    transition: 0.5s;
}

.navbar-light .navbar-nav .nav-link.nav-contact::before {
    display: none;
}

.sticky-top.navbar-light {
    position: fixed;
    background: var(--bs-light) !important;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--dark) !important;
}

.sticky-top.navbar-light .navbar-brand img {
    max-height: 45px;
}

.navbar .dropdown-toggle::after,
.nav-link.dropdown-toggle::after,
.dropdown-submenu > a::after {
    border: none;
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    vertical-align: middle;
    margin-left: 0.4rem;
    transition: transform 0.25s ease;
    display: inline-block;
}

.nav-item.dropdown.show > .nav-link.dropdown-toggle::after,
.nav-item.dropdown:hover > .nav-link.dropdown-toggle::after,
.dropdown-submenu.show > a::after,
.dropdown-submenu:hover > a::after {
    transform: rotate(180deg);
}

.dropdown .dropdown-menu a:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

/* === Desktop (≥992px) === */
@media (min-width: 992px) {
    .navbar-light {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 10px;
        transform-origin: top;
        transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
        opacity: 0;
        transform: translateY(10px);
        background: var(--bs-light) !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-item.dropdown:hover > .dropdown-menu {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: '';
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--bs-primary);
        transition: 0.5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: calc(100% - 2px);
        left: 1px;
    }

    .dropdown-submenu {
        position: relative;
    }

    .dropdown-submenu > .dropdown-menu {
        top: 1px !important;
        left: 100%;
        margin-left: 0.1rem;
        margin-top: -0.3rem;
        border-radius: 0.5rem;
        display: none;
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
        visibility: visible;
        opacity: 1;
    }
}

/* === Large Screens (≥1200px) === */
@media (min-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        border-radius: 10px;
    }
}

/* === Mobile (≤991.98px) === */
@media (max-width: 991.98px) {
    .sticky-top.navbar-light {
        position: relative;
        background: var(--bs-white);
    }

    .navbar.navbar-expand-lg .navbar-toggler {
        padding: 10px 20px;
        border: 1px solid var(--bs-primary);
        color: var(--bs-primary);
    }

    .navbar-light .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid #dddddd;
    }

    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
        margin-right: 0;
        color: var(--bs-dark) !important;
    }

    .navbar-light .navbar-brand img {
        max-height: 45px;
    }

    .nav-item.dropdown a::after {
        position: absolute;
        right: 0;
    }

    .navbar .btn.btn-primary {
        width: 100%;
        margin-top: 1rem;
        border-radius: 10px !important;
    }

    .navbar .btn.btn-primary:hover {
        box-shadow: inset 1000px 0 0 0 var(--bs-light) !important;
    }

    .dropdown-submenu > .dropdown-menu {
        left: 0;
        top: 0;
        margin-left: 1rem;
        position: relative;
        opacity: 1;
        visibility: visible;
        display: none;
    }

    .dropdown-submenu.open > .dropdown-menu {
        display: block;
    }

    .navbar .dropdown-toggle::after,
    .nav-link.dropdown-toggle::after,
    .dropdown-submenu > a::after {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }

    .navbar .nav-item .dropdown-menu {
        padding-bottom: 1rem;
        margin-top: 0.5rem;
        border-radius: 4px;
    }
}

/* === Branding === */
.navbar-brand img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar-brand .bg-primary {
    width: 2px;
    height: 50px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 38px;
    }

    .navbar-brand .bg-primary {
        height: 38px;
    }

    .navbar-brand h5 {
        font-size: 0.95rem;
        margin-top: 0.5rem !important;
    }
}

.navbar-nav .nav-link.active {
    color: var(--bs-primary) !important;
    font-weight: 600;
}
/*** Navbar End ***/

/*** Carousel Hero Header Start ***/
.header-carousel {
    position: relative;
}

.header-carousel .owl-nav .owl-prev {
    position: absolute;
    width: 70px;
    height: 70px;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--bs-primary);
    color: var(--bs-white);
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

.header-carousel .owl-nav .owl-next {
    position: absolute;
    width: 70px;
    height: 70px;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--bs-primary);
    color: var(--bs-white);
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    transition: 0.5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    box-shadow: inset 150px 0 0 0 var(--bs-light) !important;
    color: var(--bs-primary) !important;
}

@media (max-width: 576px) {
    .header-carousel .owl-nav .owl-prev,
    .header-carousel .owl-nav .owl-next {
        /* top: 630px; */
        width: 50px;
        height: 50px;
        transition: 0.5s;
    }

    .header-carousel .header-carousel-item .carousel-caption .carousel-caption-content {
        width: 95% !important;
    }
}

.header-carousel .header-carousel-item,
.header-carousel .header-carousel-item img {
    position: relative;
    width: 100%;
    height: 700px;
    margin-top: 95px;
    display: block;
    object-fit: cover;
    transition: 0.5s;
}

@media (max-width: 992px) {
    .header-carousel .header-carousel-item,
    .header-carousel .header-carousel-item img {
        margin-top: 0;
        transition: 0.5s;
    }
}

@media (min-width: 992px) {
    .header-carousel .owl-nav .owl-prev,
    .header-carousel .owl-nav .owl-next {
        margin-top: 50px;
    }
}

.header-carousel .header-carousel-item .carousel-caption {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

.header-carousel .header-carousel-item .carousel-caption .carousel-caption-content {
    position: relative;
    width: 75%;
}
/*** Carousel Hero Header End ***/

/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../../../assets/images/png/carousel-2.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 160px 0 60px 0;
    position: relative;
    overflow: hidden;
}

.bg-breadcrumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.bg-breadcrumb .container {
    position: relative;
    z-index: 2;
}

.bg-breadcrumb .breadcrumb-item a {
    /* color: var(--bs-white) !important; */
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #fff;
    text-decoration: underline;
}

/* active breadcrumb: lebih terang dan sedikit shadow */
.breadcrumb-item.active {
    color: #fff !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* separator warna putih biar nyatu */
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.75);
}
/*** Single Page Hero Header End ***/

/*** Service Start ***/
.service .service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 10px;
    overflow: hidden;
}

.service .service-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(35, 73, 116, 0.25);
}

.service .service-item .service-img {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service .service-item .service-img img {
    transition: transform 0.5s ease;
}

.service .service-item .service-img::before {
    width: 100%;
    height: 0;
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    transition: 0.5s;
    z-index: 5;
}

.service .service-item:hover .service-img::before {
    height: 100%;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-tertiary));
}

.service .service-item:hover .service-img img {
    transform: scale(1.2);
}

/* Konten bagian bawah */
.service .service-item .service-content {
    position: relative;
    z-index: 2;
    transition: 0.5s ease;
}

.service .service-item .service-content::before {
    width: 100%;
    height: 8px;
    position: absolute;
    content: '';
    bottom: 0;
    left: 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-tertiary));
    transition: height 0.5s ease;
    z-index: 3;
}

.service .service-item:hover .service-content::before {
    height: 100%;
}

.service .service-item .service-content .service-content-inner {
    position: relative;
    z-index: 9;
    transition: color 0.5s ease;
}

.service .service-item:hover .service-content .service-content-inner {
    color: var(--bs-white) !important;
}

.service .service-item:hover .service-content .service-content-inner h5 {
    color: var(--bs-white);
}

/* Tombol di dalam service-content */
.service .service-item .service-content .service-content-inner .btn {
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

/* Saat hover di card, ubah tombol jadi outline */
.service .service-item:hover .service-content .service-content-inner .btn {
    background: transparent !important;
    color: var(--bs-white) !important;
    border: 2px solid var(--bs-white) !important;
}

/* Tambahan efek hover di tombol */
.service .service-item .service-content .service-content-inner .btn:hover {
    background: var(--bs-white) !important;
    color: var(--bs-primary) !important;
}

/* Responsive layout fix */
.service .row {
    display: flex;
    flex-wrap: wrap;
}

.service .col-md-6,
.service .col-lg-4,
.service .col-xl-3 {
    display: flex;
}

.service .service-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service .service-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
/*** Service End ***/

/*** About Start ***/
.about .about-img {
    position: relative;
    overflow: hidden;
    height: 100%;
    border-radius: 10px;
}

.about .about-img .about-img-inner {
    position: absolute;
    left: 0;
    bottom: 0;
    border: 10px solid;
    border-color: var(--bs-white) var(--bs-white) var(--bs-white) var(--bs-white);
    border-radius: 50%;
}

.about .about-img .about-experience {
    position: absolute;
    top: 125px;
    left: -125px;
    transform: rotate(-90deg);
    background: transparent;
    color: var(--bs-primary);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 4px;
}

/*** About End ***/

/*** Feature Start ***/
.feature .row {
    display: flex;
    flex-wrap: wrap;
}

/* Pastikan setiap kolom menjadi flex container agar card bisa stretch */
.feature .col-md-6,
.feature .col-lg-4,
.feature .col-xl-3 {
    display: flex;
}

/* Setiap feature-item memenuhi tinggi kolom */
.feature .feature-item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 auto;
    height: 100%;
    border: 1px solid var(--bs-primary);
    border-radius: 10px;
    background: var(--bs-light);
    transition: 0.5s;
}

/* Background overlay efek hover */
.feature .feature-item::before {
    width: 0;
    height: 100%;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px;
    transition: 0.5s;
}

.feature .feature-item:hover::before {
    width: 100%;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-tertiary));
}

/* Ikon tetap rapi */
.feature .feature-item .feature-icon {
    display: inline-flex;
    border-radius: 10px;
    transition: 0.5s;
}

/* Hover efek tetap normal */
.feature .feature-item:hover .feature-icon {
    position: relative;
    z-index: 2;
}
.feature .feature-item:hover .feature-icon i {
    color: var(--bs-white) !important;
}

/* Konten di dalam card diratakan dan fleksibel */
.feature .feature-item .feature-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature .feature-item:hover .feature-content {
    position: relative;
    color: var(--bs-white);
    z-index: 2;
}

/* Judul tetap punya warna kontras di hover */
.feature .feature-item:hover .feature-content h5 {
    color: var(--bs-white);
}

/*** Feature End ***/

/*** Appointment Start ***/
.appointment {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url(../../../assets/images/png/carousel-2.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.appointment .appointment-form {
    background: rgba(53, 157, 158, 0.3);
}

.appointment .appointment-form .btn.btn-primary {
    box-shadow: inset 0 0 0 0 var(--bs-primary);
}

.appointment .appointment-form .btn.btn-primary:hover {
    box-shadow: inset 600px 0 0 0 var(--bs-light) !important;
    color: var(--bs-primary) !important;
}
/*** Youtube Video start ***/
.video {
    position: relative;
}

.video .btn-play {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-sizing: content-box;
    display: block;
    width: 33px;
    height: 44px;
    border-radius: 50%;
    transition: 0.5s;
}

.video .btn-play:before {
    content: '';
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 115px;
    height: 115px;
    background: var(--bs-primary);
    border-radius: 50%;
    animation: pulse-border 1500ms ease-out infinite;
    transition: 0.5s;
}

.video .btn-play:after {
    content: '';
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 100px;
    height: 100px;
    background: var(--bs-secondary);
    border-radius: 50%;
    transition: all 300ms;
}

.video .btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    border-left: 33px solid var(--bs-white);
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
    margin-left: 5px;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 0;
    }
}

#videoModal {
    z-index: 99999;
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #ffffff;
    background: #000000;
    opacity: 1;
}
/*** Youtube Video End ***/

/* === Diagram Alur Layanan Antar Obat === */
.flow-diagram {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-left: 5px solid var(--bs-primary);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.step:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.step .icon {
    background: var(--bs-primary);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.step .text h5 {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--bs-dark);
}

.step .text p {
    font-size: 0.95rem;
    color: var(--bs-dark);
    margin: 0;
}

/* Responsif untuk mobile */
@media (max-width: 768px) {
    .step {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .step .icon {
        margin-bottom: 0.5rem;
    }
}
/*** Appointment End ***/

/*** Medical Specialist Start ***/
.medical-specialist .medical-specialist-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: var(--bs-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    isolation: isolate;
}

/* Gradient menyatu ke seluruh card saat hover */
.medical-specialist .medical-specialist-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-tertiary) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.medical-specialist .medical-specialist-item:hover::before {
    opacity: 1;
}

.medical-specialist .medical-specialist-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(35, 73, 116, 0.18);
}

/* Area gambar */
.medical-specialist .medical-specialist-item .medical-specialist-img {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    clip-path: ellipse(120% 100% at 50% 0%);
    z-index: 2;
}

.medical-specialist .medical-specialist-item .medical-specialist-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.medical-specialist .medical-specialist-item:hover .medical-specialist-img img {
    transform: scale(1.05);
    filter: brightness(1.08);
}

/* Overlay tetap transparan */
.medical-specialist .medical-specialist-item .medical-specialist-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
}

/* Tombol sosmed */
.medical-specialist .medical-specialist-item .medical-specialist-img .medical-specialist-icon {
    position: absolute;
    bottom: -125px;
    left: 50%;
    transform: translateX(-50%);
    transition: 0.5s;
    z-index: 3;
}

.medical-specialist .medical-specialist-item:hover .medical-specialist-img .medical-specialist-icon {
    margin-bottom: 145px;
}

/* Konten bawah */
.medical-specialist .medical-specialist-item .medical-specialist-content {
    position: relative;
    color: var(--bs-primary);
    transition: 0.5s ease;
    text-align: center;
    border: 1px solid var(--bs-secondary);
    border-top: none;
    background: var(--bs-light);
    flex-shrink: 0;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 0 0 18px 18px;
    z-index: 3;
    overflow: hidden;
}

/* Garis dekoratif atas */
.medical-specialist .medical-specialist-item .medical-specialist-content::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 70%;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-tertiary));
    transform: translateX(-50%);
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
    z-index: 4;
}

/* Hilangkan garis saat hover */
.medical-specialist .medical-specialist-item:hover .medical-specialist-content::before {
    opacity: 0;
}

/* Warna teks */
.medical-specialist .medical-specialist-item .medical-specialist-content h5 {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--bs-secondary);
    transition: color 0.5s ease;
}

.medical-specialist .medical-specialist-item .medical-specialist-content p {
    font-size: 0.9rem;
    color: var(--bs-primary);
    opacity: 0.8;
    margin-top: 5px;
    transition: 0.5s ease;
}

/* Hover style */
.medical-specialist .medical-specialist-item:hover .medical-specialist-content {
    background: transparent; /* biar gradient utama yang di atas berlaku */
    color: #fff;
    border-top: none;
}

.medical-specialist .medical-specialist-item:hover .medical-specialist-content h5,
.medical-specialist .medical-specialist-item:hover .medical-specialist-content p {
    color: #fff;
    opacity: 1;
}

/* Efek shimmer aktif hanya saat hover */
.medical-specialist .medical-specialist-item .medical-specialist-content::after {
    content: '';
    position: absolute;
    inset: 0;
    background: none;
    z-index: 3;
}

.medical-specialist .medical-specialist-item:hover .medical-specialist-content::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.25) 100%);
    animation: shimmerMove 2.5s infinite linear;
}

/* Animasi shimmer */
@keyframes shimmerMove {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Pastikan tinggi semua item di carousel seragam */
.medical-specialist .owl-item {
    display: flex;
    align-items: stretch;
}

.medical-specialist .owl-item .medical-specialist-item {
    height: 100%;
}

/* Navigasi carousel */
.medical-specialist .owl-nav .owl-prev,
.medical-specialist .owl-nav .owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bs-light);
    color: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: 0.3s;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    z-index: 4;
}

.medical-specialist .owl-nav .owl-prev {
    left: -25px;
}
.medical-specialist .owl-nav .owl-next {
    right: -25px;
}

.medical-specialist .owl-nav .owl-prev:hover,
.medical-specialist .owl-nav .owl-next:hover {
    background: var(--bs-primary);
    color: #fff;
}

/* Dots indikator carousel */
.medical-specialist .owl-dots {
    text-align: center;
    margin-top: 20px;
}

.medical-specialist .owl-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin: 5px;
    background: transparent;
    border: 2px solid var(--bs-primary);
    border-radius: 50%;
    transition: 0.3s;
}

.medical-specialist .owl-dot.active {
    background: var(--bs-primary);
}
/*** Medical Specialist End ***/

/*** testimonial Start ***/
.testimonial {
    background: linear-gradient(rgba(53, 157, 158, 0.9), rgba(53, 157, 158, 0.9)), url(../../../assets/images/png/carousel-1.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.testimonial .testimonial-item .testimonial-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 10px;
    background: transparent;
}

.testimonial .testimonial-item .testimonial-inner .testimonial-inner-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 5px solid var(--bs-white);
}

.testimonial .testimonial-carousel.owl-carousel {
    position: relative;
}

.testimonial .testimonial-carousel .owl-nav .owl-prev {
    position: absolute;
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--bs-light);
    color: var(--bs-primary);
    transition: 0.5s;
}

.testimonial .testimonial-carousel .owl-nav .owl-next {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--bs-light);
    color: var(--bs-primary);
    transition: 0.5s;
}

.testimonial .testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial .testimonial-carousel .owl-nav .owl-next:hover {
    box-shadow: inset 100px 0 0 0 var(--bs-primary) !important;
    color: var(--bs-white) !important;
}

@media (max-width: 900px) {
    .testimonial .testimonial-carousel .owl-nav .owl-prev {
        margin-top: -190px;
        margin-left: 40px;
    }

    .testimonial .testimonial-carousel .owl-nav .owl-next {
        margin-top: -190px;
        margin-right: 40px;
    }
}

.testimonial-carousel .owl-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.testimonial-carousel .owl-dots .owl-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 15px;
    border: 1px solid var(--bs-white);
    background: transparent;
    transition: 0.5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 20px;
    height: 20px;
    background: var(--bs-secondary) !important;
}

.testimonial-carousel .owl-dots .owl-dot span {
    position: relative;
    margin-top: 50%;
    margin-left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dots .owl-dot span::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bs-white);
}

.testimonial .testimonial-carousel .testimonial-item .testimonial-inner p.fs-7 {
    transition: 0.5s;
}

@media (min-width: 900px) {
    .testimonial .testimonial-carousel .testimonial-item .testimonial-inner p.fs-7 {
        font-size: 20px;
    }
}

/* Testimonial Section Title Start */
.testimonial .section-title {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

.testimonial .section-title .sub-style {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.testimonial .section-title .sub-style::before {
    content: '';
    width: 100px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-top: 8px;
    margin-left: -100px;
    border: 1px solid var(--bs-white) !important;
}

.testimonial .section-title .sub-style::after {
    content: '';
    width: 50px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-bottom: 5px;
    margin-left: -50px;
    border: 1px solid var(--bs-white) !important;
}

.testimonial .section-title .sub-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.testimonial .section-title .sub-title::before {
    content: '';
    width: 100px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-top: 8px;
    margin-right: -100px;
    border: 1px solid var(--bs-white) !important;
}

.testimonial .section-title .sub-title::after {
    content: '';
    width: 50px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-bottom: 8px;
    margin-right: -50px;
    border: 1px solid var(--bs-white) !important;
}
/*** Testimonial End ***/

/*** Blog Start ***/
.blog .blog-item {
    display: flex;
    flex-direction: column;
    height: 420px;
    background: var(--bs-light);
    border: 1px solid var(--bs-primary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.blog .blog-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 20px rgba(35, 73, 116, 0.18);
}

.blog .blog-item .blog-img {
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    height: 260px;
}

.blog .blog-item .blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog .blog-item:hover .blog-img img {
    transform: scale(1.1);
}

/* Konten bawah — diringkas */
.blog .blog-item .blog-centent {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: var(--bs-light);
    padding: 1.25rem 1.25rem 1rem;
    border-top: 1px solid rgba(35, 73, 116, 0.1);
    overflow: hidden;
}

.blog .blog-centent p {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 1rem;
}

.blog .blog-centent {
    background: rgba(53, 157, 158, 0.2);
}

.blog .blog-centent .btn.btn-primary {
    box-shadow: inset 0 0 0 0 var(--bs-primary);
}

.blog .blog-centent .btn.btn-primary:hover {
    box-shadow: inset 600px 0 0 0 var(--bs-light) !important;
    color: var(--bs-primary) !important;
}

.blog .owl-stage {
    display: flex !important;
    align-items: stretch !important;
}

.blog .owl-item {
    display: flex !important;
    align-items: stretch !important;
    height: auto !important;
}

.blog .owl-item .blog-item {
    height: 100% !important;
    display: flex;
    flex-direction: column;
}

/* Carousel nav */
.blog .owl-nav .owl-prev,
.blog .owl-nav .owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bs-light);
    color: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: 0.3s;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    z-index: 4;
}
.blog .owl-nav .owl-prev {
    left: -25px;
}
.blog .owl-nav .owl-next {
    right: -25px;
}
.blog .owl-nav .owl-prev:hover,
.blog .owl-nav .owl-next:hover {
    background: var(--bs-primary);
    color: #fff;
}

/* Dots */
.blog .owl-dots {
    text-align: center;
    margin-top: 20px;
}
.blog .owl-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin: 5px;
    background: transparent;
    border: 2px solid var(--bs-primary);
    border-radius: 50%;
    transition: 0.3s;
}
.blog .owl-dot.active {
    background: var(--bs-primary);
}

/* Responsive tweak */
@media (max-width: 768px) {
    .blog .blog-item {
        height: 420px;
    }
    .blog .blog-item .blog-img {
        height: 220px;
    }
}
/*** Blog End ***/

/*** Timeline Start ***/
.main-timeline {
    position: relative;
    padding: 2rem 0;
}

.main-timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: linear-gradient(180deg, var(--bs-primary), var(--bs-secondary));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
    opacity: 0.8;
}

.timeline {
    position: relative;
    width: 50%;
    padding: 1rem 2rem;
    z-index: 2;
}

.timeline .card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-left: 6px solid var(--bs-primary);
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.timeline .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.96);
}

.timeline h3 {
    color: var(--bs-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline p {
    color: #555;
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: var(--bs-light);
    border: 5px solid var(--bs-primary);
    border-radius: 50%;
    top: 25px;
    z-index: 3;
    transition: all 0.3s ease;
}

.timeline:hover::after {
    background: var(--bs-primary);
    transform: scale(1.1);
}

.left {
    left: 0;
    padding-right: 3rem;
}

.right {
    left: 50%;
    padding-left: 3rem;
}

.left::after {
    right: -11px;
}

.right::after {
    left: -11px;
}

.left::before,
.right::before {
    content: '';
    position: absolute;
    top: 32px;
    border: 10px solid transparent;
}

.left::before {
    right: 24px;
    border-left-color: var(--bs-primary);
}

.right::before {
    left: 24px;
    border-right-color: var(--bs-primary);
}

@media (max-width: 768px) {
    .main-timeline::after {
        left: 20px;
    }

    .timeline {
        width: 100%;
        left: 0;
        padding-left: 50px;
        padding-right: 15px;
    }

    .timeline::after {
        left: 12px;
    }

    .timeline::before {
        display: none;
    }

    .right {
        left: 0;
    }
}
/*** Timeline End ***/

/*** Contact Start ***/
.contact {
    background: linear-gradient(color-mix(in srgb, #001328 65%, transparent)),
        url('../../../assets/images/png/thumbnail-1.png') center/cover no-repeat;
    /* background: linear-gradient(rgba(53, 157, 158, 0.9), rgba(53, 157, 158, 0.9)), url(../../../assets/images/png/carousel-1.png); */
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.contact .contact-form .btn.btn-light {
    box-shadow: inset 0 0 0 0 var(--bs-primary);
}

.contact .contact-form .btn.btn-light:hover {
    box-shadow: inset 600px 0 0 0 var(--bs-primary) !important;
    color: var(--bs-white) !important;
}

.contact .contact-form .form-floating input,
.contact .contact-form .form-floating textarea,
.contact .contact-form .form-floating label {
    color: var(--bs-light);
}

/* Testimonial Section Title Start */
.contact .section-title {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

.contact .section-title .sub-style {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.contact .section-title .sub-style::before {
    content: '';
    width: 100px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-top: 8px;
    margin-left: -100px;
    border: 1px solid var(--bs-white) !important;
}

.contact .section-title .sub-style::after {
    content: '';
    width: 50px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-bottom: 5px;
    margin-left: -50px;
    border: 1px solid var(--bs-white) !important;
}

.contact .section-title .sub-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.contact .section-title .sub-title::before {
    content: '';
    width: 100px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-top: 8px;
    margin-right: -100px;
    border: 1px solid var(--bs-white) !important;
}

.contact .section-title .sub-title::after {
    content: '';
    width: 50px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-bottom: 8px;
    margin-right: -50px;
    border: 1px solid var(--bs-white) !important;
}
/*** Contact End ***/

/*** Footer Start ***/
.footer {
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), url(../../../assets/images/png/carousel-2.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}
.footer .footer-item a {
    line-height: 35px;
    color: var(--bs-body);
    transition: 0.5s;
}

.footer .footer-item p {
    line-height: 35px;
}

.footer .footer-item a:not(.contact-link):hover {
    letter-spacing: 2px;
    color: var(--bs-primary);
}

.footer .footer-item a.contact-link {
    color: var(--bs-body);
    text-decoration: none;
    border-color: transparent;
    transition: all 0.4s ease;
    background: none;
}

.footer .footer-item a.contact-link:hover {
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    border-color: transparent !important;
}

/*** Footer End ***/

/*** copyright Start ***/
.copyright {
    background: var(--bs-dark) !important;
}

/* Copyright Section */
.container-fluid.copyright {
    background: linear-gradient(135deg, var(--bs-dark) 0%, #1d2f4a 100%) !important;
    color: var(--bs-light) !important;
    transition: background 0.6s ease, color 0.3s ease, box-shadow 0.5s ease;
}

/* Hover efek background footer (opsional) */
.container-fluid.copyright:hover {
    box-shadow: 0 0 20px rgba(74, 172, 144, 0.3);
}

/* Default link style */
.container-fluid.copyright a {
    color: var(--bs-white);
    text-decoration: none;
    border-color: transparent;
    transition: all 0.4s ease;
    background: none;
}

/* Gradient text saat hover */
.container-fluid.copyright a:hover {
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    border-color: transparent !important;
}

/* Buat transisi gradasi smooth */
.container-fluid.copyright a {
    position: relative;
}
.container-fluid.copyright a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-tertiary));
    transition: width 0.4s ease;
}
.container-fluid.copyright a:hover::after {
    width: 100%;
}
/*** copyright end ***/

@media (max-width: 768px) {
    .section-title .sub-style::before,
    .section-title .sub-style::after,
    .sub-title::before,
    .sub-title::after {
        display: none;
    }
}
