@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

/* Define the fade-in animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
        /* Start slightly below */
    }

    to {
        opacity: 1;
        transform: translateY(0);
        /* End at the original position */
    }
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background-color: white;
    animation: fadeUp 1.5s ease-in-out;

}

.hero {
    position: relative;
    height: 90vh;
    /* Adjust as needed */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('../images/doctors_page/doc_page_hero_bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-text {
    position: absolute;
    font-size: 4rem;
    font-weight: bold;
    z-index: 1;
    margin: 0 10px;
}

@media screen and (max-width: 590px) {
    .hero-text {
        font-size: 3.5rem;
    }
}

@media screen and (max-width: 430px) {
    .hero-text {
        font-size: 3rem;
        padding: 20px;
    }
}

@media screen and (max-width:340px) {
    .hero-text {
        font-size: 2.5rem;
        /* padding: 20px; */
    }
}

/* General styles for doctors section */
.doctors {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    /* min-height: 80vh; */
    margin: 100px 0;
    /* padding-bottom: 20px; */
    text-align: center;
}

.doctors-head {
    font-size: 3rem;
    color: #061d3c;
    margin-bottom: 10px;
    text-align: center;
    font-weight: bolder;
    padding: 0 10px;

}

.doctors-subhead {
    font-size: 1rem;
    color: #000000;
    margin-bottom: 40px;
    text-align: center;
    max-width: 600px;
    padding: 0 20px 0 20px;
}

@media (max-width: 960px) {
    .doctors-head {
        font-size: 2.7rem;
    }
}

@media (max-width: 480px) {
    .doctors-subhead {
        font-size: 0.9rem;
    }

    .doctors-head {
        font-size: 2.2rem;
    }
}

/* Grid Layout for Doctor Cards */
.doctors-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Doctor Card Styling */
/* Ensure the doctor-card is positioned relative */
.doctor-card {
    position: relative;
    /* This allows child elements to use absolute positioning */
    display: flex;
    flex-direction: column;
    /* Keeps the main structure intact */
    justify-content: flex-end;
    /* Push content to the bottom */
    align-items: center;
    text-align: center;
    width: 300px;
    height: 300px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 20px auto;
    transition: transform 0.3s ease;
}

.doctor-card:hover {
    transform: translateY(-10px);
}

/* Background Images for Doctor Cards */
.doctor-card#doc1 {
    background: url('../images/doctors_page/a.jpg') center / cover no-repeat;
}

.doctor-card#doc2 {
    background: url('../images/doctors_page/b.jpg') center / cover no-repeat;
}

.doctor-card#doc3 {
    background: url('../images/doctors_page/b.jpg') center / cover no-repeat;
}

.doctor-card#doc4 {
    background: url('../images/doctors_page/d.jpg') center / cover no-repeat;
}

.doctor-card#doc5 {
    background: url('../images/doctors_page/h.jpg') center / cover no-repeat;
}

.doctor-card#doc6 {
    background: url('../images/doctors_page/j.jpg') center / cover no-repeat;
}

.doctor-card#doc7 {
    background: url('../images/doctors_page/n.jpg') center / cover no-repeat;
}

.doctor-card#doc8 {
    background: url('../images/doctors_page/p.jpg') center / cover no-repeat;
}

.doctor-card#doc9 {
    background: url('../images/doctors_page/k.jpg') center / cover no-repeat;
}

/* Content Overlay for Visibility */
.doctor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

/* Social Media Icons */
.social-menu {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 1;
}

.social-icon {
    color: #fff;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #007bff;
}

/* Doctor Details */
.doctor-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    z-index: 1;
    margin-top: 50px;
}

/* Stick detail-menu to the bottom */
.detail-menu {
    position: absolute;
    /* Allows the element to stick to the bottom */
    bottom: 0;
    /* Align to the bottom of the card */
    left: 0;
    /* Align to the left of the card */
    width: 100%;
    /* Span the full width of the card */
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    /* White text for contrast */
    padding: 10px;
    /* Add spacing inside the menu */
    text-align: center;
    /* Center-align the text */
    box-sizing: border-box;
    /* Ensure padding is included in the width */
}

/* Styling for text inside the detail menu */
.detail-menu p {
    margin: 5px 0;
    /* Add some spacing between text lines */
    font-size: 1rem;
    color: #fff;
}

.detail-menu p:first-of-type {
    font-weight: bold;
    /* Make the doctor's name stand out */
}

/* Responsive Design */
@media (max-width: 1080px) {
    .doctors-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .doctor-card {
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    .doctors-content {
        grid-template-columns: repeat(1, 1fr);
    }
}