.roles-page {
    background: #f5f5f5;
    min-height: 100vh;
}

.roles-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Hero Banner ── */
.roles-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 72px 24px;
    position: relative;
    overflow: hidden;
}

.roles-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.roles-hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.roles-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    max-width: 580px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99, 102, 241, 0.15);
    color: #60a5fa;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.roles-hero h1 {
    font-size: 42px;
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.roles-hero .hero-desc {
    font-size: 16px;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 28px;
}

.hero-search {
    display: flex;
    gap: 10px;
    max-width: 460px;
}

.hero-search input {
    flex: 1;
    padding: 13px 20px;
    border: 1px solid #334155;
    border-radius: 12px;
    background: #1e293b;
    color: white;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.hero-search input::placeholder {
    color: #333333;
}

.hero-search input:focus {
    border-color: #2563eb;
}

.hero-search button {
    padding: 0 24px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.hero-search button:hover {
    background: #1d4ed8;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.hero-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Filter Tabs ── */
.filter-bar {
    padding: 32px 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 18px;
    border: 1px solid #d0d0d0;
    border-radius: 100px;
    background: white;
    color: #333333;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tab:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.filter-tab.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.results-count {
    font-size: 14px;
    color: #333333;
}

.results-count strong {
    color: #0f172a;
}

/* ── Role Cards ── */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding-bottom: 60px;
}

.role-card {
    background: white;
    border: 1px solid #d0d0d0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.role-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

.role-card-top {
    padding: 28px 24px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.role-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    background: var(--role-bg);
    color: var(--role-color);
}

.role-text h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.role-text p {
    font-size: 13px;
    color: #333333;
    line-height: 1.5;
    margin: 0;
}

.role-skills {
    padding: 0 24px 16px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.skill-pill {
    padding: 4px 10px;
    background: #f0f0f0;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
}

.role-metrics {
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.role-metric {
    text-align: center;
}

.role-metric-val {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.role-metric-label {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}

.role-card-footer {
    padding: 0 24px 20px;
    margin-top: auto;
}

.role-learn-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--role-color);
    background: var(--role-bg);
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.role-learn-more:hover {
    filter: brightness(0.95);
    gap: 10px;
    color: var(--role-color);
}

/* ── CTA Banner ── */
.cta-banner {
    background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
    border-radius: 20px;
    padding: 56px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -40px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.cta-text {
    position: relative;
    z-index: 1;
}

.cta-text h2 {
    color: white;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
}

.cta-actions {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.cta-btn {
    padding: 13px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.cta-btn-primary {
    background: white;
    color: #2563eb;
}

.cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: #2563eb;
}

.cta-btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
    }

    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .cta-banner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .roles-hero h1 {
        font-size: 30px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .roles-grid {
        grid-template-columns: 1fr;
    }

    .roles-hero {
        padding: 48px 24px;
    }

    .cta-banner {
        padding: 40px 28px;
    }
}

