/* =============================================
   Cubic Promote – Author Archive Page Styles
   Target: /blog/author/*  |  CSS-only, no HTML changes
   ============================================= */

/* ═══════════════════════════════════════════
   1. PAGE HEADER BANNER
   ═══════════════════════════════════════════ */

/* Teal banner background – matches single-post style */
main#main-content {
    padding-top: 0;
}

body.author #page-header-bg,
body.archive.author #page-header-bg {
    background-color: #0097ce !important;
    padding: 80px 0 80px !important;
}

/* "All Posts By" label above the name */
body.author #page-header-bg .archive-title,
body.author #page-header-bg .page-title,
body.author #page-header-bg h1 {
    color: #fff !important;
    margin: 0 0 4px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    text-transform: none !important;
    line-height: 1.3 !important;
}

/* Author name – large bold uppercase */
body.author #page-header-bg .author-name,
body.author #page-header-bg .archive-title span,
body.author #page-header-bg h1 strong,
body.author #page-header-bg .page-title strong {
    display: block;
    font-size: 36px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #fff !important;
    line-height: 1.1 !important;
    margin-top: 4px !important;
}

/* For themes that put the full title as one h1 */
body.author #page-header-bg .archive-title {
    font-size: 36px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #fff !important;
    line-height: 1.2 !important;
}

/* ═══════════════════════════════════════════
   2. INTRO TEXT / AUTHOR DESCRIPTION
   ═══════════════════════════════════════════ */

body.author .archive-description,
body.author .author-description,
body.author .author-bio,
.author-archive-description {
    background: transparent;
    padding: 18px 0 0;
    margin-bottom: 32px;
    font-size: 14px;
    color: #555;
    line-height: 1.65;
    border-bottom: 1px solid #e5edf0;
    padding-bottom: 22px;
}

body.author .archive-description p,
body.author .author-description p {
    margin: 0;
    color: #000;
}

body.author .archive-description a,
body.author .author-description a {
    color: #5F96AA;
    text-decoration: underline;
}

/* ═══════════════════════════════════════════
   3. POSTS LIST WRAPPER
   ═══════════════════════════════════════════ */

body.author .blog-posts,
body.author #blog-posts,
body.author .posts-listing,
body.author .entries-listing,
body.author main .site-main {
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 0 40px;
}

/* ═══════════════════════════════════════════
   4. INDIVIDUAL POST ENTRIES
   ═══════════════════════════════════════════ */

/* Article wrapper */
body.author article.post,
body.author .post-item,
body.author .hentry,
body.author .type-post {
    display: block;
    width: 100%;
    padding: 32px 0;
    border-bottom: 1px solid #e4edf1;
    background: transparent;
    margin: 0;
}

body.author article.post:last-of-type,
body.author .post-item:last-of-type {
    border-bottom: none;
}

/* ── 4a. Post Meta (date + category) ────── */

body.author .post-meta,
body.author .entry-meta,
body.author .post-header .meta,
body.author .post-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 12px;
}

/* Date */
body.author .post-date,
body.author .entry-date,
body.author time,
body.author .published {
    color: #888 !important;
    font-size: 12px;
    font-weight: 400;
    text-transform: none;
}

/* Separator between date and category */
body.author .post-date::after,
body.author .entry-date::after {
    content: " ·";
    color: #bbb;
    margin-left: 6px;
}

/* Category tag */
body.author .post-category,
body.author .entry-categories,
body.author .post-categories,
body.author .cat-links,
body.author .post-cats {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

body.author .post-category a,
body.author .entry-categories a,
body.author .post-categories a,
body.author .cat-links a {
    color: #E5703A !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

body.author .post-category a:hover,
body.author .entry-categories a:hover,
body.author .cat-links a:hover {
    color: #c45a28 !important;
    text-decoration: underline !important;
}

/* ── 4b. Post Title ──────────────────────── */

body.author .post-title,
body.author .entry-title,
body.author h2.entry-title,
body.author h3.post-title {
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #1a2a38 !important;
    margin: 0 0 16px !important;
}

body.author .post-title a,
body.author .entry-title a {
    color: #1a2a38 !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

body.author .post-title a:hover,
body.author .entry-title a:hover {

    text-decoration: none !important;
}

/* ── 4c. Featured Image ──────────────────── */

body.author .featured-image,
body.author .post-thumbnail,
body.author .post-image,
body.author .wp-post-image-wrap {
    display: block;
    width: 100%;
    margin: 0 0 18px;
    overflow: hidden;
    border-radius: 6px;
}

body.author .featured-image a,
body.author .post-thumbnail a,
body.author .post-image a {
    display: block;
}

body.author .featured-image img,
body.author .post-thumbnail img,
body.author .post-image img,
body.author .wp-post-image {
    /* width: 100% !important;
    height: auto !important;
    max-height: 420px !important; */
    object-fit: cover !important;
    display: block;
    border-radius: 6px;
    transition: transform 0.35s ease;
}

body.author .featured-image img:hover,
body.author .post-thumbnail img:hover {
    transform: scale(1.02);
}

/* ── 4d. Excerpt / Entry Content ─────────── */

body.author .entry-excerpt,
body.author .entry-summary,
body.author .entry-content,
body.author .post-excerpt,
body.author .post-content {
    font-size: 14.5px;
    line-height: 1.72;
    color: #555;
    margin: 0 0 16px;
}

body.author .entry-excerpt p,
body.author .entry-summary p,
body.author .entry-content p,
body.author .post-excerpt p {
    margin: 0 0 8px;
    color: #000;
}

/* ── 4e. Read More Link ──────────────────── */

body.author a.read-more,
body.author a.more-link,
body.author .read-more-link,
body.author .post-read-more a,
body.author .entry-more a {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #5F96AA !important;
    text-decoration: none !important;
    letter-spacing: 0.2px;
    border-bottom: 1.5px solid transparent;
    padding-bottom: 1px;
    transition: border-color 0.2s, color 0.2s;
}

body.author a.read-more:hover,
body.author a.more-link:hover,
body.author .read-more-link:hover {
    color: #f9a32f !important;
    border-bottom-color: #f9a32f;
}

/* Hide the "…" before "Read More" if theme adds it */
body.author .more-link::before {
    display: none;
}

/* ═══════════════════════════════════════════
   5. PAGINATION
   ═══════════════════════════════════════════ */

body.author .pagination,
body.author .page-numbers,
body.author nav.pagination,
body.author .posts-navigation,
body.author .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 36px 0 20px;
}

body.author .page-numbers a,
body.author .page-numbers span,
body.author .pagination a,
body.author .pagination span,
body.author .nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    color: #000;
    border: none;
}

body.author .page-numbers a:hover,
body.author .pagination a:hover {
    color: #f9a32f !important;
    border: none !important;
}

body.author .page-numbers.current,
body.author .page-numbers span.current,
body.author .pagination .current {
    background: #f9a32f !important;
    color: #fff !important;
    border-color: #f9a32f !important;
}

body.author .page-numbers.dots {
    border: none;
    background: transparent;
    color: #aaa;
    min-width: 20px;
}

/* Prev/Next arrows */
body.author .page-numbers.prev,
body.author .page-numbers.next {
    border-radius: 4px;
    font-size: 13px;
}

/* ═══════════════════════════════════════════
   6. CONTENT AREA LAYOUT
   ═══════════════════════════════════════════ */

body.author .content-area,
body.author #content {
    /* max-width: 900px; */
    margin: 0 auto;
    padding: 32px 20px 60px;
    float: none !important;
    width: 100% !important;
}

/* Hide sidebar on author pages if present */
body.author .sidebar,
body.author #sidebar,
body.author aside.widget-area {
    display: none !important;
}

/* ═══════════════════════════════════════════
   7. POST COUNT / "ITEMS X TO Y" TEXT
   ═══════════════════════════════════════════ */

body.author .toolbar,
body.author .posts-toolbar,
body.author .woocommerce-result-count,
body.author .showing-posts {
    font-size: 12.5px;
    color: #888;
    margin-bottom: 20px;
    text-align: right;
}

body.author .content-area,
body.author #content,
body.author .site-content {
    /* max-width: 860px !important; */
    margin: 0 auto !important;
    float: none !important;
    width: 100% !important;
    padding: 32px 20px 60px !important;
}

/* Remove sidebar pushing content */
body.author .sidebar,
body.author #secondary {
    display: none !important;
}

body.author #page-header-bg {
    background-color: #0097ce !important;
    padding: 40px 0 44px !important;
    margin-bottom: 0 !important;
}

/* Make sure the text inside is white */
body.author #page-header-bg *,
body.author #page-header-bg h1,
body.author #page-header-bg p {
    color: #fff !important;
}

body.author #page-header-bg h1 {
    font-size: 50px !important;
    font-weight: 800 !important;
    text-transform: capitalize !important;
    margin: 4px 0 0 !important;
}

body.author #page-header-bg p {
    font-size: 20px !important;
    font-weight: 500 !important;
    margin: 0 !important;
    opacity: 0.9;
}

img.attachment-large.size-large.wp-post-image {
    width: 43%;
}

/* ═══════════════════════════════════════════
   8. RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {
    body.author #page-header-bg {
        padding: 28px 20px 32px !important;
    }

    body.author #page-header-bg .archive-title {
        font-size: 24px !important;
    }

    body.author .content-area,
    body.author #content {
        padding: 20px 15px 40px;
    }

    body.author article.post,
    body.author .post-item {
        padding: 24px 0;
    }

    body.author .featured-image img,
    body.author .post-thumbnail img {
        max-height: 220px !important;
    }

    body.author .post-title,
    body.author .entry-title {
        font-size: 17px !important;
    }

    img.attachment-large.size-large.wp-post-image {
        width: 100%;
    }
}

body.author #page-header-bg .subheader {
    text-transform: capitalize;
    font-size: 50px !important;
    line-height: 30px !important;
    font-weight: 800 !important;
}

body.author #page-header-bg p.user-bio {

    font-size: 20px !important;
    line-height: 1.5 !important;
    margin-top: .5em !important;
}

.content-area {
    max-width: 100% !important;
}

.cp-author-post-meta a {
    color: #f9a32f;
    font-size: 12px;
}

.cp-author-post-meta a:hover {
    color: #000;
}

.cp-author-post-meta span {
    font-size: 12px;
}

.post-meta-author .post-date {
    font-size: 17px !important;
}

.post-meta-author {
    padding-bottom: 4px;
}

body.author .entry-title a {
    color: #f9a32f !important;
    font-size: 24px !important;
    margin: 0 0 32px !important;
}

body.author a.read-more {
    color: #2b2a2a !important;

    font-size: 17px;
    font-weight: 400;
}

.author-single .featured-image img {
    height: 220px !important;
}

.page-numbers.current {
    background-color: #f9a32f !important;
    -webkit-border-radius: 200px !important;
}

.archive-description p a {
    color: orange !important;
    text-decoration: none !important;
}

.archive-description p a {
    color: #f9a32f !important;
    text-decoration: none !important;
}

.archive-description p a:hover {
    color: #000 !important;
}

/* ═══════════════════════════════════════════
   9. AUTHOR HEADER — Image + Name + Description (like old Nectar theme)
   ═══════════════════════════════════════════ */
.cp-author-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cp-author-header__img-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cp-author-header__img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    object-position: top center;
    border-radius: 5px;
    background: #b9c8ce;
    flex-shrink: 0;
}

.cp-author-header__title {
    display: flex;
    flex-direction: column;
}

.cp-author-header__sub {
    font-size: 32px !important;
    font-weight: 700 !important;
    font-style: italic;
    opacity: 1;
    margin: 0 0 2px !important;
}

.cp-author-header h1 {
    font-size: 32px !important;
    font-weight: 700 !important;
    text-transform: capitalize !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    letter-spacing: 0;
}

.cp-author-header__role {
    font-size: 13px !important;
    margin: 6px 0 0 !important;
    opacity: 0.85;
}

.cp-author-header__desc {
    font-size: 20px !important;
    font-family: 'Open Sans', sans-serif !important;
    line-height: 1.5 !important;
    color: #fff !important;
    margin: 10px 0 0 !important;
    opacity: 1;
}

.cp-author-header__desc a {
    color: #f9a32f !important;
    text-decoration: none !important;
}

.cp-author-header__desc a:hover {
    color: #000 !important;
}

body.author #page-header-bg .cp-author-header__desc a {
    color: #f9a32f !important;
}

body.author #page-header-bg .cp-author-header__desc a:hover {
    color: #000 !important;
}

@media (max-width: 767px) {
    .cp-author-header__img-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cp-author-header__img {
        width: 80px;
        height: 80px;
    }

    .cp-author-header h1 {
        font-size: 28px !important;
    }

    .cp-author-header__sub {
        font-size: 18px !important;
    }
}
