a {
    text-decoration: none;
}
a:hover{
    color: var(--bs-blue) !important;
}
.light-blue{
    color: var(--bs-blue);
}
.bg-light-blue{
    background-color: var(--bs-blue);
}
.dark-blue{
    color: var(--bs-teal);
}
.bg-dark-blue{
    background-color: var(--bs-teal);
}
.btn-dental{
    border: 1px solid var(--bs-teal);
    font-weight: 500 !important;
    box-shadow: 0 4px 8px color-mix(in srgb, var(--bs-teal) 30%, white 70%);
    transition: all .3s ease;
}
.btn-dental:hover{
    background-color: var(--bs-teal) !important;
    color: #fff !important;
}
.btn-dental-main{
    border: 1px solid var(--bs-blue);
    font-weight: 500 !important;
    box-shadow: 0 4px 8px color-mix(in srgb, var(--bs-blue) 30%, white 70%));
    transition: all .3s ease;
}
.btn-dental-main:hover{
    background-color: var(--bs-blue);
    color: #fff !important;
}

/* Header */
.phone-dental{
    border: 1px solid var(--bs-teal);
    box-shadow: 0 4px 8px color-mix(in srgb, var(--bs-teal) 30%, white 70%);
    transition: all .3s ease;
}
.phone-dental:hover{
    background-color: var(--bs-teal) !important;
}
.nav-link{
  position: relative;
  overflow: hidden;
}
.nav-link::before{
  content: '';
  position: absolute;
  bottom: 0;
  left: .5em;
  width: 0%;
  height: 1px;
  background-color: var(--bs-blue);
  transition: all .3s ease;
}
.nav-link:hover::before{
  width: 50%;
}
.dropdown-menu{
    background-color: #fff;
    box-shadow: 0 4px 8px color-mix(in srgb, var(--bs-teal) 30%, white 70%) !important;
}
.dropdown:hover > .dropdown-menu {
  display: block;
}
.dropdown-item:hover,
.dropdown-item:active {
    background-color: var(--bs-teal) !important;
    color: #fff !important;
}

header.sticky-top {
    transition: background-color 0.3s ease !important;
}

header.sticky-top.scrolled {
    background-color: #ffffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

header div .line {
    height: 20px !important;
    transition: 0.2s ease !important;
}

header.scrolled .line {
    height: 5px !important;
    bottom: -5px !important;
}

/* Footer */
.footer-decoration:before{
    content: '';
    position: absolute;
    top: -.3rem;
    left: 0;
    width: 25%;
    height: 100%;
    border-top: 3px solid #fff;
    border-left: 3px solid #fff;
}
.footer-btn{
    border: 2px solid #fff !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 8px color-mix(in srgb, var(--bs-teal) 30%, white 70%);
    transition: all .3s ease;
}
.footer-btn:hover{
    background-color: var(--bs-white); 
    color: var(--bs-teal) !important;
}
.title-footer:before{
    content: '';
    position: absolute;
    bottom: -25%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: color-mix(in srgb, var(--bs-white) 50%, transparent);
}

/* Home page */
.hero-img:before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--bs-teal) 0%, color-mix(in srgb, var(--bs-teal) 30%, transparent) 100%);
    pointer-events: none;
}
.hero-section {
    -webkit-clip-path: ellipse(100% 100% at 50% 0%);
    clip-path: ellipse(100% 100% at 50% 0%);
}
.title{
    font-size: 3.5rem !important;
}
.sub-title:before,
.sub-title-2:before,
.sub-title-3::before{
    content: '';
    position: absolute;
    bottom: -25%;
    width: 30%;
    height: 1px;
    background-color: var(--bs-blue);
}
.sub-title:before{
    left: 0;
}
.sub-title-2:before{
    left: 50%;
    transform: translateX(-50%);
}
.sub-title-3:before{
    right: 0;
}
.advantages{
    height: 15vh; 
    margin-bottom: 15vh; 
    background-color: color-mix(in srgb, var(--bs-white) 95%, black 5%);;
}
.team-photo .image{
    position: relative;
    height: 400px;
    width: 100%;
}
.team-photo .image img{
    position: relative;
    z-index: 0;
}
.team-photo .image:before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: linear-gradient(to top, color-mix(in srgb, var(--bs-teal) 80%, transparent) -20%, transparent 100%);
    pointer-events: none;
}
.team-photo p{
    z-index: 20 !important;
}
.reviews-carousel {
    transition: transform 0.6s ease;
}
.review-item {
    opacity: 1;
    transition: opacity 0.6s ease;
}
.review-item.next-preview {
    opacity: 0.5;
}

/* About-us */
.why-us {
    background-color: transparent;
    transition: all 0.3s ease;
}

.why-us img {
    transition: filter 0.3s ease;
}

.why-us:hover {
    background-color: color-mix(in srgb, var(--bs-blue) 80%, transparent);
    color: #fff;
}

.why-us:hover img {
    filter: brightness(0) invert(1);
}
.gallery-slider .my-slider img {
    width: 100%;
    height: 350px;
    padding: 0;
    object-fit: cover;    
    object-position: center;
    display: block;       
}

/* Services */
.services-section {
    display: flex;
    gap: 10px;
    overflow: hidden;
    flex-wrap: nowrap;
}
.services-section .item {
    width: 25%;
    /* flex: 1;  */
    min-width: 60px;
    height: 380px;
    background: no-repeat center center / cover;
    transition: all 0.4s ease-in-out;
    cursor: pointer;
    position: relative;
    display: flex;
}
.services-section .item.active {
    /* flex: 5; */
    width: 100%;
    box-shadow: 0 4px 8px color-mix(in srgb, var(--bs-teal) 30%, white 70%);
    flex-direction: column;
    justify-content: end;
}
.services-section .item:after {
    content: "";
    display: block;
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    background: linear-gradient(to top, var(--bs-teal) 0%, transparent 100%);
    pointer-events: none;
}
.services-section .item-desc {
    z-index: 1;
    transform: translateY(calc(100% - 40px));
    transition: all 0.4s ease-in-out;
}
.services-section .item.active .item-desc {
    transform: none;
}
.services-section .item-desc p {
    opacity: 0;
    transform: translateY(32px);
    transition: all 0.4s ease-in-out 0.2s;
}
.services-section .item.active .item-desc p {
    opacity: 1;
    transform: translateY(0);
}
.services-section h3 {
    margin: 0;
    transition: all 0.4s ease-in-out;
    z-index: 100;
}

.services-section .item:not(.active) h3 {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(180deg);
    white-space: nowrap;
    text-align: center;
}

.services-section .item.active h3 {
    writing-mode: horizontal-tb;
    transform: none;
    position: relative;
    left: 1rem;
}
.accordion-button::after {
  display: none;
}

.accordion-button .icon-circle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 2px solid color-mix(in srgb, var(--bs-teal) 70%, transparent); 
  border-radius: 50%;
  transition: border-color 0.3s ease;
}
.accordion-button .icon-circle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 6px;
  width: 14px;
  height: 2px;
  background-color: color-mix(in srgb, var(--bs-teal) 70%, transparent); 
  transform: translateY(-50%);
  transition: background-color 0.3s ease;
}

.accordion-button .icon-circle::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 2px;
  height: 14px;
  background-color: color-mix(in srgb, var(--bs-teal) 70%, transparent);
  transform: translateX(-50%) scaleY(1);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.accordion-button:not(.collapsed) .icon-circle {
  border-color: color-mix(in srgb, var(--bs-teal) 70%, transparent); 
}

.accordion-button:not(.collapsed) .icon-circle::before {
  background-color: color-mix(in srgb, var(--bs-teal) 70%, transparent); 
}

.accordion-button:not(.collapsed) .icon-circle::after {
  transform: translateX(-50%) scaleY(0);
}

/* SUPERDOCK SECTION START */
.pill-link {
    border: 2px solid var(--bs-white);
    font-weight: 500 !important;
    box-shadow: 0 4px 8px color-mix(in srgb, var(--bs-teal) 30%, white 70%);
    transition: all .3s ease;
    background-color: #eee;
    border-radius: 5px;
    padding: 0.7rem 1rem;
    text-decoration: none;
    display: block;
    color: #253e78;
}
.pill-link:hover {
    background-color: var(--bs-teal);
    border: 2px solid #eee;
    color: #fff !important;
}

.result-box {
    background-color: #253e78; 
    padding: 2rem 1rem;
    border-radius: 5px;
    width: 100%;
}
.result-text { margin-top: 0.5rem; }
.result-text small { color: var(--bs-white); font-size: 15px; }
.result-text span { font-weight: 600; color: var(--bs-white); font-size: 15px;}

.cal-head {
    margin: 2rem 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-btn {
    background-color: transparent;
    border-radius: 50%;
    border: 1px solid #253e78;
    cursor: pointer;
    color: #253e78;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
}
.nav-btn[disabled]{ opacity:.5; cursor:not-allowed; }
#prevBtn { left: 0; }
#nextBtn { right: 0; }

.day-head {
    text-align: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bs-white);
    color: #253e78;
}
.earliest .value { color: #0da1d5; }
.earliest .circle {
    background-color: #0da1d5;
    color: var(--bs-white);
    border-radius: 50%;
    width: 55px; height: 55px;
    display: flex; align-items: center; justify-content: center;
}

.earliest-flex {
    background-color: #eee; 
    padding: 1.5rem 1rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 220px;
    color: #253e78;
}
.nav-btn:hover { background-color: #253e78; color: #eee ; }

.slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
    min-height: 50px;
    border: 1px solid #0da1d5;
    border-radius: 20px;
    background-color: #fff;
}
.slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bs-white);
    border-radius: 12px;
    padding: 6px 12px;
    background-color: white;
    color: #253e78;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    width: 100%;
    height: 100%;
}
.slot:hover { background-color: #253e78; color: white; }

.day-empty {
    min-height: 180px;
}

.day-empty .the-day-empty {
    border: 1px solid #eee;
    border-radius: 20px;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg,  #eee, #eee 10px, #fff 10px,#fff 20px);
}

.slot.free {
    border-color: #0da1d5;
    color: #0da1d5;
    background: #fff;
}

.slot.free:hover {
    background-color: #0da1d5;
    color: #fff;
}

.slot.booked {
    border-color: #d6d6d6;
    color: #9aa0a6;
    background: #f6f7f9;
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: .8;
}

.slot.booked:hover {
    background: #f6f7f9;
    color: #9aa0a6;
}

/*more-about-doc team*/

.card-image img.zoom-image {
    transition: .2s linear !important;
}

.card-image:hover img.zoom-image {
    transform: scale(1.05) !important;
}

/*slider before-after*/

.image-container {
  max-width: 800px;
  max-height: 90vh;
  aspect-ratio: 2/1;
}

.slider-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left;
}

.image-before {
  position: absolute;
  inset: 0;
  width: var(--position);
  
}

.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  opacity: 0;
  width: 100%;
  height: 100%;
}

.slider-line {
  position: absolute;
  inset: 0;
  width: .2rem;
  height: 100%;
  background-color: #fff;
  left: var(--position);
  transform: translateX(-50%);
  pointer-events: none;
}

.slider-button {
  position: absolute;
  background-color: #fff;
  color: #253e78;
  padding: .5rem;
  border-radius: 100vw;
  display: grid;
  place-items: center;
  top: 50%;
  left: var(--position);
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 1px 1px 1px hsl(0, 50%, 2%, .5);
}

.btnFirstSlider,
.btnFirstSlider {
    color: white;
    background-color: #0da1d5; 
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 5px;
    text-decoration: none;
    border: 2px solid #0da1d5;

}

.btnFirstSlider:hover {
    color: #0da1d5 !important;
    border: 2px solid #0da1d5;
    background-color: white; 
    text-decoration: none;
    transition: all .3s ease;

}

.btnSecondSlider {
    color: #0da1d5;
    background-color: white;
    border: 2px solid #0da1d5;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all .3s ease;
}

.btnSecondSlider:hover {
    background-color: #0da1d5;
    color: white !important;
}

.slider-container p {
    color: #253e78;
}

/**/


@media (max-width: 740px){
    .earliest-flex .earliest .title{
        font-size: 50px !important;
    }
}

@media (max-width: 640px){
    .earliest-flex .earliest .title{
        font-size: 45px !important;
    }
}

@media (max-width: 540px) {
  .slots {
      gap: 2px;
  }
  .earliest-flex .earliest .title{
        font-size: 40px !important;
    }
}

@media (max-width: 510px){
    .earliest-flex .earliest .title{
        font-size: 35px !important;
    }
}

@media (max-width: 450px){
    .earliest-flex .earliest .title{
        font-size: 30px !important;
    }
}

@media (max-width: 350px){
    .earliest-flex .earliest .title{
        font-size: 25px !important;
    }
}

@media (max-width: 300px){
    .earliest-flex .earliest .title{
        font-size: 20px !important;
    }
}

/* SUPERDOCK SECTION END */

@media (max-width: 992px) {
    [style*="mask-image"] {
      height: 550px !important;
      object-fit: cover !important;
    }
}

@media (max-width: 768px) {
    [style*="mask-image"] {
      height: 500px !important;
    }
}

@media (max-width: 425px) {
    [style*="mask-image"] {
      height: 450px !important;
    }
}

@media (max-width: 375px) {
    [style*="mask-image"] {
      height: 360px !important;
    }
}

@media (max-width: 320px) {
    [style*="mask-image"] {
      height: 320px !important;
    }
}