/********** Template CSS **********/
:root {
    --primary: #13C5DD;
    --secondary: #354F8E;
    --light: #EFF5F9;
    --dark: #1D2A4D;
}

.btn {
    font-weight: 700;
    transition: .5s;
}

.btn:hover {
    -webkit-box-shadow: 0 8px 6px -6px #555555;
    -moz-box-shadow: 0 8px 6px -6px #555555;
    box-shadow: 0 8px 6px -6px #555555;
}

.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 0;
    border-radius: 50% 50% 0 0;
    z-index: 99;
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    position: relative;
    margin-left: 30px;
    padding: 30px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        bottom: 0;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

.hero-header {
    background: url(../img/hero.png) top right no-repeat;
    background-size: cover;
}

.service-item {
    position: relative;
    height: 350px;
    padding: 0 30px;
    transition: .5s;
}

.service-item .service-icon {
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    transform: rotate(-14deg);
}

.service-item .service-icon i {
    transform: rotate(15deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}

.price-carousel::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    bottom: 0;
    left: 0;
    background: var(--primary);
    border-radius: 8px 8px 50% 50%;
    z-index: -1;
}

.price-carousel .owl-nav {
    margin-top: 35px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
}

.price-carousel .owl-nav .owl-prev,
.price-carousel .owl-nav .owl-next{
    position: relative;
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    font-size: 22px;
    border-radius: 45px;
    transition: .5s;
}

.price-carousel .owl-nav .owl-prev:hover,
.price-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

@media (min-width: 576px) {
    .team-item .row {
        height: 350px;
    }
}

.team-carousel .owl-nav {
    position: absolute;
    padding: 0 45px;
    width: 100%;
    height: 45px;
    top: calc(50% - 22.5px);
    left: 0;
    display: flex;
    justify-content: space-between;
}

.team-carousel .owl-nav .owl-prev,
.team-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: 22px;
    transition: .5s;
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}

.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 40px;
    height: 40px;
    background: var(--primary);
}

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
}

.department-section {
    margin-bottom: 60px;
}

.department-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 25px;
    position: relative;
}

.department-title::after {
    content: "";
    width: 80px;
    height: 4px;
    background: var(--primary);
    display: block;
    margin-top: 8px;
}

/* ================= Doctor Card ================= */
.doctor-card {
    display: flex;
    background: #f8fbfd;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: 0.3s ease;
}

/* Hover effect (only for available doctors) */
.doctor-card:not(.unavailable):hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

/* Optional image (if used) */
.doctor-card img {
    width: 40%;
    object-fit: cover;
}

/* ================= No Image Mode ================= */
.doctor-card.no-image {
    padding: 25px;
}

/* ================= Doctor Info ================= */
.doctor-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.doctor-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.doctor-info span {
    color: var(--primary);
    font-size: 14px;
    font-style: italic;
    margin-bottom: 8px;
}

.doctor-info p {
    font-size: 14px;
    margin-top: 8px;
    color: #555;
    flex-grow: 1; /* pushes button to bottom */
}

/* ================= Appointment Button ================= */
.appointment-btn {
    width: 180px;          /* fixed size */
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    padding: 0;
    white-space: nowrap;
}

/* ================= Disabled Button ================= */
.disabled-btn {
    background: #cfd8dc !important;
    color: #666 !important;
    border: none;
    cursor: not-allowed;
}

/* ================= Unavailable Doctor Card ================= */
.doctor-card.unavailable {
    opacity: 0.7;
}

/* ================= Social Icons (if needed) ================= */
.social a {
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 6px;
}

/* === FORCE FULL WIDTH FOOTER & NAVBAR === */
footer,
footer .container,
footer .container-fluid,
footer .row,
.container-fluid.bg-dark,
.container-fluid.bg-white {
    max-width: 100% !important;
    width: 100% !important;
}

/* ===== FIX FEATURED DOCTOR SLIDER ===== */
.team-carousel .team-item {
    padding: 15px;
}

.team-carousel .bg-light {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.team-carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    pointer-events: none;
}

.team-carousel .owl-nav button {
    position: absolute;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #13C5DD !important;
    color: #fff !important;
    pointer-events: all;
}

.team-carousel .owl-nav .owl-prev {
    left: -60px;
}

.team-carousel .owl-nav .owl-next {
    right: -60px;
}

@media (max-width: 991px) {
    .team-carousel .owl-nav {
        display: none;
    }
}

