/* ==========================================================================
   HEART MATES CLINIC PORTAL SUITE - EXPERTS DIRECTORY FRONTEND
   ========================================================================== */
:root {
    --color-soft-cream: #FDFBF3;
    --color-deep-black: #0E0E0E;
    --color-gold: #C29B47;
    --color-white: #FFFFFF;
    --font-stack: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --premium-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
    --hms-border: #EFECE6;
    --hms-slate: #6B7280;
}

.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; }
.w-100 { width: 100%; }

.hms-premium-header {
    background-color: var(--color-white);
    padding: 70px 0 20px 0;
    font-family: var(--font-stack);
}

.gallery-pretitle {
    color: var(--hms-slate);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

.hms-premium-title {
    font-size: 2.2rem;
    color: var(--color-deep-black);
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
    font-weight: 800;
}

.hms-premium-accent {
    width: 60px;
    height: 3px;
    background-color: var(--color-gold); 
    margin: 0 auto;
    border-radius: 2px;
}

.hms-premium-layout {
    padding: 50px 0 80px 0;
    background-color: var(--color-soft-cream);
    font-family: var(--font-stack);
}

.hms-premium-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Minimal Showcase Profile Cards Matrix ── */
.hms-premium-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.hms-expert-card {
    background: var(--color-white);
    border-radius: 8px;
    border: 1px solid var(--hms-border);
    padding: 40px 24px 24px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.01);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.hms-expert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.hms-expert-card::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 4px;
    background-color: var(--color-gold);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 0 0 8px 8px;
}

.hms-expert-card:hover::after { transform: scaleX(1); }

/* Image Framework Token Border Rings */
.hms-expert-avatar-frame {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 2px solid var(--color-gold); 
    padding: 6px;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    overflow: hidden;
}

.hms-expert-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background-color: #F8FAFC;
    filter: grayscale(20%);
    transition: filter 0.25s ease;
}

.hms-expert-card:hover .hms-expert-img { filter: grayscale(0%); }

.hms-expert-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.hms-expert-name {
    font-size: 1.35rem;
    font-weight: bold;
    color: var(--color-deep-black);
    margin: 0 0 6px 0;
    font-family: "Times New Roman", Times, serif;
}

.hms-expert-designation {
    font-size: 0.84rem;
    color: #475569;
    font-weight: 500;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.hms-expert-excerpt {
    font-size: 0.86rem;
    color: #556275;
    line-height: 1.6;
    margin: 0 0 20px 0;
    font-weight: 400;
}

.hms-expert-qualifications {
    font-size: 0.8rem;
    color: var(--color-gold); 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: auto;
    padding-top: 10px;
}

/* ── Social Engagement Actions Footer ── */
.hms-expert-socials {
    width: 100%;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #F1F5F9;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    color: #94A3B8;
    font-size: 1rem;
    transition: color 0.15s ease;
    text-decoration: none !important;
}

.social-icon:hover {
    color: var(--color-gold);
}

/* ── Profile Lightbox Modal Component Overlays ── */
.hms-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(14,14,14,0.65);
    backdrop-filter: blur(4px);
    z-index: 99999;
}

.hms-modal-card {
    background: var(--color-white);
    max-width: 760px;
    width: 92%;
    margin: 8% auto;
    padding: 35px;
    border-radius: 12px;
    position: relative;
    box-shadow: var(--premium-shadow);
}

.hms-modal-close-btn {
    position: absolute; right: 20px; top: 15px;
    font-size: 30px; font-weight: bold; color: #94A3B8;
    cursor: pointer;
}

.hms-modal-close-btn:hover { color: var(--color-deep-black); }
.hms-modal-body { display: flex; gap: 35px; flex-wrap: wrap; }

.hms-modal-aside {
    flex: 1;
    min-width: 220px;
    max-width: 250px;
    text-align: center;
    border-right: 1px solid #E2E8F0;
    padding-right: 20px;
}

.hms-modal-avatar-frame {
    width: 150px; height: 150px; margin: 0 auto 15px auto;
    border-radius: 50%; border: 2px solid var(--color-gold); padding: 4px;
}

.hms-modal-avatar-frame img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}

.hms-modal-doc-name {
    margin: 0 0 4px 0; font-size: 1.4rem; color: var(--color-deep-black); font-family: "Times New Roman", Times, serif;
}

.hms-modal-doc-title {
    margin: 0 0 10px 0; font-size: 0.85rem; color: #64748B; font-weight: 500;
}

.hms-modal-doc-creds {
    font-size: 0.78rem; font-weight: 700; color: var(--color-gold); text-transform: uppercase;
}

.hms-modal-main-content { flex: 2; min-width: 280px; }

.hms-modal-section-title {
    font-size: 0.85rem; font-weight: 800; color: var(--color-deep-black); text-transform: uppercase;
    letter-spacing: 0.5px; border-bottom: 2px solid #F1F5F9; padding-bottom: 8px; margin: 0 0 15px 0;
}

.hms-modal-bio-text { font-size: 0.92rem; color: #334155; line-height: 1.6; margin: 0; text-align: justify; }

.modal-address-strip { margin-top: 15px; font-size: 0.85rem; color: #475569; }
.modal-address-strip i { color: var(--color-gold); margin-right: 5px; }
.modal-action-wrapper-row { margin-top: 30px; text-align: right; }

.hms-modal-action-btn {
    display: inline-flex; align-items: center; gap: 8px; background: var(--color-deep-black); color: var(--color-gold);
    text-decoration: none !important; padding: 12px 24px; font-weight: 700; font-size: 0.88rem; border-radius: 4px;
    transition: background 0.15s;
}

.hms-modal-action-btn:hover { background: var(--color-gold); color: var(--color-white); }
.hms-grid-empty { grid-column: 1 / -1; padding: 50px 20px; color: #94A3B8; font-style: italic; }

/* ── Responsiveness Matrix Breakpoints ── */
@media (max-width: 1100px) {
    .hms-premium-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
    .hms-premium-title { font-size: 1.75rem; }
    .hms-premium-grid { grid-template-columns: 1fr; gap: 25px; max-width: 320px; margin: 0 auto; }
}

@media (max-width: 680px) {
    .hms-modal-aside {
        max-width: 100%; border-right: none; padding-right: 0;
        border-bottom: 1px solid #E2E8F0; padding-bottom: 20px;
    }
    .modal-action-wrapper-row { text-align: center; }
    .hms-modal-action-btn { width: 100%; justify-content: center; box-sizing: border-box; }
}