/* Font Imports */
@import url('fonts.css');

:root {
    --primary-color: #333973;
    --secondary-color: #0CAC9E;
    --secondary-color-1: #0CAC9E;
    --secondary-color-2: #76C7C1;
    --secondary-color-3: #62D9BD;
    --secondary-color-4: #97E8CA;
    --secondary-color-5: #C2E7DF;
    --secondary-color-6: #DBF0E9;
    --secondary-color-7: #EBF6F3;
    --tertiary-color: #292735;
    --tertiary-color-1: #292735;
    --tertiary-color-2: #9BA6B1;
    --tertiary-color-3: #EFEFEF;
    --tertiary-color-4: #FAFAFA;
    --fs-body: 1rem;
    --fs-sub: 0.8rem;
}

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    font-size: 15px; /* 1rem = 16px */
}
/* Body Defaults */
body {
    font-family: 'Poppins', 'Barlow', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--tertiary-color);
    padding: 0;
    margin: 0;
    max-width: 1920px;
    margin: 0 auto;
    background-color: var(--tertiary-color-4);    
    top: 0px !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0.5rem;
    color: var(--tertiary-color);
    font-weight: 400 !important;
}
p{
    > img{
        display:inline-block;
    }
}
.color-primary{
    color: var(--primary-color);
}
.color-tertiary{
    color: var(--tertiary-color);
}
.bg-teriary-3{
    background-color: var(--tertiary-color-3);
}
.bg-primary{
    background-color: var(--primary-color) !important;
}
.h1{
    font-size: 3.052rem;
}
.h2{
    font-size: 2.441rem;
    color: var(--primary-color);
}
.h3{
    font-size: 1.953rem;
}
.h4{
    font-size: 1.562rem;
}
.h5{
    font-size: 1.250rem;
}
.fs-body{
    font-size: 1rem;
}
.fs-sub{
    font-size: 0.8rem;
}
/* Paragraphs */
p {
    margin-bottom: 1rem;
}

/* Links */
a {
    text-decoration: none;
    color: var(--secondary-color-3);
    transition: color 0.3s ease;
    &:hover {
        color: var(--secondary-color);
    }
}
/* Buttons */
button {
    font-family: 'Poppins', 'Barlow', sans-serif;
    font-size: 1rem;
    color: var(--tertiary-color-3);
    background-color: var(--secondary-color-3);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    &:hover {
        background-color: var(--secondary-color-5);
    }
}
.btn:hover{
    background-color: var(--secondary-color-3) !important;
    color: var(--primary-color) !important;
}
/* Lists */
ul, ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

li  {
    margin-bottom: 0;
}

/* Inputs */
input, textarea {
    font-family: 'Poppins', 'Barlow', sans-serif;
    font-size: 1rem;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    width: 100%;
    margin-bottom: 1rem;
    &:focus {
        border-color: var(--primary-color-5);
        box-shadow: none !important;
    }
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}
.icon-sm{
    width: 24px;
    height: 24px;
}
header {
    background-color: var(--primary-color);
    font-size: 1rem;
    a{
        color: var(--tertiary-color-4);
    }
}
footer{
    background-image: url('../images/footer.png');
    background-position: center top;
    background-size: cover;
    color: var(--secondary-color-7);
    padding-top: 200px;
    overflow-wrap: anywhere;
    .footer-widgets{
        padding-bottom: 20px;
        border-bottom: 1px solid var(--secondary-color-3);
        margin-bottom: 30px;
        font-size: 1rem;
        .heading-footer{
            font-size: 1.250rem;
            color: var(--secondary-color-4);
            font-weight: 700;
            margin: 30px 0 15px;
        }
        a{
            color: var(--secondary-color-7);
            font-weight: 400;
            &:hover{
                color: var(--secondary-color-3);
            }
        }
        svg {
            color: var(--secondary-color-3);
        }
    }
    .copyright-section{
        padding-bottom: 30px;
    }
}
.back-to-top{
    position: fixed;
    right: 20px;
    bottom: 20px;
    background-color: var(--tertiary-color-3);
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0 6px 16px -8px var(--primary-color);
}
.contact-wa{
    position: fixed;
    left: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    z-index: 9;
    &::before{
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 60px;
        height: 60px;
        z-index: 0;
        border-radius: 50%;
        box-shadow: 0 6px 16px -8px var(--primary-color);
    }
    .logo-wa{
        border-radius: 50%;
        /* box-shadow: 0 6px 16px -8px var(--primary-color); */
        background-color: var(--secondary-color);
        padding: 12px;
        width: 60px;
        height: 60px;
        z-index: 2;
        position: relative;
    }
    .hubungi-kami{
        background-color: var(--secondary-color);
        padding: 7px 12px;
        border-radius: 6px;
        transform: translateX(-12px);
        max-width: 90px;
        line-height: 1;
        color: var(--tertiary-color-3);
        box-shadow: 0 6px 16px -8px var(--primary-color);
        z-index: 1;
        position: relative;
    }
}
.dropdown-submenu {
    position: relative;
    .dropdown-menu {
        top: 96%;
        left: 0;
        margin-top: -1px;
        background-color: var(--primary-color);
        border: 1px solid var(--tertiary-color-3);
    }
}
.navbar-brand img {
    max-width: 172px;
    height: auto;
}
#menu-top{
    .nav-item{
        padding: 0 15px;
        .nav-link{
            color: var(--tertiary-color-4);
            text-transform: capitalize;
            padding: 0;
            font-weight: 300;
            &:hover{
                color: var(--secondary-color-4);
            }
        }
        &.active > .nav-link{
            font-weight: 600 !important;
            color: var(--secondary-color-3) !important;
            border-bottom: 2px solid var(--secondary-color-3);
        }
    }
}
#dropdown-lang{
    .dropdown-toggle{
        overflow: hidden;
        background-color: var(--secondary-color);
        display: block;
        width: 18px;
        height: 18px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    img{
        width: auto;
        height: 30px;
        max-width: unset;
    }
    .dropdown-menu{
        width: 40px;
        min-width: 0;    
        left: 50%;
        transform: translateX(-50%);
        img{
            margin: auto;
        }
    }
}
#dropdown-lang a::after, #dropdown-search a::after{
    content: none;
}
.DocSearch-Search-Icon {
    color: var(--tertiary-color-4);
}
#dropdown-search .dropdown-menu{  
    width: 250px;  
    left: unset;
    right: 0;
}
#tentang{
    p{
        font-size: 1.25rem;
        line-height: 150%;
        color: var(--tertiary-color);
        b, strong{
            font-size: 1.25rem;
            line-height: 150%;
            color: var(--secondary-color);
        }
    }
}
#perawatan{
    background-color: #fff;
    .perawatan-item{
        background-color: var(--primary-color);
        border-radius: 15px;
        overflow: hidden;
        transition: background-color 0.5s ease, color 0.5s ease;
        .perawatan-img{
            overflow: hidden;
            width: 100%;
            height: 100%;
            img{
                width: 100%;
                height: 100%;
                object-fit: cover;
                transition: transform 0.5s ease;
            }
        }
        .perawatan-title{
            color: #fff;
            font-size: 1.25rem;
            font-weight: bold;
            line-height: 1.3;
            z-index: 1;
            position: relative;
        }
        .perawatan-detail{
            position: relative;
            padding: 14px 20px;
            &::before{
                content: '';
                background-image: url('../icon/gigi.svg');
                background-position: right top;
                background-size: contain;
                background-repeat: no-repeat;
                position: absolute;
                top: 15px;
                right: 15px;
                width: 90px;
                height: 90px;
                z-index: 0;
                opacity: 0.1;
                transition: opacity 0.3s ease;
            }
        }
        p{
            color: var(--tertiary-color-2);
        }
        &:hover{
            background-color: var(--tertiary-color-3);
            box-shadow: 4px 6px 15px 0 var(--tertiary-color-2);
            .perawatan-img img{
                transform: scale(120%);
            }
            .perawatan-title{
                color: var(--primary-color);
            }
            .perawatan-detail::before{
                opacity: 1;
            }
            p{
                position: relative;
                z-index: 1;
            }
        }
    }
}
.yt-short-container iframe {
    pointer-events: none; 
}
.owl-theme .owl-dots .owl-dot.active span, .owl-theme .owl-dots .owl-dot:hover span {
    background-color: var(--secondary-color);
}
.align-center .owl-stage{
    display: flex;
    align-items: center;
}
#testimoni {
    .owl-stage{
        padding: 15px 0;
    }
    .item{
        background-color: #fff;
        border: 1px solid transparent;
        border-radius: 15px;
        overflow: hidden;
        transition: border 0.5s ease, box-shadow 0.5s ease;
        padding: 15px;
        &:hover{
            border: 1px solid var(--secondary-color);
            box-shadow: 5px 7px 15px 0 rgba(0,0,0,0.1);
        }
    }
    .testimoni-header{
        display: flex;
        gap: 15px;
        margin-bottom: 14px;
        .testimoni-img{
            width: 70px;
            height: 70px;
            border-radius: 7px;
            overflow: hidden;
            flex-shrink: 0;
            img{
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }
        .testimoni-detail{
            display: flex;
            flex-direction: column;
            justify-content: center;
            .testimoni-title{
                font-size: 1.25rem;
                font-weight: 400;
                color: var(--primary-color);
            }
            p{
                color: var(--tertiary-color-2);
                margin: 0;
            }
        }
    }
    .testimoni-content{
        color: var(--tertiary-color);
        position: relative;
        display: flex;
        gap: 1ch;
        .double-quote-svg{
            width: 32px;
            height: 32px;
            flex-shrink: 0;
            background-image: url('../icon/ri_double-quotes-l.svg');
        }
        p{
            margin-bottom: 0;
        }
    }
}
.square{
    width: 100%;
    height: 0;
    padding-top: 100%;
    position: relative;
    border-radius: 7px;
    overflow: hidden;
    .square-content{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        img{            
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .layer-gradasi{
            width: 100%;
            height: 100%;
            background:linear-gradient(
                180deg, 
                rgba(12, 172, 158, 0) 21%,  /* 0CAC9E dengan 0% opacity */
                rgba(12, 172, 158, 0.2) 47%, /* 0CAC9E dengan 20% opacity */
                rgba(12, 172, 158, 1) 73%,   /* 0CAC9E dengan 100% opacity */
                rgba(51, 57, 115, 1) 100%    /* 333973 dengan 100% opacity */
            );
            opacity: 1;
            transition: opacity .4s ease-out;
        }  
        .square-content-container{
            height: 100%;
            padding: 25px;
            transition: background-color .3s;
            .square-content-text{
                height: 100%;
                color: var(--tertiary-color-3); 
                overflow: hidden;
                transform: translateY(calc(100% - 3.6rem));
                transition: transform .3s;
                .artikel-heading{
                    margin-bottom: 1em;
                    text-decoration: underline;
                    /* transition: font-weight .3s; */
                }
                p {
                    text-overflow: ellipsis;
                }
            }      
        }      
    }
    &:hover {
        box-shadow: 4px 6px 15px 0 rgba(51, 57, 115, 0.5);
        .artikel-heading{
            font-weight: 600 !important;
            /* transition: font-weight 0s; */
        }
        .square-content .layer-gradasi{
            opacity: 0;
        }
        .square-content-container{
            background-color: rgba(51, 57, 115, 0.85);
            .square-content-text{
                transform: translateY(0);
            }
        }
    }
}
.ellipsis-2{                
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
}
.ellipsis-9{                
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 9;
}
.btn-pastel{
    background-color: var(--secondary-color);
    color: var(--tertiary-color-3);
    padding: 5px 12px;
    border-radius: 7px;
    transition: filter 0.3s;
    &:hover{
        background-color: var(--secondary-color-4);
        color: var(--secondary-color);
        svg{
            filter: invert(66%) sepia(27%) saturate(611%) hue-rotate(140deg);
        }

    }
}
#faq{
    background: 
    linear-gradient(180deg,
        rgba(250, 250, 250, 1) 0%,
        rgba(250, 250, 250, 0) 10%,
        rgba(250, 250, 250, 0) 90%,
        rgba(250, 250, 250, 1) 100%
    ),
    url('../images/bg-duwa-compress.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}
#accordionFAQ .accordion-item{
    border: none;
    box-shadow: 5px 5px 0 0 var(--secondary-color-6);
    border-radius: 10px;
    overflow: hidden;
    .accordion-button{
        padding: 30px;
        &:not(.collapsed) {
            color: var(--secondary-color);
            background-color: #fff;
            box-shadow: inherit;
        }
        &:hover{
            background-color: var(--secondary-color-5);
            color: var(--secondary-color);
        }
    }
    .accordion-body{
        padding: 8px 30px 30px;
        p{
            margin: 0;
        }
    }
    &:hover{
        box-shadow: 5px 5px 0 0 var(--secondary-color);
    }
}

.btn-share{    
    .bg-box {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    
    .share-btn {
        padding: 4px;
        background-color: var(--secondary-color-3);
        position: relative;
        border-radius: 50px;
        overflow: hidden;
        cursor: pointer;
        transition: 0.3s;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid var(--tertiary-color-3);
    }
    
    .share-btn:hover {
        transform: scale(1.1);
    }
    
    .text-share-btn {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--tertiary-color-3);
        color: var(--tertiary-color);
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50px;
        font-family: arial;
        font-size: 1rem;
        transition: 1s 0.2s;
        z-index: 99;
        border-radius: 0px;
        overflow: hidden;
        border: 1px solid var(--tertiary-color-3);
    }
    
    .share-btn:hover .text-share-btn {
        left: -100%;
    }
    
    .share-items {
        display: flex;
        list-style: none;
        margin: 0;
        font-size: 1.2rem;
        padding: 0;
    }
    
    .share-items li {
        padding: 0 8px;
        
    }
    
    .share-items li a {
        color: #000;
        display: inline-block;
        transform: scale(0);
    }
    
    .share-btn:hover ul li a {
        transform: scale(1);
    }
    
    .share-items li:nth-child(5) a {
        transition: 0.5s 0.3s;
    }
    
    .share-items li:nth-child(4) a {
        transition: 0.5s 0.45s;
    }
    
    .share-items li:nth-child(3) a {
        transition: 0.5s 0.6s;
    }
    
    .share-items li:nth-child(2) a {
        transition: 0.5s 0.75s;
    }
    
    .share-items li:nth-child(1) a {
        transition: 0.5s 0.9s;
    }
}
.site-description{
    background-color: var(--primary-color);
    padding: 2em;
    .heading{
        color: var(--tertiary-color-4);
        text-align: center;
    }
}
.breadcrumb{
    text-align: center;
    justify-content: center;
    color: var(--secondary-color-3);
    margin: 0;
    .divider::after{
        content: "/";
        margin: 4px;
    }
    li:last-child{
        color: var(--secondary-color);
    }
}
.page-nav{
    ul{
        display: flex;
        justify-content: center;
        gap: 15px;
        margin: 30px 0;
        li{
            list-style: none;
            min-width: 30px;
            display: flex;
            justify-content: center;
            align-items: center;
            a{
                padding: 4px 6px;
                width: 100%;
                height: 100%;
                display: flex;
                justify-content: center;
                align-items: center;
            }
            &:hover a, &.active a{
                background-color: var(--secondary-color);
                color: #fff;
            }
            &.disabled{
                color: var(--tertiary-color-2);
            }
        }
    }
}
.perawatan-detail{
    .img-top{
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }
}
.owl-gallery img{
    border-radius: 15px;
    overflow: hidden;
}
.yt-short-container{
    position: relative;
    width: 100%; /* Full width */
    padding-top: 177.78%; /* 16 / 9 * 100% */
    iframe{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: lightgray; /* Placeholder background */
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 15px;
        overflow: hidden;
    }
}
#filter-dokter{
    border-radius: 15px;
    overflow: hidden;
    select{
        box-shadow: 0 4px 15px 0 rgba(0,0,0,0.1);
    }
    button{
        padding: 10px 25px;
    }
}
.container-img-dokter{
    aspect-ratio: 3 / 4;
    position: relative;
    max-width: 300px;
    margin: 0 auto;
    .nama-dokter{
        position: absolute;
        bottom: 0;
        left: 15px;
        right: 15px;
        min-height: 65px;
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateY(50%);
        border-radius: 10px;
        overflow: hidden;
        padding: 0 24px;
        background-color: var(--primary-color);
    }
}
.label-cabang{
    padding: 10px 20px;
    background-color: var(--tertiary-color-3);
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 1ch;
}
.penawaran-item{
    .penawaran-img{
        background-color: var(--tertiary-color-3);
        border-radius: 10px;
        overflow: hidden;
        img{
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }
    .penawaran-title{
        padding: 1em;
        color: var(--primary-color);
    }
}
.filter-lokasi{
    background-color: var(--tertiary-color-3);
    border-radius: 15px;
    overflow: hidden;
    padding: 30px 35px;
    select{
        box-shadow: 0 4px 15px 0 rgba(0,0,0,0.1);
    }
}
.lokasi-item{
    padding: 30px;
    border-radius: 7px;
    overflow: hidden;
    background-color: var(--secondary-color-7);
    img{
        width: 100%;
        height: auto;
        border-radius: 7px;
        overflow: hidden;
    }
    svg{
        color: #14AE5C;
        font-size: 1.4rem;
    }
    .btn-lokasi-wa{
        background-color: var(--secondary-color-1);
        color: var(--secondary-color-6);
        padding: 7px 15px;
        border-radius: 50px;
        &:hover{
            background-color: var(--secondary-color-3);
        }
    }
}
optgroup{
    font-weight: 400;
    color: var(--tertiary-color-2);
}
option{
    color: var(--tertiary-color);
}
.skiptranslate {
    display: none !important;
} 

/* Responsive */
@media (max-width: 575px) {
    /* Extra small devices (portrait phones, less than 576px) */
    body {
        font-size: 0.875rem;
    }
    .h1 {
        font-size: 2.5rem;
    }
    .h2 {
        font-size: 2rem;
    }
    .h3 {
        font-size: 1.75rem;
    }
    .h4 {
        font-size: 1.5rem;
    }
    .h5 {
        font-size: 1.25rem;
    }
    .navbar-brand img{
        max-width: 130px;
    }
    .img-desktop{
        display: none;
    }
    .img-mobile{
        display: block;
    }
    footer *{
        text-align: center;
    }
    #list-dokter table{
        max-width: 300px;
        margin: 0 auto;
    }
}
@media (max-width: 767px) {
    #menu-top {
        .nav-item {
            text-align: center;
        }
    }
    #dropdown-search .dropdown-menu {
        width: 250px;
        left: 50%;
        transform: translateX(-50%);
        right: unset;
    }
    footer{
        padding-top: 0;
        background-image: none;
        background-color: var(--primary-color);
    }
}
@media (min-width: 576px) and (max-width: 767px) {
    /* Small devices (landscape phones, 576px and up) */
    body {
        font-size: 0.9rem;
    }
    .h1 {
        font-size: 2.7rem;
    }
    .h2 {
        font-size: 2.2rem;
    }
    .h3 {
        font-size: 1.75rem;
    }
    .h4 {
        font-size: 1.4rem;
    }
    .h5 {
        font-size: 1.1rem;
    }
    .navbar-brand img{
        max-width: 140px;
    }
    .img-desktop{
        display: block;
    }
    .img-mobile{
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    /* Medium devices (tablets, 768px and up) */
    body {
        font-size: 0.95rem;
    }
    .h1 {
        font-size: 1.5rem;
    }
    .h2 {
        font-size: 2.2rem;
    }
    .h3 {
        font-size: 2rem;
    }
    .h4 {
        font-size: 1.7rem;
    }
    .h5 {
        font-size: 1.45rem;
    } 
    .navbar-brand img{
        max-width: 150px;
    }
}
@media (min-width: 768px){   
    .img-desktop{
        display: block;
    }
    .img-mobile{
        display: none;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    /* Large devices (desktops, 992px and up) */ 
    .navbar-brand img{
        max-width: 150px;
    }
}

@media (min-width: 1200px) {
    /* Extra large devices (large desktops, 1200px and up) */
}