/* ===================================================================
   Broker Compensation Page – overrides and content styles
   Uses risk_resources.css for hero, guides, tools, industry, claims.
   =================================================================== */

/* Hero background for this page only */
.risk-hero {
    background-image: url('/assets/images/production/optimized/broker_compensation.jpg');
    background-image: image-set(
        url('/assets/images/production/optimized/broker_compensation.webp') type('image/webp'),
        url('/assets/images/production/optimized/broker_compensation.jpg') type('image/jpeg')
    );
}

/* Content sections inside risk-main */
.compensation-section {
    background: #fff;
    padding: 48px 40px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.compensation-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.compensation-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #FF5A1F;
    margin-top: 28px;
    margin-bottom: 12px;
}

.compensation-section p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 16px;
}

.compensation-section .lead-text {
    font-size: 1.0625rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 24px;
}

/* Commission table */
.table-container {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 24px;
}

.commission-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.commission-table caption {
    text-align: left;
    padding: 16px 20px;
    font-weight: 600;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    color: #0f172a;
}

.commission-table thead th {
    background: #f8fafc;
    border-bottom: 2px solid #e5e7eb;
    text-align: left;
    padding: 14px 20px;
    font-weight: 600;
    color: #0f172a;
}

.commission-table tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
    color: #475569;
}

.commission-table tbody tr:hover {
    background: #f8fafc;
}

.commission-table tbody tr:last-child td {
    border-bottom: none;
}

.table-notes {
    margin-top: 20px;
}

.note-text {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 12px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .compensation-section {
        padding: 28px 20px;
    }
    .commission-table thead th,
    .commission-table tbody td {
        padding: 12px 14px;
        font-size: 0.875rem;
    }
    .commission-table caption {
        padding: 12px 14px;
        font-size: 0.875rem;
    }
}
