/* Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* Containers */
.clinician-container, .executive-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    font-family: NataSans Regular;
}

/* Headers */
.clinician-header, .executive-header {
    margin: 50px 0px;
}
.clinician-header h1, .executive-header h1 {
    font-weight: 400 !important;
    line-height: 2.6rem !important;
    font-family: NataSans Regular !important;
}
.executive-header span {
	color: #c41d24;
  font-size: 32px;
  font-family: NataSans bold !important;
}
.clinician-header #active-dept-title {
    color: #c41d24;
    font-size: 32px;
    font-family: NataSans bold !important;
}
/* Grids */
.clinician-grid, .executive-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 20px;
    margin-bottom: 50px;
}

/* Cards */
.clinician-card, .executive-card {
    cursor: pointer;
    text-align: left;
    transition: transform 0.2s ease;
    width: calc(20% - 16px); /* 5 Columns */
}
.clinician-card:hover, .executive-card:hover {
    transform: translateY(-5px);
}
.clinician-card img, .executive-card img {
    width: 100%;
    height: 285px;
    object-fit: cover;
    border-radius: 4px;
    object-position: center;
}
.executive-grid h3 {
    font-family: NataSans Regular !important;
    text-transform: capitalize !important;
}

/* Filters (Only for Clinicians) */
.clinician-filters {
    display: flex;
    list-style: none;
    justify-content: space-between;
    padding-left: 0px;
}
.clinician-filters li a {
    font-weight: 700 !important;
    font-size: 13px;
    letter-spacing: 2px;
}
.clinician-filters li:after {
    content: '|';
    padding: 0 0.9rem;
}
.clinician-filters li:last-child::after {
    content: none;
}
.filter-btn {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}
.filter-btn.active {
    color: #e74c3c;
    font-weight: bold;
    border-bottom: 2px solid #e74c3c;
}

/* --- MODAL STYLES (Shared) --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}
.modal-content {
    background: transparent;
    width: 1100px;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 20px;
}
.nav-arrow {
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    user-select: none;
    opacity: 0.7;
    transition: opacity 0.3s;
    flex: 0 0 auto;
}
.nav-arrow:hover { opacity: 1; }

.modal-body {
    background: #fff;
    display: flex;
    width: 100%;
    padding: 40px;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    gap: 40px;
    align-items: flex-start;
}
.close-modal {
    position: absolute;
    top: -15px;
    right: 36px;
    width: 35px;
    height: 35px;
    background: #2c82c9;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
}
.close-modal:hover { background: #1a5a8e; }

.modal-left { flex: 0 0 320px; }
.modal-left img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.modal-right { flex: 1; font-family: NataSans Regular; }
.modal-right h2 {
    margin-top: 0;
    margin-bottom: 10px; /* Reduced for bio spacing */
    color: #333;
    line-height: 1.2;
    text-transform: capitalize;
    font-family: NataSans Regular;
}

/* Executive Specific Modal Styling */
.executive-job-title {
    font-size: 18px;
    color: #c41d24; /* Red accent color */
    font-weight: bold;
    margin-bottom: 25px;
    display: block;
}
.executive-bio-text {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}
.executive-bio-text p { margin-bottom: 15px; }

/* Existing Detail Grid (Keep for Clinicians) */
.clinician-details-grid {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #eee;
}
.detail-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    align-items: baseline;
}
.detail-label {
    flex: 0 0 140px;
    font-weight: 700;
    color: #555;
    font-size: 16px;
}
.detail-value {
    flex: 1;
    color: #000;
    font-size: 16px;
    line-height: 1.5;
}
.clinic-link-item, .detail-value a {
    color: #2c82c9;
    text-decoration: underline;
}

/* ========================================= */
/* --- EXECUTIVE MODAL WRAPPING FIX --- */
/* ========================================= */
/* This overrides the flexbox layout just for the executive modal */
#executive-modal .modal-body {
    display: block; /* Turns off columns so elements can float */
}
#executive-modal .modal-body::after {
    content: "";
    display: table;
    clear: both; /* Fixes height issues with floats */
}
#executive-modal .modal-left {
    float: left; /* Floats image to left */
    margin-right: 40px;
    margin-bottom: 20px;
    width: 320px; /* Ensures width stays fixed */
}
#executive-modal .modal-right {
    display: block; /* Allows text to wrap around */
    width: auto;
}

/* Responsive */
@media (max-width:1140px) {
    .clinician-container, .executive-container { padding: 0 15px; }
}
@media (max-width: 1080px) {
    .clinician-filters { flex-wrap: wrap; row-gap: 10px; justify-content: flex-start; }
    .clinician-card, .executive-card { width: calc(25% - 15px); }
}
@media (max-width: 991px) {
    /* Reset Float for Mobile so it stacks nicely */
    .modal-body { flex-direction: column; padding: 40px 15px; }
    
    #executive-modal .modal-left { 
        float: none; 
        margin-right: 0; 
        margin-bottom: 30px; 
        width: 100%; 
        max-width: 480px;
    }

    .modal-body .modal-left { width: 100%; max-width: 480px; }
    .modal-body .modal-right { width: 100%; }
    .detail-label { flex: 0 0 104px; }
    .modal-content { gap: 4px; position: absolute; top: 50px; }
    .nav-arrow { font-size: 36px; }
}
@media (max-width: 768px) {
    .clinician-card, .executive-card { width: calc(50% - 10px); }
    .clinician-filters li:after { padding: 0 0.7rem; }
    .clinician-card img, .executive-card img { height: 500px; }
}
@media (max-width: 480px) {
    .clinician-card, .executive-card { width: 100%; }
    .clinician-card img, .executive-card img { height: auto; }
}