/* ==========================================================================
   Reviewer profile card — /reviewer/{slug}/
   Two-column resume card: blush sidebar (identity, contact, expertise, quote)
   + white content column (summary, experience, quote, footer stats/socials).
   ========================================================================== */

:root {
    --rev-red: #ef3b3b;
    --rev-navy: #16233f;
    --rev-body: #3d4658;
    --rev-blush: #fdf2f1;
    --rev-blush-2: #fdeceb;
    --rev-line: #eceef2;
}


/* Vertical padding comes from the site-wide 80px section rhythm in style.css. */

.reviewer-page {
    background: #f4f5f7;
}

.reviewer-card {
    /* max-width: 1080px; */
    margin: 0 auto;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(20, 30, 60, .10);
    overflow: hidden;
    display: flex;
    align-items: stretch;
    font-family: 'Inter', sans-serif;
}


/* ---------------------------------------------------- Sidebar ----------- */

.reviewer-side {
    flex: 0 0 320px;
    max-width: 320px;
    background: var(--rev-blush);
    padding: 44px 30px 40px;
    text-align: center;
}

.reviewer-side .rev-avatar {
    width: 182px;
    height: 182px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 6px solid #fff;
    box-shadow: 0 8px 24px rgba(20, 30, 60, .08);
    display: block;
    margin: 0 auto 26px;
}

.reviewer-side .rev-name {
    font-size: 29px;
    font-weight: 800;
    color: var(--rev-navy);
    line-height: 1.2;
    margin: 0 0 22px;
    letter-spacing: -.01em;
}

.reviewer-side .rev-rule {
    width: 56px;
    height: 3px;
    border-radius: 3px;
    background: #e2ded9;
    margin: 0 auto 24px;
}


/* Email badge */

.rev-contact {
    margin: 0 0 26px;
    text-align: center;
}

.rev-email-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    padding: 8px 4px 0;
}

.rev-email-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ec8a80 0%, #e57b70 100%);
    border: 5px solid #fff;
    box-shadow: 0 10px 26px rgba(229, 123, 112, .40);
    color: #fff;
    font-size: 28px;
    transition: transform .25s ease, box-shadow .25s ease;
}


/* Radiating rays above the badge */

.rev-email-icon::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    width: 46px;
    height: 22px;
    transform: translateX(-50%);
    background: linear-gradient(#eaa79f, #eaa79f) 50% 100% / 3px 12px no-repeat, linear-gradient(#eaa79f, #eaa79f) 18% 100% / 3px 9px no-repeat, linear-gradient(#eaa79f, #eaa79f) 82% 100% / 3px 9px no-repeat, linear-gradient(#eaa79f, #eaa79f) 2% 100% / 3px 6px no-repeat, linear-gradient(#eaa79f, #eaa79f) 98% 100% / 3px 6px no-repeat;
    opacity: .9;
}

.rev-email-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--rev-navy);
    letter-spacing: .01em;
}

.rev-email-badge:hover .rev-email-icon {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(229, 123, 112, .50);
}

.rev-side-divider {
    height: 1px;
    background: #eddedb;
    margin: 0 0 24px;
}


/* Expertise */

.rev-side-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.rev-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--rev-blush-2);
    color: var(--rev-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex: 0 0 44px;
}

.rev-side-head span {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--rev-red);
}

.rev-expertise {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    text-align: left;
}

.rev-expertise li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #2f3950;
    padding: 8px 0;
    border-bottom: 1px solid #f3e2df;
    line-height: 1.45;
}

.rev-expertise li:last-child {
    border-bottom: 0;
}

.rev-expertise li i {
    color: var(--rev-red);
    font-size: 14px;
    line-height: 1.35;
    flex: 0 0 auto;
}


/* Sidebar quote */

.rev-side-quote {
    background: var(--rev-blush-2);
    border-radius: 14px;
    padding: 24px 22px 28px;
    text-align: center;
    position: relative;
}

.rev-side-quote .rev-quote-mark {
    color: var(--rev-red);
    font-size: 34px;
    line-height: 1;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    display: block;
    text-align: left;
    margin-bottom: 6px;
}

.rev-side-quote p {
    margin: 0;
    font-style: italic;
    font-size: 14.5px;
    line-height: 1.75;
    color: #2b3550;
}


/* ---------------------------------------------------- Content ----------- */

.reviewer-main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 44px 52px 40px;
}

.rev-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--rev-blush-2);
    color: var(--rev-red);
    font-size: 12px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 9px 16px;
    border-radius: 9px;
    margin-bottom: 18px;
}

.reviewer-main .rev-name {
    font-size: 34px;
    font-weight: 800;
    color: var(--rev-navy);
    margin: 0 0 8px;
    letter-spacing: -.015em;
}

.reviewer-main .rev-role {
    font-size: 16px;
    color: var(--rev-red);
    margin: 0 0 26px;
}


/* Tighten the gap when the education line follows the role. */

.reviewer-main .rev-role:has(+ .rev-education) {
    margin-bottom: 10px;
}

.rev-education {
    font-size: 14.5px;
    color: var(--rev-body);
    margin: 0 0 26px;
}


/* Tighten stacked info lines (Resides In + Education). */

.rev-education:has(+ .rev-education) {
    margin-bottom: 8px;
}

.rev-education span {
    font-weight: 700;
    color: var(--rev-navy);
}

.rev-hr {
    height: 1px;
    background: var(--rev-line);
    margin: 26px 0;
}


/* Section blocks */

.rev-section {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.rev-section .rev-icon-badge {
    margin-top: 2px;
}

.rev-section-body {
    flex: 1 1 auto;
    min-width: 0;
}

.rev-section-title {
    font-size: 14.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--rev-navy);
    margin: 8px 0 14px;
}

.rev-section-body p {
    font-size: 14.5px;
    line-height: 1.78;
    color: var(--rev-body);
    margin: 0 0 18px;
}

.rev-section-body p:last-child {
    margin-bottom: 0;
}

.rev-checklist {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.rev-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--rev-body);
    padding: 6px 0;
}

.rev-checklist li i {
    color: var(--rev-red);
    font-size: 15px;
    line-height: 1.5;
    flex: 0 0 auto;
}


/* Latest blogs */

.rev-blog-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: auto auto;
}

.rev-blog-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--rev-line);
}

.rev-blog-item:last-child {
    border-bottom: 0;
}

.rev-blog-thumb {
    flex: 0 0 64px;
}

.rev-blog-thumb img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.rev-blog-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.rev-blog-title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--rev-navy);
    text-decoration: none;
    line-height: 1.4;
}

.rev-blog-title:hover {
    color: var(--rev-red);
}

.rev-blog-date {
    font-size: 12.5px;
    color: #8a93a5;
}


/* Footer: website link on the left, brand-coloured social icons on the right */

.rev-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--rev-line);
}

.rev-site {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #6b7280;
    text-decoration: none;
    word-break: break-all;
}

.rev-site i {
    color: var(--rev-navy);
    font-size: 16px;
    flex: 0 0 auto;
}

.rev-site:hover span {
    color: var(--rev-navy);
    text-decoration: underline;
}

.rev-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rev-socials .social-link {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rev-navy);
    font-size: 15px;
    line-height: 1;
    text-decoration: none;
    transition: background-color .2s ease, transform .2s ease;
}

.rev-socials .social-link:hover {
    background: #e6e8ec;
    transform: translateY(-2px);
}

.rev-socials .social-link svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}


/* Brand colours — the icon element carries the colour for every network. */

.rev-socials .bi-twitter-x,
.rev-socials .bi-medium {
    color: #000;
}

.rev-socials .bi-linkedin {
    color: #0a66c2;
}

.rev-socials .bi-facebook {
    color: #1877f2;
}

.rev-socials .bi-instagram {
    color: #e4405f;
}

.rev-socials .bi-youtube {
    color: #f00;
}

.rev-socials .bi-reddit {
    color: #ff4500;
}

.rev-socials .fa-quora {
    color: #b92b27;
}

.rev-socials .social-link svg {
    fill: #1185fe;
}


/* Bluesky (inline SVG) */


/* Sidebar author stat (author archive) */

.rev-author-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: var(--rev-blush-2);
    border-radius: 14px;
    padding: 22px 18px;
}

.rev-stat-value {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    color: var(--rev-red);
}

.rev-stat-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--rev-navy);
}


/* Pagination (author archive) */

.rev-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.rev-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    background: #f3f4f6;
    color: var(--rev-navy);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.rev-pagination .page-numbers:hover {
    background: #e6e8ec;
}

.rev-pagination .page-numbers.current {
    background: linear-gradient(180deg, #ec8a80 0%, #e57b70 100%);
    color: #fff;
}

.rev-pagination .page-numbers.dots {
    background: transparent;
}


/* ---------------------------------------------------- Responsive -------- */

@media (max-width: 991.98px) {
    .reviewer-card {
        flex-direction: column;
    }
    .reviewer-side {
        flex: 1 1 auto;
        max-width: none;
    }
    .reviewer-main {
        padding: 36px 34px 36px;
    }
}

@media (max-width: 575.98px) {
    .reviewer-card {
        border-radius: 20px;
    }
    .reviewer-side {
        padding: 34px 22px 32px;
    }
    .reviewer-main {
        padding: 30px 22px 32px;
    }
    .reviewer-main .rev-name {
        font-size: 27px;
    }
    .rev-section {
        gap: 16px;
    }
    .rev-section .rev-icon-badge {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        font-size: 16px;
    }
    .rev-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
}