/* ============================================================
   CVU Express Entry Guide — Stylesheet
   Matches canadavisaupdates.com theme (--newsprint, --maple)
============================================================ */

.cvu-ee-guide {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1a1a1a;
    max-width: 100%;
}

/* ── Header ── */
.cvu-ee-header {
    background: #C41E3A;
    color: #fff;
    border-radius: 6px 6px 0 0;
    padding: 0;
    margin-bottom: 0;
}
.cvu-ee-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 18px;
}
.cvu-ee-badge {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.cvu-ee-last-updated {
    font-size: 12px;
    opacity: .85;
}

/* ── Tabs ── */
.cvu-ee-tabs {
    display: flex;
    gap: 0;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-top: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.cvu-ee-tab {
    flex: 1;
    min-width: 120px;
    padding: 13px 16px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-right: 1px solid #ddd;
    background: #f5f5f5;
    color: #555;
    cursor: pointer;
    transition: background .2s, color .2s;
    white-space: nowrap;
}
.cvu-ee-tab:last-child { border-right: none; }
.cvu-ee-tab:hover { background: #e8e8e8; color: #111; }
.cvu-ee-tab.active {
    background: #fff;
    color: #C41E3A;
    border-bottom: 3px solid #C41E3A;
    margin-bottom: -1px;
}

/* ── Panels ── */
.cvu-ee-panel {
    display: none;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    padding: 28px 24px;
    border-radius: 0 0 6px 6px;
}
.cvu-ee-panel.active { display: block; }

/* ── Notices ── */
.cvu-ee-notice {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 16px;
}
.cvu-ee-notice-warn { background: #fffbe6; border: 1px solid #f0c040; color: #7a5c00; }

/* ── Program cards ── */
.cvu-ee-intro { margin-bottom: 20px; }
.cvu-ee-section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #1a1a1a;
}

.cvu-ee-program-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.cvu-ee-program-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #fafafa;
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cvu-ee-program-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    transform: translateY(-2px);
}
.cvu-ee-card-icon { font-size: 28px; line-height: 1; }
.cvu-ee-card-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #C41E3A;
}
.cvu-ee-program-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: #0a1c40;
    line-height: 1.3;
}
.cvu-ee-program-card p {
    font-size: 13px;
    color: #555;
    margin: 2px 0 6px;
}
.cvu-ee-quick-facts {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    font-size: 12px;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.cvu-ee-quick-facts li { border-bottom: 1px solid #eee; padding: 3px 0; }
.cvu-ee-card-btn {
    background: #C41E3A;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    align-self: flex-start;
    margin-top: auto;
}
.cvu-ee-card-btn:hover { background: #a01830; }

/* ── Comparison table ── */
.cvu-ee-compare-wrap { margin-bottom: 28px; }
.cvu-ee-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cvu-ee-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 580px;
}
.cvu-ee-compare-table th {
    background: #0a1c40;
    color: #fff;
    padding: 11px 14px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .03em;
}
.cvu-ee-compare-table th:first-child { background: #07142b; }
.cvu-ee-compare-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    line-height: 1.5;
}
.cvu-ee-row-alt td { background: #f9f9fb; }
.cvu-ee-criteria { font-weight: 600; color: #333; white-space: nowrap; }
.cvu-ee-tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}
.cvu-ee-tag-canada { background: #dbeafe; color: #1d4ed8; }
.cvu-ee-tag-either { background: #d1fae5; color: #065f46; }
.cvu-ee-check { color: #059669; font-weight: 700; margin-right: 3px; }

/* ── Info boxes ── */
.cvu-ee-info-box {
    display: flex;
    gap: 14px;
    border-radius: 6px;
    padding: 16px 18px;
    margin: 20px 0;
    align-items: flex-start;
}
.cvu-ee-info-pnp { background: #eef2ff; border: 1px solid #c7d2fe; }
.cvu-ee-info-icon { font-size: 24px; flex-shrink: 0; }
.cvu-ee-info-body { font-size: 13px; color: #333; }
.cvu-ee-info-body strong { display: block; margin-bottom: 4px; font-size: 14px; color: #1a1a1a; }
.cvu-ee-info-body p { margin: 4px 0 8px; line-height: 1.6; }
.cvu-ee-link { color: #C41E3A; font-weight: 600; font-size: 13px; }

/* ── Terms grid ── */
.cvu-ee-terms {
    background: #f9f9fb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 20px;
    margin-top: 8px;
}
.cvu-ee-terms h3 { margin: 0 0 14px; font-size: 15px; }
.cvu-ee-terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}
.cvu-ee-term dt {
    font-weight: 700;
    font-size: 14px;
    color: #C41E3A;
    margin-bottom: 3px;
}
.cvu-ee-term dd {
    font-size: 12px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* ── Program header ── */
.cvu-ee-program-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border-left: 5px solid #C41E3A;
    padding: 14px 16px;
    background: #fafafa;
    border-radius: 0 6px 6px 0;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.cvu-ee-prog-icon { font-size: 32px; flex-shrink: 0; line-height: 1; }
.cvu-ee-prog-short {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #C41E3A;
    margin-bottom: 2px;
}
.cvu-ee-prog-name { font-size: 20px; font-weight: 700; margin: 0 0 3px; color: #0a1c40; }
.cvu-ee-prog-updated { font-size: 11px; color: #888; }
.cvu-ee-source-link {
    margin-left: auto;
    font-size: 11px;
    color: #185FA5;
    text-decoration: none;
    white-space: nowrap;
    align-self: center;
    font-weight: 600;
}

/* ── Section blocks (from Canada.ca content) ── */
.cvu-ee-section-block {
    border-bottom: 1px solid #f0f0f0;
    padding: 18px 0;
}
.cvu-ee-section-block:first-of-type { padding-top: 4px; }
.cvu-ee-section-block:last-of-type { border-bottom: none; }
.cvu-ee-block-heading {
    font-size: 16px;
    font-weight: 700;
    color: #0a1c40;
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e5e7eb;
}
.cvu-ee-block-content {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
}
.cvu-ee-block-content ul { padding-left: 20px; margin: 8px 0; }
.cvu-ee-block-content li { margin-bottom: 5px; }
.cvu-ee-block-content strong { color: #1a1a1a; }
.cvu-ee-block-content a { color: #C41E3A; }
.cvu-ee-block-content a:hover { text-decoration: underline; }
.cvu-ee-block-content h3 { font-size: 14px; font-weight: 700; margin: 14px 0 6px; color: #0a1c40; }
.cvu-ee-block-content h4 { font-size: 13px; font-weight: 700; margin: 10px 0 4px; }

/* ── Requirements checklist ── */
.cvu-ee-eligibility-checklist {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 18px 20px;
    margin-top: 20px;
}
.cvu-ee-eligibility-checklist h3 { margin: 0 0 12px; font-size: 14px; color: #065f46; }
.cvu-ee-req-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cvu-ee-req-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}
.cvu-ee-req-check {
    color: #059669;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── CTA Bar ── */
.cvu-ee-cta-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 24px 0 16px;
    padding: 18px;
    background: #0a1c40;
    border-radius: 6px;
}
.cvu-ee-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 20px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s, transform .1s;
    white-space: normal;      /* was: nowrap — allow translated text to wrap */
    text-align: center;
    max-width: 100%;
    min-width: 0;
    line-height: 1.35;
}
    
.cvu-ee-btn:hover { opacity: .88; transform: translateY(-1px); }
.cvu-ee-btn-primary { background: #C41E3A; color: #fff; }
.cvu-ee-btn-secondary { background: #fff; color: #0a1c40; }

/* ── Disclaimer ── */
.cvu-ee-disclaimer {
    font-size: 11px;
    color: #888;
    line-height: 1.6;
    border-top: 1px solid #eee;
    padding-top: 12px;
    margin: 0;
}
.cvu-ee-disclaimer a { color: #888; }

/* ── Responsive ── */
@media (max-width: 640px) {
    .cvu-ee-panel { padding: 18px 14px; }
    .cvu-ee-tabs { gap: 0; }
    .cvu-ee-tab { font-size: 11px; padding: 10px 10px; min-width: 80px; }
    .cvu-ee-program-cards { grid-template-columns: 1fr; }
    .cvu-ee-cta-bar { flex-direction: column; }
    .cvu-ee-btn { justify-content: center; }
    .cvu-ee-header-inner { flex-direction: column; align-items: flex-start; }
    .cvu-ee-program-header { flex-direction: column; }
    .cvu-ee-source-link { margin-left: 0; }
}
