/**
 * Paradigm RCMS Jobs - Public Styles
 * Matches Bridge theme styling
 */

/* Variables matching Bridge/OC Global theme */
:root {
    --rcms-primary: #006ab7;
    --rcms-primary-dark: #005a9e;
    --rcms-secondary: #0068B9;
    --rcms-accent: #4090cb;
    --rcms-text: #333333;
    --rcms-text-light: #666666;
    --rcms-text-muted: #999999;
    --rcms-border: #e5e5e5;
    --rcms-border-dark: #d0d0d0;
    --rcms-bg-light: #f5f5f5;
    --rcms-bg-white: #ffffff;
    --rcms-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --rcms-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    --rcms-radius: 4px;
    --rcms-font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

/* ========================================
   Page Title Section (Responsive Header Padding)
   ======================================== */
.rcms-page-title-section {
    padding-top: 80px; /* Default for mobile (999px and below) */
}

@media (min-width: 1000px) {
    .rcms-page-title-section {
        padding-top: 140px;
    }
}

/* Admin bar adjustments */
.rcms-page-title-section.admin-bar-showing {
    padding-top: 112px; /* 80px + 32px admin bar */
}

@media (min-width: 1000px) {
    .rcms-page-title-section.admin-bar-showing {
        padding-top: 172px; /* 140px + 32px admin bar */
    }
}

/* ========================================
   Page Header
   ======================================== */
.rcms-page-header {
    background: var(--rcms-bg-light);
    padding: 40px 0;
    margin-bottom: 40px;
}

.rcms-page-title {
    margin: 0 0 10px;
    font-size: 32px;
    font-weight: 700;
    color: var(--rcms-text);
    font-family: var(--rcms-font-family);
}

.rcms-page-description {
    margin: 0;
    font-size: 16px;
    color: var(--rcms-text-light);
}

/* ========================================
   Search Form (Table-like layout)
   ======================================== */
.rcms-search-form {
    margin-top: 50px;
    margin-bottom: 40px;
    border: 1px solid #ddd;
    background: #fff;
    overflow: hidden;
}

/* Each row mimics a table row */
.rcms-search-row {
    display: flex;
    border-bottom: 1px solid #ddd;
}

.rcms-search-row:last-child {
    border-bottom: none;
}

/* Label column (like th) */
.rcms-search-label {
    width: 140px;
    min-width: 140px;
    padding: 20px;
    background: #f7f7f7;
    font-size: 14px;
    font-weight: 600;
    color: var(--rcms-text);
    display: flex;
    align-items: flex-start;
}

/* Options column (like td) */
.rcms-search-options {
    flex: 1;
    min-width: 0; /* Prevent flex item overflow */
    padding: 15px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
}

/* Checkbox styling */
.rcms-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.rcms-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: var(--rcms-text);
    transition: color 0.2s ease;
}

.rcms-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--rcms-primary);
}

.rcms-checkbox:hover {
    color: var(--rcms-primary);
}

.rcms-checkbox input[type="checkbox"]:checked + span {
    color: var(--rcms-primary);
    font-weight: 600;
}

/* Keyword row */
.rcms-search-keyword {
    gap: 10px;
    flex-wrap: wrap;
}

.rcms-keyword-input {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 400px;
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: var(--rcms-font-family);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.rcms-keyword-input:focus {
    outline: none;
    border-color: var(--rcms-primary);
    box-shadow: 0 0 0 3px rgba(0, 106, 183, 0.1);
}

.rcms-keyword-input::placeholder {
    color: #999;
}

.rcms-search-clear {
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
    font-family: var(--rcms-font-family);
    cursor: pointer;
    transition: all 0.2s ease;
}

.rcms-search-clear:hover {
    border-color: var(--rcms-primary);
    color: var(--rcms-primary);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .rcms-search-row {
        flex-direction: column;
    }

    .rcms-search-label {
        width: 100%;
        padding: 12px 15px;
        border-bottom: 1px solid #eee;
    }

    .rcms-search-options {
        padding: 15px;
    }

    .rcms-checkbox-group {
        gap: 8px 15px;
    }

    .rcms-keyword-input {
        max-width: none;
        width: 100%;
    }

    .rcms-search-keyword {
        flex-direction: column;
        align-items: stretch;
    }

    .rcms-search-clear {
        align-self: flex-start;
    }
}

/* ========================================
   Search Button
   ======================================== */
.rcms-search-button-wrap {
    text-align: center;
    margin: 30px 0 40px;
}

.rcms-search-button {
    display: inline-block;
    min-width: 300px;
    padding: 14px 60px;
    background: var(--rcms-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--rcms-font-family);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.rcms-search-button:hover {
    background: var(--rcms-primary-dark);
}

@media (max-width: 768px) {
    .rcms-search-button {
        min-width: 200px;
        width: 80%;
        padding: 12px 40px;
    }
}

/* ========================================
   Results Count
   ======================================== */
.rcms-jobs-count {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--rcms-text-light);
    font-family: var(--rcms-font-family);
}

.rcms-jobs-count span {
    font-weight: 700;
    color: var(--rcms-primary);
}

/* ========================================
   Job Cards Grid
   ======================================== */
.rcms-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.rcms-job-card {
    background: var(--rcms-bg-white);
    border: 1px solid var(--rcms-border);
    border-radius: var(--rcms-radius);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.rcms-job-card:hover {
    box-shadow: var(--rcms-shadow-hover);
    transform: translateY(-2px);
}

.rcms-job-card-inner {
    padding: 25px;
}

/* ========================================
   Job Badge
   ======================================== */
.rcms-job-badge,
.rcms-badge {
    display: inline-block;
    padding: 4px 10px;
    margin-bottom: 12px;
    margin-right: 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    background: var(--rcms-bg-light);
    color: var(--rcms-text);
    font-family: var(--rcms-font-family);
}

.rcms-badge-career {
    background: #e3f2fd;
    color: #1565c0;
}

.rcms-badge-newgraduate {
    background: #e8f5e9;
    color: #2e7d32;
}

.rcms-badge-parttime {
    background: #fff3e0;
    color: #ef6c00;
}

.rcms-badge-intern {
    background: #fce4ec;
    color: #c2185b;
}

.rcms-badge-jobtype {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* ========================================
   Job Title
   ======================================== */
.rcms-job-title {
    margin: 0 0 15px;
    font-size: 18px;
    line-height: 1.4;
    font-family: var(--rcms-font-family);
}

.rcms-job-title a {
    color: var(--rcms-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.rcms-job-title a:hover {
    color: var(--rcms-primary);
}

/* ========================================
   Job Meta
   ======================================== */
.rcms-job-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--rcms-text-light);
    font-family: var(--rcms-font-family);
}

.rcms-job-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rcms-icon {
    flex-shrink: 0;
    opacity: 0.7;
}

/* ========================================
   Job CTA
   ======================================== */
.rcms-job-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--rcms-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    font-family: var(--rcms-font-family);
    transition: gap 0.2s ease;
}

.rcms-job-cta:hover {
    text-decoration: none;
    gap: 10px;
}

.rcms-icon-arrow {
    transition: transform 0.2s ease;
}

.rcms-job-cta:hover .rcms-icon-arrow {
    transform: translateX(4px);
}

/* ========================================
   No Results
   ======================================== */
.rcms-no-results {
    padding: 60px 20px;
    text-align: center;
}

.rcms-no-results-inner {
    color: var(--rcms-text-light);
}

.rcms-no-results svg {
    margin-bottom: 20px;
    opacity: 0.5;
}

.rcms-no-results p {
    margin: 5px 0;
    font-size: 16px;
}

/* ========================================
   Single Job Page
   ======================================== */
.rcms-single-header {
    background: var(--rcms-bg-light);
    padding: 20px 0;
    margin-bottom: 30px;
}

.rcms-breadcrumb {
    font-size: 14px;
    color: var(--rcms-text-light);
    margin-bottom: 20px;
}

.rcms-breadcrumb a {
    color: var(--rcms-primary);
    text-decoration: none;
}

.rcms-breadcrumb a:hover {
    text-decoration: underline;
}

.rcms-breadcrumb-sep {
    margin: 0 8px;
    color: var(--rcms-text-muted);
}

.rcms-job-single {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.rcms-job-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.rcms-job-single-title {
    margin: 0 0 25px;
    font-size: 28px;
    line-height: 1.3;
    color: var(--rcms-text);
    font-family: var(--rcms-font-family);
}

/* ========================================
   Summary Section
   ======================================== */
.rcms-job-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding: 25px;
    margin-bottom: 30px;
    background: var(--rcms-bg-light);
    border-radius: var(--rcms-radius);
}

.rcms-summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rcms-summary-label {
    font-size: 12px;
    color: var(--rcms-text-muted);
    font-family: var(--rcms-font-family);
}

.rcms-summary-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--rcms-text);
    font-family: var(--rcms-font-family);
}

/* ========================================
   Apply Button
   ======================================== */
.rcms-apply-section {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
}

.rcms-apply-section .rcms-apply-button {
    align-self: center;
}

/* Fixed Apply Bar */
.rcms-fixed-apply-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 16px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rcms-apply-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 48px;
    background: var(--rcms-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--rcms-radius);
    font-family: var(--rcms-font-family);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rcms-apply-button:hover {
    background: var(--rcms-primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.rcms-icon-external {
    flex-shrink: 0;
}

/* ========================================
   Job Description
   ======================================== */
.rcms-job-description {
    margin: 40px 0;
}

.rcms-job-description h2 {
    margin: 0 0 20px;
    padding-bottom: 10px;
    font-size: 20px;
    border-bottom: 2px solid var(--rcms-primary);
    color: var(--rcms-primary);
    font-family: var(--rcms-font-family);
}

.rcms-description-content {
    line-height: 1.8;
    color: var(--rcms-text);
    font-family: var(--rcms-font-family);
}

.rcms-description-content p {
    margin-bottom: 1em;
}

/* ========================================
   Details Table
   ======================================== */
.rcms-job-details {
    margin: 40px 0;
}

.rcms-job-details h2 {
    margin: 0 0 20px;
    padding-bottom: 10px;
    font-size: 20px;
    border-bottom: 2px solid var(--rcms-primary);
    color: var(--rcms-primary);
    font-family: var(--rcms-font-family);
}

.rcms-details-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--rcms-font-family);
}

.rcms-details-table th,
.rcms-details-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--rcms-border);
    vertical-align: top;
}

.rcms-details-table th {
    width: 160px;
    font-weight: 600;
    background: var(--rcms-bg-light);
    color: var(--rcms-text);
    font-size: 14px;
}

.rcms-details-table td {
    line-height: 1.7;
    color: var(--rcms-text);
    font-size: 15px;
}

.rcms-details-table td small {
    color: var(--rcms-text-light);
    font-size: 13px;
}

/* ========================================
   Back Link
   ======================================== */
.rcms-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--rcms-text-light);
    font-size: 14px;
    text-decoration: none;
    font-family: var(--rcms-font-family);
    transition: color 0.2s ease;
}

.rcms-back-link:hover {
    color: var(--rcms-primary);
}

.rcms-apply-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--rcms-border);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1000px) {
    .rcms-page-header {
        padding: 30px 0;
    }

    .rcms-page-title {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .rcms-filters-row {
        flex-direction: column;
    }

    .rcms-filter-group {
        width: 100%;
    }

    .rcms-filter-keyword-group {
        min-width: auto;
    }

    .rcms-filter-actions {
        width: 100%;
    }

    .rcms-filter-reset {
        width: 100%;
    }

    .rcms-jobs-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .rcms-job-single-title {
        font-size: 22px;
    }

    .rcms-job-summary {
        gap: 15px;
    }

    .rcms-summary-item {
        width: calc(50% - 8px);
    }

    .rcms-details-table th {
        width: 120px;
        font-size: 13px;
    }

    .rcms-details-table td {
        font-size: 14px;
    }

    .rcms-apply-button {
        width: 100%;
        padding: 14px 30px;
    }
}

/* ========================================
   Shortcode Styles
   ======================================== */
.rcms-jobs-shortcode {
    margin: 30px 0;
}

.rcms-shortcode-title {
    margin: 0 0 25px;
    font-size: 24px;
    font-weight: 700;
    color: var(--rcms-text);
    font-family: var(--rcms-font-family);
}

/* Column Variations */
.rcms-columns-1 {
    grid-template-columns: 1fr;
}

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

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

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

/* Featured Image in Cards */
.rcms-job-image {
    margin: -25px -25px 20px -25px;
    overflow: hidden;
    border-radius: var(--rcms-radius) var(--rcms-radius) 0 0;
}

.rcms-job-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.rcms-job-card:hover .rcms-job-thumbnail {
    transform: scale(1.05);
}

/* Shortcode Filter Adjustments */
.rcms-shortcode-filters {
    margin-bottom: 25px;
}

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

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

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

    .rcms-job-image {
        margin: -20px -20px 15px -20px;
    }

    .rcms-job-thumbnail {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .rcms-page-header {
        padding: 25px 0;
        margin-bottom: 25px;
    }

    .rcms-page-title {
        font-size: 22px;
    }

    .rcms-job-card-inner {
        padding: 20px;
    }

    .rcms-job-title {
        font-size: 16px;
    }

    .rcms-summary-item {
        width: 100%;
    }

    .rcms-details-table,
    .rcms-details-table tbody,
    .rcms-details-table tr,
    .rcms-details-table th,
    .rcms-details-table td {
        display: block;
        width: 100%;
    }

    .rcms-details-table tr {
        margin-bottom: 15px;
        border-bottom: 1px solid var(--rcms-border);
    }

    .rcms-details-table th {
        border-bottom: none;
        padding-bottom: 5px;
    }

    .rcms-details-table td {
        padding-top: 0;
    }
}

/* ========================================
   Single Page - Featured Image
   ======================================== */
.rcms-job-featured-image {
    margin-top: 50px;
    margin-bottom: 25px;
    border-radius: var(--rcms-radius);
    overflow: hidden;
}

.rcms-featured-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

/* ========================================
   Single Page - Section Layout
   ======================================== */
.rcms-job-section {
    margin-bottom: 35px;
}

.rcms-section-title {
    margin: 0 0 20px;
    padding-bottom: 12px;
    font-size: 20px;
    font-weight: 700;
    border-bottom: 3px solid var(--rcms-primary);
    color: var(--rcms-primary);
    font-family: var(--rcms-font-family);
}

.rcms-section-content {
    line-height: 1.8;
    color: var(--rcms-text);
    font-family: var(--rcms-font-family);
}

.rcms-section-content p {
    margin-bottom: 1em;
}

/* ========================================
   Single Page - Info Table (Label/Value)
   ======================================== */
.rcms-info-table {
    background: var(--rcms-bg-white);
    border: 1px solid var(--rcms-border);
    border-radius: var(--rcms-radius);
    overflow: hidden;
}

.rcms-info-row {
    display: flex;
    border-bottom: 1px solid var(--rcms-border);
}

.rcms-info-row:last-child {
    border-bottom: none;
}

.rcms-info-label {
    flex: 0 0 180px;
    padding: 16px 20px;
    background: var(--rcms-bg-light);
    font-weight: 600;
    font-size: 14px;
    color: var(--rcms-text);
    font-family: var(--rcms-font-family);
    border-right: 1px solid var(--rcms-border);
}

.rcms-info-value {
    flex: 1;
    padding: 16px 20px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--rcms-text);
    font-family: var(--rcms-font-family);
}

.rcms-info-sub {
    color: var(--rcms-text-light);
    font-size: 13px;
}

.rcms-salary-highlight {
    font-weight: 600;
    color: var(--rcms-primary);
}


@media (max-width: 768px) {
    .rcms-info-row {
        flex-direction: column;
    }

    .rcms-info-label {
        flex: none;
        border-right: none;
        border-bottom: 1px solid var(--rcms-border);
        padding: 12px 16px;
    }

    .rcms-info-value {
        padding: 12px 16px;
    }

    .rcms-featured-img {
        max-height: 250px;
    }
}

/* ========================================
   Archive - List Layout (RCMS Style)
   ======================================== */
.rcms-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rcms-job-item {
    background: var(--rcms-bg-white);
    border: 1px solid var(--rcms-border);
    border-radius: var(--rcms-radius);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.rcms-job-item:hover {
    box-shadow: var(--rcms-shadow-hover);
    border-color: var(--rcms-primary);
}

.rcms-job-item-link {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.rcms-job-item-link:hover {
    text-decoration: none;
}

/* Job Item Image */
.rcms-job-item-image {
    flex: 0 0 220px;
    min-height: 180px;
    overflow: hidden;
    background: var(--rcms-bg-light);
}

.rcms-item-thumbnail {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.rcms-job-item:hover .rcms-item-thumbnail {
    transform: scale(1.05);
}

.rcms-item-placeholder {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rcms-text-muted);
}

/* Job Item Content */
.rcms-job-item-content {
    flex: 1;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
}

.rcms-job-item-badges {
    margin-bottom: 10px;
}

.rcms-job-item-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--rcms-text);
    font-family: var(--rcms-font-family);
    transition: color 0.2s ease;
}

.rcms-job-item:hover .rcms-job-item-title {
    color: var(--rcms-primary);
}

.rcms-job-item-description {
    margin: 0 0 15px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--rcms-text-light);
    font-family: var(--rcms-font-family);
}

/* Job Item Meta */
.rcms-job-item-meta {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding-top: 15px;
    border-top: 1px solid var(--rcms-border);
}

.rcms-job-item-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.rcms-meta-label {
    color: var(--rcms-text-muted);
    font-weight: 600;
}

.rcms-meta-value {
    color: var(--rcms-text);
}

.rcms-meta-salary {
    font-weight: 600;
    color: var(--rcms-primary);
}

/* Job Item CTA */
.rcms-job-item-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
    color: var(--rcms-primary);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--rcms-font-family);
}

.rcms-job-item-cta .rcms-icon-arrow {
    transition: transform 0.2s ease;
}

.rcms-job-item:hover .rcms-job-item-cta .rcms-icon-arrow {
    transform: translateX(4px);
}

/* Archive List Responsive */
@media (max-width: 768px) {
    .rcms-job-item-link {
        flex-direction: column;
    }

    .rcms-job-item-image {
        flex: none;
        height: 180px;
    }

    .rcms-item-thumbnail,
    .rcms-item-placeholder {
        min-height: 180px;
        height: 180px;
    }

    .rcms-job-item-content {
        padding: 18px 20px;
    }

    .rcms-job-item-title {
        font-size: 16px;
    }

    .rcms-job-item-meta {
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .rcms-job-item-image {
        height: 150px;
    }

    .rcms-item-thumbnail,
    .rcms-item-placeholder {
        min-height: 150px;
        height: 150px;
    }
}

/* ========================================
   c-table Styles (Matching Original RCMS)
   ======================================== */
.c-table {
    border-collapse: collapse;
    margin: 40px 0;
    border: 1px solid #ddd;
    width: 100%;
}

@media (min-width: 768px) {
    .c-table {
        margin: 50px 0;
    }
}

.c-table > tbody > tr > td,
.c-table > tbody > tr > th {
    border: 1px solid #ddd;
    padding: 10px;
    vertical-align: text-top;
    text-align: left;
}

.c-table > tbody > tr > th {
    font-weight: 400;
    width: 115px;
}

.c-table > tbody > tr > td ol:last-child,
.c-table > tbody > tr > td p:last-child,
.c-table > tbody > tr > td ul:last-child {
    margin-bottom: 0;
}

.c-table > tbody > tr > td ol li:last-child,
.c-table > tbody > tr > td ul li:last-child {
    margin-bottom: 0;
}

.c-table > tbody > tr > td table:not(:last-child) {
    margin-bottom: 1rem;
}

.c-table > tbody > tr > td table th {
    vertical-align: text-top;
    font-weight: 400;
    width: 4em;
    text-align: left;
}

/* c-table type3 specific styles */
.c-table.type3 > tbody > tr > td,
.c-table.type3 > tbody > tr > th {
    padding: 30px;
}

.c-table.type3 > tbody > tr > th {
    width: 260px;
    vertical-align: middle;
    background: #f7f7f7;
}

.c-table.type3 > tbody > tr > td {
    max-width: 0; /* Forces td to respect table width */
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

@media (max-width: 767px) {
    .c-table.type3 {
        border: none;
    }

    .c-table.type3 > tbody > tr > td,
    .c-table.type3 > tbody > tr > th {
        display: block;
        border: none;
    }

    .c-table.type3 > tbody > tr > th {
        width: 100%;
        padding: 10px 15px;
        text-align: left;
    }

    .c-table.type3 > tbody > tr > td {
        padding: 15px;
        max-width: 100%;
    }
}

/* ========================================
   Job List Styles (Matching Original RCMS)
   ======================================== */
.s-jobList {
    list-style: none;
    padding-left: 0;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .s-jobList {
        margin-bottom: 50px;
    }
}

.s-jobList-item {
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .s-jobList-item {
        margin-bottom: 40px;
    }
}

.s-jobList-item a {
    color: #333;
    position: relative;
    display: block;
    text-decoration: none;
}

.s-jobList-item a .s-jobList-block {
    border: 1px solid #ddd;
    background: #fff;
    padding: 20px 25px;
    transition: border-color 0.2s ease;
}

@media (min-width: 768px) {
    .s-jobList-item a .s-jobList-block {
        padding: 20px 25px;
    }
}

.s-jobList-item a:hover .s-jobList-block {
    border-color: #006AB7;
}

/* Title */
.s-jobListText {
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .s-jobListText {
        margin-bottom: 20px;
    }
}

.s-jobListTitle {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    transition: color 0.2s ease;
}

@media (min-width: 768px) {
    .s-jobListTitle {
        font-size: 20px;
    }
}

.s-jobList-item a:hover .s-jobListTitle {
    color: #006AB7;
}

/* Bottom section - Image + Table */
.s-jobList-bottom {
    display: block;
}

@media (min-width: 768px) {
    .s-jobList-bottom {
        display: flex;
        flex-direction: row;
        gap: 20px;
    }
}

/* Image */
.s-jobListImage {
    overflow: hidden;
    margin: 0 0 20px 0;
    background: #f5f5f5;
    height: 200px;
}

.s-jobListImage img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.2s ease;
}

@media (min-width: 768px) {
    .s-jobListImage {
        width: 294px;
        min-width: 294px;
        height: 196px;
        margin-bottom: 0;
    }
}

.s-jobList-item a:hover .s-jobListImage img {
    transform: scale(1.02);
}

.s-jobListImage-placeholder {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    background: #f5f5f5;
}

@media (min-width: 768px) {
    .s-jobListImage-placeholder {
        height: 100%;
        min-height: 150px;
    }
}

/* Table */
.s-jobListTable {
    border-collapse: collapse;
    margin-bottom: 5px;
    width: 100%;
    flex-grow: 1;
}

.s-jobListTable tr:nth-child(odd) {
    background: transparent;
}

.s-jobListTable td,
.s-jobListTable th {
    font-size: 14px;
    display: block;
    border: none;
    text-align: left;
}

.s-jobListTable th {
    font-weight: 400;
    padding: 10px 20px;
    background: #f7f7f7;
    margin-left: -20px;
    margin-right: -20px;
}

.s-jobListTable td {
    font-size: 14px;
    padding: 15px 0;
}

@media (min-width: 768px) {
    .s-jobListTable {
        margin-bottom: 0;
    }

    .s-jobListTable tr:nth-child(odd) {
        background: #f7f7f7;
    }

    .s-jobListTable td,
    .s-jobListTable th {
        display: table-cell;
        padding: 10px 25px;
        vertical-align: middle;
    }

    .s-jobListTable th {
        width: 120px;
        margin: 0;
        background: transparent;
    }
}

/* Button */
.s-jobListButton {
    padding: 15px 0 0;
    font-size: 14px;
    text-align: right;
}

.s-jobListButton .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #006AB7;
    font-weight: 600;
}

.s-jobListButton .button::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

@media (min-width: 768px) {
    .s-jobListButton {
        padding-top: 20px;
    }

    .s-jobListButton .button {
        font-size: 16px;
    }
}
