/* ==========================================================
   BLOG ARCHIVE (Career Resources) — CuracaoJobs.co
   Adapted from locked mockup: blog_archive_v1.html
   Scoped to body.blog only (WordPress's automatic body class
   for the posts-index template, home.php).
   ========================================================== */

body.blog .cj-blog-archive {
    background: #F4F8F6;
    color: #174035;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* BREADCRUMB */
body.blog .cj-breadcrumb {
    max-width: 760px;
    margin: 0 auto;
    padding: 1rem 2.5rem 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #8a9aaa;
}

body.blog .cj-breadcrumb a {
    color: #8a9aaa;
    text-decoration: none;
}

body.blog .cj-breadcrumb a:hover {
    color: #2E8B72;
}

body.blog .cj-breadcrumb span {
    color: #174035;
}

body.blog .cj-breadcrumb .rank-math-breadcrumb p {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}

body.blog .cj-breadcrumb .separator {
    color: #8a9aaa;
}

/* PAGE HEADER */
body.blog .cj-page-header {
    max-width: 760px;
    margin: 1.25rem auto 0;
    padding: 0 2.5rem;
}

body.blog .cj-page-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #174035 !important;
    letter-spacing: -0.4px;
    margin-bottom: 4px;
}

body.blog .cj-page-header p {
    font-size: 14px;
    color: #6B7280;
}

/* FEATURED ARTICLE */
body.blog .cj-featured-wrap {
    max-width: 760px;
    margin: 1.75rem auto 0;
    padding: 0 2.5rem;
}

body.blog .cj-featured-article {
    background: #fff;
    border: 0.5px solid #D8E8E4;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s;
}

body.blog .cj-featured-article:hover {
    box-shadow: 0 2px 16px rgba(46,139,114,0.08);
    border-color: #B8DDD5;
}

body.blog .cj-featured-img {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

body.blog .cj-featured-img i {
    font-size: 40px;
}

body.blog .cj-featured-content {
    padding: 1.75rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

body.blog .cj-art-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

body.blog .cj-art-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    color: #2E8B72 !important;
    background: rgba(46,139,114,0.1);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.blog .cj-art-featured-badge i {
    font-size: 10px;
}

body.blog .cj-art-category {
    font-size: 11px;
    font-weight: 600;
    color: #3B5BDB !important;
    background: #F0F4FF;
    padding: 2px 8px;
    border-radius: 4px;
}

body.blog .cj-art-title {
    font-size: 20px;
    font-weight: 700;
    color: #174035 !important;
    line-height: 1.3;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
}

body.blog .cj-art-excerpt {
    font-size: 13px;
    color: #4a5a6a;
    line-height: 1.7;
    margin-bottom: 14px;
}

body.blog .cj-art-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: #8a9aaa;
    margin-bottom: 14px;
}

body.blog .cj-art-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

body.blog .cj-art-meta i {
    font-size: 12px;
}

body.blog .cj-art-read {
    font-size: 13px;
    font-weight: 600;
    color: #2E8B72 !important;
}

/* CATEGORY FILTERS */
body.blog .cj-filters-wrap {
    max-width: 760px;
    margin: 1.5rem auto 0;
    padding: 0 2.5rem;
}

body.blog .cj-category-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

body.blog .cj-pill {
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    border: 0.5px solid #D8E8E4;
    background: #fff;
    color: #6B7280 !important;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

body.blog .cj-pill:hover {
    border-color: #B8DDD5;
    color: #174035 !important;
}

body.blog .cj-pill.cj-pill-active {
    background: #2E8B72;
    border-color: #2E8B72;
    color: #fff !important;
    font-weight: 600;
}

/* ARTICLE LIST */
body.blog .cj-article-list {
    max-width: 760px;
    margin: 1.5rem auto 0;
    padding: 0 2.5rem;
    display: flex;
    flex-direction: column;
}

body.blog .cj-article-row {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 0.5px solid #D8E8E4;
    text-decoration: none;
    color: inherit;
    transition: background 0.12s;
}

body.blog .cj-article-row:first-child {
    padding-top: 0;
}

body.blog .cj-article-row:last-child {
    border-bottom: none;
}

body.blog .cj-article-row:hover .cj-art-row-title {
    color: #2E8B72 !important;
}

body.blog .cj-art-thumb {
    width: 110px;
    height: 80px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

body.blog .cj-art-thumb i {
    font-size: 22px;
}

body.blog .cj-art-row-body {
    flex: 1;
    min-width: 0;
}

body.blog .cj-art-row-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

body.blog .cj-art-row-cat {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

body.blog .cj-art-row-title {
    font-size: 15px;
    font-weight: 700;
    color: #174035 !important;
    line-height: 1.3;
    margin-bottom: 5px;
    transition: color 0.12s;
}

body.blog .cj-art-row-excerpt {
    font-size: 12px;
    color: #6B7280;
    line-height: 1.65;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.blog .cj-art-row-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #8a9aaa;
}

body.blog .cj-art-row-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

body.blog .cj-art-row-meta i {
    font-size: 11px;
}

body.blog .cj-dot {
    color: #D8E8E4;
}

/* NEWSLETTER */
body.blog .cj-blog-newsletter {
    background: #E6F3EF;
    border-top: 0.5px solid #B8DDD5;
    border-bottom: 0.5px solid #B8DDD5;
    padding: 2.5rem;
    margin-top: 2rem;
}

body.blog .cj-newsletter-inner {
    max-width: 520px;
    margin: 0 auto;
}

body.blog .cj-newsletter-inner h3 {
    font-size: 18px;
    font-weight: 700;
    color: #174035 !important;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

body.blog .cj-newsletter-inner p {
    font-size: 13px;
    color: #6b7a8d;
    margin-bottom: 1.25rem;
}

body.blog .cj-newsletter-options {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

body.blog .cj-newsletter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #174035;
    cursor: pointer;
}

body.blog .cj-newsletter-option input {
    accent-color: #2E8B72;
    width: 15px;
    height: 15px;
}

/* WPForms override inside newsletter card — rewritten against the real
   rendered DOM (form #274): field order is checkbox field, two hidden
   anti-spam fields, email field, then a separate .wpforms-submit-container
   sibling holding the button. The email field and submit button sit in
   different containers, so they need to be paired via flex on a shared
   parent rather than assuming the whole <form> is one row. */
body.blog .cj-wpforms-wrap .wpforms-field {
    padding: 0 0 12px !important;
}

body.blog .cj-wpforms-wrap .wpforms-field-checkbox legend {
    display: none !important;
}

body.blog .cj-wpforms-wrap .wpforms-field-checkbox ul {
    list-style: none !important;
    display: flex !important;
    gap: 1.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: wrap;
}

body.blog .cj-wpforms-wrap .wpforms-field-checkbox li {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

body.blog .cj-wpforms-wrap .wpforms-field-checkbox input[type="checkbox"] {
    accent-color: #2E8B72 !important;
    width: 15px !important;
    height: 15px !important;
}

body.blog .cj-wpforms-wrap .wpforms-field-checkbox label {
    font-size: 13px !important;
    color: #174035 !important;
    cursor: pointer;
}

/* Hide the field description line — duplicates the placeholder text by
   default in this form's setup. The real fix is clearing the Email
   field's Description in WPForms admin; this is a defensive backstop
   so it stays hidden even if that's not done. */
body.blog .cj-wpforms-wrap .wpforms-field-description {
    display: none !important;
}

body.blog .cj-wpforms-wrap .wpforms-field-email,
body.blog .cj-wpforms-wrap .wpforms-submit-container {
    display: inline-block !important;
    vertical-align: top !important;
}

body.blog .cj-wpforms-wrap form {
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-end !important;
    gap: 0 !important;
}

body.blog .cj-wpforms-wrap .wpforms-field-container {
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-start !important;
    gap: 8px !important;
    flex: 1 !important;
    min-width: 0;
}

body.blog .cj-wpforms-wrap .wpforms-submit-container {
    flex-shrink: 0 !important;
    margin-top: 0 !important;
}

body.blog .cj-wpforms-wrap .wpforms-field-checkbox {
    width: 100% !important;
    order: 1;
    padding-bottom: 10px !important;
}

body.blog .cj-wpforms-wrap [data-field-id="3"] {
    order: 2;
}

body.blog .cj-wpforms-wrap .wpforms-field-email {
    order: 3;
    flex: 1 !important;
    min-width: 200px;
    padding: 0 !important;
    margin: 0 !important;
}

body.blog .cj-wpforms-wrap .wpforms-field-label-hide {
    display: none !important;
}

body.blog .cj-wpforms-wrap input[type="email"],
body.blog .cj-wpforms-wrap input[type="text"] {
    flex: 1 !important;
    border: 0.5px solid #B8DDD5 !important;
    border-radius: 8px !important;
    padding: 11px 16px !important;
    font-size: 13px !important;
    color: #174035 !important;
    background: #fff !important;
    outline: none !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

body.blog .cj-wpforms-wrap button[type="submit"],
body.blog .cj-wpforms-wrap .wpforms-submit {
    background: #2E8B72 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 11px 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    white-space: nowrap !important;
}

body.blog .cj-newsletter-note {
    font-size: 11px;
    color: #aab0bb;
    margin-top: 10px;
}

/* PAGINATION — WordPress's paginate_links() outputs a <ul> when
   type=>'list', so target its native structure rather than custom
   button markup. */
body.blog .cj-pagination {
    width: 100%;
    max-width: 760px;
    margin: 1.5rem auto;
    padding: 0 2.5rem;
    box-sizing: border-box;
}

body.blog .cj-pagination ul.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 100%;
}

body.blog .cj-pagination a.page-numbers,
body.blog .cj-pagination span.page-numbers {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0.5px solid #D8E8E4;
    border-radius: 7px;
    background: #fff;
    font-size: 13px;
    color: #5a6a7a !important;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body.blog .cj-pagination a.page-numbers:hover,
body.blog .cj-pagination span.page-numbers:hover {
    border-color: #B8DDD5;
}

body.blog .cj-pagination span.page-numbers.current {
    background: #2E8B72;
    color: #fff !important;
    border-color: #2E8B72;
    font-weight: 600;
}

body.blog .cj-pagination span.page-numbers.dots {
    border: none;
    background: transparent;
    color: #D8E8E4 !important;
}

/* ── Mobile ── */
@media (max-width: 700px) {
    body.blog .cj-featured-article {
        flex-direction: column;
    }
    body.blog .cj-featured-img {
        width: 100%;
        height: 160px;
    }
    body.blog .cj-article-row {
        gap: 1rem;
    }
    body.blog .cj-art-thumb {
        width: 80px;
        height: 64px;
    }
}

@media (max-width: 480px) {
    body.blog .cj-breadcrumb,
    body.blog .cj-page-header,
    body.blog .cj-featured-wrap,
    body.blog .cj-filters-wrap,
    body.blog .cj-article-list,
    body.blog .cj-pagination {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    body.blog .cj-pagination ul.page-numbers {
        gap: 3px;
    }
    body.blog .cj-pagination a.page-numbers,
    body.blog .cj-pagination span.page-numbers {
        min-width: 30px;
        height: 30px;
        padding: 0 7px;
        font-size: 12px;
    }
    body.blog .cj-blog-newsletter {
        padding: 2rem 1.5rem;
    }
    body.blog .cj-wpforms-wrap form {
        flex-direction: column;
    }
}
