/* Resonacle Job Portal - Professional Styles */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
    --rjp-primary: #6366f1;
    --rjp-primary-dark: #4f46e5;
    --rjp-primary-light: #818cf8;
    --rjp-secondary: #0ea5e9;
    --rjp-success: #10b981;
    --rjp-warning: #f59e0b;
    --rjp-danger: #ef4444;
    --rjp-dark: #0f172a;
    --rjp-gray-900: #1e293b;
    --rjp-gray-800: #334155;
    --rjp-gray-700: #475569;
    --rjp-gray-600: #64748b;
    --rjp-gray-500: #94a3b8;
    --rjp-gray-400: #cbd5e1;
    --rjp-gray-300: #e2e8f0;
    --rjp-gray-200: #f1f5f9;
    --rjp-gray-100: #f8fafc;
    --rjp-white: #ffffff;
    --rjp-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --rjp-gradient-hover: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #9333ea 100%);
    --rjp-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --rjp-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --rjp-shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --rjp-shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --rjp-shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --rjp-radius-sm: 6px;
    --rjp-radius: 12px;
    --rjp-radius-lg: 16px;
    --rjp-radius-xl: 24px;
    --rjp-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
.rjp-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--rjp-gray-800);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.rjp-container *,
.rjp-container *::before,
.rjp-container *::after {
    box-sizing: border-box;
}

/* Hero Section */
.rjp-hero {
    background: var(--rjp-gradient);
    padding: 60px 40px;
    border-radius: var(--rjp-radius-xl);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.rjp-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.rjp-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.rjp-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--rjp-white);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.rjp-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 32px;
    font-weight: 400;
}

/* Search Container */
.rjp-search-container {
    max-width: 700px;
    margin: 0 auto;
}

.rjp-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.rjp-search-icon {
    position: absolute;
    left: 20px;
    width: 22px;
    height: 22px;
    color: var(--rjp-gray-500);
    pointer-events: none;
}

.rjp-search-input {
    width: 100%;
    padding: 18px 24px 18px 56px;
    font-size: 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border: none;
    border-radius: 100px;
    background: var(--rjp-white);
    color: var(--rjp-gray-800);
    box-shadow: var(--rjp-shadow-lg);
    transition: var(--rjp-transition);
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.rjp-search-input:focus {
    box-shadow: var(--rjp-shadow-xl), 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.rjp-search-input::placeholder {
    color: var(--rjp-gray-500);
}

/* Filters Section */
.rjp-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px;
    background: var(--rjp-white);
    border-radius: var(--rjp-radius-lg);
    box-shadow: var(--rjp-shadow);
    margin-bottom: 24px;
    align-items: flex-end;
}

.rjp-filter-group {
    flex: 1;
    min-width: 180px;
}

.rjp-filter-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rjp-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

/* Custom Select Dropdown */
.rjp-custom-select {
    position: relative;
    width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.rjp-select-selected {
    width: 100%;
    padding: 14px 40px 14px 16px;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid var(--rjp-gray-200);
    border-radius: var(--rjp-radius);
    background-color: #ffffff;
    color: #1e293b;
    cursor: pointer;
    transition: var(--rjp-transition);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    user-select: none;
    box-sizing: border-box;
}

.rjp-select-selected:hover {
    border-color: var(--rjp-gray-300);
}

.rjp-custom-select.open .rjp-select-selected {
    border-color: var(--rjp-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.rjp-custom-select.open .rjp-select-selected::after {
    transform: rotate(180deg);
}

.rjp-select-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 2px solid var(--rjp-primary);
    border-top: none;
    border-radius: 0 0 var(--rjp-radius) var(--rjp-radius);
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--rjp-shadow-lg);
}

.rjp-custom-select.open .rjp-select-dropdown {
    display: block;
}

.rjp-select-option {
    padding: 12px 16px;
    font-size: 1rem;
    color: #1e293b;
    cursor: pointer;
    transition: background-color 0.15s ease;
    font-family: inherit;
}

.rjp-select-option:hover {
    background-color: #f1f5f9;
}

.rjp-select-option.selected {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--rjp-primary);
    font-weight: 500;
}

.rjp-clear-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--rjp-gray-600);
    background: var(--rjp-gray-100);
    border: none;
    border-radius: var(--rjp-radius);
    cursor: pointer;
    transition: var(--rjp-transition);
}

.rjp-clear-filters svg {
    width: 16px;
    height: 16px;
}

.rjp-clear-filters:hover {
    background: var(--rjp-gray-200);
    color: var(--rjp-gray-800);
}

/* Stats Bar */
.rjp-stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-bottom: 24px;
}

.rjp-stats-count {
    font-size: 1.1rem;
    color: var(--rjp-gray-600);
}

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

/* Jobs Grid */
.rjp-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}


/* Job Card */
.rjp-job-card {
    background: var(--rjp-white);
    border-radius: var(--rjp-radius-lg);
    padding: 32px;
    box-shadow: var(--rjp-shadow);
    transition: var(--rjp-transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--rjp-gray-100);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rjp-job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--rjp-gradient);
    opacity: 0;
    transition: var(--rjp-transition);
}

.rjp-job-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rjp-shadow-lg);
    border-color: var(--rjp-primary-light);
}

.rjp-job-card:hover::before {
    opacity: 1;
}


/* Job Content Wrapper */
.rjp-job-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Job Header */
.rjp-job-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.rjp-job-company-logo {
    width: 64px;
    height: 64px;
    border-radius: var(--rjp-radius);
    background: var(--rjp-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--rjp-white);
    flex-shrink: 0;
}

.rjp-job-info {
    flex: 1;
    min-width: 0;
}

.rjp-job-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rjp-gray-900);
    margin: 0 0 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rjp-job-company {
    font-size: 1.1rem;
    color: var(--rjp-gray-600);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rjp-job-company svg {
    width: 18px;
    height: 18px;
    color: var(--rjp-primary);
}


.rjp-job-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--rjp-gray-100);
    border-radius: 100px;
    font-size: 1rem;
    color: var(--rjp-gray-700);
}

.rjp-job-meta-item svg {
    width: 18px;
    height: 18px;
    color: var(--rjp-gray-500);
}

.rjp-job-meta-item.location {
    background: rgba(99, 102, 241, 0.1);
    color: var(--rjp-primary);
}

.rjp-job-meta-item.location svg {
    color: var(--rjp-primary);
}

.rjp-job-meta-item.workspace {
    background: rgba(16, 185, 129, 0.1);
    color: var(--rjp-success);
}

.rjp-job-meta-item.workspace svg {
    color: var(--rjp-success);
}

/* Skills Tags */
.rjp-job-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.rjp-skill-tag {
    display: inline-block;
    padding: 10px 18px;
    background: var(--rjp-gray-100);
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--rjp-gray-700);
    border: 1px solid var(--rjp-gray-200);
}

/* Job Meta - Combined with skills */
.rjp-job-meta {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

/* Job Footer */
.rjp-job-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--rjp-gray-200);
}

.rjp-job-date {
    font-size: 1rem;
    color: var(--rjp-gray-500);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rjp-job-date svg {
    width: 18px;
    height: 18px;
}

.rjp-view-job-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--rjp-gradient);
    color: var(--rjp-white);
    border: none;
    border-radius: 100px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--rjp-transition);
}

.rjp-view-job-btn svg {
    width: 20px;
    height: 20px;
}

.rjp-view-job-btn:hover {
    background: var(--rjp-gradient-hover);
    transform: translateX(4px);
}

/* Loading State */
.rjp-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.rjp-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--rjp-gray-200);
    border-top-color: var(--rjp-primary);
    border-radius: 50%;
    animation: rjp-spin 1s linear infinite;
}

@keyframes rjp-spin {
    to { transform: rotate(360deg); }
}

.rjp-loading p {
    margin-top: 16px;
    color: var(--rjp-gray-600);
    font-size: 1rem;
}

/* Error State */
.rjp-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.rjp-error svg {
    width: 64px;
    height: 64px;
    color: var(--rjp-danger);
    margin-bottom: 20px;
}

.rjp-error h3 {
    font-size: 1.5rem;
    color: var(--rjp-gray-800);
    margin: 0 0 8px;
}

.rjp-error p {
    color: var(--rjp-gray-600);
    margin: 0 0 24px;
}

.rjp-retry-btn {
    padding: 12px 28px;
    background: var(--rjp-gradient);
    color: var(--rjp-white);
    border: none;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--rjp-transition);
}

.rjp-retry-btn:hover {
    background: var(--rjp-gradient-hover);
    transform: translateY(-2px);
}

/* No Results */
.rjp-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.rjp-no-results svg {
    width: 64px;
    height: 64px;
    color: var(--rjp-gray-400);
    margin-bottom: 20px;
}

.rjp-no-results h3 {
    font-size: 1.5rem;
    color: var(--rjp-gray-800);
    margin: 0 0 8px;
}

.rjp-no-results p {
    color: var(--rjp-gray-600);
    margin: 0;
}

/* Load More */
.rjp-load-more-container {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.rjp-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--rjp-white);
    color: var(--rjp-primary);
    border: 2px solid var(--rjp-primary);
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--rjp-transition);
}

.rjp-load-more-btn svg {
    width: 20px;
    height: 20px;
}

.rjp-load-more-btn:hover {
    background: var(--rjp-primary);
    color: var(--rjp-white);
}

/* Modal */
.rjp-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rjp-modal.active {
    display: flex;
}

.rjp-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    animation: rjp-fadeIn 0.3s ease;
}

@keyframes rjp-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.rjp-modal-content {
    position: relative;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    background: var(--rjp-white);
    border-radius: var(--rjp-radius-xl);
    box-shadow: var(--rjp-shadow-xl);
    overflow: hidden;
    animation: rjp-slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes rjp-slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rjp-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rjp-gray-100);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--rjp-transition);
    z-index: 10;
}

.rjp-modal-close svg {
    width: 20px;
    height: 20px;
    color: var(--rjp-gray-600);
}

.rjp-modal-close:hover {
    background: var(--rjp-gray-200);
}

.rjp-modal-close:hover svg {
    color: var(--rjp-gray-800);
}

.rjp-modal-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.rjp-modal-footer {
    flex-shrink: 0;
    background: #ffffff;
    border-top: 1px solid var(--rjp-gray-200);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.rjp-modal-footer:empty {
    display: none;
}

.rjp-modal-footer .rjp-apply-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 18px 32px;
    background: var(--rjp-gradient);
    color: #ffffff;
    border: none;
    border-radius: 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--rjp-transition);
    text-decoration: none;
}

.rjp-modal-footer .rjp-apply-btn:hover {
    background: var(--rjp-gradient-hover);
    color: #ffffff;
    text-decoration: none;
}

.rjp-modal-footer .rjp-apply-btn svg {
    width: 22px;
    height: 22px;
}

/* Modal Job Detail */
.rjp-job-detail {
    padding: 0;
}

.rjp-job-detail-header {
    background: var(--rjp-gradient);
    padding: 40px;
    color: var(--rjp-white);
    position: relative;
}

.rjp-job-detail-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.rjp-job-detail-header-content {
    position: relative;
    z-index: 1;
}

.rjp-job-detail-logo {
    width: 72px;
    height: 72px;
    border-radius: var(--rjp-radius);
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--rjp-white);
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.rjp-job-detail-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.3;
    color: #ffffff !important;
}

.rjp-job-detail-company {
    font-size: 1.1rem;
    margin: 0 0 16px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff !important;
}

/* Hide logo squares */
.rjp-job-company-logo,
.rjp-job-detail-logo {
    display: none !important;
}

.rjp-job-detail-company svg {
    width: 18px;
    height: 18px;
}

.rjp-job-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rjp-detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rjp-detail-badge svg {
    width: 16px;
    height: 16px;
}

.rjp-job-detail-body {
    padding: 40px;
}

.rjp-job-detail-section {
    margin-bottom: 32px;
}

.rjp-job-detail-section:last-child {
    margin-bottom: 0;
}

.rjp-job-detail-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--rjp-gray-900);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--rjp-gray-200);
    display: flex;
    align-items: center;
    gap: 10px;
}

.rjp-job-detail-section-title svg {
    width: 20px;
    height: 20px;
    color: var(--rjp-primary);
}

.rjp-job-detail-description {
    color: var(--rjp-gray-700);
    line-height: 1.8;
    overflow-x: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.rjp-job-detail-description p {
    margin: 0 0 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.rjp-job-detail-description ul,
.rjp-job-detail-description ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.rjp-job-detail-description li {
    margin-bottom: 8px;
}

.rjp-job-detail-description h1,
.rjp-job-detail-description h2,
.rjp-job-detail-description h3,
.rjp-job-detail-description h4 {
    color: var(--rjp-gray-900);
    margin: 24px 0 12px;
}

.rjp-job-detail-description h1 { font-size: 1.5rem; }
.rjp-job-detail-description h2 { font-size: 1.3rem; }
.rjp-job-detail-description h3 { font-size: 1.1rem; }
.rjp-job-detail-description h4 { font-size: 1rem; }

/* Table responsiveness in job description */
.rjp-job-detail-description table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.95rem;
}

.rjp-job-detail-description table td,
.rjp-job-detail-description table th {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    padding: 12px !important;
    border: 1px solid var(--rjp-gray-200) !important;
    vertical-align: top !important;
}

.rjp-job-detail-description img {
    max-width: 100% !important;
    height: auto !important;
}

.rjp-job-detail-description pre,
.rjp-job-detail-description code {
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
}

/* Force all children to respect container width */
.rjp-job-detail-description * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.rjp-job-detail-description div {
    overflow-x: auto;
}

.rjp-job-detail-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rjp-detail-skill-tag {
    display: inline-block;
    padding: 10px 18px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--rjp-primary);
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 500;
}

.rjp-job-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 40px;
    background: #ffffff;
    border-top: 1px solid var(--rjp-gray-200);
    position: sticky;
    bottom: 0;
    z-index: 10;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.rjp-apply-btn {
    flex: 1;
    min-width: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--rjp-gradient);
    color: var(--rjp-white);
    border: none;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--rjp-transition);
    text-decoration: none;
}

.rjp-apply-btn svg {
    width: 20px;
    height: 20px;
}

.rjp-apply-btn:hover {
    background: var(--rjp-gradient-hover);
    transform: translateY(-2px);
    box-shadow: var(--rjp-shadow-lg);
    color: var(--rjp-white);
    text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .rjp-jobs-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .rjp-hero {
        padding: 40px 24px;
        border-radius: var(--rjp-radius-lg);
    }

    .rjp-search-input {
        padding: 14px 20px 14px 48px;
        font-size: 0.95rem;
    }

    .rjp-filters {
        padding: 20px;
    }

    .rjp-filter-group {
        min-width: 100%;
    }

    .rjp-stats-bar {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .rjp-jobs-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .rjp-jobs-grid.list-view .rjp-job-card {
        flex-direction: column;
        align-items: stretch;
    }

    .rjp-jobs-grid.list-view .rjp-job-header {
        flex-direction: column;
    }

    .rjp-jobs-grid.list-view .rjp-job-footer {
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--rjp-gray-200);
    }

    .rjp-job-card {
        padding: 20px;
    }

    .rjp-modal-content {
        max-height: 100vh;
        border-radius: var(--rjp-radius-lg);
    }

    .rjp-job-detail-header {
        padding: 24px;
    }

    .rjp-job-detail-title {
        font-size: 1.4rem;
    }

    .rjp-job-detail-body {
        padding: 24px;
    }

    .rjp-job-detail-actions {
        padding: 20px 24px;
    }
}

@media (max-width: 480px) {
    .rjp-container {
        padding: 0 16px;
    }

    .rjp-hero {
        padding: 32px 20px;
    }

    .rjp-hero-title {
        font-size: 1.75rem;
    }

    .rjp-hero-subtitle {
        font-size: 0.95rem;
    }

    .rjp-filters {
        padding: 16px;
    }

    .rjp-job-header {
        flex-direction: column;
        gap: 12px;
    }

    .rjp-job-company-logo {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .rjp-job-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .rjp-view-job-btn {
        justify-content: center;
    }

    .rjp-job-detail-header {
        padding: 20px;
    }

    .rjp-job-detail-body {
        padding: 20px;
    }

    .rjp-apply-btn {
        width: 100%;
    }
}

/* Animations */
.rjp-job-card {
    animation: rjp-cardFadeIn 0.4s ease forwards;
    opacity: 0;
}

@keyframes rjp-cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rjp-job-card:nth-child(1) { animation-delay: 0.05s; }
.rjp-job-card:nth-child(2) { animation-delay: 0.1s; }
.rjp-job-card:nth-child(3) { animation-delay: 0.15s; }
.rjp-job-card:nth-child(4) { animation-delay: 0.2s; }
.rjp-job-card:nth-child(5) { animation-delay: 0.25s; }
.rjp-job-card:nth-child(6) { animation-delay: 0.3s; }
.rjp-job-card:nth-child(7) { animation-delay: 0.35s; }
.rjp-job-card:nth-child(8) { animation-delay: 0.4s; }
.rjp-job-card:nth-child(9) { animation-delay: 0.45s; }

/* Print Styles */
@media print {
    .rjp-modal,
    .rjp-search-container,
    .rjp-filters,
    .rjp-view-toggle,
    .rjp-load-more-container {
        display: none !important;
    }

    .rjp-job-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--rjp-gray-300);
    }
}

/* Theme Override - Ensures visibility regardless of WordPress theme */
.rjp-container input[type="text"],
.rjp-container input[type="search"],
.rjp-container select,
.rjp-container textarea,
.rjp-container .rjp-filter-select,
.rjp-container .rjp-search-input,
.rjp-filters select,
.rjp-filters input {
    color: #1e293b !important;
    background-color: #ffffff !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    -webkit-text-fill-color: #1e293b !important;
    opacity: 1 !important;
}

.rjp-container select:focus,
.rjp-container .rjp-filter-select:focus,
.rjp-filters select:focus {
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
}

.rjp-container input::placeholder {
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    opacity: 1 !important;
}

.rjp-container input::-webkit-input-placeholder {
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
}

.rjp-container input::-moz-placeholder {
    color: #64748b !important;
}

.rjp-container input:-ms-input-placeholder {
    color: #64748b !important;
}

.rjp-container select option,
.rjp-container .rjp-filter-select option,
.rjp-filters select option {
    color: #1e293b !important;
    background-color: #ffffff !important;
    -webkit-text-fill-color: #1e293b !important;
}

/* AGGRESSIVE SELECT OVERRIDE - Maximum specificity */
/* OceanWP Theme Override */
html body .rjp-container .rjp-filters .rjp-filter-group select.rjp-filter-select,
html body .rjp-container select.rjp-filter-select,
html body select.rjp-filter-select,
html body #rjp-filter-location,
html body #rjp-filter-industry,
html body #rjp-filter-workspace,
.rjp-filter-select#rjp-filter-location,
.rjp-filter-select#rjp-filter-industry,
.rjp-filter-select#rjp-filter-workspace,
select[id^="rjp-filter-"],
.oceanwp-theme select.rjp-filter-select,
.oceanwp-theme #rjp-filter-location,
.oceanwp-theme #rjp-filter-industry,
.oceanwp-theme #rjp-filter-workspace,
body.oceanwp-theme select.rjp-filter-select,
#main select.rjp-filter-select,
#content select.rjp-filter-select,
.site-content select.rjp-filter-select,
.entry-content select.rjp-filter-select,
.elementor select.rjp-filter-select,
.elementor-widget-container select.rjp-filter-select {
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
    background-color: #ffffff !important;
    opacity: 1 !important;
    text-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

html body .rjp-container .rjp-filters .rjp-filter-group select.rjp-filter-select option,
html body select.rjp-filter-select option,
select[id^="rjp-filter-"] option,
.oceanwp-theme select.rjp-filter-select option,
.elementor select.rjp-filter-select option {
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
    background-color: #ffffff !important;
}

/* OceanWP specific form element overrides */
body .rjp-filter-select,
body select.rjp-filter-select,
.ocean-content select,
#ocean-content select,
form select.rjp-filter-select {
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
}

/* CSS Custom Properties Override for OceanWP/Elementor */
.rjp-container {
    --text-color: #1e293b;
    --input-color: #1e293b;
    --oceanwp-input-color: #1e293b;
    --e-global-color-text: #1e293b;
    --e-global-color-primary: #1e293b;
}

.rjp-filter-select,
.rjp-container select {
    color: var(--text-color, #1e293b) !important;
    --text-color: #1e293b !important;
}

/* Nuclear option - override everything on selects */
.rjp-filters select,
.rjp-filters .rjp-filter-select {
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
    caret-color: #1e293b !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: rgb(30, 41, 59) !important;
}

/* Prevent inheritance issues */
.rjp-filters,
.rjp-filter-group {
    color: #1e293b !important;
}

/* Target selected option text */
.rjp-filter-select:not(:placeholder-shown),
.rjp-filter-select:valid {
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
}

/* FORCE VISIBLE TEXT - Fix all possible hiding methods */
.rjp-filter-select,
select.rjp-filter-select,
#rjp-filter-location,
#rjp-filter-industry,
#rjp-filter-workspace {
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
    font-size: 1rem !important;
    text-indent: 0 !important;
    text-align: left !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    appearance: menulist !important;
    line-height: normal !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Ensure all text within container uses proper font */
.rjp-container,
.rjp-container * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.rjp-container h1,
.rjp-container h2,
.rjp-container h3,
.rjp-container h4,
.rjp-container h5,
.rjp-container h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
}

/* Button text color fix */
.rjp-container button {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
