

/* FIX: Prevent horizontal scrollbar */
body {
    overflow-x: hidden; /* This is the key fix for horizontal scrolling */
}

/* General Section Styling (if not already global) */
.section-heading {
    text-align: center;
    font-size: 38px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

/* --- Hero Section --- */
.hero-sec{
    padding: 80px 0px; /* Adjusted padding */
    background: url('../assets/bg-image.png'); /* Ensure this path is correct */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center; /* Center the background image */
    color: var(--white);
    position: relative; /* For text overlay if needed */
    z-index: 1; /* Ensure text is above background */
    overflow: hidden; /* Prevent text from causing overflow if it's too wide */
}

.hero-sec h1 {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color:#f4ad3b;
}

.hero-sec p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
    color:var(--white);
}
.card-body{
    background-color: #fff;
}

/* --- All Doctors Section --- */
.all-doctors-sec {
    padding: 60px 0px; /* Consistent padding */
    background-color: #f8f9fa; /* Light background for this section */
}

/* Styles for individual doctor cards */
.profile-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: #f0f8ff; /* Light blue background */
    color: var(--theme); /* Theme color for icon */
    font-size: 2.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.doctor-card {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--white);
    border: none;
    overflow: hidden; /* Ensure content within card doesn't overflow */
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.doctor-card .card-top {
    background: linear-gradient(135deg, var(--theme), #795548); /* Gradient for top part */
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 25px 0 !important;
}

.card-title {
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    font-size: 20px;
}

.specialization {
    color: var(--theme);
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 16px;
}

.qualification {
    color: #777;
    font-size: 0.9rem;
}

/* Removed old specific doctor styles that are replaced by new card structure */
/* .all-doctors-sec .doctors .card { ... } */
/* .all-doctors-sec .doctors .card:hover { ... } */
/* .all-doctors-sec .doctors .doctor-info { ... } */
/* .all-doctors-sec .doctors .doctor-image img { ... } */
/* .all-doctors-sec .doctors .doctor-info .doctorname { ... } */
/* .all-doctors-sec .doctors .doctor-info .expereince { ... } */


/* --- Responsiveness --- */
@media screen and (max-width:1199px) {
    .hero-sec h1 {
        font-size: 38px;
    }
    .hero-sec p {
        font-size: 17px;
    }
}

@media screen and (max-width:991px) {
    .hero-sec {
        padding: 60px 0;
    }
    .hero-sec h1 {
        font-size: 34px;
    }
    .hero-sec p {
        font-size: 16px;
    }
    .all-doctors-sec {
        padding: 40px 0;
    }
}

@media screen and (max-width:767px) {
    .hero-sec {
        text-align: center; /* Center align text on smaller screens */
    }
    .hero-sec h1 {
        font-size: 30px;
        margin-bottom: 15px;
    }
    .hero-sec p {
        font-size: 15px;
    }
    .profile-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    .card-title {
        font-size: 18px;
    }
    .specialization {
        font-size: 15px;
    }
}

@media screen and (max-width:575px) {
    .hero-sec {
        padding: 40px 0;
    }
    .hero-sec h1 {
        font-size: 26px;
    }
    .hero-sec p {
        font-size: 14px;
    }
    .all-doctors-sec {
        padding: 30px 0;
    }
    .profile-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    .card-title {
        font-size: 17px;
    }
    .specialization {
        font-size: 14px;
    }
    .qualification {
        font-size: 0.85rem;
    }
}