.browse-page {
    background: #f5f5f5;
    min-height: 100vh;
}

.browse-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Breadcrumb ── */
.browse-nav {
    padding: 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.browse-nav a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.browse-nav a:hover {
    text-decoration: underline;
}

.browse-nav span {
    color: #94a3b8;
}

.browse-nav .current {
    color: #333333;
    font-weight: 600;
}

/* ── Hero Header ── */
.role-hero {
    background: linear-gradient(135deg, var(--rc) 0%, color-mix(in srgb, var(--rc), #000 20%) 100%);
    border-radius: 24px;
    padding: 52px 48px;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
}

.role-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -40px;
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.role-hero-inner {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.role-hero-icon {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
}

.role-hero-text h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.role-hero-text .hero-subtitle {
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 20px;
}

.hero-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-tag {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

/* ── Quick Stats Row ── */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.quick-stat {
    background: white;
    border: 1px solid #d0d0d0;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s;
}

.quick-stat:hover {
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.08);
}

.qs-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--rc);
    margin-bottom: 2px;
}

.qs-label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ── Content Layout ── */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    padding-bottom: 60px;
}

/* ── Cards ── */
.info-card {
    background: white;
    border: 1px solid #d0d0d0;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 20px;
}

.info-card h2 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card h2 i {
    font-size: 18px;
    color: var(--rc);
}

/* Responsibilities */
.resp-list {
    list-style: none;
    padding: 0;
}

.resp-list li {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
}

.resp-list li:last-child {
    border-bottom: none;
}

.resp-check {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--rc);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.85;
}

/* Skills */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-chip {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    background: #f0f0f0;
    color: #334155;
    border: 1px solid #d0d0d0;
    transition: all 0.2s;
}

.skill-chip:hover {
    border-color: var(--rc);
    color: var(--rc);
    background: rgba(var(--rc-rgb), 0.05);
}

/* Career Path */
.career-path {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: center;
}

.career-step {
    display: flex;
    align-items: center;
    gap: 0;
}

.career-node {
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.career-arrow {
    color: #cbd5e1;
    font-size: 14px;
    margin: 0 4px;
}

.career-step:last-child .career-node {
    background: var(--rc);
    color: white;
}

/* Requirements */
.req-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.req-item:last-child {
    border-bottom: none;
}

.req-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rc);
    font-size: 16px;
    flex-shrink: 0;
}

.req-text h4 {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.req-text p {
    font-size: 13px;
    color: #333333;
    margin: 0;
    line-height: 1.5;
}

/* Tools */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.tool-item {
    padding: 12px;
    background: #f5f5f5;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

/* ── Sidebar ── */
.sidebar-card {
    background: white;
    border: 1px solid #d0d0d0;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 16px;
}

.sidebar-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.sidebar-cta {
    display: block;
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 10px;
}

.sidebar-cta-primary {
    background: var(--rc);
    color: white;
}

.sidebar-cta-primary:hover {
    filter: brightness(1.1);
    color: white;
    transform: translateY(-1px);
}

.sidebar-cta-outline {
    background: transparent;
    color: var(--rc);
    border: 2px solid var(--rc);
}

.sidebar-cta-outline:hover {
    background: var(--rc);
    color: white;
}

/* Cert list */
.cert-list {
    list-style: none;
    padding: 0;
}

.cert-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
    color: #475569;
    border-bottom: 1px solid #f0f0f0;
}

.cert-list li:last-child {
    border-bottom: none;
}

.cert-list li i {
    color: var(--rc);
    font-size: 14px;
}

/* Related Roles */
.related-role-item {
    display: block;
    padding: 14px;
    border: 1px solid #d0d0d0;
    border-radius: 12px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.related-role-item:hover {
    border-color: #2563eb;
    background: #f5f5f5;
    transform: translateX(2px);
}

.related-role-item h4 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.related-role-item p {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .role-hero {
        padding: 36px 28px;
    }

    .role-hero-inner {
        flex-direction: column;
        gap: 16px;
    }

    .role-hero-text h1 {
        font-size: 28px;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .quick-stats {
        grid-template-columns: 1fr 1fr;
    }

    .career-path {
        flex-direction: column;
        align-items: flex-start;
    }

    .career-arrow {
        transform: rotate(90deg);
        margin: 4px 16px;
    }
}

