/**
 * TaskHub Roles Frontend Styles
 */

:root {
    --roles-primary: #F7941D;
    --roles-primary-hover: #234475;
    --roles-secondary: #234475;
    --roles-text: #234475;
    --roles-accent: #FFFFFF;
    --roles-danger: #F33C0F;
    --roles-light-bg: #f8f9fa;
    --roles-border: #e0e0e0;
    --roles-gradient: linear-gradient(135deg, #F7941D 0%, #F7941D 100%);
}

/* ===========================
   Roles Grid (Archive Page)
   =========================== */

.roles-archive-page {
    padding: 0;
}

.roles-archive-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   Hero Section
   =========================== */

.roles-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 80px 0;
    background: var(--roles-accent);
}

.roles-hero-text {
    max-width: 560px;
}

.roles-hero-title {
    font-size: 60px;
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.1;
    color: var(--roles-secondary);
    font-family: 'Roboto', sans-serif;
}

.roles-hero-description {
    font-size: 20px;
    line-height: 1.6;
    margin: 0 0 32px;
    color: var(--roles-text);
    font-family: 'Roboto', sans-serif;
}

.roles-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 6px;
    transition: all 0.25s ease;
    cursor: pointer;
    background: var(--roles-primary);
    color: var(--roles-accent);
    border: 2px solid var(--roles-primary);
    font-family: 'Roboto', sans-serif;
}

.roles-hero-btn:hover {
    background: var(--roles-primary-hover);
    border-color: var(--roles-primary-hover);
    color: var(--roles-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 148, 29, 0.25);
}

.roles-hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.roles-hero-image img {
    max-width: 100%;
    height: auto;
}

/* ===========================
   Filter Bar
   =========================== */

.roles-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.roles-filter-wrapper {
    position: relative;
    flex: 1;
    max-width: 380px;
    min-width: 220px;
}

.roles-filter-input {
    display: block;
    width: 100%;
    height: 46px;
    padding-top: 11px !important;
    padding-right: 36px !important;
    padding-bottom: 11px !important;
    padding-left: 0 !important;
    text-indent: 42px !important;
    font-size: 15px !important;
    border: 1.5px solid var(--roles-border);
    border-radius: 10px;
    background: var(--roles-light-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23234475' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") 14px center / 18px 18px no-repeat;
    color: var(--roles-text) !important;
    font-family: 'Roboto', sans-serif;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
}

.roles-filter-input::placeholder {
    color: var(--roles-text) !important;
    opacity: 0.4 !important;
}

.roles-filter-input:focus {
    border-color: var(--roles-primary) !important;
    background-color: var(--roles-accent);
    box-shadow: 0 2px 12px rgba(247, 148, 29, 0.12);
}

.roles-filter-clear {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--roles-text);
    opacity: 0.35;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.15s ease;
}

.roles-filter-clear:hover {
    opacity: 0.6;
}

.roles-filter-clear:active {
    opacity: 1;
    transform: translateY(-50%) scale(0.9);
}

.roles-filter-clear.is-visible {
    display: flex !important;
}

.roles-filter-count {
    font-size: 14px;
    color: var(--roles-text);
    opacity: 0.5;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.roles-no-match {
    text-align: center;
    padding: 48px 20px;
    color: var(--roles-text);
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    opacity: 0.7;
}

/* ===========================
   AJAX Loader
   =========================== */

.roles-loader {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}

.roles-loader.is-loading {
    display: flex !important;
}

.roles-spinner {
    width: 32px;
    height: 32px;
    color: var(--roles-primary);
    animation: roles-spin 0.8s linear infinite;
}

@keyframes roles-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.roles-loader-text {
    font-size: 14px;
    color: var(--roles-text);
    opacity: 0.6;
    font-family: 'Roboto', sans-serif;
}

.roles-grid.is-loading {
    min-height: 300px;
    position: relative;
}

.roles-grid.is-loading .role-card {
    opacity: 0.3;
    transition: opacity 0.2s ease;
}

.roles-grid {
    display: grid;
    gap: 24px;
    margin: 20px 0;
}

.roles-grid-1 {
    grid-template-columns: repeat(1, 1fr);
}

.roles-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.roles-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.roles-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .roles-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .roles-hero {
        gap: 32px;
    }

    .roles-hero-title {
        font-size: 60px;
    }
}

@media (max-width: 768px) {
    .roles-grid-2,
    .roles-grid-3,
    .roles-grid-4 {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ===========================
   Role Card (Archive Page)
   =========================== */

.role-card {
    background: var(--roles-accent);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.role-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.role-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.role-card-title {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.3;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

.role-card-title a {
    color: var(--roles-secondary);
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.role-card-title a:hover {
    color: var(--roles-primary);
}

.role-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--roles-text);
    margin-bottom: 16px;
    font-family: 'Roboto', sans-serif;
}

.role-card-tools {
    font-size: 13px;
    color: var(--roles-text);
    margin-bottom: 12px;
    padding: 8px 12px;
    background: var(--roles-light-bg);
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
}

.role-card-hour-banner {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(247, 148, 29, 0.1);
    color: var(--roles-primary);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    font-family: 'Roboto', sans-serif;
}

.role-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.role-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none !important;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
    flex: 1;
    min-width: 0;
    font-family: 'Roboto', sans-serif;
}

.role-card-btn-view {
    background: var(--roles-primary);
    color: var(--roles-accent);
    border: 2px solid var(--roles-primary);
}

.role-card-btn-view:hover {
    background: var(--roles-primary-hover);
    border-color: var(--roles-primary-hover);
    color: var(--roles-accent);
}

.role-card-btn-call {
    background: var(--roles-danger);
    color: var(--roles-accent);
    border: 2px solid var(--roles-danger);
}

.role-card-btn-call:hover {
    background: var(--roles-primary-hover);
    border-color: var(--roles-primary-hover);
    color: var(--roles-accent);
}

/* ===========================
   No Roles Message
   =========================== */

.roles-no-roles {
    text-align: center;
    padding: 40px 20px;
    color: var(--roles-text);
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
}

/* ===========================
   Pagination
   =========================== */

.roles-archive-container .wp-block-query-pagination,
.roles-archive-container .navigation,
.roles-archive-container .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.roles-archive-container .wp-block-query-pagination a,
.roles-archive-container .wp-block-query-pagination span,
.roles-archive-container .nav-links a,
.roles-archive-container .nav-links span,
.roles-archive-container .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    line-height: 1;
    text-decoration: none;
    border-radius: 8px;
    border: 1.5px solid var(--roles-border);
    background: var(--roles-accent);
    color: var(--roles-text);
    transition: all 0.2s ease;
}

.roles-archive-container .wp-block-query-pagination a:hover,
.roles-archive-container .nav-links a:hover,
.roles-archive-container .page-numbers:hover {
    border-color: var(--roles-primary);
    color: var(--roles-primary);
    background: rgba(247, 148, 29, 0.04);
}

.roles-archive-container .wp-block-query-pagination .current,
.roles-archive-container .nav-links .current,
.roles-archive-container .page-numbers.current {
    background: var(--roles-primary);
    border-color: var(--roles-primary);
    color: var(--roles-accent);
    font-weight: 600;
    pointer-events: none;
}

.roles-archive-container .wp-block-query-pagination .prev,
.roles-archive-container .wp-block-query-pagination .next,
.roles-archive-container .nav-links .prev,
.roles-archive-container .nav-links .next {
    padding: 0 18px;
    font-weight: 600;
    color: var(--roles-secondary);
}

.roles-archive-container .wp-block-query-pagination .prev:hover,
.roles-archive-container .wp-block-query-pagination .next:hover,
.roles-archive-container .nav-links .prev:hover,
.roles-archive-container .nav-links .next:hover {
    background: var(--roles-secondary);
    border-color: var(--roles-secondary);
    color: var(--roles-accent);
}

.roles-archive-container .wp-block-query-pagination .dots,
.roles-archive-container .nav-links .dots {
    border: none;
    background: transparent;
    color: var(--roles-text);
    opacity: 0.4;
    min-width: auto;
    padding: 0 4px;
}

.roles-archive-container .wp-block-query-pagination .dots:hover,
.roles-archive-container .nav-links .dots:hover {
    background: transparent;
    color: var(--roles-text);
    opacity: 0.4;
    border-color: transparent;
}

/* ===========================
   Single Role Page
   =========================== */

.role-single-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.role-hero {
    position: relative;
    background: var(--roles-secondary) center center / cover no-repeat;
    color: var(--roles-accent);
    padding: 80px 40px;
    border-radius: 12px;
    margin-top: 40px;
    margin-bottom: 40px;
    overflow: hidden;
}

.role-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgb(35 68 117 / 85%) 0%, rgb(35 68 117 / 63%) 100%);
    z-index: 1;
}

.role-hero-container {
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

.role-hero-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.2;
    color: var(--roles-accent);
    font-family: 'Roboto', sans-serif;
}

.role-hero-excerpt {
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Roboto', sans-serif;
}

.role-hero-banner {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(247, 148, 29, 0.2);
    color: var(--roles-accent);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    font-family: 'Roboto', sans-serif;
}

.role-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.role-hero-actions .role-btn-primary {
    background: var(--roles-primary);
    color: var(--roles-accent);
    border: 2px solid var(--roles-primary);
}

.role-hero-actions .role-btn-primary:hover {
    background: var(--roles-accent);
    color: var(--roles-primary);
    border-color: var(--roles-accent);
}

.role-hero-actions .role-btn-secondary {
    background: transparent;
    color: var(--roles-accent);
    border: 2px solid var(--roles-accent);
}

.role-hero-actions .role-btn-secondary:hover {
    background: var(--roles-accent);
    color: var(--roles-secondary);
}

/* Main Layout */
.role-main-wrapper {
    margin-bottom: 60px;
}

.role-main-container {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 960px) {
    .role-main-container {
        grid-template-columns: 1fr;
    }

    .role-sidebar-column {
        order: 1;
    }

    .role-content-column {
        order: 0;
    }
}

/* Content Column */
.role-content-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Sidebar Column */
.role-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 961px) {
    .role-sidebar-column {
        position: sticky;
        top: 20px;
    }
}

/* ===========================
   Box Styles
   =========================== */

.role-box {
    background: var(--roles-accent);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 28px;
}

.role-box-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 20px;
    color: var(--roles-secondary);
    padding-bottom: 16px;
    border-bottom: 2px solid var(--roles-border);
    font-family: 'Roboto', sans-serif;
}

.role-box-content {
    font-size: 16px;
    line-height: 1.7;
    color: var(--roles-text);
    font-family: 'Roboto', sans-serif;
}

.role-box-content h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--roles-secondary);
    font-family: 'Roboto', sans-serif;
}

.role-box-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 10px;
    color: var(--roles-secondary);
    font-family: 'Roboto', sans-serif;
}

.role-box-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 16px 0 8px;
    color: var(--roles-secondary);
    font-family: 'Roboto', sans-serif;
}

.role-box-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.role-box-content ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.role-box-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23F7941D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* ===========================
   Tools Box
   =========================== */

.role-tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.role-tool-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(247, 148, 29, 0.1);
    color: var(--roles-primary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: 'Roboto', sans-serif;
}

.role-tool-tag:hover {
    background: var(--roles-primary);
    color: var(--roles-accent);
}

/* ===========================
   Success Box
   =========================== */

.role-success-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .role-success-items {
        grid-template-columns: 1fr;
    }
}

.role-success-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.role-success-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--roles-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--roles-accent);
}

.role-success-icon svg {
    width: 24px;
    height: 24px;
}

.role-success-text h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: var(--roles-secondary);
    font-family: 'Roboto', sans-serif;
}

.role-success-text p {
    margin: 0;
    font-size: 14px;
    color: var(--roles-text);
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
}

/* ===========================
   CTA Box (Sidebar)
   =========================== */

.role-cta-box h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--roles-secondary);
    font-family: 'Roboto', sans-serif;
}

.role-cta-box p {
    font-size: 15px;
    color: var(--roles-text);
    margin: 0 0 20px;
    line-height: 1.6;
    font-family: 'Roboto', sans-serif;
}

.role-cta-box .role-btn-primary {
    background: var(--roles-primary);
    color: var(--roles-accent);
    border: 2px solid var(--roles-primary);
}

.role-cta-box .role-btn-primary:hover {
    background: var(--roles-accent);
    color: var(--roles-primary);
    border-color: var(--roles-primary);
}

/* ===========================
   Calculator Box (Sidebar)
   =========================== */

.role-calculator-box h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px;
    color: var(--roles-secondary);
    font-family: 'Roboto', sans-serif;
}

.role-calculator {
    padding: 0;
}

.role-calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--roles-text);
    font-family: 'Roboto', sans-serif;
}

.role-calc-value {
    font-weight: 600;
    color: var(--roles-secondary);
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
}

.role-calc-slider {
    margin-bottom: 8px;
}

.role-calc-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #8c8f94;
    margin-bottom: 16px;
    font-family: 'Roboto', sans-serif;
}

.role-calc-divider {
    height: 1px;
    background: var(--roles-border);
    margin: 20px 0;
}

.role-calc-result {
    text-align: center;
    padding: 20px;
    background: var(--roles-gradient);
    border-radius: 8px;
    color: var(--roles-accent);
}

.role-calc-result-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
    font-family: 'Roboto', sans-serif;
}

.role-calc-result-amount {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
    font-family: 'Roboto', sans-serif;
}

.role-calc-result-hours {
    font-size: 14px;
    opacity: 0.8;
    font-family: 'Roboto', sans-serif;
}

/* ===========================
   Range Input Styles
   =========================== */

.role-range-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: var(--roles-gradient);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.role-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--roles-accent);
    border: 3px solid var(--roles-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s ease;
}

.role-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.role-range-input::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--roles-accent);
    border: 3px solid var(--roles-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s ease;
}

.role-range-input::-moz-range-thumb:hover {
    transform: scale(1.1);
}

/* ===========================
   Buttons
   =========================== */

.role-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: 'Roboto', sans-serif;
}

.role-btn-primary {
    background: var(--roles-primary);
    color: var(--roles-accent);
    border: 2px solid var(--roles-accent);
}

.role-btn-primary:hover {
    background: var(--roles-accent);
    color: var(--roles-primary);
    border-color: var(--roles-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.role-btn-secondary {
    background: var(--roles-secondary);
    color: var(--roles-accent);
    border: 2px solid var(--roles-secondary);
}

.role-btn-secondary:hover {
    background: var(--roles-accent);
    color: var(--roles-secondary);
    border-color: var(--roles-accent);
}

.role-btn-outline {
    background: var(--roles-secondary);
    color: var(--roles-accent);
    border: 2px solid var(--roles-secondary);
}

.role-btn-outline:hover {
    background: var(--roles-accent);
    color: var(--roles-secondary);
    border-color: var(--roles-accent);
}

.role-btn-full {
    width: 100%;
}

/* ===========================
   Related Roles Section
   =========================== */

.role-related-section {
    padding: 60px 0;
    border-top: 1px solid var(--roles-border);
}

.role-related-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.role-related-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 32px;
    color: var(--roles-secondary);
    text-align: center;
    font-family: 'Roboto', sans-serif;
}

/* ===========================
   Bottom CTA Section
   =========================== */

.role-bottom-cta {
    background: var(--roles-primary) url("https://taskhubrecruitmentsolutions.com/wp-content/uploads/2025/11/subscribe-bg.jpg") center center / cover no-repeat;
    border-radius: 12px;
    padding: 60px 40px;
    margin: 0 20px 60px;
    text-align: center;
    color: var(--roles-accent);
    position: relative;
    overflow: hidden;
}

.role-bottom-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(247, 148, 29, 0.85);
    pointer-events: none;
}

.role-bottom-cta-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.role-bottom-cta-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.3;
    font-family: 'Roboto', sans-serif;
}

.role-bottom-cta-text {
    font-size: 18px;
    margin: 0 0 32px;
    opacity: 0.95;
    line-height: 1.6;
    font-family: 'Roboto', sans-serif;
}

.role-bottom-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.role-bottom-cta-actions .role-btn {
    min-width: 200px;
}

/* ===========================
   Standalone Calculator
   =========================== */

.roles-calculator-standalone {
    padding: 60px 20px;
}

.roles-calculator-standalone-inner {
    max-width: 800px;
    margin: 0 auto;
}

.roles-calc-standalone-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 32px;
    color: var(--roles-secondary);
    text-align: center;
    font-family: 'Roboto', sans-serif;
}

.roles-calc-role-selector {
    margin-bottom: 24px;
}

.roles-calc-role-selector label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--roles-text);
    margin-bottom: 8px;
    font-family: 'Roboto', sans-serif;
    text-align: left;
}

.roles-calc-role-dropdown {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid var(--roles-border);
    border-radius: 6px;
    background: var(--roles-accent);
    color: var(--roles-text);
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23234475' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.roles-calc-role-dropdown:focus {
    outline: none;
    border-color: var(--roles-primary);
}

.role-calc-note {
    text-align: center;
    font-size: 14px;
    color: var(--roles-text);
    margin: 16px 0 0;
    font-family: 'Roboto', sans-serif;
}

.role-calc-cta {
    margin-top: 20px;
    text-align: center;
}

.role-calc-cta .role-btn {
    text-decoration: none;
}

.role-calc-disclaimer {
    text-align: center;
    font-size: 12px;
    color: #8c8f94;
    margin: 12px 0 0;
    font-family: 'Roboto', sans-serif;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 768px) {
    .roles-calculator-standalone {
        padding: 40px 16px;
    }

    .roles-calc-standalone-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .roles-calc-role-dropdown {
        max-width: 100%;
    }

    .roles-archive-container {
        padding: 0 16px;
    }

    .roles-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .roles-filter-wrapper {
        max-width: 100%;
    }

    .roles-filter-count {
        text-align: center;
    }

    .roles-hero {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 48px 0 40px;
    }

    .roles-hero-text {
        max-width: 560px;
        margin: 0 auto;
        text-align: center;
    }

    .roles-hero-image {
        order: -1;
        max-width: 360px;
        margin: 0 auto;
    }

    .roles-hero-title {
        font-size: 32px;
    }

    .roles-hero-description {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .roles-hero-btn {
        width: auto;
    }

    .role-related-section {
        padding: 40px 0;
    }

    .role-related-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .role-bottom-cta {
        padding: 40px 24px;
        margin: 0 16px 40px;
    }

    .role-bottom-cta-title {
        font-size: 24px;
    }

    .role-bottom-cta-text {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .role-bottom-cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .role-bottom-cta-actions .role-btn {
        width: 100%;
        min-width: auto;
    }

    .role-hero {
        padding: 40px 24px;
    }

    .role-hero-title {
        font-size: 28px;
    }

    .role-hero-excerpt {
        font-size: 16px;
    }

    .role-box {
        padding: 20px;
    }

    .role-box-title {
        font-size: 20px;
    }

    .role-calc-result-amount {
        font-size: 28px;
    }

    .role-card-actions {
        flex-direction: column;
    }

    .role-card-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .roles-hero {
        padding: 32px 0 32px;
        gap: 24px;
    }

    .roles-hero-image {
        max-width: 280px;
    }

    .roles-hero-title {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .roles-hero-description {
        font-size: 16px;
    }

    .role-hero-title {
        font-size: 24px;
    }

    .role-hero-actions {
        flex-direction: column;
    }

    .role-hero-actions .role-btn {
        width: 100%;
    }

    .roles-archive-container .wp-block-query-pagination,
    .roles-archive-container .nav-links {
        gap: 6px;
        margin-top: 32px;
        padding-top: 24px;
    }

    .roles-archive-container .wp-block-query-pagination a,
    .roles-archive-container .wp-block-query-pagination span,
    .roles-archive-container .nav-links a,
    .roles-archive-container .nav-links span,
    .roles-archive-container .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 0 12px;
        font-size: 14px;
    }
}
