
.section-title1 {
    font-weight: 600;
    margin-bottom: 0px;
}

/* FIXED: Specialty card styles with consistent height */
.specialty-card {
    margin-right: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
/*    margin-left: 3px;*/
    width: 260px;
    flex: 0 0 auto;
    background: #fff;
    overflow: hidden;
}

.specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.specialty-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.specialty-card h4 {
    font-weight: 600;
    font-size: 18px;
    margin: 15px 15px 5px;
    color: #333;
    text-align: left;
}

.specialty-card p {
    font-size: 14px;
    color: #666;
    margin: 0 15px 20px;
    text-align: left;
}

.specialty-icon {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

    .specialty-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
        object-position: 0px -10px;
    }

.appointment-section {
    background-color: var(--secondary-color);
    padding: 7px;
}

.appointment-section1 .section-title1:after {
    background-color: white;
}

/*.header-text {
    flex: 1;
    min-width: 300px;
}*/

/* Scrollable specialty section */
.specialty-scroll-container {
    position: relative;
    margin: 0 auto;
}

.specialty-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap;
}

.specialty-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

    .scroll-button:hover {
        background-color: var(--bs-blue);
        color: white;
    }

.scroll-button.prev {
    left: -25px;
}

.scroll-button.next {
    right: -25px;
}

.scroll-button i {
    font-size: 20px;
}

@media (max-width: 768px) {
    .specialty-card {
        width: calc(50% - 15px);
        height: 260px;
    }

    .specialty-card h4 {
        min-height: 15px;
        font-size: 16px;
    }

    .specialty-card p {
        min-height: 56px;
        font-size: 13px;
    }

    .scroll-button {
        width: 40px;
        height: 40px;
    }

    .scroll-button.prev {
        left: -15px;
    }

    .scroll-button.next {
        right: -15px;
    }
}

@media (max-width: 576px) {
    .specialty-card {
        width: calc(100% - 100px);
        height: 270px;
    }

    .specialty-card h4 {
        min-height: 25px;
        font-size: 15px;
    }

    .specialty-card p {
        min-height: 52px;
        font-size: 12px;
    }
}
        