/* ==========================================================================
   RecruitArabia Salary Hub Styles
   ========================================================================== */

.salary-hub-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
    padding-bottom: 60px;
}

.salary-hub-page .container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumbs */

/* Single Salary Role Page Wrapper */
.salary-single-wrapper {
    background-color: #f8fafc;
    padding-bottom: 60px;
}

@media (max-width: 768px) {
    .salary-single-wrapper {
        padding-top: 14px;
        padding-bottom: 40px;
    }
}

.salary-breadcrumbs {
    padding: 20px 0 15px;
    font-size: 14px;
    color: #64748b;
}
.salary-breadcrumbs a {
    color: #0284c7;
    text-decoration: none;
}
.salary-breadcrumbs a:hover {
    text-decoration: underline;
}
.salary-breadcrumbs .sep {
    margin: 0 8px;
    color: #cbd5e1;
}
.salary-breadcrumbs .current {
    color: #334155;
    font-weight: 500;
}

/* Single Hero Card */
.salary-hero-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.salary-badge-pill {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.salary-main-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
    line-height: 1.25;
}

.salary-subtitle {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 18px 0;
    line-height: 1.5;
}

.salary-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 100%;
}
.salary-meta-pills .meta-pill {
    font-size: 13px;
    color: #475569;
    background: #f1f5f9;
    padding: 5px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    box-sizing: border-box;
}
.salary-meta-pills .meta-pill i {
    color: #0284c7;
}

/* Benchmark Box */
.salary-benchmark-box {
    margin-top: 30px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 40px;
    align-items: center;
}

.salary-median-container .salary-metric-label {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 5px;
}

.salary-metric-value {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.salary-metric-value .currency {
    font-size: 20px;
    font-weight: 700;
    color: #0284c7;
}
.salary-metric-value .amount {
    font-size: 40px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.5px;
}
.salary-metric-value .period {
    font-size: 16px;
    color: #64748b;
    font-weight: 500;
}

.salary-annual-estimate {
    font-size: 14px;
    font-weight: 600;
    color: #10b981;
    margin-top: 6px;
}

.salary-type-tag {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    color: #475569;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Distribution Bar */
.salary-bar-container .salary-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 25px;
}

.tax-free-pill {
    background: #dcfce7;
    color: #15803d;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-weight: 700;
}

.salary-distribution-track {
    position: relative;
    height: 12px;
    background: #e2e8f0;
    border-radius: 9999px;
    margin-bottom: 45px;
}

.salary-track-fill {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8 0%, #0284c7 50%, #0369a1 100%);
    border-radius: 9999px;
}

.salary-marker {
    position: absolute;
    top: -4px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    white-space: nowrap;
}

.marker-dot {
    width: 20px;
    height: 20px;
    background: #ffffff;
    border: 4px solid #0284c7;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.marker-dot.pulse {
    border-color: #10b981;
    background: #ecfdf5;
}

.marker-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-top: 6px;
    text-transform: uppercase;
}

.marker-value {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-top: 2px;
}
.marker-value.highlight {
    color: #047857;
    font-size: 16px;
}

.salary-marker.marker-min { transform: translateX(0); align-items: flex-start; }
.salary-marker.marker-max { transform: translateX(0); align-items: flex-end; }

.salary-bar-footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
    margin-top: 5px;
}

/* Section Cards */
.salary-section-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.salary-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.salary-section-title i {
    color: #0284c7;
    font-size: 20px;
}

.salary-section-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 20px 0;
}

/* Perks Grid */
.salary-perks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.perk-box {
    background: #f8fafc;
    border-radius: 8px;
    padding: 18px;
    border: 1px solid #f1f5f9;
    display: flex;
    gap: 15px;
}

.perk-icon {
    width: 40px;
    height: 40px;
    background: #e0f2fe;
    color: #0284c7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.perk-info h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.perk-info p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

/* Live Jobs Matching Block */
.jobs-matching-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.view-all-jobs-btn {
    font-size: 14px;
    font-weight: 600;
    color: #0284c7;
    text-decoration: none;
}
.view-all-jobs-btn:hover {
    text-decoration: underline;
}

.salary-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.salary-job-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    background: #ffffff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.salary-job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.07);
    border-color: #cbd5e1;
}

.job-card-top {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 12px;
}

.company-mini-logo {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: contain;
    border: 1px solid #f1f5f9;
}
.company-logo-placeholder {
    width: 48px;
    height: 48px;
    background: #f1f5f9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 20px;
}

.job-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.3;
}
.job-card-title a {
    color: #0f172a;
    text-decoration: none;
}
.job-card-title a:hover {
    color: #0284c7;
}

.job-card-company {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.job-card-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 15px;
}
.job-card-meta i {
    color: #94a3b8;
    margin-right: 4px;
}

.apply-now-btn {
    display: block;
    text-align: center;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}
.apply-now-btn:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.no-live-jobs-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

/* Accordion */
.salary-accordion {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid #e2e8f0;
}
.accordion-item:last-child {
    border-bottom: none;
}

.accordion-toggle {
    width: 100%;
    text-align: left;
    background: #ffffff;
    border: none;
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.15s ease;
}
.accordion-toggle:hover {
    background: #f8fafc;
}
.accordion-toggle .toggle-icon {
    font-size: 14px;
    color: #94a3b8;
    transition: transform 0.2s ease;
}
.accordion-item.active .accordion-toggle .toggle-icon {
    transform: rotate(180deg);
}

.accordion-content {
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}
.accordion-inner {
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}
.accordion-inner p:last-child {
    margin-bottom: 0;
}

/* Related Roles Grid */
.salary-roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}
.role-grid-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    text-decoration: none;
    transition: all 0.15s ease;
}
.role-grid-card:hover {
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.06);
    border-color: #0284c7;
    transform: translateY(-2px);
}
.role-grid-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px 0;
}
.role-grid-median .lbl {
    font-size: 11px;
    text-transform: uppercase;
    color: #64748b;
    display: block;
}
.role-grid-median .val {
    font-size: 18px;
    font-weight: 800;
    color: #0284c7;
}
.role-grid-median .val small {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
}
.role-grid-range {
    font-size: 12px;
    color: #64748b;
    margin-top: 5px;
}

/* ==========================================================================
   Archive Hub Page Styles
   ========================================================================== */
.salary-archive-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 80px 0 50px;
    color: #ffffff;
    text-align: center;
}

.hub-kicker {
    display: inline-block;
    background: rgba(2, 132, 199, 0.2);
    color: #38bdf8;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 9999px;
    margin-bottom: 15px;
}

.hub-hero-title {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.hub-hero-sub {
    font-size: 17px;
    color: #94a3b8;
    max-width: 650px;
    margin: 0 auto 30px;
    line-height: 1.5;
}

.salary-search-container {
    max-width: 600px;
    margin: 0 auto;
}

.salary-search-input-wrap {
    position: relative;
}
.salary-search-input-wrap .search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
}
.salary-search-input-wrap input {
    width: 100%;
    padding: 16px 20px 16px 52px;
    font-size: 16px;
    border-radius: 9999px;
    border: 2px solid #334155;
    background: #1e293b;
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}
.salary-search-input-wrap input:focus {
    outline: none;
    border-color: #38bdf8;
    background: #0f172a;
}

/* Category Filter Tabs */
.salary-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.cat-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}
.cat-pill:hover, .cat-pill.active {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

/* Role Cards Grid */
.salary-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.salary-role-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}
.salary-role-card:hover {
    border-color: #0284c7;
    transform: translateY(-3px);
    box-shadow: 0 12px 20px -5px rgba(0,0,0,0.08);
}

.role-cat-badge {
    font-size: 11px;
    font-weight: 700;
    color: #0284c7;
    background: #f0f9ff;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.role-card-name {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 8px 0 14px 0;
}

.role-card-median .median-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
}
.role-card-median .median-val {
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.role-card-median .curr {
    font-size: 14px;
    font-weight: 700;
    color: #0284c7;
}
.role-card-median .num {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
}
.role-card-median .per {
    font-size: 13px;
    color: #64748b;
}

.role-card-distribution {
    margin: 15px 0 18px;
}
.role-card-distribution .dist-track {
    height: 6px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}
.role-card-distribution .dist-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #0284c7);
}
.role-card-distribution .dist-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
    margin-top: 5px;
    font-weight: 500;
}

.role-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
    font-size: 13px;
}
.data-points-pill {
    color: #64748b;
    font-weight: 500;
}
.data-points-pill i {
    color: #94a3b8;
    margin-right: 4px;
}
.view-link {
    font-weight: 600;
    color: #0284c7;
}

/* Responsive */
@media (max-width: 768px) {
    .salary-benchmark-box {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .salary-main-title {
        font-size: 24px;
    }
    .hub-hero-title {
        font-size: 28px;
    }
    .salary-hero-card {
        padding: 25px 20px;
    }
}

/* ==========================================================================
   Share Your Salary (/salaries/submit/) Styles
   ========================================================================== */
.salary-submit-wrapper {
    padding: 40px 0 80px;
    background: #f8fafc;
    min-height: 80vh;
}
.salary-submit-container {
    max-width: 780px;
    margin: 0 auto;
}
.salary-submit-header {
    text-align: center;
    margin-bottom: 35px;
}
.anonymous-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 15px;
    border: 1px solid #bae6fd;
}
.salary-submit-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px;
    line-height: 1.25;
}
.salary-submit-desc {
    font-size: 16px;
    color: #475569;
    max-width: 620px;
    margin: 0 auto 18px;
    line-height: 1.6;
}
.salary-trust-points {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 600;
    color: #166534;
}
.salary-trust-points span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.salary-submit-card,
.salary-success-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}
.col-12 { grid-column: span 12; }
.col-6 { grid-column: span 6; }

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 7px;
}
.form-group label .req {
    color: #ef4444;
}
.form-group .form-control {
    width: 100%;
    height: 48px;
    padding: 10px 14px;
    font-size: 15px;
    color: #0f172a;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.form-group textarea.form-control {
    height: auto;
    resize: vertical;
}
.form-group .form-control:focus {
    border-color: #1967d2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(25, 103, 210, 0.15);
}
.form-group .help-text {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 5px;
}
.input-currency-group {
    display: flex;
    align-items: center;
}
.currency-prefix {
    background: #f1f5f9;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    padding: 0 14px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #cbd5e1;
    border-right: none;
    border-radius: 8px 0 0 8px;
}
.input-currency-group .form-control {
    border-radius: 0 8px 8px 0;
}
.autocomplete-wrapper {
    position: relative;
}
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15);
    max-height: 220px;
    overflow-y: auto;
    z-index: 100;
    margin-top: 4px;
}
.autocomplete-item {
    padding: 10px 14px;
    font-size: 14px;
    color: #1e293b;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}
.autocomplete-item:last-child {
    border-bottom: none;
}
.autocomplete-item:hover, .autocomplete-item.active {
    background: #f0f7ff;
    color: #1967d2;
    font-weight: 600;
}
.allowance-calc-inner {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #16a34a;
    padding: 14px 18px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.calc-label {
    font-size: 14px;
    font-weight: 600;
    color: #166534;
}
.calc-value {
    font-size: 17px;
    font-weight: 800;
    color: #15803d;
}
.calc-sub {
    font-size: 12px;
    color: #4b5563;
}
.form-actions {
    margin-top: 25px;
    text-align: center;
}
.form-feedback-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: left;
}
.salary-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #1967d2;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none !important;
}
.salary-primary-btn:hover {
    background: #1251a3;
    transform: translateY(-1px);
}
.salary-success-card {
    text-align: center;
    padding: 60px 40px;
}
.success-icon-wrap {
    font-size: 64px;
    color: #16a34a;
    margin-bottom: 15px;
}
.salary-success-card h2 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}
.salary-success-card p {
    font-size: 16px;
    color: #475569;
    max-width: 500px;
    margin: 0 auto 25px;
}
.success-summary-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 24px;
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 30px;
}
.success-summary-box .role-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}
.success-summary-box .role-salary {
    font-size: 20px;
    font-weight: 800;
    color: #1967d2;
}
.success-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Hub Share CTA Banner */
.salary-share-cta-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 30px 35px;
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
}
.share-cta-text h3 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px;
}
.share-cta-text p {
    color: #94a3b8;
    font-size: 14px;
    margin: 0;
}
.share-cta-btn {
    background: #1967d2;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}
.share-cta-btn:hover {
    background: #2563eb;
}

@media (max-width: 768px) {
    .col-6 { grid-column: span 12; }
    .salary-submit-card { padding: 25px 18px; }
    .salary-submit-title { font-size: 24px; }
    .salary-share-cta-card { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   RecruitArabia: Single Salary Page Mobile Responsiveness Suite
   ========================================================================== */






/* Default hide mobile distribution cards on desktop */
.salary-mobile-distribution-cards {
    display: none;
}

@media (max-width: 768px) {
    /* Container & Wrapper */
    .salary-hub-page .container {
        padding: 0 14px !important;
    }

    /* Breadcrumbs on Mobile */
    .salary-breadcrumbs {
        padding: 10px 0 8px !important;
        font-size: 12px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 4px 6px !important;
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        line-height: 1.4 !important;
    }
    .salary-breadcrumbs::-webkit-scrollbar {
        display: none;
    }

    /* Main Hero Card */
    .salary-hero-card {
        padding: 20px 16px !important;
        margin-bottom: 18px !important;
        border-radius: 12px !important;
    }

    .salary-badge-pill {
        font-size: 11px !important;
        padding: 3px 10px !important;
        margin-bottom: 8px !important;
    }

    .salary-main-title {
        font-size: 22px !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }

    .salary-subtitle {
        font-size: 13px !important;
        line-height: 1.45 !important;
        margin-bottom: 14px !important;
    }

    /* Meta Badges / Pills */
    .salary-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 100%;
}
.salary-meta-pills .meta-pill {
    font-size: 13px;
    color: #475569;
    background: #f1f5f9;
    padding: 5px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    box-sizing: border-box;
}
    .salary-hero-contribute-btn {
        font-size: 11px !important;
        padding: 4px 10px !important;
    }

    /* Benchmark Box */
    .salary-benchmark-box {
        display: flex !important;
        flex-direction: column !important;
        padding: 18px 14px !important;
        margin-top: 18px !important;
        gap: 20px !important;
        border-radius: 10px !important;
    }

    .salary-median-container .salary-metric-label {
        font-size: 12px !important;
    }

    .salary-metric-value .currency {
        font-size: 18px !important;
    }
    .salary-metric-value .amount {
        font-size: 32px !important;
    }
    .salary-metric-value .period {
        font-size: 14px !important;
    }
    .salary-annual-estimate {
        font-size: 12.5px !important;
    }
    .salary-type-tag {
        font-size: 11px !important;
        padding: 3px 8px !important;
    }

    /* Distribution Bar Header */
    .salary-bar-container .salary-bar-header {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 22px !important;
        font-size: 13px !important;
    }
    .tax-free-pill {
        font-size: 11px !important;
        padding: 2px 8px !important;
        white-space: nowrap !important;
    }

    /* Section Cards (Benefits, Overview, Jobs, FAQ) */
    .salary-section-card {
        padding: 20px 16px !important;
        margin-bottom: 18px !important;
        border-radius: 12px !important;
    }

    .salary-section-title {
        font-size: 18px !important;
    }
    .salary-section-title i {
        font-size: 17px !important;
    }
    .salary-section-subtitle {
        font-size: 13px !important;
        margin-bottom: 16px !important;
    }

    /* Perks Grid */
    .salary-perks-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .perk-box {
        padding: 12px 14px !important;
        gap: 12px !important;
    }
    .perk-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }
    .perk-info h4 {
        font-size: 14px !important;
    }
    .perk-info p {
        font-size: 12.5px !important;
    }

    /* Live Jobs Header & Grid */
    .jobs-matching-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    .view-all-jobs-btn {
        font-size: 12px !important;
        padding: 4px 10px !important;
    }
    .salary-jobs-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* Related Benchmarks Grid */
    .salary-roles-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* FAQ Accordion */
    .accordion-toggle {
        padding: 14px 14px !important;
        font-size: 14px !important;
    }
    .accordion-inner {
        padding: 14px 14px !important;
        font-size: 13px !important;
    }
}

/* Distribution Bar Zero-Collision Mobile Transformation (< 640px) */
@media (max-width: 768px) {
    /* Hide the overlapping absolute text below the track dots on small screens */
    .salary-marker .marker-label,
    .salary-marker .marker-value {
        display: none !important;
    }

    .salary-distribution-track {
        margin-bottom: 16px !important;
    }

    .salary-bar-footer {
        display: none !important;
    }

    /* Clean 3-box statistics row below the bar */
    .salary-mobile-distribution-cards {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        margin-top: 14px !important;
    }

    .dist-card {
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 8px !important;
        padding: 10px 4px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    .dist-card.highlight {
        background: #f0fdf4 !important;
        border-color: #86efac !important;
        box-shadow: 0 1px 3px rgba(16, 185, 129, 0.12) !important;
    }

    .dist-card .dist-label {
        font-size: 9.5px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        color: #64748b !important;
        letter-spacing: 0.2px !important;
        margin-bottom: 2px !important;
        white-space: nowrap !important;
    }

    .dist-card.highlight .dist-label {
        color: #15803d !important;
    }

    .dist-card .dist-val {
        font-size: 12.5px !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .dist-card.highlight .dist-val {
        color: #047857 !important;
        font-size: 13.5px !important;
    }

    .dist-card .dist-sub {
        font-size: 9.5px !important;
        color: #94a3b8 !important;
        margin-top: 2px !important;
        white-space: nowrap !important;
    }
}

/* ==========================================================================
   RecruitArabia: Single Job Salary Benchmark Callout Widget
   ========================================================================== */
.recruitarabia-job-salary-widget {
    margin: 32px 0;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #10b981;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.rjs-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.rjs-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #059669;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 9999px;
    border: 1px solid #a7f3d0;
}

.rjs-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.3;
}

.rjs-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.rjs-metric {
    flex: 1;
    min-width: 240px;
}

.rjs-metric-val {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.rjs-metric-val span {
    color: #059669;
}

.rjs-metric-sub {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.rjs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0f172a;
    color: #ffffff !important;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.rjs-btn:hover {
    background: #059669;
    color: #ffffff !important;
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .recruitarabia-job-salary-widget {
        padding: 18px 14px;
        margin: 20px 0;
    }
    .rjs-body {
        flex-direction: column;
        align-items: stretch;
    }
    .rjs-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}
