/* ============================================================
   CV FOR HUB PAGE (/cv-for)
   Loads on top of cv-format.css and reuses its core cvf- system
   (hero, cta, faq accordion, related cards). Everything below is
   hub-specific and uses the same restrained brand language.
   ============================================================ */

.cvfh-page {
    color: var(--text-secondary);
}

/* --- Shared eyebrow / section head --- */
.cvfh-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--brand-blue);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.3;
}

.cvfh-eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--brand-blue);
}

/* --- Hero add-ons (hero shell comes from cv-format.css) --- */
.cvfh-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.cvfh-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 0.925rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
}

.cvfh-btn--primary {
    background: var(--brand-blue);
    color: var(--white);
}

.cvfh-btn--primary:hover {
    opacity: 0.88;
    color: var(--white);
}

.cvfh-btn--secondary {
    background: var(--white);
    border-color: var(--border-color);
    color: var(--dark);
}

.cvfh-btn--secondary:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.cvfh-btn i {
    font-size: 0.8rem;
}

.cvfh-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.cvfh-trust li {
    position: relative;
    padding-left: 20px;
    color: var(--dark);
    font-size: 0.85rem;
    font-weight: 600;
}

.cvfh-trust li::before {
    content: "";
    position: absolute;
    top: 0.5em;
    left: 0;
    width: 9px;
    height: 5px;
    border-left: 2px solid var(--brand-blue);
    border-bottom: 2px solid var(--brand-blue);
    transform: rotate(-45deg);
}

/* --- Sections --- */
.cvfh-section {
    background: var(--white);
    padding: 52px 20px;
}

.cvfh-section--soft {
    background: var(--light-gray);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.cvfh-inner {
    max-width: 1320px;
    margin: 0 auto;
}

.cvfh-head {
    max-width: 760px;
    margin-bottom: 32px;
}

.cvfh-head-title {
    margin: 0 0 12px;
    color: var(--dark);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.cvfh-head-sub {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* --- Grouped link cards (country / job title) --- */
.cvfh-group-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.cvfh-group-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 22px;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.cvfh-group-card:hover {
    border-color: var(--brand-blue);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.cvfh-group-card__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--dark);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.cvfh-group-card__icon {
    font-size: 1.25rem;
    line-height: 1;
}

.cvfh-link-list {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.cvfh-link-list li {
    border-bottom: 1px solid var(--border-light);
}

.cvfh-link-list li:last-child {
    border-bottom: 0;
}

.cvfh-link-list a {
    display: block;
    position: relative;
    padding: 8px 0 8px 16px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.45;
    text-decoration: none;
    transition: color 0.15s, padding-left 0.15s;
}

.cvfh-link-list a::before {
    content: "";
    position: absolute;
    top: 1.05em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brand-blue);
}

.cvfh-link-list a:hover {
    color: var(--brand-blue);
    padding-left: 20px;
}

.cvfh-group-card__more {
    margin: 0 0 14px;
    color: var(--text-muted, #8a8a8a);
    font-size: 0.8rem;
    font-weight: 600;
}

.cvfh-viewall {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: var(--brand-blue);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.cvfh-viewall span {
    transition: transform 0.15s;
}

.cvfh-viewall:hover span {
    transform: translateX(3px);
}

/* --- Why grid --- */
.cvfh-why-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.cvfh-why {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 24px;
}

.cvfh-why__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
    background: var(--brand-blue);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.cvfh-why h3 {
    margin: 0 0 8px;
    color: var(--dark);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.cvfh-why p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.cvfh-why a {
    color: var(--brand-blue);
    font-weight: 600;
    text-decoration: none;
}

.cvfh-why a:hover {
    text-decoration: underline;
}

/* --- Empty state --- */
.cvfh-empty {
    max-width: 640px;
}

.cvfh-empty p {
    margin: 0 0 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .cvfh-group-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .cvfh-why-grid {
        grid-template-columns: 1fr;
    }

    .cvfh-hero-actions {
        display: grid;
    }

    .cvfh-btn {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .cvfh-section {
        padding: 36px 16px;
    }

    .cvfh-group-grid {
        grid-template-columns: 1fr;
    }

    .cvfh-trust {
        gap: 8px 18px;
    }
}
