/**
 * Career Pathway Styles - v2.2
 * Fixed: Tooltip width with !important
 */

.gateway-full-width .cpt-scope * { box-sizing: border-box; }
.gateway-full-width .cpt-scope .cp-hero-banner *, .gateway-full-width .cpt-scope .cp-container *, .gateway-full-width .cpt-scope .cp-pathway-section *, .gateway-full-width .cpt-scope .cp-cta-section * { margin: 0; padding: 0; }

.gateway-full-width .cpt-scope { line-height: 1.6; color: #1a1a1a; background: #ffffff; }

.gateway-full-width .cpt-scope .cp-hero-banner { min-height: 500px; background: linear-gradient(135deg, #262474 0%, #1b60aa 50%, #24906b 100%); position: relative; display: flex; align-items: end; overflow: hidden; margin: 0; padding: 0; }
.gateway-full-width .cpt-scope .cp-hero-banner::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: radial-gradient(circle at 20% 50%, rgba(109, 180, 96, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(27, 96, 170, 0.15) 0%, transparent 50%); }
.gateway-full-width .cpt-scope .cp-hero-content { position: relative; z-index: 1; color: white; padding: 40px 20px; max-width: 1200px; width: 100%; margin: 0 auto 40px; }
.gateway-full-width .cpt-scope .cp-hero-content h1 { margin-bottom: 20px; color: white; }
.gateway-full-width .cpt-scope .cp-hero-content p { max-width: 800px; color: white; }

.gateway-full-width .cpt-scope .cp-container { max-width: 1200px; margin: 0 auto; padding: 70px 20px 0; text-align: center;}

.gateway-full-width .cpt-scope .cp-intro-section { padding: 0px; }
.gateway-full-width .cpt-scope .cp-intro-subtitle { font-size: 0.9em; color: #1b60aa; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.gateway-full-width .cpt-scope .cp-intro-title { font-size: 2.2em; color: #262474; font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
.gateway-full-width .cpt-scope .cp-intro-description { color: #4a5568;  margin-bottom: 30px; }
.gateway-full-width .cpt-scope .cp-salary-note { color: #94a3b8; font-size: 0.9em; line-height: 1.6; margin: 20px;}

.gateway-full-width .cpt-scope .cp-pathway-section { padding: 60px 0; scroll-margin-top: 20px; margin: 0; }
.gateway-full-width .cpt-scope .cp-pathway-section:nth-child(even) { background: white; }
.gateway-full-width .cpt-scope .cp-pathway-section:nth-child(odd) { background: #f8f9fa; }

.gateway-full-width .cpt-scope .cp-section-content { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.gateway-full-width .cpt-scope .cp-section-header { margin-bottom: 35px; }
.gateway-full-width .cpt-scope .cp-section-header h2 { font-size: 1.8em; color: #262474; margin-bottom: 10px; font-weight: 700; }
.gateway-full-width .cpt-scope .cp-section-header p { color: #64748b; font-size: 1em; line-height: 1.6; }

.gateway-full-width .cpt-scope .cp-jobs-list { display: flex; flex-direction: column; gap: 12px; }
.gateway-full-width .cpt-scope .cp-job-item { background: white; padding: 28px 32px; box-shadow: 0 1px 2px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.02); transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: center; margin: 0; border-radius: 18px;}
.gateway-full-width .cpt-scope .cp-pathway-section:nth-child(odd) .cp-job-item { box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.03); }
.gateway-full-width .cpt-scope .cp-job-item:hover { box-shadow: 0 2px 4px rgba(0,0,0,0.06), 0 8px 16px rgba(0,0,0,0.1), 0 16px 32px rgba(0,0,0,0.02); transform: translateY(-2px); }

.gateway-full-width .cpt-scope .cp-job-main { min-width: 0; }
.gateway-full-width .cpt-scope .cp-job-item h3 { color: #1a1a1a; font-size: 1.35em; margin-bottom: 10px; font-weight: 600; line-height: 1.3; }
.gateway-full-width .cpt-scope .cp-job-description { color: #4a5568; line-height: 1.65; font-size: 0.8em; }

.gateway-full-width .cpt-scope .cp-job-meta { display: flex; gap: 30px; align-items: center; flex-shrink: 0; }

.gateway-full-width .cpt-scope .cp-salary-info { text-align: right; min-width: 180px; }
.gateway-full-width .cpt-scope .cp-salary-label { font-size: 0.8em; color: #64748b; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.gateway-full-width .cpt-scope .cp-salary-amount { color: #1a1a1a; font-size: 1.3em; font-weight: 700; margin-bottom: 8px; line-height: 1.2; }
.gateway-full-width .cpt-scope .cp-seek-link { display: inline-flex; align-items: center; gap: 5px; color: #1b60aa; text-decoration: none; font-size: 0.82em; font-weight: 600; transition: color 0.2s ease; }
.gateway-full-width .cpt-scope .cp-seek-link:hover { color: #262474; }
.gateway-full-width .cpt-scope .cp-seek-link svg { width: 13px; height: 13px; }

.gateway-full-width .cpt-scope .cp-course-links { display: flex; flex-direction: column; gap: 6px; min-width: 220px; }
.gateway-full-width .cpt-scope .cp-course-link { position: relative; display: flex; align-items: center; justify-content: center; padding: 10px 20px; background: #262474; color: white; text-decoration: none; font-size: 0.85em; font-weight: 500; transition: all 0.2s ease; text-align: center; box-shadow: 0 2px 4px rgba(38, 36, 116, 0.15); cursor: pointer; border-radius: 24px;}
.gateway-full-width .cpt-scope .cp-course-link:hover { background: #1b60aa; box-shadow: 0 4px 8px rgba(38, 36, 116, 0.2); color: white; }

/* Tooltip - FIXED WIDTH */
.gateway-full-width .cpt-scope .cp-tooltip { 
    position: absolute !important; 
    bottom: calc(100% + 8px) !important; 
    left: 50% !important; 
    transform: translateX(-50%) !important; 
    background: #1a1a1a !important; 
    color: white !important; 
    padding: 14px 18px !important; 
    border-radius: 4px !important; 
    font-size: 0.92em !important; 
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.2s ease; 
    z-index: 9999 !important; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important; 
    width: 480px !important;
    max-width: 480px !important;
    min-width: 400px !important;
    white-space: normal !important; 
    text-align: center !important; 
    line-height: 1.5 !important; 
}

.gateway-full-width .cpt-scope .cp-tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: #1a1a1a; }
.gateway-full-width .cpt-scope .cp-course-link:hover .cp-tooltip { opacity: 1 !important; }
.gateway-full-width .cpt-scope .cp-tooltip-comment { display: block !important; font-size: 0.93em !important; opacity: 0.85 !important; margin-top: 7px !important; font-style: italic !important; border-top: 1px solid rgba(255,255,255,0.2) !important; padding-top: 7px !important; }

.gateway-full-width .cpt-scope .cp-cta-section { background: linear-gradient(135deg, #262474 0%, #1b60aa 50%, #24906b 100%); color: white; padding: 60px 60px; box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 16px 32px rgba(0,0,0,0.04); position: relative; overflow: hidden; margin: 0; }
.gateway-full-width .cpt-scope .cp-cta-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 30% 50%, rgba(109, 180, 96, 0.1) 0%, transparent 70%); }
.gateway-full-width .cpt-scope .cp-cta-content { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 60px 0;}
.gateway-full-width .cpt-scope .cp-cta-section h2 { font-size: 2em; margin-bottom: 24px; font-weight: 700; color: white; }
.gateway-full-width .cpt-scope .cp-cta-section p { opacity: 0.95; margin-bottom: 18px; color: white; }

@media (max-width: 1024px) {
    .gateway-full-width .cpt-scope .cp-job-item { grid-template-columns: 1fr; gap: 24px; }
    .gateway-full-width .cpt-scope .cp-job-meta { flex-direction: column; align-items: stretch; gap: 20px; }
    .gateway-full-width .cpt-scope .cp-salary-info { text-align: left; }
    .gateway-full-width .cpt-scope .cp-course-links { flex-direction: row; flex-wrap: wrap; }
    .gateway-full-width .cpt-scope .cp-tooltip { width: 400px !important; max-width: 400px !important; min-width: 300px !important; }
}

@media (max-width: 768px) {
    .gateway-full-width .cpt-scope .cp-hero-banner { min-height: 400px; }
    .gateway-full-width .cpt-scope .cp-hero-content { margin-bottom: 30px; }
    .gateway-full-width .cpt-scope .cp-hero-content h1 { font-size: 2.2em; }
    .gateway-full-width .cpt-scope .cp-hero-content p { font-size: 1.1em; }
    .gateway-full-width .cpt-scope .cp-intro-section { padding: 0px; }
    .gateway-full-width .cpt-scope .cp-intro-title { font-size: 1.8em; }
    .gateway-full-width .cpt-scope .cp-pathway-section { padding: 50px 0; }
    .gateway-full-width .cpt-scope .cp-job-item { padding: 20px; }
    .gateway-full-width .cpt-scope .cp-cta-section { padding: 40px 25px; }
    .gateway-full-width .cpt-scope .cp-tooltip { width: 280px !important; max-width: 280px !important; min-width: 240px !important; }
}/* ========================================
   Pathway Chart Section Styles
   ======================================== */

.gateway-full-width .cpt-scope .cp-pathway-chart-section {
    padding: 20px 20px 60px;
}

.gateway-full-width .cpt-scope .cp-chart-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Chart Header */
.gateway-full-width .cpt-scope .cp-chart-header {
    text-align: center;
    margin-bottom: 40px;
}

.gateway-full-width .cpt-scope .cp-chart-title-main {
    font-size: 1.4em;
    font-weight: 300;
    color: #334155;
    margin-bottom: 4px;
}

.gateway-full-width .cpt-scope .cp-chart-title-sub {
    font-size: 1.6em;
    font-weight: 600;
    color: #262474;
    margin-bottom: 16px;
}

.gateway-full-width .cpt-scope .cp-chart-divider {
    width: 60px;
    height: 3px;
    margin: 0 auto 40px;
    background: linear-gradient(90deg, #24906b, #1b60aa);
    border-radius: 2px;
}

/* Nodes */
.gateway-full-width .cpt-scope .cp-node {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
}

.gateway-full-width .cpt-scope .cp-node-small {
    padding: 6px 12px;
    font-size: 0.7em;
}

.gateway-full-width .cpt-scope .cp-node-primary { background: #262474; }
.gateway-full-width .cpt-scope .cp-node-accent { background: #24906b; }
.gateway-full-width .cpt-scope .cp-node-secondary { background: #1b60aa; }
.gateway-full-width .cpt-scope .cp-node-light { background: #6db460; }

/* Arrows */
.gateway-full-width .cpt-scope .cp-arrow-v {
    display: block;
    width: 14px;
    height: 28px;
    margin: 2px auto;
}

.gateway-full-width .cpt-scope .cp-arrow-short {
    height: 20px;
}

.gateway-full-width .cpt-scope .cp-arrow-merge,
.gateway-full-width .cpt-scope .cp-arrow-split {
    display: block;
    width: 220px;
    height: 32px;
    margin: 2px auto;
}

/* Leadership Section */
.gateway-full-width .cpt-scope .cp-chart-leadership {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px;
}

/* Connector Lines */
.gateway-full-width .cpt-scope .cp-connector-gm,
.gateway-full-width .cpt-scope .cp-connector-se {
    display: block;
    width: 100%;
    max-width: 600px;
    height: 36px;
    margin: 4px auto;
}

.gateway-full-width .cpt-scope .cp-connector-single {
    display: none;
    width: 14px;
    height: 28px;
    margin: 2px auto;
}

/* Tabs - Mobile Only */
.gateway-full-width .cpt-scope .cp-chart-tabs {
    display: none;
    justify-content: center;
    gap: 12px;
    margin: 16px 0;
}

.gateway-full-width .cpt-scope .cp-tab-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 24px;
    font-size: 0.85em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    color: #64748b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.gateway-full-width .cpt-scope .cp-tab-btn.active {
    background: #24906b;
    color: #fff;
    box-shadow: 0 4px 12px rgba(36,144,107,0.3);
}

.gateway-full-width .cpt-scope .cp-tab-btn[data-tab="office"].active {
    background: #1b60aa;
    box-shadow: 0 4px 12px rgba(27,96,170,0.3);
}

/* Pathways Wrapper */
.gateway-full-width .cpt-scope .cp-pathways-wrapper {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin: 8px 0;
}

.gateway-full-width .cpt-scope .cp-pathway {
    flex: 1;
    max-width: 380px;
    padding: 24px;
    border-radius: 24px;
}

.gateway-full-width .cpt-scope .cp-pathway-site { background: rgba(36,144,107,0.04); }
.gateway-full-width .cpt-scope .cp-pathway-office { background: rgba(27,96,170,0.04); }

.gateway-full-width .cpt-scope .cp-pathway-title {
    font-size: 0.85em;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.gateway-full-width .cpt-scope .cp-pathway-title-site { color: #24906b; }
.gateway-full-width .cpt-scope .cp-pathway-title-office { color: #1b60aa; }

.gateway-full-width .cpt-scope .cp-pathway-nodes {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Branch Wrapper */
.gateway-full-width .cpt-scope .cp-branch-wrapper {
    display: flex;
    gap: 8px;
    justify-content: center;
    width: 100%;
}

.gateway-full-width .cpt-scope .cp-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Entry Level */
.gateway-full-width .cpt-scope .cp-chart-entry {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 8px;
}

.gateway-full-width .cpt-scope .cp-entry-cadets {
    display: flex;
    gap: 32px;
}

/* Legend */
.gateway-full-width .cpt-scope .cp-chart-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.gateway-full-width .cpt-scope .cp-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8em;
    color: #64748b;
}

.gateway-full-width .cpt-scope .cp-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.gateway-full-width .cpt-scope .cp-legend-accent { background: #24906b; }
.gateway-full-width .cpt-scope .cp-legend-secondary { background: #1b60aa; }
.gateway-full-width .cpt-scope .cp-legend-light { background: #6db460; }

/* Desktop/Mobile visibility */
.gateway-full-width .cpt-scope .cp-desktop-only { display: block; }
.gateway-full-width .cpt-scope .cp-mobile-only { display: none; }

/* ========================================
   Responsive - Mobile
   ======================================== */
@media (max-width: 768px) {
    .gateway-full-width .cpt-scope .cp-pathway-chart-section {
        padding: 20px 16px;
    }

    .gateway-full-width .cpt-scope .cp-chart-title-main { font-size: 1.1em; }
    .gateway-full-width .cpt-scope .cp-chart-title-sub { font-size: 1.3em; }

    .gateway-full-width .cpt-scope .cp-desktop-only { display: none !important; }
    .gateway-full-width .cpt-scope .cp-mobile-only { display: block; }
    .gateway-full-width .cpt-scope .cp-chart-tabs { display: flex; }
    .gateway-full-width .cpt-scope .cp-connector-single { display: block; }

    .gateway-full-width .cpt-scope .cp-pathways-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .gateway-full-width .cpt-scope .cp-pathway {
        display: none;
        width: 100%;
        max-width: 100%;
    }

    .gateway-full-width .cpt-scope .cp-pathway.active {
        display: block;
    }

    .gateway-full-width .cpt-scope .cp-node {
        padding: 8px 16px;
        font-size: 0.75em;
    }

    .gateway-full-width .cpt-scope .cp-node-small {
        padding: 5px 10px;
        font-size: 0.65em;
    }

    .gateway-full-width .cpt-scope .cp-entry-cadets {
        gap: 16px;
    }

    .gateway-full-width .cpt-scope .cp-chart-legend {
        gap: 16px;
    }
}