:root {
    --fdba-navy: #001A29;
    --fdba-sky: #00C1F0;
    --fdba-ice: #EFF5FA;
    --fdba-light-cyan: #CDEEFC;
    --fdba-pale-aqua: #E3FFFF;
    --fdba-ocean: #047BA8;
}

.fdba-author-card {
    box-sizing: border-box;
    width: min(100%, 750px);
    max-width: 750px;
    min-height: 306px;
    margin: 48px auto 40px;
    padding: clamp(34px, 5vw, 48px) clamp(30px, 6.5vw, 58px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 193, 240, 0.30);
    border-radius: 24px;
    background:
        radial-gradient(circle at 5% 8%, rgba(0, 193, 240, 0.115) 0 1.15px, transparent 1.45px) 0 0 / 16px 16px,
        linear-gradient(135deg, rgba(239, 245, 250, 0.99) 0%, rgba(255, 255, 255, 0.97) 56%, rgba(205, 238, 252, 0.46) 100%);
    box-shadow: 0 20px 52px rgba(0, 26, 41, 0.075);
    font-family: Inter, "Open Sans", Arial, sans-serif;
    color: var(--fdba-navy);
}

.fdba-author-card.fdba-has-photo {
    grid-template-columns: 150px minmax(0, 1fr);
    column-gap: 36px;
}

/* Keep the profile CTA from creating a cramped third column. When enabled, it flows below the bio/badge area. */
.fdba-author-card.fdba-has-cta,
.fdba-author-card.fdba-has-photo.fdba-has-cta {
    grid-template-columns: minmax(0, 1fr);
}

.fdba-author-card.fdba-has-photo.fdba-has-cta {
    grid-template-columns: 150px minmax(0, 1fr);
}

.fdba-author-card::before {
    content: "";
    position: absolute;
    inset: auto -18% -50% 68%;
    height: 74%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 193, 240, 0.13), rgba(239, 245, 250, 0));
    transform: rotate(-16deg);
    pointer-events: none;
}

.fdba-author-card::after {
    content: "";
    position: absolute;
    top: 42px;
    right: 52px;
    width: 88px;
    height: 74px;
    opacity: 0.30;
    background: url("levelup-rocket-mark.png") center / contain no-repeat;
    pointer-events: none;
}

.fdba-author-media,
.fdba-author-content,
.fdba-author-cta {
    position: relative;
    z-index: 1;
}

.fdba-author-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fdba-author-avatar {
    width: 112px;
    height: 112px;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(0, 26, 41, 0.08);
}

.fdba-author-content {
    max-width: 510px;
}

.fdba-eyebrow {
    margin: 0 0 6px;
    color: var(--fdba-sky);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.105em;
    text-transform: uppercase;
    line-height: 1.15;
}

.fdba-author-card .fdba-author-name {
    margin: 0;
    color: var(--fdba-navy);
    font-size: clamp(27px, 3.2vw, 32px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.024em;
}

.fdba-author-subtitle {
    margin: 13px 0 17px;
    color: var(--fdba-navy);
    font-size: clamp(18px, 2.15vw, 21px);
    font-weight: 500;
    line-height: 1.22;
}

.fdba-author-bio {
    max-width: 455px;
    color: var(--fdba-navy);
    font-size: 15px;
    line-height: 1.46;
}

.fdba-author-bio p {
    margin: 0 0 10px;
}

.fdba-author-bio p:last-child {
    margin-bottom: 0;
}

.fdba-author-badges {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fdba-author-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    padding: 9px 14px;
    border-radius: 11px;
    background: rgba(0, 193, 240, 0.14);
    color: var(--fdba-ocean);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.15;
}

.fdba-author-badge-link {
    text-decoration: none;
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.fdba-author-badge-link:hover,
.fdba-author-badge-link:focus {
    color: var(--fdba-sky);
    background: rgba(0, 193, 240, 0.2);
    transform: translateY(-1px);
    text-decoration: none;
}

.fdba-linkedin-icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: var(--fdba-sky);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.fdba-author-cta {
    grid-column: 1 / -1;
    min-height: auto;
    padding: 0;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.fdba-author-card.fdba-has-photo .fdba-author-cta {
    grid-column: 2;
    margin-top: -4px;
}

.fdba-author-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fdba-ocean);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: color 160ms ease, transform 160ms ease;
}

.fdba-author-profile-link:hover,
.fdba-author-profile-link:focus {
    color: var(--fdba-sky);
    transform: translateX(2px);
    text-decoration: none;
}

/* Card-based responsiveness. The card is capped at 750px, so the desktop state stays compact. */
@media (max-width: 760px) {
    .fdba-author-card,
    .fdba-author-card.fdba-has-photo,
    .fdba-author-card.fdba-has-cta,
    .fdba-author-card.fdba-has-photo.fdba-has-cta {
        grid-template-columns: 1fr;
        min-height: auto;
        text-align: left;
        gap: 18px;
        padding: 30px 24px;
    }

    .fdba-author-media {
        justify-content: flex-start;
    }

    .fdba-author-avatar {
        width: 94px;
        height: 94px;
    }

    .fdba-author-content {
        max-width: none;
    }

    .fdba-author-card::after {
        top: 24px;
        right: 22px;
        width: 70px;
        height: 58px;
    }

    .fdba-author-card.fdba-has-photo .fdba-author-cta,
    .fdba-author-cta {
        grid-column: 1;
        margin-top: 0;
        justify-content: flex-start;
    }

    .fdba-author-bio {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .fdba-author-card {
        margin: 36px auto 32px;
        padding: 24px 20px;
        border-radius: 20px;
    }

    .fdba-author-card .fdba-author-name {
        font-size: 26px;
    }

    .fdba-author-subtitle {
        font-size: 17px;
        margin: 10px 0 14px;
    }

    .fdba-author-bio {
        font-size: 14px;
    }

    .fdba-author-badge {
        width: 100%;
        justify-content: center;
        text-align: center;
        font-size: 13px;
    }
}
