body {
    font-family: 'Karla', sans-serif !important;
}

.section-heading {
    font-size: 48px !important;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    padding-bottom: 0;
    text-align: left;
}

.section-para {
    font-size: 16px;
    font-family: 'Karla', sans-serif;
    font-weight: 400;
}

/* --- Header Section Styling --- */
.header-section {
    color: #fff;
    text-align: left;
    position: relative;
}

.header-content {
    position: absolute;
    position: absolute;
    bottom: 41%;
    left: 8%;
}

.header-content h2 {
    font-size: 64px;
    color: #fff;
    font-weight: 600;
    font-family: 'Cormorant Garamond', serif;
}
.d-team-banner-img {
    width: 100%;
    height: auto;
}




/* styles.css */

/* --- General Styling and Typography --- */
.main-profile-wrapper {
    width: 80%;
    margin: 0 auto;
    padding: 3rem 0;
}


.details-column h1 {
    color: #1C355E;
    margin-bottom: 5px;
}


.item-title {
    font-size: 32px;
    font-weight: 400;
    margin-top: 30px;
    margin-bottom: 10px;
    color: #1C355E;
    font-family: 'Cormorant Garamond', serif;
}

/* --- 1. HEADER SECTION (Image and Top Details) --- */
.profile-header {
    display: flex;
    gap: 40px;
    /* Space between image and details */
    align-items: flex-start;
    padding: 0 0 40px;
}


.profile-photo {
    width: 100%;
    height: auto;
    border-radius: 5px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.title {
    color: #000;
    font-size: 20px;
    margin-bottom: 30px;
    font-family: 'Karla', sans-serif;
    font-weight: 600;
}

.image-column {
    width: 40%;
}

.details-column {
    width: 60%;
}

.m-team-banner-img {
    display: none;
    width: 100%;
}

.m-profile-photo {
    display: none;
    width: 100%;
}

.detail-group {
    margin-bottom: 25px;
}

.label {
    font-size: 16px;
    color: #238DC1;
    font-weight: 400;
    text-transform: capitalize;
    margin-bottom: 2px;
    font-family: 'Karla', sans-serif;
}

.value {
    font-size: 18px;
    color: #000;
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    font-family: 'Karla', sans-serif;
}

/* Tag Styles */
.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 40px;
}

.tag {
    background-color: #fff;
    color: #000;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid #238DC1;
    font-family: 'Karla', sans-serif;
}

/* --- 2. MEMBERSHIPS SECTION --- */
.memberships-section {
    padding-bottom: 20px;
}

.memberships-section h2 {
    margin-bottom: 30px;
    color: #1C355E;
    text-align: center;
}

.membership-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.membership-card {
    border: 1px solid #238DC1;
    padding: 15px;
    text-align: center;
    font-size: 18px;
    color: #000;
    display: flex;
    font-weight: 600;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: calc((100% - 0px) / 4);
    font-family: 'Karla', sans-serif;
}

.details_doctor h3
 {
    text-align: center;
    font-size: 18px;
    margin: 20px 0;
    color: #000;
    font-weight: 600;
    font-family: 'Karla', sans-serif;

}
.membership-card p{
    margin-bottom: 0;
}
.details_doctor p{
    display: block;
    margin: 20px auto;
    padding: 5px 20px;
    color: #1C355E;
    border: none;
    font-size: 16px;
    background-color: transparent;
    border-bottom: 1px solid #1C355E;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    max-width: 300px;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
}



/* --- 3. ABOUT SECTION --- */
.about-section {
    padding-top: 20px;
}

.section-title {
    color: #1C355E;
    text-align: center;
}

.about-item p {
    margin-bottom: 10px;
    color: #000;
}

/* --- 📱 RESPONSIVENESS (Media Queries) --- */
        @media screen and (min-width: 1600px) and (max-width: 1920px) {
        .header-content{
            left: 12%;
        }
    }
    @media screen and (min-width: 992px) and (max-width: 1024px) {
        .header-content{
            left: 5%;
        }
        .section-heading{
            font-size: 40px !important;
        }
    }

/* Tablet and Mobile (Screens smaller than 768px) */
@media (max-width: 768px) {

    /* Header: Stack image and details columns */
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .header-content {
        bottom: 5%;
        left: 7%;
    }

    .header-content h2{
        font-size: 50px;
    }
    .item-title{
        font-size: 28px;
    }

    .m-team-banner-img {
        display: block;
    }

    .m-profile-photo {
        display: block;
    }

    .d-team-banner-img {
        display: none;
    }

    .d-profile-photo {
        display: none;
    }

    .image-column {
        width: 100%;
        /* Full width container for image on small screens */
    }


    .details-column {
        width: 100%;
    }

    .detail-group {
        text-align: center;
    }

    .label {
        /* Center labels for better look on small screens */
        text-align: center;
    }

    .value {
        text-align: center;
    }

    /* Tags: Center the tags */
    .tag-group {
        justify-content: center;
        margin-top: 15px;
    }

    .tag {
        font-size: 13px;
        padding: 5px 10px;
    }

    /* Memberships: Cards to stack or wrap better */
    .membership-cards {
        flex-direction: column;
        align-items: center;
    }

    .membership-card {
        width: 90%;
        /* Take up most of the screen width */
        height: auto;
    }

    /* About Section */
    .about-item {
        padding: 0 10px;
    }

    h2 {
        font-size: 22px;
    }

    .main-profile-wrapper {
        padding: 0;
        width: 100%;
    }
    .details-column h1{
        text-align: center;
    }
        .section-heading {
        font-size: 32px !important;
    }
}

/* Further Mobile Optimization (Screens smaller than 480px) */
@media (max-width: 480px) {
    .profile-page {
        padding: 10px;
    }

    h1 {
        font-size: 28px;
    }

    .title {
        font-size: 14px;
    }

    .tag-group {
        gap: 12px;
    }


    .main-profile-wrapper {
        padding: 0;
    }

    .section-heading {
        font-size: 32px !important;
    }
}