/* Team Section */
.team-section {
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

/* Team Section Enhancements */

/* Lead Doctor Card Styling - match home page */
.lead-doctor-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid rgba(3, 152, 158, 0.1);
    height: 100%;
    min-height: 500px;
    margin-bottom: 30px;
}

.lead-doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.lead-doctor-card .member-image-wrapper {
    border-radius: 10px;
    overflow: visible; /* Changed from hidden to visible to prevent cutting */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 320px; /* Consistent height */
}

.lead-doctor-card .member-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensure full image is visible without cropping */
    object-position: center; /* Center the image */
    display: block;
}

.lead-physician-title {
    color: #03989e;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.specializations-title {
    color: #1a365d;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Regular Doctor Cards */
.team-member-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    position: relative !important;
    transition: all 0.4s ease !important;
    border: 1px solid rgba(3, 152, 158, 0.1) !important;
    height: 100% !important;
    min-height: 500px !important;
    margin-bottom: 30px !important;
}

.team-member-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15) !important;
}

.team-member-card .member-image-wrapper {
    height: 300px; /* Match home page height */
    overflow: visible; /* Changed from hidden to visible to prevent cutting */
    background: transparent; /* Match home page background */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 20px 0 30px 0;
    position: relative;
}

.team-member-card .member-image {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    object-position: center;
    display: block;
    margin: 0 auto;
    background: transparent;
    transition: none;
}

.team-member-card .member-info {
    flex: 0 0 55%;
    padding: 20px 40px 30px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    margin-top: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    align-self: flex-start;
    width: 100%;
}

.team-member-card .member-name {
    color: #1a365d;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.team-member-card .member-title {
    color: #03989e;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Doctor Specializations Styling */
.doctor-specializations {
    font-weight: normal;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
}

.doctor-specializations ul {
    padding-left: 0;
    margin-bottom: 0;
}

.doctor-specializations li {
    margin-bottom: 0.3rem;
    list-style: none;
}

.doctor-specializations li:last-child {
    margin-bottom: 0;
}

.specialization-item {
    display: inline-block;
    background: rgba(3, 152, 158, 0.1);
    color: #03989e;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 0.2rem;
    font-weight: 500;
}

.specializations-list {
    list-style-type: disc;
    padding-left: 1.2rem;
    margin: 0.5rem 0;
}

.specializations-list li {
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: #03989e; /* Primary color */
}

.specializations-list li:last-child {
    margin-bottom: 0;
}

/* Medical Assistants Section */
.section-title {
    color: #1a365d;
    font-weight: 700;
    margin-bottom: 1rem;
}

.team-member-card .member-title ul {
    padding-left: 0;
    margin-bottom: 0;
}

.team-member-card .member-title li {
    list-style: none;
    margin-bottom: 0.2rem;
}

.team-member-card .member-title li:last-child {
    margin-bottom: 0;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .lead-doctor-card {
        padding: 1.5rem;
    }
    
    .lead-doctor-card .member-info {
        padding: 1rem 0 0 0;
    }
    
    .team-member-card .member-image-wrapper {
        height: 300px; /* Match home page height */
    }
}

@media (max-width: 767.98px) {
    .lead-doctor-card {
        padding: 1.2rem;
    }
    
    .lead-doctor-card .member-image-wrapper {
        margin-bottom: 1.5rem;
        height: 300px; /* Match home page height */
    }
    
    .team-member-card .member-image-wrapper {
        height: 300px; /* Match home page height */
    }
}

@media (max-width: 575.98px) {
    .lead-doctor-card .member-image-wrapper {
        height: 300px; /* Match home page height */
    }
    
    .team-member-card .member-image-wrapper {
        height: 300px; /* Match home page height */
    }
}

/* Team Section Spacing */
.team-section {
    padding: 80px 0;
}

.team-section .section-title {
    position: relative;
    padding-bottom: 1rem;
}

.team-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #03989e;
    border-radius: 3px;
}

/* Team Member Card Animation */
.animate-slide-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-slide-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Team About Section - Enhanced */
.team-about-section {
    background-color: #f0f8ff; /* Light, dignified blue background */
    padding: 80px 0; /* Increased padding to make section bigger */
    margin: 60px 0; /* Increased margin */
    border-radius: 15px; /* Slightly more rounded corners */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05); /* Subtle shadow for depth */
    border: 1px solid rgba(3, 152, 158, 0.1); /* Light border for definition */
}

.team-about-section .container {
    max-width: 100%; /* Full width container */
    padding: 0 30px; /* Add horizontal padding */
}

.team-about-image {
    text-align: center;
    padding: 20px;
}

.team-about-image img {
    max-width: 90%; /* Increased image size */
    height: auto;
    border-radius: 15px; /* Match section rounding */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Enhanced shadow */
    object-fit: cover;
    vertical-align: top;
    margin: 0 auto;
    display: block;
    transition: all 0.3s ease;
    border: 5px solid #fff; /* White border for better separation */
}

.team-about-image img:hover {
    transform: scale(1.02); /* Slight zoom on hover */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.team-section-image {
    max-width: 70% !important; /* Larger image */
    height: auto;
    margin: 0 auto;
}

.team-about-content p {
    font-size: 1.1rem; /* Reduced font size for compact design */
    line-height: 1.7; /* Slightly reduced line height */
    margin-bottom: 15px; /* Reduced margin */
    color: var(--dark-text);
    margin-top: 0;
}

.team-about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 30px; /* Increased padding for better spacing */
}

.team-about-points {
    list-style: none;
    padding: 0;
    margin: 30px 0; /* Increased spacing for better design */
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px; /* Increased gap between points */
}

.team-about-points li {
    margin-bottom: 0;
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease;
    padding: 15px 20px; /* Increased padding for better spacing */
    border-radius: 8px; /* More rounded corners */
    background: rgba(255, 255, 255, 0.8); /* Lighter background for each point */
    border: 1px solid rgba(3, 152, 158, 0.1); /* More visible border */
}

.team-about-points li:hover {
    background-color: rgba(220, 53, 69, 0.1);
    transform: translateX(8px); /* More pronounced movement */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.team-about-points li i {
    color: #dc3545; /* Red color for icons as per specification */
    margin-right: 10px; /* Reduced spacing */
    margin-top: 3px;
    font-size: 1.1rem; /* Smaller icon size for compact design */
    transition: all 0.3s ease;
}

.team-about-points li:hover i {
    transform: scale(1.2);
}

.team-section .section-title {
    color: var(--secondary-color);
    margin-bottom: 15px; /* Reduced margin for compact design */
    position: relative;
    font-weight: 700;
    font-size: 2.2rem; /* Slightly smaller title */
}

.team-section .section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px; /* Wider underline */
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--dark-text);
    font-size: 1.1rem; /* Reduced subtitle size */
    max-width: 800px;
    margin: 0 auto 20px; /* Reduced margin */
    opacity: 0.9;
    line-height: 1.6;
}

/* Team Member Cards - Unified Design */
.team-member-card, .assistant-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
    text-align: center;
    border: none;
    position: relative;
    display: flex;
    flex-direction: row; /* Default row direction for desktop */
    transform-style: preserve-3d;
    perspective: 1000px;
    background-clip: padding-box; /* Ensure proper background clipping */
}

/* Override new-design.css hover transform effect */
.team-member-card:hover,
.assistant-card:hover {
    transform: translateY(-10px) translateZ(20px) rotateX(5deg) !important; /* Keep the original 3D effect but prevent additional zooming */
}

.team-member-card.lead-doctor {
    box-shadow: 0 15px 40px rgba(220, 53, 69, 0.15);
}

.team-member-card.lead-doctor:hover {
    box-shadow: 0 20px 50px rgba(220, 53, 69, 0.25);
}

.member-image-wrapper, .assistant-image-wrapper {
    position: relative;
    overflow: visible; /* Changed from hidden to visible to prevent cutting */
    height: 320px; /* Increased from 280px to 320px */
    background: transparent; /* Removed gradient background to prevent patch effect */
}

.member-image, .assistant-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain to show full image */
    object-position: center; /* Center the image */
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
    transform: scale(1); /* Removed scaling to prevent cutting */
    max-height: 100%; /* Ensure image doesn't exceed container */
    max-width: 100%; /* Ensure image doesn't exceed container */
}

.member-info, .assistant-info {
    padding: 25px 20px; /* Increased padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: white;
    align-items: center;
    text-align: center;
}

.member-name, .assistant-name {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.4rem; /* Larger font size */
    margin: 0 0 12px 0; /* Increased margin */
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.team-member-card:hover .member-name, .assistant-card:hover .assistant-name {
    color: var(--primary-color);
}

.member-title, .assistant-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem; /* Larger font size */
    margin: 0 0 15px 0; /* Increased margin */
    min-height: 60px; /* Increased minimum height */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.member-title ul, .assistant-title ul {
    text-align: left;
    margin: 15px 0 0 0; /* Increased margin */
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.member-title li, .assistant-title li {
    margin-bottom: 10px; /* Increased margin */
    display: flex;
    align-items: flex-start;
    width: 100%;
    text-align: left;
}

.member-title li i, .assistant-title li i {
    margin-right: 10px; /* Increased spacing */
    margin-top: 4px;
    color: #dc3545; /* Red color for icons as per specification */
}

.member-bio p, .assistant-bio p {
    color: var(--dark-text);
    font-size: 1rem; /* Adjusted font size */
    line-height: 1.6; /* Improved line height */
    margin: 0 0 15px 0; /* Increased margin */
    flex-grow: 1;
    font-style: italic;
    text-align: center;
}

/* Lead Doctor Special Styling */
.team-member-card.lead-doctor .member-name, .assistant-card.lead-doctor .assistant-name {
    color: #dc3545;
    font-size: 1.8rem; /* Larger font size */
}

.team-member-card.lead-doctor .member-title, .assistant-card.lead-doctor .assistant-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.3rem; /* Larger font size */
}

/* Checkmark Icons for Specializations */
.member-title li i, .assistant-title li i {
    color: #dc3545; /* Red color for icons as per specification */
}

/* Social Icons */
.assistant-social, .member-social {
    margin-top: auto;
    padding-top: 15px; /* Increased padding */
}

.assistant-social a, .member-social a {
    display: inline-block;
    width: 40px; /* Larger icons */
    height: 40px; /* Larger icons */
    background: #f8f9fa;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 8px; /* Increased spacing */
    color: #dc3545; /* Red color for icons as per specification */
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.1rem; /* Larger icon size */
}

.assistant-social a:hover, .member-social a:hover {
    background: #dc3545; /* Red background on hover as per specification */
    color: white;
    transform: translateY(-3px);
}

/* Team Page Hero Section */
.hero-section.page-hero {
    min-height: 30vh !important;
    padding: 30px 0 !important;
    padding-top: 50px !important;
    margin-top: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: auto !important;
}

/* More specific selector for team page */
section.hero-section.page-hero.team-hero {
    min-height: 30vh !important;
    padding: 30px 0 !important;
    padding-top: 50px !important;
    margin-top: 0 !important;
    height: auto !important;
    background-position: center top !important;
    background-size: cover !important;
}

/* Even more specific selector to override inline styles */
section.hero-section.page-hero.team-hero[style*='background'] {
    min-height: 30vh !important;
    padding: 30px 0 !important;
    padding-top: 50px !important;
    margin-top: 0 !important;
    height: auto !important;
    background-position: center top !important;
    background-size: cover !important;
}

/* Make team page hero image bigger and cover the whole section */
.hero-section.page-hero.team-hero {
    min-height: 60vh !important; /* Increase height to make it bigger */
    background-size: cover !important; /* Ensure image covers the whole section */
    background-position: center center !important; /* Center the background image */
}

/* Ensure team page hero section background is consistent with other pages */
.hero-section.page-hero.team-hero {
    background: linear-gradient(to right, rgba(3, 152, 158, 0.7), rgba(3, 152, 158, 0.8)) !important;
    background-size: cover !important;
    background-position: center top !important;
}

/* Override any inline styles for consistency */
section.hero-section.page-hero.team-hero[style*="background"] {
    background-size: cover !important;
    background-position: center top !important;
}

/* Ensure all page hero sections use the same gradient direction and colors */
.hero-section.page-hero {
    background: linear-gradient(to right, rgba(3, 152, 158, 0.7), rgba(3, 152, 158, 0.8)) !important;
}

/* Override conflicting styles from new-design.css */
.hero-section {
    background: linear-gradient(to right, rgba(3, 152, 158, 0.7), rgba(3, 152, 158, 0.8)) !important;
}

/* Override mobile conflicting styles */
@media (max-width: 768px) {
    .hero-section {
        background: linear-gradient(to right, rgba(3, 152, 158, 0.7), rgba(3, 152, 158, 0.8)) !important;
    }
}

.hero-section.page-hero .hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero-section.page-hero .hero-title {
    font-size: 2.8rem; /* Larger title */
    font-weight: 700;
    margin-bottom: 1.2rem; /* Increased margin */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section.page-hero .hero-subtitle {
    font-size: 1.4rem; /* Larger subtitle */
    font-weight: 400;
    margin-bottom: 2.5rem; /* Increased margin */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .team-section .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .team-about-section {
        padding: 60px 0;
    }
}

@media (max-width: 992px) {
    .member-image-wrapper, .assistant-image-wrapper {
        height: 220px; /* Adjusted height for smaller screens */
    }
    
    .team-section .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .team-about-section {
        padding: 60px 0;
    }
    
    .team-about-points li {
        margin-bottom: 15px;
    }
    
    /* Adjust image size for tablets */
    .team-about-image img {
        max-width: 95%;
    }
    
    .team-section-image {
        max-width: 85% !important;
    }
    
    /* Make team member cards responsive */
    .team-member-card, .assistant-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .team-member-card .member-image-wrapper,
    .assistant-card .assistant-image-wrapper {
        width: 100%;
        height: 300px;
        margin-bottom: 20px;
    }
    
    .team-member-card .member-info,
    .assistant-card .assistant-info {
        width: 100%;
        padding: 20px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .team-section {
        padding: 70px 0;
    }
    
    .hero-section.page-hero {
        min-height: 30vh !important;
        padding: 30px 0 !important;
        padding-top: 50px !important;
        margin-top: 0 !important;
        height: auto !important;
        /* Preserve background with gradient and image */
        background: linear-gradient(to right, rgba(3, 152, 158, 0.7), rgba(3, 152, 158, 0.8)) !important;
        background-size: cover !important;
        background-position: center top !important;
        background-repeat: no-repeat !important;
    }
    
    .hero-section.page-hero.team-hero {
        min-height: 50vh !important; /* Slightly less height on mobile */
        /* Preserve background with gradient and image */
        background: linear-gradient(to right, rgba(3, 152, 158, 0.7), rgba(3, 152, 158, 0.8)) !important;
        background-size: cover !important;
        background-position: center top !important;
        background-repeat: no-repeat !important;
    }
    
    .hero-section.page-hero .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-section.page-hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .member-image-wrapper {
        height: 240px;
    }
    
    .team-member-card, .assistant-card {
        margin-bottom: 30px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .team-member-card .member-image-wrapper,
    .assistant-card .assistant-image-wrapper {
        width: 100%;
        height: 250px;
        margin-bottom: 15px;
    }
    
    .team-member-card .member-info,
    .assistant-card .assistant-info {
        width: 100%;
        padding: 15px;
        text-align: center;
    }
    
    .team-section .section-title {
        font-size: 1.9rem;
    }
    
    .member-name {
        font-size: 1.4rem;
    }
    
    .member-title {
        font-size: 1.1rem;
    }
    
    .team-about-section {
        padding: 50px 0;
        margin: 40px 0;
    }
    
    .team-about-content {
        margin-top: 30px;
    }
    
    .team-about-points {
        margin: 25px 0;
    }
    
    /* Ensure proper alignment on mobile */
    .team-about-image img {
        margin-bottom: 25px;
        max-width: 100%;
    }
    
    .team-section-image {
        max-width: 95% !important;
    }
    
    .team-about-section .container {
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .team-section {
        padding: 60px 0;
    }
    
    .hero-section.page-hero {
        min-height: 30vh !important;
        padding: 30px 0 !important;
        padding-top: 50px !important;
        margin-top: 0 !important;
        height: auto !important;
        /* Preserve background image on mobile */
        background-size: cover !important;
        background-position: center top !important;
        background-repeat: no-repeat !important;
    }
    
    .hero-section.page-hero.team-hero {
        min-height: 40vh !important; /* Even less height on small mobile screens */
        /* Preserve background image on mobile */
        background-size: cover !important;
        background-position: center top !important;
        background-repeat: no-repeat !important;
    }
    
    /* Ensure team page hero section background is preserved */
    .hero-section.page-hero.team-hero {
        background-image: url('../images/linic_medical_team_reception_no_nameplates.png') !important;
    }
    
    .hero-section.page-hero .hero-title {
        font-size: 1.9rem;
    }
    
    /* Ensure team page hero background image is preserved on mobile */
    .hero-section.page-hero.team-hero[style*='background'] {
        background-size: cover !important;
        background-position: center top !important;
        background-repeat: no-repeat !important;
        /* Preserve the original background with gradient and image */
        background: linear-gradient(to right, rgba(3, 152, 158, 0.7), rgba(3, 152, 158, 0.8)) !important;
    }
    
    /* Remove the conflicting rule that was causing white background */
    /*
    @media (max-width: 768px) {
        .hero-section.page-hero.team-hero[style*='background'] {
            background: inherit !important;
        }
        
        .hero-section.page-hero.team-hero[style*='background']::before {
            background: none !important;
        }
    }
    */
    
    .member-image-wrapper, .assistant-image-wrapper {
        height: 210px;
    }
    
    .member-name, .assistant-name {
        font-size: 1.3rem;
    }
    
    .team-section .section-title {
        font-size: 1.7rem;
    }
    
    .team-about-section {
        padding: 40px 0;
        margin: 30px 0;
    }
    
    .team-about-points li {
        margin-bottom: 12px;
        padding: 10px;
    }
    
    .team-about-points li i {
        font-size: 1.1rem;
    }
    
    /* Ensure proper spacing on small mobile devices */
    .team-about-content {
        text-align: center;
        padding: 15px;
    }
    
    .team-about-points {
        text-align: left;
        gap: 15px;
    }
    
    .team-section-image {
        max-width: 98% !important;
    }
    
    /* Ensure team member cards are responsive on small screens */
    .team-member-card .member-image-wrapper,
    .assistant-card .assistant-image-wrapper {
        height: 200px;
    }
    
    .team-member-card .member-info,
    .assistant-card .assistant-info {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .member-image-wrapper, .assistant-image-wrapper {
        height: 190px;
    }
    
    .member-info, .assistant-info {
        padding: 20px 15px;
    }
    
    .member-name, .assistant-name {
        font-size: 1.2rem;
    }
    
    .member-title, .assistant-title {
        font-size: 1rem;
    }
    
    .team-about-points li {
        padding: 8px;
    }
    
    /* Ensure team member cards are responsive on extra small screens */
    .team-member-card .member-image-wrapper,
    .assistant-card .assistant-image-wrapper {
        height: 180px;
    }
    
    .team-member-card .member-info,
    .assistant-card .assistant-info {
        padding: 8px;
    }
}

/* Team CTA Section */
.team-cta-section {
    background: linear-gradient(135deg, var(--secondary-color), #2a3e4f);
    color: var(--light-text);
    padding: 80px 20px; /* Increased padding */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.team-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
}

.team-cta-section .cta-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px; /* More rounded corners */
    padding: 50px 40px; /* Increased padding */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2); /* Enhanced shadow */
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px; /* Wider content area */
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.team-cta-section h2 {
    color: var(--light-text);
    font-size: 2.5rem; /* Larger title */
    margin-bottom: 30px; /* Increased margin */
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.team-cta-section p {
    color: var(--light-text);
    font-size: 1.2rem; /* Larger text */
    margin-bottom: 40px; /* Increased margin */
    line-height: 1.8; /* Improved line height */
    opacity: 0.95;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

/* Responsive adjustments for Team CTA section */
@media (max-width: 992px) {
    .team-cta-section h2 {
        font-size: 2.2rem;
    }
    
    .team-cta-section p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .team-cta-section {
        padding: 70px 15px;
    }
    
    .team-cta-section .cta-content {
        padding: 40px 30px;
    }
    
    .team-cta-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .team-cta-section {
        padding: 60px 10px;
    }
    
    .team-cta-section .cta-content {
        padding: 30px 20px;
    }
    
    .team-cta-section h2 {
        font-size: 1.8rem;
    }
    
    .team-cta-section p {
        font-size: 1.05rem;
    }
}

/* Override new-design.css styles with more specific selectors */
.team-member-card .member-image-wrapper,
.team-member-card .assistant-image-wrapper,
.assistant-card .member-image-wrapper,
.assistant-card .assistant-image-wrapper {
    height: 260px !important; /* Unified height */
}
.assistant-card .assistant-image-wrapper {
    height: 260px !important; /* Unified height */
}
.assistant-card .assistant-image-wrapper {
    height: 260px !important; /* Unified height */
}

/* Ensure home page assistant cards match team page */
.home-page .assistant-modern-card .assistant-image-wrapper {
    height: 260px !important; /* Unified height */
}

@media (max-width: 767.98px) {
    .home-page .assistant-modern-card .assistant-image-wrapper {
        height: 220px !important; /* Mobile height */
    }
}

/* Team page lead doctor profile image - match home page styling */
.team-page .doctor-image-container {
    flex: 0 0 45%;
    position: relative;
    padding: 20px 0 30px 0;
    overflow: visible;
    width: 100%;
    height: 300px; /* Match home page height */
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 0;
    background: transparent;
}

.team-page .doctor-profile-image {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    object-position: center;
    display: block;
    margin: 0 auto;
    transform: scaleX(-1);
    background: transparent;
}

/* Doctor content wrapper - match home page */
.team-page .doctor-content-wrapper {
    display: flex;
    flex-direction: row;
    padding: 0;
    margin: 0;
    height: 100%;
    min-height: 500px;
    box-sizing: border-box;
}

.team-page .doctor-info-container {
    flex: 0 0 55%;
    padding: 20px 40px 30px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    margin-top: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    align-self: flex-start;
    width: 100%;
}

/* Mobile responsive styles for doctor cards */
@media (max-width: 991.98px) {
    .team-page .doctor-content-wrapper {
        flex-direction: column;
        padding: 0;
        margin: 0;
    }
    
    .team-page .doctor-image-container {
        flex: 0 0 auto;
        padding: 0;
        margin: 0;
        width: 100%;
        height: 580px; /* Increased image size */
        align-items: flex-start;
        justify-content: flex-start;
        overflow: visible;
    }
    
    .team-page .doctor-info-container {
        flex: 0 0 auto;
        padding: 30px;
        width: 100%;
    }
    
    /* Ensure team member cards are also responsive */
    .team-member-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .team-member-card .member-image-wrapper {
        width: 100%;
        height: 300px;
        margin-bottom: 20px;
    }
    
    .team-member-card .member-info {
        width: 100%;
        padding: 20px;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .team-page .doctor-modern-card {
        border-radius: 15px;
        padding: 0;
        margin: 0;
        min-height: 400px; /* Reduced card height */
        margin-bottom: 0;
    }
    
    .team-page .doctor-content-wrapper {
        padding: 0;
        margin: 0;
        flex-direction: column;
    }
    
    .team-page .doctor-image-container {
        padding: 0;
        margin: 0;
        width: 100%;
        height: 450px; /* Increased image size */
        align-items: flex-start;
        justify-content: flex-start;
        overflow: visible;
    }
    
    .team-page .doctor-info-container {
        padding: 20px;
    }
    
    /* Ensure team member cards are also responsive on smaller screens */
    .team-member-card {
        min-height: auto;
        margin-bottom: 30px;
    }
    
    .team-member-card .member-image-wrapper {
        height: 250px;
    }
    
    .team-member-card .member-info {
        padding: 15px;
    }
}

@media (max-width: 575.98px) {
    .team-page .doctor-image-container {
        height: 400px; /* Increased image size */
        padding: 0;
        margin: 0;
        overflow: visible;
        align-items: flex-start;
        justify-content: flex-start;
    }
    
    .team-page .doctor-info-container {
        padding: 15px;
    }
    
    /* Ensure team member cards are also responsive on extra small screens */
    .team-member-card .member-image-wrapper {
        height: 200px;
    }
    
    .team-member-card .member-info {
        padding: 10px;
    }
}
