/* =============================================================
   Nejat Doctor Widget
   ============================================================= */

/* ── Section wrapper ────────────────────────────────────────── */
.nejat-doctor {
    overflow: hidden;
}

/* ── Two-column inner container ─────────────────────────────── */
.nejat-doctor__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: var(--nejat-max-width);
    margin: 0 auto;
    padding: var(--nejat-section-pad-v) var(--nejat-gutter);
}

/* Image on right variant */
.nejat-doctor--image-right .nejat-doctor__media {
    order: 2;
}
.nejat-doctor--image-right .nejat-doctor__content {
    order: 1;
}

/* ── Photo ──────────────────────────────────────────────────── */
.nejat-doctor__media {
    position: relative;
}

/* Photo wrapper — clips badge to photo corners */
.nejat-doctor__photo-wrap {
    position: relative;
    border-radius: var(--nejat-radius);
    overflow: hidden;
}

.nejat-doctor__photo {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--nejat-radius);
    object-fit: cover;
}

/* Badge / ribbon (top-right corner of photo) */
.nejat-doctor__photo-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: #4ab3c8;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 6px 14px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
    white-space: nowrap;
    line-height: 1;
}

/* Caption block below photo */
.nejat-doctor__photo-caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: 18px;
    text-align: center;
}

/* Doctor name with decorative side lines */
.nejat-doctor__photo-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    width: 100%;
    margin: 0;
}

.nejat-doctor__photo-name::before,
.nejat-doctor__photo-name::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #cccccc;
    max-width: 44px;
}

.nejat-doctor__photo-subcaption {
    display: block;
    font-size: 13px;
    color: #777777;
    letter-spacing: 0.01em;
}

/* Credential logos row */
.nejat-doctor__cert-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 4px 0;
}

/* Three-class chain beats Elementor's global img resets */
.nejat-doctor .nejat-doctor__cert-logos .nejat-doctor__cert-logo {
    display: block;
    height: 52px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.nejat-doctor .nejat-doctor__cert-logos .nejat-doctor__cert-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

/* Bottom overlay — gradient container for cert logos + tags */
.nejat-doctor__photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 56px 16px 14px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.58));
    z-index: 1;
    pointer-events: none;
}

/* Cert logos row inside overlay — left-aligned, smaller, frosted glass */
.nejat-doctor__photo-overlay .nejat-doctor__cert-logos {
    justify-content: flex-start;
    gap: 8px;
    padding: 0;
}

.nejat-doctor .nejat-doctor__photo-overlay .nejat-doctor__cert-logos .nejat-doctor__cert-logo {
    height: 36px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: none;
    box-shadow: none;
    padding: 5px 10px;
    border-radius: 8px;
}

/* Achievement tags inside overlay */
.nejat-doctor__photo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    pointer-events: none;
}

.nejat-doctor__photo-tag {
    display: inline;
    padding: 0 0 1px;
    background: none;
    border: none;
    border-radius: 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.45);
    white-space: nowrap;
}

/* ── Text content column ─────────────────────────────────────── */
.nejat-doctor__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Eyebrow ─────────────────────────────────────────────────── */
.nejat-doctor__eyebrow {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: capitalize;
    color: #4ab3c8;
    margin: 0;
}

/* ── Headline ─────────────────────────────────────────────────── */
.nejat-doctor__headline {
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    color: #1a1a1a;
    margin: 0;
}

/* ── Description ─────────────────────────────────────────────── */
.nejat-doctor__description {
    font-size: 16px;
    line-height: 1.65;
    color: #555555;
}

.nejat-doctor__description p {
    margin: 0 0 12px;
}

.nejat-doctor__description p:last-child {
    margin-bottom: 0;
}

/* ── Credentials block ───────────────────────────────────────── */
.nejat-doctor__credentials {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 4px;
}

.nejat-doctor__credentials-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.nejat-doctor__credentials-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nejat-doctor__credential {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.nejat-doctor__credential-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: #4ab3c8;
    margin-top: 1px;
}

.nejat-doctor__credential-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.nejat-doctor__credential-text {
    font-size: 15px;
    line-height: 1.5;
    color: #333333;
}

/* ── CTA button ──────────────────────────────────────────────── */
.nejat-doctor__cta-wrap {
    padding-top: 8px;
}

.nejat-doctor__cta {
    display: inline-block;
    background: transparent;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    padding: 16px 36px;
    border-radius: 8px;
    text-decoration: none;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transform: translateZ(0);
}

/* Dark background layer sits behind text */
.nejat-doctor__cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #1a1a1a;
    border-radius: inherit;
    z-index: -1;
}

/* Teal circle expands from center on hover */
.nejat-doctor__cta::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 500px;
    height: 500px;
    background: #4ab3c8;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.55s ease;
    pointer-events: none;
    z-index: -1;
    will-change: transform;
}

.nejat-doctor__cta:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.nejat-doctor__cta:hover {
    color: #ffffff;
    text-decoration: none;
}

/* ── Responsive — tablet ─────────────────────────────────────── */
@media (max-width: 1024px) {
    .nejat-doctor__inner {
        gap: 48px;
    }
}

/* ── Responsive — mobile ─────────────────────────────────────── */
@media (max-width: 768px) {
    .nejat-doctor__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* On mobile, photo always comes first regardless of variant */
    .nejat-doctor__media {
        order: 0 !important;
    }
    .nejat-doctor__content {
        order: 1 !important;
    }

    .nejat-doctor__photo {
        max-height: 420px;
        object-position: top center;
    }
}
