/* =============================================================
   Clean Crew Jamaica
   Articles

   The list of articles and each article, written in Clean Crew OS.
   Shared site styles belong in ccj-core.css.
   ============================================================= */


/* =============================================================
   Articles Hero
   ============================================================= */

.ccj-articles-hero,
.ccj-article-hero {
    display: flex;
    align-items: center;
    padding-top: 150px;
    background: linear-gradient(90deg, rgba(0, 12, 35, 0.84), rgba(0, 12, 35, 0.5)), var(--ccj-hero-image, url("../images/ccj-truck-road.jpeg")) center / cover no-repeat;
}

.ccj-articles-hero {
    min-height: 460px;
}

.ccj-article-hero {
    min-height: 540px;
    padding-bottom: 60px;
}

.ccj-articles-hero-content {
    width: min(1100px, calc(100% - 120px));
    margin: 0 auto;
}

.ccj-article-hero .ccj-articles-hero-content {
    width: min(900px, calc(100% - 120px));
}

    .ccj-articles-hero-content > span {
        display: block;
        margin-bottom: 14px;
        color: #4f8cff;
        font-size: 13px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .ccj-articles-hero-content h1 {
        max-width: 860px;
        margin: 0;
        color: #ffffff;
        font-size: clamp(40px, 5vw, 70px);
        line-height: 1.06;
        letter-spacing: -0.055em;
        font-weight: 900;
        overflow-wrap: anywhere;
    }

    .ccj-articles-hero-content p {
        max-width: 680px;
        margin: 24px 0 0;
        color: rgba(255, 255, 255, 0.86);
        font-size: 20px;
        line-height: 1.6;
        font-weight: 500;
    }

.ccj-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 26px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    font-weight: 600;
}

    .ccj-article-meta i {
        margin-right: 6px;
        color: #4f8cff;
    }


/* =============================================================
   Articles List
   ============================================================= */

.ccj-articles-section {
    padding: 100px 0 110px;
    background: var(--ccj-soft);
}

.ccj-articles-grid {
    width: min(1250px, calc(100% - 120px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.ccj-article-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--ccj-text);
    background: #ffffff;
    border: 1px solid rgba(10, 31, 68, 0.07);
    border-radius: 24px;
    box-shadow: 0 16px 42px rgba(10, 31, 68, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .ccj-article-card:hover,
    .ccj-article-card:focus {
        color: var(--ccj-text);
        transform: translateY(-3px);
        box-shadow: 0 22px 54px rgba(10, 31, 68, 0.13);
    }

    .ccj-article-card img {
        width: 100%;
        aspect-ratio: 16 / 10;
        object-fit: cover;
        display: block;
    }

.ccj-article-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 26px 28px 30px;
}

    .ccj-article-card-body time {
        color: var(--ccj-blue);
        font-size: 13px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .ccj-article-card-body h2 {
        margin: 10px 0 0;
        color: #071a3d;
        font-size: 23px;
        line-height: 1.25;
        letter-spacing: -0.03em;
        font-weight: 900;
        overflow-wrap: anywhere;
    }

    .ccj-article-card-body p {
        margin: 12px 0 0;
        color: var(--ccj-muted);
        font-size: 16px;
        line-height: 1.6;
    }

.ccj-article-read {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
    color: var(--ccj-blue);
    font-size: 15px;
    font-weight: 800;
}

.ccj-articles-empty {
    width: min(640px, calc(100% - 40px));
    margin: 0 auto;
    padding: 50px 30px;
    text-align: center;
    background: #ffffff;
    border-radius: 24px;
}

    .ccj-articles-empty h2 {
        margin: 0 0 10px;
        color: #071a3d;
        font-size: 26px;
        font-weight: 900;
    }

    .ccj-articles-empty p {
        margin: 0;
        color: var(--ccj-muted);
        font-size: 17px;
    }

.ccj-articles-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px 24px;
    margin-top: 54px;
    color: var(--ccj-muted);
    font-size: 15px;
    font-weight: 700;
}

    .ccj-articles-pager a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 12px 20px;
        color: var(--ccj-blue);
        background: #ffffff;
        border-radius: 14px;
        box-shadow: 0 10px 28px rgba(10, 31, 68, 0.08);
    }


/* =============================================================
   Article
   ============================================================= */

.ccj-article-draft {
    display: inline-block;
    margin: 0 0 22px;
    padding: 10px 16px;
    color: #6b4a00;
    background: #fff4d6;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}

.ccj-article {
    padding: 80px 0 40px;
}

.ccj-article-body {
    width: min(760px, calc(100% - 40px));
    margin: 0 auto;
    color: #24314f;
    font-size: 18px;
    line-height: 1.8;
    overflow-wrap: break-word;
}

    .ccj-article-body > :first-child {
        margin-top: 0;
    }

    .ccj-article-body p {
        margin: 0 0 1.3em;
    }

    .ccj-article-body h2 {
        margin: 1.8em 0 0.6em;
        color: #071a3d;
        font-size: 32px;
        line-height: 1.2;
        letter-spacing: -0.04em;
        font-weight: 900;
    }

    .ccj-article-body h3 {
        margin: 1.6em 0 0.5em;
        color: #071a3d;
        font-size: 24px;
        line-height: 1.3;
        letter-spacing: -0.03em;
        font-weight: 800;
    }

    .ccj-article-body ul,
    .ccj-article-body ol {
        margin: 0 0 1.3em;
        padding-left: 1.4em;
    }

    .ccj-article-body li {
        margin-bottom: 0.4em;
    }

        .ccj-article-body li p {
            margin: 0;
        }

    .ccj-article-body a {
        color: var(--ccj-blue);
        font-weight: 700;
        text-decoration: underline !important;
        text-underline-offset: 3px;
    }

    .ccj-article-body img {
        display: block;
        max-width: 100%;
        height: auto;
        margin: 2em auto;
        border-radius: 20px;
        box-shadow: 0 18px 46px rgba(10, 31, 68, 0.12);
    }

    .ccj-article-body blockquote {
        margin: 1.8em 0;
        padding: 6px 0 6px 26px;
        color: #071a3d;
        border-left: 4px solid var(--ccj-blue);
        font-size: 21px;
        font-weight: 600;
        line-height: 1.6;
    }

        .ccj-article-body blockquote p:last-child {
            margin-bottom: 0;
        }

    .ccj-article-body hr {
        margin: 2.4em 0;
        border: 0;
        border-top: 1px solid var(--ccj-border);
        opacity: 1;
    }

.ccj-article-back {
    width: min(760px, calc(100% - 40px));
    margin: 40px auto 0;
}

    .ccj-article-back a {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        color: var(--ccj-blue);
        font-size: 15px;
        font-weight: 800;
    }


/* =============================================================
   Article Call To Action
   ============================================================= */

.ccj-article-cta {
    width: min(1100px, calc(100% - 120px));
    margin: 60px auto 100px;
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
    color: #ffffff;
    border-radius: 30px;
    background: linear-gradient(120deg, #061a40, #0b3a8f);
    box-shadow: var(--ccj-shadow);
}

    .ccj-article-cta span {
        display: block;
        margin-bottom: 10px;
        color: #8db4ff;
        font-size: 13px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .ccj-article-cta h2 {
        margin: 0;
        font-size: clamp(26px, 3vw, 36px);
        line-height: 1.15;
        letter-spacing: -0.04em;
        font-weight: 900;
    }

.ccj-article-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.ccj-article-more {
    padding: 90px 0 100px;
    background: var(--ccj-soft);
}


/* =============================================================
   Articles Responsive Layout
   ============================================================= */

@media (max-width: 900px) {
    .ccj-article-cta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .ccj-articles-hero,
    .ccj-article-hero {
        padding-top: 120px;
    }

    .ccj-articles-hero {
        min-height: 400px;
    }

    .ccj-article-hero {
        min-height: 460px;
        padding-bottom: 44px;
    }

    .ccj-articles-hero-content,
    .ccj-article-hero .ccj-articles-hero-content,
    .ccj-articles-grid,
    .ccj-article-cta {
        width: calc(100% - 32px);
    }

    .ccj-articles-hero-content p {
        font-size: 18px;
    }

    .ccj-articles-section,
    .ccj-article-more {
        padding: 64px 0 72px;
    }

    .ccj-articles-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .ccj-article {
        padding-top: 54px;
    }

    .ccj-article-body,
    .ccj-article-back {
        width: calc(100% - 32px);
    }

    .ccj-article-body {
        font-size: 17px;
    }

        .ccj-article-body h2 {
            font-size: 27px;
        }

        .ccj-article-body h3 {
            font-size: 22px;
        }

    .ccj-article-cta {
        margin: 40px auto 70px;
        padding: 34px 24px;
        border-radius: 24px;
    }

    .ccj-article-cta-actions a {
        width: 100%;
    }
}
