/* Vaidya profile pop-ups (inc/vaidya-profiles.php). Self-contained so any
   page can use them: Care Team page, Home "Our Care Team" section.
   Layout: round photo on a sand disc | name, role, qualifications, about,
   then "Areas of Expertise" and "Clinical Interests" cards. */

.ct-profile {
    --vp-heading: #1f2433;
    --vp-text: #4a4f57;
    --vp-accent: #9a4f24;
    --vp-accent-dark: #793c19;
    --vp-rule: #c99a6e;
    --vp-disc: #f3e6d6;
    width: min(1120px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 10px;
    background: #fbf9f4;
    color: var(--vp-text);
    box-shadow: 0 24px 70px rgb(30 15 5 / 35%);
    text-align: left;
}
.ct-profile--sky {
    --vp-accent: #326374;
    --vp-accent-dark: #264d5b;
    --vp-rule: #8fb0bc;
    --vp-disc: #e3ecf1;
}
.ct-profile-open {
    overflow: hidden;
}
.ct-profile[open] {
    animation: ct-profile-in .28s cubic-bezier(.2, .7, .2, 1);
}
.ct-profile::backdrop {
    background: rgb(28 18 10 / 60%);
    backdrop-filter: blur(3px);
}
@keyframes ct-profile-in {
    from { opacity: 0; transform: translateY(18px) scale(.98); }
    to { opacity: 1; transform: none; }
}
.ct-profile__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #e0d6c8;
    border-radius: 50%;
    background: #fff;
    color: var(--vp-heading);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.ct-profile__close:hover {
    background: #f3ece2;
    color: var(--vp-heading);
    transform: rotate(90deg);
}

.ct-profile__grid {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    align-items: start;
}

/* Round photo with a sand disc behind it, offset up and to the left. */
.ct-profile__photo {
    position: relative;
    margin: 56px 0 48px 64px;
    width: 290px;
    aspect-ratio: 1;
}
.ct-profile__photo::before {
    content: '';
    position: absolute;
    top: -18px;
    left: -40px;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--vp-disc);
}
.ct-profile__photo img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 50%;
    box-shadow: 0 12px 30px rgb(40 25 10 / 14%);
}

.ct-profile__main {
    padding: 52px 48px 40px 24px;
}
.ct-profile__name {
    margin: 0 0 8px;
    padding-right: 40px;
    color: var(--vp-heading);
    font-family: var(--font-secondary);
    font-size: var(--fs-h2);
    font-weight: 600;
    line-height: 1.12;
}
.ct-profile__role {
    display: block;
    color: var(--vp-accent);
    font-size: var(--fs-small);
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}
.ct-profile__rule {
    display: block;
    width: 52px;
    height: 2px;
    margin: 16px 0 18px;
    background: var(--vp-rule);
}
.ct-profile__main p {
    margin: 0 0 12px;
    color: var(--vp-text);
    font-size: var(--fs-body);
    line-height: 1.65;
}
.ct-profile__main .ct-profile__quals {
    margin-bottom: 14px;
    color: var(--vp-heading);
}
.ct-profile__quals span {
    margin: 0 4px;
    color: var(--vp-rule);
}
.ct-profile__main .ct-profile__exp {
    margin-top: -6px;
    color: var(--vp-accent);
    font-size: var(--fs-small);
    font-weight: 600;
}

/* Expertise + Clinical Interests cards */
.ct-profile__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 22px 0 26px;
}
.ct-profile__cards--single {
    grid-template-columns: minmax(0, 1fr);
}
.ct-profile__card {
    --card-bg: #f7ebdf;
    --card-icon-bg: #f0d8c2;
    --card-ink: #9a4f24;
    display: flex;
    gap: 18px;
    padding: 22px 22px 24px;
    border-radius: 8px;
    background: var(--card-bg);
}
.ct-profile__card--interests {
    --card-bg: #e8efeb;
    --card-icon-bg: #d2e1d9;
    --card-ink: #2f6b5b;
}
.ct-profile__icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--card-icon-bg);
    color: var(--card-ink);
    font-size: 26px;
}
.ct-profile__subhead {
    margin: 4px 0 0;
    color: var(--card-ink);
    font-family: var(--font-primary);
    font-size: var(--fs-small);
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}
.ct-profile__subhead::after {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    margin: 12px 0 12px;
    background: currentColor;
    opacity: .5;
}
.ct-profile__card p {
    margin: 0;
    font-size: var(--fs-small);
    line-height: 1.7;
}

.ct-profile__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px;
    border-radius: 3px;
    background: var(--vp-accent);
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 1.4px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .2s ease;
}
.ct-profile__btn:hover {
    background: var(--vp-accent-dark);
    color: #fff;
}

@media (max-width: 991px) {
    .ct-profile__grid { grid-template-columns: minmax(0, 1fr); }
    .ct-profile__photo { width: 200px; margin: 48px auto 0; }
    .ct-profile__photo::before { top: -12px; left: -26px; }
    .ct-profile__main { padding: 28px 32px 32px; }
}
@media (max-width: 767px) {
    .ct-profile__cards { grid-template-columns: minmax(0, 1fr); }
    .ct-profile__main { padding: 24px 22px 28px; }
    .ct-profile__card { padding: 18px; gap: 14px; }
    .ct-profile__icon { width: 52px; height: 52px; font-size: 22px; }
}
