/* =========================================================
   Person Profile Page — IranSQLClub
   ========================================================= */

.person-page {
    direction: rtl;
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px 72px;
}

/* Breadcrumb */

.person-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    font-size: 13px;
    color: #7b8794;
}

.person-breadcrumb a {
    color: #0798e8;
    text-decoration: none;
    font-weight: 600;
    transition: color .2s ease;
}

.person-breadcrumb a:hover {
    color: #0079bd;
}

.person-breadcrumb span:last-child {
    color: #111827;
    font-weight: 700;
}

/* Hero */

.person-hero {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 32px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #edf0f4;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    margin-bottom: 36px;
}

.person-hero__avatar-wrap {
    flex-shrink: 0;
}

.person-hero__avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: scale-down;
    border: 4px solid #eaf8ff;
    box-shadow: 0 4px 16px rgba(7, 152, 232, 0.15);
}

.person-hero__content {
    flex: 1;
    min-width: 0;
}

.person-hero__name {
    margin: 0 0 6px;
    font-size: 30px;
    font-weight: 800;
    color: #111827;
    line-height: 1.4;
}

.person-hero__title {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
    color: #0798e8;
}

.person-hero__role {
    margin: 0 0 12px;
    font-size: 14px;
    color: #7b8794;
    font-weight: 600;
}

.person-hero__bio {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.9;
    color: #4b5563;
    max-width: 640px;
}

.person-hero__social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.person-hero__social a {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 50px;
    background: #eaf8ff;
    color: #078fd8;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.person-hero__social a:hover {
    background: #0798e8;
    color: #ffffff;
}

/* Sections */

.person-section {
    margin-bottom: 36px;
}

.person-section__title {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    padding-right: 14px;
    border-right: 4px solid #0798e8;
}

.person-section__body--text {
    font-size: 14px;
    line-height: 2;
    color: #374151;
    background: #ffffff;
    border: 1px solid #edf0f4;
    border-radius: 16px;
    padding: 24px 28px;
}

/* Skills */

.person-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.person-skill {
    display: inline-flex;
    padding: 7px 14px;
    border-radius: 50px;
    background: #eaf8ff;
    color: #078fd8;
    font-size: 12px;
    font-weight: 700;
    transition: background .2s ease, color .2s ease;
}

.person-skill:hover {
    background: #0798e8;
    color: #ffffff;
}

/* Timeline */

.person-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    border-right: 2px solid #eaf8ff;
    margin-right: 8px;
}

.person-timeline__item {
    position: relative;
    padding: 0 24px 20px 0;
    font-size: 14px;
    line-height: 1.8;
    color: #374151;
}

.person-timeline__item::before {
    content: "";
    position: absolute;
    right: -7px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0798e8;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px #eaf8ff;
}

/* Articles */

.person-articles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.person-article-card {
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #edf0f4;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    transition: box-shadow .25s ease, border-color .25s ease;
}

.person-article-card:hover {
    border-color: #c5e8fa;
    box-shadow: 0 10px 24px rgba(7, 152, 232, 0.12);
}

.person-article-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.person-article-card__image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.person-article-card__body {
    padding: 16px 18px 20px;
}

.person-article-card__category {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    background: #eaf8ff;
    color: #078fd8;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 8px;
}

.person-article-card__title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 800;
    color: #111827;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s ease;
}

.person-article-card:hover .person-article-card__title {
    color: #0798e8;
}

.person-article-card__excerpt {
    margin: 0;
    font-size: 11px;
    color: #7b8794;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CTA */

.person-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 48px;
}

.person-cta__btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: 50px;
    background: #0798e8;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
    box-shadow: 0 6px 18px rgba(7, 152, 232, 0.2);
}

.person-cta__btn:hover {
    background: #007fc7;
    transform: translateY(-2px);
}

.person-cta__btn--outline {
    background: transparent;
    color: #0798e8;
    border: 2px solid #0798e8;
    box-shadow: none;
}

.person-cta__btn--outline:hover {
    background: #eaf8ff;
    color: #0079bd;
}

/* Responsive */

@media (max-width: 900px) {
    .person-articles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .person-page {
        padding: 24px 16px 56px;
    }

    .person-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px;
    }

    .person-hero__bio {
        margin-left: auto;
        margin-right: auto;
    }

    .person-hero__social {
        justify-content: center;
    }

    .person-hero__name {
        font-size: 24px;
    }

    .person-articles {
        grid-template-columns: 1fr;
    }

    .person-section__title {
        font-size: 19px;
    }
}
