/* Full-screen overlay gradient */
.overlay-gradient {
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.6) 100%);
    top:0; left:0; width:100%; height:100%; z-index:1;
}

/* Hero slides */
.hero-slide {
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 0;
}
.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Hero text animation */
.hero-text-container .hero-text {
    display: inline-block;
    transform: translateX(100%);
    opacity: 0;
    transition: all 1s ease;
}

.hero-text-container .hero-text.active {
    transform: translateX(0);
    opacity: 1;
}

/* Buttons */
.hero-buttons .btn {
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-text-container .hero-text h1 { font-size: 2rem; }
    .hero-text-container .hero-text p { font-size: 1rem; }
    .hero-buttons .btn { margin-bottom: 0.5rem; }
}

.card-service {
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.3s, box-shadow 0.3s, border-top 0.3s;
    border-top: 4px solid transparent;
}
.card-service:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    border-top: 4px solid #0d6efd; /* accent color */
}
.card-service i {
    transition: transform 0.3s, color 0.3s;
}
.card-service:hover i {
    transform: scale(1.2);
    color: #0d6efd; /* accent color */
}

/* Animation on scroll */
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.card-doctor {
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card-doctor:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
.card-doctor img {
    transition: transform 0.3s;
}
.card-doctor:hover img {
    transform: scale(1.05);
}

/* Animation keyframes (same as services) */
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.card-testimonial {
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card-testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Animation keyframes */
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.accordion-button {
    border-radius: 0.5rem;
    transition: background-color 0.3s, color 0.3s;
}
.accordion-button:not(.collapsed) {
    background-color: #0d6efd; /* Bootstrap primary color */
    color: #fff;
    font-weight: 600;
}
.accordion-button:hover {
    background-color: #0b5ed7;
    color: #fff;
}
.accordion-body {
    background-color: #f8f9fa;
    border-radius: 0 0 0.5rem 0.5rem;
}
.accordion-item {
    transition: transform 0.3s, box-shadow 0.3s;
}
.accordion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#appointment {
    background: linear-gradient(135deg, #f5f7fa, #e4ecf7);
}

#appointment .card {
    transition: 0.3s ease;
}

#appointment .card:hover {
    transform: translateY(-5px);
}

#appointment .btn-primary {
    background: #0d6efd;
    border: none;
    transition: 0.3s;
}

#appointment .btn-primary:hover {
    background: #0b5ed7;
}

#appointment textarea {
    resize: none;
}

#testimonials {
    background: linear-gradient(135deg, #f8f9fa, #eef3f8);
}

#testimonials .card {
    transition: 0.3s;
}

#testimonials .card:hover {
    transform: translateY(-5px);
}

.custom-carousel-btn {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(13, 110, 253, 0.9);
    border-radius: 50%;
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: 0.3s ease;
    opacity: 0.9;
}

.custom-carousel-btn:hover {
    background: #0d6efd;
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.btn-icon {
    font-size: 26px;
    color: #fff;
    font-weight: bold;
    line-height: 1;
}

/* position adjustment */
.carousel-control-prev {
    left: -20px;
}

.carousel-control-next {
    right: -20px;
}

/* hide default bootstrap icon */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: none;
}

.doctor-row {
    height: 100%;
}

.doctor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px; /* optional (soft corners) */
}


.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input { display: none; }

.slider {
    position: absolute;
    cursor: pointer;
    background: #ccc;
    border-radius: 20px;
    width: 100%;
    height: 100%;
}

.slider:before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 2px;
    top: 2px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

input:checked + .slider {
    background: #0d6efd;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

  .sbsweb-services{
    background: #f8f9fa;
}

/* CARD */
.sbsweb-card{
    border-radius: 14px;
    background: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 15px;
}

.sbsweb-card:hover{
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* 🔥 CIRCULAR IMAGE (FINAL VERSION) */
.sbsweb-img-circle{
    width: 70px;
    height: 70px;
    margin: 10px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #0d6efd;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* IMAGE FIT */
.sbsweb-img-circle img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CONTENT */
.sbsweb-body{
    padding: 10px 5px;
}

.sbsweb-body h5{
    font-size: 16px;
    margin-bottom: 6px;
}

.sbsweb-body p{
    font-size: 13px;
    line-height: 1.4;
    color: #6c757d;
}

/* BUTTON */
.sbsweb-btn-more{
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    transition: 0.2s ease;
}

.sbsweb-btn-more:hover{
    transform: scale(1.05);
}

/* RESPONSIVE */
@media (max-width: 576px){
    .sbsweb-img-circle{
        width: 60px;
        height: 60px;
    }
}

.sbsweb-services h4{
    margin-top: 10px;
}

.sbsweb-services .btn-outline-primary{
    border-radius: 30px;
    padding: 10px 25px;
    transition: 0.2s ease;
}

.sbsweb-services .btn-outline-primary:hover{
    transform: translateY(-2px);
}


