/* ==========================================
   Shared Doctor Widgets Styles
   Common styles for all doctor page widgets
   ========================================== */

/* ---- Shared Section Title ---- */
.je-section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 30px;
    line-height: 1.3;
}

/* ==========================================
   Expertise Badges Widget
   ========================================== */

.je-expertise {
    --je-accent: #2cbcb4;
    text-align: center;
}

.je-expertise__header {
    margin-bottom: 40px;
}

.je-expertise__title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px;
}

.je-expertise__subtitle {
    font-size: 16px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.je-expertise__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.je-expertise__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    transition: all 0.3s ease;
    text-align: center;
}

.je-expertise__item:hover {
    border-color: var(--je-accent);
    box-shadow: 0 4px 20px rgba(44, 188, 180, 0.1);
    transform: translateY(-3px);
}

.je-expertise__icon {
    font-size: 36px;
    color: var(--je-accent);
    line-height: 1;
}

.je-expertise__icon svg {
    width: 36px;
    height: 36px;
    fill: var(--je-accent);
}

.je-expertise__item-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

.je-expertise__item-desc {
    font-size: 13px;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

.je-expertise__bottom-text {
    max-width: 800px;
    margin: 30px auto 0;
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

/* ==========================================
   Academic Background Widget
   ========================================== */

.je-academic {
    --je-accent: #2cbcb4;
    text-align: center;
}

.je-academic__title {
    margin-bottom: 40px;
}

/* Timeline */
.je-academic__timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px;
    padding-right: 40px;
}

.je-academic__timeline::before {
    content: '';
    position: absolute;
    right: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e0e0e0;
}

.je-academic__timeline-item {
    position: relative;
    padding: 0 0 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.je-academic__timeline-item:last-child {
    padding-bottom: 0;
}

.je-academic__timeline-dot {
    position: absolute;
    right: -40px;
    top: 2px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--je-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 1;
}

.je-academic__timeline-dot svg {
    width: 14px;
    height: 14px;
    fill: #fff;
}

.je-academic__timeline-content {
    text-align: right;
}

.je-academic__timeline-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px;
}

.je-academic__timeline-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.je-academic__timeline-year {
    font-size: 13px;
    color: var(--je-accent);
    font-weight: 600;
}

/* Description */
.je-academic__description {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    text-align: right;
}

/* Certificates */
.je-academic__certs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.je-academic__cert-item {
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.je-academic__cert-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

.je-academic__cert-item img {
    width: 100%;
    height: auto;
    display: block;
}

.je-academic__cert-item a {
    display: block;
}

/* ==========================================
   Publications & Conferences Widget
   ========================================== */

.je-pubconf {
    --je-accent: #2cbcb4;
}

.je-pubconf--two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.je-pubconf--stacked {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Column order swap (works for both grid and flex layouts) */
.je-pubconf--two-cols.je-pubconf--conf-first .je-pubconf__column--conferences {
    order: -1;
    grid-column: 1;
}

.je-pubconf--two-cols.je-pubconf--conf-first .je-pubconf__column--publications {
    order: 1;
    grid-column: 2;
}

.je-pubconf--stacked.je-pubconf--conf-first .je-pubconf__column--conferences {
    order: -1;
}

.je-pubconf--stacked.je-pubconf--conf-first .je-pubconf__column--publications {
    order: 1;
}

.je-pubconf[dir="ltr"] .je-pubconf__item {
    padding-right: 0;
    padding-left: 16px;
}

.je-pubconf[dir="ltr"] .je-pubconf__item::before {
    right: auto;
    left: 0;
}

.je-pubconf[dir="ltr"] .je-pubconf__section-header {
    direction: ltr;
}

.je-pubconf__section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--je-accent);
}

.je-pubconf__section-icon {
    font-size: 22px;
    color: var(--je-accent);
}

.je-pubconf__section-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--je-accent);
}

.je-pubconf__section-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.je-pubconf__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.je-pubconf__item {
    position: relative;
    padding-right: 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.je-pubconf__item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--je-accent);
}

.je-pubconf__item-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.je-pubconf__item-link:hover {
    color: var(--je-accent);
}

.je-pubconf__item-title {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}

.je-pubconf__item-meta {
    font-size: 13px;
    color: #888;
    font-style: italic;
}

.je-pubconf__item-year {
    font-size: 12px;
    color: var(--je-accent);
    font-weight: 600;
}

/* ==========================================
   Doctor Quote Widget
   ========================================== */

.je-doctor-quote {
    --je-accent: #2cbcb4;
    text-align: center;
}

.je-doctor-quote__title {
    margin-bottom: 30px;
}

.je-doctor-quote__blockquote {
    position: relative;
    margin: 0 auto 30px;
    padding: 0;
    max-width: 800px;
    border: none;
}

.je-doctor-quote__mark {
    display: block;
    font-size: 80px;
    line-height: 0.8;
    color: var(--je-accent);
    opacity: 0.3;
    font-family: Georgia, serif;
    margin-bottom: 10px;
}

.je-doctor-quote__text {
    font-size: 22px;
    line-height: 1.7;
    color: #444;
    font-weight: 400;
    margin: 0;
}

.je-doctor-quote__author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.je-doctor-quote__photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--je-accent);
}

.je-doctor-quote__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.je-doctor-quote__author-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* ==========================================
   Medical Center Widget
   ========================================== */

.je-medcenter {
    --je-accent: #2cbcb4;
    text-align: center;
}

.je-medcenter__title {
    margin-bottom: 20px;
}

.je-medcenter__description {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    text-align: right;
}

.je-medcenter__highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.je-medcenter__highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background-color: #f0faf9;
    border-radius: 10px;
    border: 1px solid #d4eeec;
    text-align: right;
}

.je-medcenter__highlight-icon {
    color: var(--je-accent);
    font-size: 18px;
    flex-shrink: 0;
}

.je-medcenter__highlight-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--je-accent);
}

.je-medcenter__highlight-text {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

.je-medcenter__treatments {
    max-width: 800px;
    margin: 0 auto;
    text-align: right;
}

.je-medcenter__treatments-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px;
}

.je-medcenter__treatments-text {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}

/* ==========================================
   Medical Disclaimer Widget
   ========================================== */

.je-disclaimer {
    background-color: #f8f9fa;
    padding: 30px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.je-disclaimer__block {
    max-width: 800px;
    margin: 0 auto;
}

.je-disclaimer__title {
    font-size: 14px;
    font-weight: 700;
    color: #666;
    margin: 0 0 8px;
    text-transform: none;
}

.je-disclaimer__text {
    font-size: 12px;
    color: #888;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================
   Author Box Widget
   ========================================== */

.je-author-box {
    --je-accent: #2cbcb4;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
}

.je-author-box--vertical {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.je-author-box__photo-wrap {
    flex-shrink: 0;
}

.je-author-box__photo {
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 50%;
}

.je-author-box__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.je-author-box__content {
    flex: 1;
    min-width: 0;
}

.je-author-box__name {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
}

.je-author-box__title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--je-accent);
}

.je-author-box__bio {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

.je-author-box__bio p {
    margin: 0 0 10px;
}

.je-author-box__bio p:last-child {
    margin-bottom: 0;
}

.je-author-box__credentials {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.je-author-box__credential {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
}

.je-author-box__credential-icon {
    color: var(--je-accent);
    font-size: 12px;
    flex-shrink: 0;
}

.je-author-box__credential-icon svg {
    width: 12px;
    height: 12px;
    fill: var(--je-accent);
}

.je-author-box__social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    align-items: center;
}

.je-author-box--vertical .je-author-box__social {
    justify-content: center;
}

.je-author-box__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #666;
    background: #f5f5f5;
    transition: all 0.2s ease;
    text-decoration: none;
}

.je-author-box__social a:hover {
    color: var(--je-accent);
    background: rgba(44, 188, 180, 0.1);
    transform: translateY(-2px);
}

.je-author-box__posts-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--je-accent);
    text-decoration: none;
    transition: gap 0.2s ease;
}

.je-author-box__posts-link:hover {
    gap: 10px;
}

@media (max-width: 767px) {
    .je-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 22px;
        gap: 16px;
    }

    .je-author-box__social {
        justify-content: center;
    }

    .je-author-box__credentials {
        align-items: flex-start;
        text-align: start;
    }
}

/* ==========================================
   Responsive - All Doctor Widgets
   ========================================== */

@media (max-width: 1024px) {
    .je-section-title,
    .je-expertise__title {
        font-size: 28px;
    }

    .je-pubconf--two-cols {
        gap: 30px;
    }
}

@media (max-width: 767px) {
    .je-section-title,
    .je-expertise__title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .je-expertise__header {
        margin-bottom: 25px;
    }

    .je-expertise__subtitle {
        font-size: 14px;
    }

    .je-expertise__grid {
        gap: 12px;
    }

    .je-expertise__item {
        padding: 18px 14px;
    }

    .je-expertise__icon {
        font-size: 28px;
    }

    .je-expertise__icon svg {
        width: 28px;
        height: 28px;
    }

    .je-expertise__item-title {
        font-size: 13px;
    }

    .je-expertise__bottom-text {
        font-size: 14px;
        padding-top: 20px;
        margin-top: 20px;
    }

    /* Publications */
    .je-pubconf--two-cols {
        grid-template-columns: 1fr;
    }

    .je-pubconf__section-title {
        font-size: 18px;
    }

    .je-pubconf__item-title {
        font-size: 13px;
    }

    /* Academic Timeline */
    .je-academic__timeline {
        padding-right: 35px;
        margin-bottom: 25px;
    }

    .je-academic__timeline-dot {
        width: 28px;
        height: 28px;
        right: -35px;
        font-size: 12px;
    }

    .je-academic__timeline-dot svg {
        width: 12px;
        height: 12px;
    }

    .je-academic__timeline-title {
        font-size: 14px;
    }

    .je-academic__timeline-subtitle {
        font-size: 13px;
    }

    .je-academic__certs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .je-academic__description {
        font-size: 14px;
        margin-bottom: 25px;
    }

    /* Quote */
    .je-doctor-quote__mark {
        font-size: 50px;
    }

    .je-doctor-quote__text {
        font-size: 17px;
        line-height: 1.6;
    }

    .je-doctor-quote__photo {
        width: 80px;
        height: 80px;
    }

    .je-doctor-quote__author-name {
        font-size: 14px;
    }

    /* Medical Center */
    .je-medcenter__description {
        font-size: 14px;
    }

    .je-medcenter__highlights {
        grid-template-columns: 1fr;
    }

    .je-medcenter__highlight {
        padding: 12px 14px;
    }

    .je-medcenter__highlight-text {
        font-size: 13px;
    }

    .je-medcenter__treatments-title {
        font-size: 18px;
    }

    .je-medcenter__treatments-text {
        font-size: 14px;
    }

    /* Disclaimer */
    .je-disclaimer {
        padding: 20px 16px;
    }

    .je-disclaimer__title {
        font-size: 13px;
    }

    .je-disclaimer__text {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .je-section-title,
    .je-expertise__title {
        font-size: 22px;
    }

    .je-expertise__item {
        padding: 16px 12px;
    }

    .je-academic__timeline {
        padding-right: 30px;
    }

    .je-academic__timeline-dot {
        width: 24px;
        height: 24px;
        right: -30px;
    }

    .je-academic__certs-grid {
        grid-template-columns: 1fr;
    }

    .je-doctor-quote__text {
        font-size: 15px;
    }

    .je-pubconf__section-title {
        font-size: 16px;
    }
}

/* ==========================================
   Print Styles
   ========================================== */

@media print {
    .je-expertise__item:hover,
    .je-academic__cert-item:hover {
        transform: none;
        box-shadow: none;
    }
}

/* ==========================================
   Accessibility
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    .je-expertise__item,
    .je-academic__cert-item {
        transition: none;
    }
}
