/*
 * Blueprint To Progress — AI Job Search
 * Page-specific CSS only.
 *
 * Load order:
 * 1. Global BTP CSS
 * 2. btp-career-articles-V9.4-CLEAN-PRODUCTION.css
 * 3. This page-specific stylesheet
 *
 * This file deliberately does NOT redefine the BTP article typography,
 * container width, breakpoints, image width, TOC typography, or global header.
 */

/* ---------------------------------------------------------
   Eyebrow / category pill
   --------------------------------------------------------- */
.btp-ai-job-search .article-category {
    display: inline-block;
    margin-top: 40px;
    margin-bottom: 18px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #e8f2ff;
    color: #2563eb;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---------------------------------------------------------
   TOC links
   --------------------------------------------------------- */
.btp-ai-job-search .article-toc-list a {
    display: block;
    margin: 0 0 8px;
}

/* ---------------------------------------------------------
   Responsive table wrapper
   --------------------------------------------------------- */
.btp-ai-job-search .btp-table-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    margin: 0 0 24px;
}

.btp-ai-job-search .btp-table-scroll table {
    min-width: 560px;
    margin-bottom: 0;
}

/* Visible keyboard focus for accessibility */
.btp-ai-job-search .btp-table-scroll:focus {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
}

/* ---------------------------------------------------------
   CTA
   --------------------------------------------------------- */
.btp-ai-job-search .btp-article-cta {
    margin-top: 56px;
    padding: 30px;
    border: 1px solid #cfe1f7;
    border-radius: 14px;
    background: #eef7ff;
    text-align: center;
}

.btp-ai-job-search .btp-article-cta h2 {
    margin-top: 0;
}

.btp-ai-job-search .btp-cta-button {
    display: inline-block;
    margin-top: 4px;
    padding: 11px 20px;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.btp-ai-job-search .btp-cta-button:hover {
    text-decoration: none;
}

/* ---------------------------------------------------------
   Related resources
   --------------------------------------------------------- */
.btp-ai-job-search .btp-related-resources {
    margin-top: 56px;
    padding-top: 8px;
}

.btp-ai-job-search .btp-related-resources ul {
    columns: 2;
    column-gap: 48px;
}

.btp-ai-job-search .btp-related-resources li {
    break-inside: avoid;
}

/* ---------------------------------------------------------
   Mobile component adjustments only
   --------------------------------------------------------- */
@media (max-width: 767px) {
    .btp-ai-job-search .article-category {
        margin-top: 38px;
        margin-bottom: 18px;
    }

    .btp-ai-job-search .btp-article-cta {
        margin-top: 44px;
        padding: 24px 20px;
    }

    .btp-ai-job-search .btp-related-resources ul {
        columns: 1;
    }
}


/* =========================================================
   AI JOB SEARCH — SCREENSHOT CORRECTIONS
   ========================================================= */

/* 1. Restore the BTP article content width and responsive gutters.
   The supplied render showed the content expanding to the viewport. */
.btp-ai-job-search .article-container {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .btp-ai-job-search .article-container {
        width: calc(100% - 92px);
        max-width: 1180px;
    }
}

@media (max-width: 767px) {
    .btp-ai-job-search .article-container {
        width: calc(100% - 32px);
        max-width: none;
    }
}

/* 2. In This Guide — white premium card + two columns. */
.btp-ai-job-search .article-toc {
    background: #ffffff;
    padding: 24px 28px;
    border: 1px solid #d7dce2;
    border-radius: 14px;
    margin: 30px 0;
}

.btp-ai-job-search .article-toc h2 {
    margin-top: 0;
    margin-bottom: 16px;
}

.btp-ai-job-search .article-toc-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
}

.btp-ai-job-search .article-toc-list a {
    display: block;
    margin-bottom: 8px;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .btp-ai-job-search .article-toc {
        padding: 24px 20px;
    }

    .btp-ai-job-search .article-toc-list {
        grid-template-columns: 1fr;
    }

    .btp-ai-job-search .article-toc-list a {
        font-size: 16px;
    }
}

/* 3. Target-role table — blue header, white body rows. */
.btp-ai-job-search .btp-table-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
    margin-bottom: 24px;
}

.btp-ai-job-search .btp-table-scroll table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    background: #ffffff;
    margin-bottom: 0;
}

.btp-ai-job-search .btp-table-scroll thead th {
    background: #087dcc;
    color: #ffffff;
    font-weight: 700;
    text-align: left;
    border: 1px solid #087dcc;
    padding: 13px 18px;
}

.btp-ai-job-search .btp-table-scroll tbody td {
    background: #ffffff;
    color: inherit;
    border: 1px solid #d7dce2;
    padding: 13px 18px;
}

.btp-ai-job-search .btp-table-scroll tbody tr:nth-child(odd) td,
.btp-ai-job-search .btp-table-scroll tbody tr:nth-child(even) td {
    background: #ffffff;
}

/* 4. Related Resources — smaller set and placed before CTA. */
.btp-ai-job-search .btp-related-resources {
    margin-top: 56px;
    margin-bottom: 0;
    padding-top: 0;
}

.btp-ai-job-search .btp-related-resources h2 {
    margin-top: 0;
}

.btp-ai-job-search .btp-related-resources ul {
    columns: 2;
    column-gap: 48px;
}

.btp-ai-job-search .btp-related-resources li {
    break-inside: avoid;
}

@media (max-width: 767px) {
    .btp-ai-job-search .btp-related-resources {
        margin-top: 44px;
    }

    .btp-ai-job-search .btp-related-resources ul {
        columns: 1;
    }
}

/* 5. CTA — ensure the button label remains white against the blue button. */
.btp-ai-job-search .btp-article-cta .btp-cta-button,
.btp-ai-job-search .btp-article-cta .btp-cta-button:visited,
.btp-ai-job-search .btp-article-cta .btp-cta-button:hover,
.btp-ai-job-search .btp-article-cta .btp-cta-button:focus {
    color: #ffffff !important;
    text-decoration: none;
}

/* Related Resources now directly precedes the CTA. */
.btp-ai-job-search .btp-article-cta {
    margin-top: 40px;
}
