:root {
    --bg-base: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --blue: #3b82f6;
    --indigo: #6366f1;
    --green: #10b981;
    --amber: #f59e0b;
    --text-1: #0f172a;
    --text-2: #475569;
    --text-3: #94a3b8;
    --border: #e2e8f0;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-base);
    color: var(--text-1);
    line-height: 1.6;
}

nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 68px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}

.nav-brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.nav-brand img { height: 30px; width: auto; }
.nav-brand span {
    font-size: 1.2rem; font-weight: 800;
    background: linear-gradient(135deg, var(--blue), var(--indigo));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 0.875rem; font-weight: 500; }
.nav-links a:hover { color: var(--text-1); }
.nav-pill {
    background: linear-gradient(135deg, var(--blue), var(--indigo));
    color: #fff !important; padding: 0.45rem 1.1rem; border-radius: 8px; font-weight: 600 !important;
    transition: opacity 0.2s !important;
}
.nav-pill:hover { opacity: 0.88; }

.nav-outline {
    border: 2px solid var(--indigo);
    color: var(--indigo) !important;
    padding: 0.4rem 1.1rem;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: all 0.2s !important;
}
.nav-outline:hover {
    background: var(--indigo);
    color: #fff !important;
}

.seo-main { max-width: 1200px; margin: 0 auto; padding: 110px 2rem 80px; }
.seo-main.narrow { max-width: 800px; }

/* ========== RICH COLORED HIERARCHICAL BREADCRUMB NAV ========== */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.9rem;
    padding: 0.6rem 0.85rem;
    background: linear-gradient(90deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255,255,255,0.6);
}

.bc-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.95rem;
    border-radius: 999px;
    font-size: 0.81rem;
    font-weight: 600;
    line-height: 1.1;
    transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.18s cubic-bezier(0.4, 0.0, 0.2, 1),
                background 0.18s ease,
                color 0.18s ease,
                border-color 0.18s ease;
    cursor: default;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    border: 1px solid transparent;
}

/* Colored level dot / indicator for strong visual hierarchy */
.bc-item::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.65;
    margin-right: 0.38rem;
    flex: 0 0 auto;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.4);
    transition: all 0.15s ease;
}

/* On hover, the left indicator turns into a clear "go back" arrow for that level */
.bc-link:hover::before {
    content: '←';
    width: auto;
    height: auto;
    background: transparent;
    opacity: 0.95;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    margin-right: 0.2rem;
    box-shadow: none;
}

/* Clickable previous levels */
.bc-link {
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
}

.bc-link:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
}

.bc-link:active {
    transform: translateY(0) scale(0.985);
}

.bc-link:focus-visible {
    outline: 2px solid var(--indigo);
    outline-offset: 3px;
}

/* Hover arrow is handled via ::before override above for clean "back to this level" UX */

/* ===== LEVEL COLORS — rich & designed ===== */
.bc-level-1.bc-link {
    background: rgba(59, 130, 246, 0.14);
    color: #1e40af;
    border-color: rgba(59, 130, 246, 0.32);
}
.bc-level-1.bc-link:hover {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
}

.bc-level-2.bc-link {
    background: rgba(99, 102, 241, 0.14);
    color: #3730a3;
    border-color: rgba(99, 102, 241, 0.32);
}
.bc-level-2.bc-link:hover {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

.bc-level-3.bc-link {
    background: rgba(16, 185, 129, 0.14);
    color: #065f46;
    border-color: rgba(16, 185, 129, 0.32);
}
.bc-level-3.bc-link:hover {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.bc-level-4.bc-link {
    background: rgba(245, 158, 11, 0.16);
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.38);
}
.bc-level-4.bc-link:hover {
    background: #f59e0b;
    color: #fff;
    border-color: #f59e0b;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.38);
}

.bc-level-5.bc-link {
    background: rgba(244, 63, 94, 0.13);
    color: #9f1239;
    border-color: rgba(244, 63, 94, 0.3);
}
.bc-level-5.bc-link:hover {
    background: #f43f5e;
    color: #fff;
    border-color: #f43f5e;
    box-shadow: 0 6px 18px rgba(244, 63, 94, 0.35);
}

/* Current position — bold, prominent, always the hero */
.bc-current {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 3px 16px rgba(99, 102, 241, 0.42),
                inset 0 1px 0 rgba(255,255,255,0.25);
    cursor: default;
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    letter-spacing: 0.01em;
    position: relative;
}

.bc-current::before {
    opacity: 0.9;
    box-shadow: 0 0 0 2.5px rgba(255,255,255,0.35);
}

.bc-current:hover {
    transform: none;
    box-shadow: 0 3px 16px rgba(99, 102, 241, 0.42),
                inset 0 1px 0 rgba(255,255,255,0.25);
}

/* Elegant separators - extremely robust against any source corruption */
.bc-sep {
    color: #64748b;
    font-weight: 700;
    padding: 0 0.15rem;
    user-select: none;
    opacity: 0.75;
    /* Completely hide the text node content (which may contain mojibake from previous bulk edits) */
    font-size: 0 !important;
    line-height: 0 !important;
    letter-spacing: 0 !important;
    /* Force a clean, correct separator visually */
}
.bc-sep::after {
    content: '›';
    font-size: 0.9rem;
    line-height: 1;
    display: inline-block;
}

/* Mobile polish */
@media (max-width: 640px) {
    .breadcrumb {
        padding: 0.5rem 0.65rem;
        gap: 0.25rem;
        border-radius: 14px;
    }
    .bc-item {
        font-size: 0.74rem;
        padding: 0.32rem 0.7rem;
    }
    .bc-current {
        max-width: 170px;
    }
    .bc-sep {
        font-size: 0.78rem;
    }
}

.page-hero { margin-bottom: 2.5rem; }
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.2; margin-bottom: 0.75rem; }
.page-hero h1 .grad {
    background: linear-gradient(135deg, var(--blue), var(--indigo));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-hero-sub { font-size: 1.05rem; color: var(--text-2); max-width: 680px; }

.stats-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem; margin: 2rem 0;
}
.stat-card {
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: 12px; padding: 1.25rem; text-align: center;
}
.stat-val { font-size: 1.5rem; font-weight: 800; color: var(--indigo); }
.stat-label { font-size: 0.78rem; color: var(--text-3); margin-top: 0.25rem; }

.cta-banner {
    background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(99,102,241,0.12));
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: 16px; padding: 2rem; margin: 2.5rem 0; text-align: center;
}
.cta-banner h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.5rem; }
.cta-banner p { color: var(--text-2); margin-bottom: 1.25rem; font-size: 0.95rem; }
.cta-btns { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.cta-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.7rem 1.4rem; border-radius: 10px; font-weight: 600;
    font-size: 0.9rem; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
}
.cta-btn:hover { transform: translateY(-2px); }
.cta-btn-primary { background: linear-gradient(135deg, var(--blue), var(--indigo)); color: #fff; }
.cta-btn-outline { background: #fff; color: var(--text-1); border: 1px solid var(--border); }

.section-title { font-size: 1.25rem; font-weight: 700; margin: 2.5rem 0 1.25rem; }
.section-desc { color: var(--text-2); font-size: 0.92rem; margin-bottom: 1.5rem; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }

.card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; padding: 1.25rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: rgba(99,102,241,0.4); box-shadow: 0 4px 20px rgba(99,102,241,0.08); }
.card-link { text-decoration: none; color: inherit; display: block; }
.card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.35rem; }
.card p { font-size: 0.85rem; color: var(--text-2); }
.card-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.tag {
    font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.55rem;
    border-radius: 6px; background: var(--bg-secondary); color: var(--text-2);
}
.tag-score { background: rgba(16,185,129,0.12); color: var(--green); }
.tag-cdi { background: rgba(59,130,246,0.1); color: var(--blue); }
.tag-location { background: rgba(99,102,241,0.1); color: var(--indigo); }

.offer-detail { margin-top: 1.5rem; }
.offer-header { margin-bottom: 2rem; }
.offer-header h1 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 800; margin-bottom: 0.5rem; }
.offer-company { font-size: 1.1rem; color: var(--text-2); margin-bottom: 1rem; }
.offer-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.offer-body h2 { font-size: 1.1rem; font-weight: 700; margin: 1.5rem 0 0.75rem; }
.offer-body p, .offer-body li { color: var(--text-2); font-size: 0.95rem; }
.offer-body ul { padding-left: 1.25rem; margin: 0.5rem 0 1rem; }
.offer-body li { margin-bottom: 0.35rem; }

.faq-block { margin: 2rem 0; }
.faq-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 0.75rem; overflow: hidden; }
.faq-q { padding: 1rem 1.25rem; font-weight: 600; font-size: 0.95rem; background: var(--bg-secondary); }
.faq-a { padding: 1rem 1.25rem; font-size: 0.9rem; color: var(--text-2); }

.blog-article .article-meta {
    display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.82rem; color: var(--text-3); margin-bottom: 2rem;
}
.blog-article h2 { font-size: 1.25rem; font-weight: 700; margin: 2rem 0 0.75rem; }
.blog-article h3 { font-size: 1.05rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.blog-article p { color: var(--text-2); margin-bottom: 1rem; font-size: 0.95rem; }
.blog-article ul, .blog-article ol { color: var(--text-2); padding-left: 1.5rem; margin-bottom: 1rem; font-size: 0.95rem; }
.blog-article li { margin-bottom: 0.35rem; }

footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 64px 2rem 40px; margin-top: 4rem; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand a { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; margin-bottom: 0.75rem; }
.footer-brand img { height: 26px; }
.footer-brand a span {
    font-size: 1.1rem; font-weight: 800;
    background: linear-gradient(135deg, var(--blue), var(--indigo));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-desc { font-size: 0.82rem; color: var(--text-3); line-height: 1.75; max-width: 240px; margin-bottom: 1rem; }
.footer-col-head { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-3); margin-bottom: 1rem; }
.footer-col-links { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col-links a { color: var(--text-2); text-decoration: none; font-size: 0.86rem; }
.footer-col-links a:hover { color: var(--text-1); }
.footer-bottom {
    max-width: 1200px; margin: 2.5rem auto 0; padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: 0.78rem; color: var(--text-3); }
.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a { font-size: 0.78rem; color: var(--text-3); text-decoration: none; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .seo-main { padding: 100px 1.25rem 60px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}