.ap-post-meta {
    padding-bottom: 20px;
    margin-bottom: 30px;
    font-size: 12px;
    border-bottom: 1px solid #f2f2f2;
}

.ap-post-meta a.ap-author-trigger {
    font-weight: 500;
    text-decoration: underline;
    color: #5a5a5a !important;
    font-size: 14px;
}

body.single.single-post .single-post .container-single .post-content .ap-post-meta a.ap-author-trigger:hover {
    color: #ffc001 !important;
}

.ap-author-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.ap-author-popup.is-active {
    display: flex;
}

.ap-author-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.62);
    backdrop-filter: blur(4px);
}

.ap-author-popup__dialog {
    position: relative;
    width: calc(100% - 32px);
    max-width: 600px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    margin: 0;
    padding: 0;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
    z-index: 1;
}

.ap-author-popup__close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    cursor: pointer;
    background: #f8fafc;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.ap-author-popup__close:hover {
    background: #eef2f7;
    transform: rotate(90deg);
}

.ap-author-popup__close img {
    width: 30px;
    height: 30px;
    display: block;
}

.ap-author-popup__row--top {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    align-items: center;
    padding: 30px 30px 20px;
    background: linear-gradient(
            180deg,
            #ffffff 0%,
            #fafafa 100%
    );
}

.ap-author-popup__image {
    position: relative;
    width: 200px;
    height: auto;
}

.ap-author-popup__image img {
    position: relative;
    z-index: 1;
    width: 200px;
    height: auto;
    display: block;
    object-fit: cover;
}

.ap-author-popup__name {
    margin: 0 0 8px;
    color: #ffc001 !important;
    font-size: 25px;
    line-height: 1.18;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.ap-author-popup__job-title,
.ap-author-popup__nmls {
    margin-bottom: 10px;
    color: #5a5a5a;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 500;
}

.ap-author-popup__socials {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.ap-author-popup__socials a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #ebebeb;
    color: #5a5a5a !important;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body.single.single-post .single-post .container-single .post-content .ap-author-popup__socials a:hover {
    background: linear-gradient(90deg, #ffc001 0%, #ffe079 100%);
    color: #fff !important;
}

.ap-author-popup__socials svg {
    width: 22px;
    height: 22px;
}

.ap-author-popup__description {
    margin: 0 30px;
    padding: 30px 10px 20px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.82;
    text-align: justify;
}

.ap-author-popup__description p {
    margin: 0 0 18px;
}

.ap-author-popup__description p:last-child {
    margin-bottom: 0;
}

.ap-author-note {
    text-align: justify;
    margin: 0 30px 40px;
    color: #5a5a5a;
    font-size: 12px;
    line-height: 1.65;
    padding: 20px 10px 0;
    border-top: 1px solid #e5e7eb;
}

.ap-author-note span {
    font-weight: 500;
}

.ap-popup-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .ap-author-popup__dialog {
        width: calc(100% - 24px);
        margin: 4vh auto;
        border-radius: 18px;
    }

    .ap-author-popup__close {
        top: 14px;
        right: 14px;
    }

    .ap-author-popup__row--top {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
        padding: 42px 24px 30px;
    }

    .ap-author-popup__image {
        margin: 0 auto;
        width: 140px;
        height: 140px;
    }

    .ap-author-popup__image img {
        width: 140px;
        height: auto;
    }

    .ap-author-popup__name {
        font-size: 26px;
    }

    .ap-author-popup__nmls {
        margin-left: auto;
        margin-right: auto;
    }

    .ap-author-popup__socials {
        justify-content: center;
    }

    .ap-author-popup__description {
        margin: 0 24px;
        padding: 28px 0 20px;
    }

    .ap-author-note {
        margin: 0 24px 32px;
    }
}
