/* ====================================================
   SECTION: MEET OUR TEAM (STYLE-4 / ALL STYLES)
   ==================================================== */

.module-team.style-4,
.module-team.style-1,
.module-team {
    position: relative;
    padding: 100px 0 110px 0;
    width: 100%;
    overflow: hidden;
    margin: 0;
    float: none;
}

/* Background Watermark Eye Logo (logo_teambg.png) */
.module-team > .col-xs-12:first-child {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 740px;
    max-width: 90%;
    z-index: 1;
    pointer-events: none;
    padding: 0;
    margin: 0;
    float: none;
    opacity: 0.6;
    display: block !important;
}

.module-team > .col-xs-12:first-child img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

@media (min-width: 1440px) {
    .module-team .ry-container {
        max-width: 1360px;
        margin: 0 auto;
        padding: 0 30px;
        width: 100%;
        float: none;
        box-sizing: border-box;
    }
}

.module-team .ry-container {
    position: relative;
    z-index: 2;
    width: 100%;
    float: none;
}

.module-team .ry-content,
.module-team .content {
    padding: 0;
    margin: 0;
    width: 100%;
    float: none;
    text-align: center;
}

/* --- Section Subtitle (Eyebrow) --- */
.module-team .ry-text {
    display: block !important;
    margin: 0 0 12px 0;
    padding: 0;
    text-align: center;
}

.module-team .ry-text .span-1 {
    display: block !important;
    font-family: var(--font-heading, sans-serif);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-eyebrow, #496879);
    line-height: 1.2;
}

/* --- Section Heading --- */
.module-team .section-headline {
    display: block !important;
    margin: 0 0 55px 0;
    padding: 0;
    text-align: center;
}

.module-team .section-headline h2 {
    display: block !important;
    font-family: var(--font-heading, sans-serif);
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-heading, #304C5B);
    margin: 0;
    padding: 0;
    text-transform: none;
}

/* --- Team Members Grid --- */
.module-team .ry-flex {
    display: flex !important;
    justify-content: center;
    align-items: flex-start;
    gap: 65px;
    flex-wrap: wrap;
    margin: 0 auto 60px auto;
    padding: 0;
    width: 100%;
    float: none;
}

.module-team .ry-each {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: auto;
    max-width: 250px;
    flex: 0 1 240px;
    padding: 0;
    margin: 0;
    float: none;
    position: relative;
}

/* Photo Wrapper */
.module-team .photo {
    display: block !important;
    position: relative !important;
    width: 240px;
    height: auto;
    max-width: 100%;
    margin: 0 auto 20px auto;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    float: none !important;
}

.module-team .photo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    transition: transform 0.3s ease;
}

.module-team .ry-each:hover .photo img {
    transform: translateY(-4px);
}

/* Member Name & Title (Switched Colors) */
.module-team .each-name {
    display: block !important;
    margin: 0;
    padding: 0;
    text-align: center;
    width: 100%;
}

.module-team .each-name h4 {
    display: block !important;
    font-family: var(--font-heading, sans-serif);
    font-size: 20px;
    font-weight: 700;
    color:  var(--text-heading, #304C5B) ; /* Slate Blue */
    margin: 0 0 6px 0;
    line-height: 1.25;
}

.module-team .each-name h5 {
    display: block !important;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color:  var(--text-eyebrow, #496879);; /* Dark Navy */
    margin: 0;
    line-height: 1.3;
}

/* --- Action Button --- */
.module-team .content > .col-xs-12:last-child {
    display: flex !important;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 0;
    margin: 0;
    float: none;
}

.module-team .content > .col-xs-12:last-child > div {
    display: inline-flex !important;
    justify-content: center;
}



/* ====================================================
   RESPONSIVE MEDIA QUERIES
   ==================================================== */

@media (max-width: 1199px) {
    .module-team .section-headline h2 {
        font-size: 44px;
    }
    .module-team .ry-flex {
        gap: 35px;
    }
}

@media (max-width: 991px) {
    .module-team {
        padding: 80px 0;
    }
    .module-team > .col-xs-12:first-child {
        width: 90%;
        opacity: 0.12;
    }
    .module-team .section-headline {
        margin-bottom: 40px;
    }
    .module-team .ry-flex {
        gap: 35px;
        margin-bottom: 45px;
    }
	
	.module-team .ry-each {
		flex: unset;
	}
}

@media (max-width: 600px) {
    .module-team .ry-flex {
        flex-direction: column;
        align-items: center;
        gap: 35px;
    }
    .module-team .ry-btn {
        width: 100%;
        min-width: 100%;
    }
}

.module-team .doctors-container{
	display:flex;
}