/* We Expert In Page Specific Styles */

.expert-section {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.expert-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    /* Rounded top corners for better UI */
}

.expert-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1.3);
    /* Zoom applied to hide marks */
}

.expert-card:hover .expert-img-wrapper img {
    transform: scale(1.4);
    /* Enhanced hover zoom */
}

.expert-card {
    background: #fff;
    border: none;
    border-radius: 12px;
    /* Slightly tighter radius for premium feel */
    margin-bottom: 30px;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Elegant transition */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Floating shadow */
    overflow: hidden;
}

.expert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* Deeper, softer shadow on hover */
}

.expert-icon-overlay {
    position: absolute;
    bottom: -20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.expert-icon-overlay i {
    color: #4cd137;
    /* Green color matching the theme */
    font-size: 20px;
}

.expert-content {
    padding: 30px 20px 20px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Premium Medical Typography */
.expert-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
    /* Expert/Doctor look */
    letter-spacing: 0.5px;
}

/* Minimalist Social Icons */
.expert-social-icons {
    margin-bottom: 25px;
}

.expert-social-icons a {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    margin-right: 10px;
    color: #999;
    /* Subtle default color */
    font-size: 14px;
    border-radius: 50%;
    background-color: #f5f5f5;
    transition: all 0.3s ease;
}

.expert-social-icons a:hover {
    color: #fff !important;
    transform: translateY(-2px);
}

.expert-social-icons a.fb-icon:hover {
    background-color: #3b5998;
}

.expert-social-icons a.insta-icon:hover {
    background-color: #E1306C;
}

.expert-social-icons a.yt-icon:hover {
    background-color: #FF0000;
}

/* Refined Pill Button */
.expert-read-more {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #4cd137;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    border: 1px solid #4cd137;
    /* Thinner elegant border */
    padding: 10px 30px;
    margin-top: auto;
    border-radius: 50px;
    text-align: center;
}

.expert-read-more:hover {
    color: #fff;
    background-color: #4cd137;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 209, 55, 0.2);
}

.expert-read-more i {
    margin-left: 5px;
    font-size: 10px;
}

/* Modal Specific Styles */

/* Modal Content Styles */
.modal-header .close {
    padding: 1rem;
    margin: -1rem -1rem -1rem auto;
}

.sub-expert-card {
    background: #fff;
    border: 1px solid #eee;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.sub-expert-img {
    height: 150px;
    width: 100%;
    object-fit: cover;
}

.sub-expert-content {
    padding: 15px;
}

.sub-expert-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.sub-expert-details {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sub-expert-details li {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    position: relative;
    padding-left: 15px;
}

.sub-expert-details li::before {
    content: "»";
    position: absolute;
    left: 0;
    color: #4cd137;
}

.sub-expert-overlay {
    position: absolute;
    top: 135px;
    /* Offset to overlap image boundary */
    right: 15px;
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sub-expert-overlay i {
    font-size: 14px;
    color: #4cd137;
}

/* New Expert Hero Section */
.expert-hero {
    background-color: #e9f7ef;
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.expert-hero-dots {
    position: absolute;
    left: 45%;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 100px;
    background-image: radial-gradient(#a5d6a7 20%, transparent 20%);
    background-size: 20px 20px;
    opacity: 0.6;
}

.expert-hero-content h2 {
    font-size: 48px;
    font-weight: 800;
    color: #000;
    margin-bottom: 0;
    line-height: 1.2;
}

.expert-hero-img-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 45%;
    overflow: hidden;
    /* Removed border-radius and background-color as requested */
}

.expert-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 991px) {
    .expert-hero-img-wrapper {
        position: relative;
        width: 100%;
        height: 300px;
        border-radius: 0;
        /* Reset radius for mobile stacking */
        margin-top: 30px;
        box-shadow: none;
    }

    .expert-hero {
        padding: 50px 0 0 0;
        flex-direction: column;
        text-align: center;
    }

    .expert-hero-dots {
        display: none;
    }
}

/* Sub Expert Button (Book Now) */
.sub-expert-btn {
    display: inline-block;
    padding: 8px 25px;
    margin-top: 15px;
    font-size: 13px;
    font-weight: 600;
    color: #4cd137;
    border: 1px solid #4cd137;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sub-expert-btn:hover {
    background-color: #4cd137;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 209, 55, 0.2);
}

.sub-expert-btn i {
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.sub-expert-btn:hover i {
    transform: translateX(3px);
}

/* Ensure card has flex layout to push button to bottom if needed */
.sub-expert-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Ensure full height if using flex in parent */
}

/* Add margin to list to separate from button */
.sub-expert-details {
    margin-bottom: 10px;
}