/* =========================
   Author Page
========================= */

.author-page {
    background: #f7f7fb;
    min-height: 70vh;
}

/* =========================
   AUTHOR HERO
========================= */

.author-hero {
    position: relative;
    display: flex;
    min-height: 16vh;
    padding-top: 76px;
    padding-left: 25px;
    background-color: var(--ts-purple);
}

.author-hero h1 {
    margin-bottom: .65rem !important;
}

.author-hero .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.author-hero h1 {
    margin: 0;
    color: #fff !important;
    font-size: clamp(1.8rem, 3.4vw, 2.7rem);
    line-height: 1.08;
    font-weight: 600;
    text-wrap: balance;
}

/* =========================
   AUTHOR PROFILE
========================= */

.author-profile-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: #fff;
    border: 1px solid #e2e2e8;
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 28px rgba(38, 37, 65, 0.08);
}

.author-image-wrap {
    width: 118px;
    height: 118px;
    flex: 0 0 118px;
    border-radius: 18px;
    overflow: hidden;
    background: #f1f1f3;
}

.author-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================
   ABOUT TEXT
========================= */

.author-profile-copy h2 {
    margin: 0 0 0.3rem;
    color: #262541 !important;
    font-size: 1.18rem;
    line-height: 1.25;
    font-weight: 600;
}

.author-expertise {
    margin: 0 0 0.55rem;
    color: #262541 !important;
    font-size: 0.88rem;
    font-weight: 600;
}

.author-bio {
    margin: 0;
    color: #555 !important;
    font-size: 0.92rem;
    line-height: 1.55;
}

/* =========================
   SIDEBAR
========================= */

.author-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.author-card {
    background: #fff;
    border: 1px solid #e2e2e8;
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 8px 28px rgba(38, 37, 65, 0.08);
}

.author-card h2 {
    margin: 0 0 0.75rem;
    color: #262541 !important;
    font-size: 0.95rem;
    line-height: 1.3;
    font-weight: 600;
}

.author-stat-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #eeeeF4;
}

.author-stat-row:last-child {
    border-bottom: 0;
}

.author-stat-row span {
    color: #666 !important;
    font-size: 0.86rem;
}

.author-stat-row strong {
    color: #262541 !important;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
}

.author-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.author-links a {
    display: block;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: #f7f7fb;
    color: #262541 !important;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
}

.author-links a:hover {
    background: #eeeeF4;
}

/* =========================
   POSTS
========================= */

.author-section-heading {
    margin-bottom: 1rem;
}

.author-section-heading h2 {
    margin: 0 0 0.25rem;
    color: #262541 !important;
    font-size: 1.25rem;
    line-height: 1.25;
    font-weight: 600;
}

.author-section-heading p {
    margin: 0;
    color: #666 !important;
    font-size: 0.92rem;
}

.author-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.author-post-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.author-post-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.author-post-card-image {
    height: 170px;
    overflow: hidden;
    background: #eee;
}

.author-post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Card body */
.author-post-card-body {
    padding: 1rem;
}

.author-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.5rem;
}

.author-post-card-label {
    display: inline-block;
    color: #666 !important;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.author-post-card-title {
    color: #262541 !important;
    font-size: 1.02rem;
    line-height: 1.35;
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.author-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 0.65rem;
}

.author-post-tags span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    background: #f0f0f6;
    color: #262541 !important;
    font-size: 0.72rem;
    font-weight: 600;
}

.author-post-card-description {
    color: #555 !important;
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}

/* =========================
   EMPTY / 404
========================= */

.author-empty {
    background: #f7f7f9;
    padding: 1.5rem;
    border-radius: 10px;
}

.author-empty h2 {
    color: #262541 !important;
    margin-top: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.author-empty p {
    color: #555 !important;
    font-size: 0.92rem;
}

.ts-author-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #262541;
    color: #fff !important;
    border-radius: 5px;
    padding: 0.65rem 1rem;
    font-weight: 600;
    text-decoration: none;
}

.ts-author-btn:hover {
    opacity: 0.92;
}

/* =========================
   TABLET
========================= */

@media (max-width: 991.98px) {
    .author-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 575.98px) {

    .author-hero h1 {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    .author-profile-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .author-image-wrap {
        width: 104px;
        height: 104px;
        flex-basis: 104px;
        border-radius: 16px;
    }

    .author-post-grid {
        grid-template-columns: 1fr;
    }
}