.ceoz-job-board {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.ceoz-job-filters {
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.ceoz-job-filters input[type="text"],
.ceoz-job-filters select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 200px;
    font-size: 16px; /* Prevent zoom on iOS */
}

.ceoz-job-filters input[type="text"].active-search {
    border-color: #FF6101;
    box-shadow: 0 0 0 2px rgba(255, 97, 1, 0.2);
}

.ceoz-clear-filters {
    padding: 10px 16px;
    background-color: #6c757d;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.ceoz-clear-filters:hover {
    background-color: #5a6268;
}

.ceoz-job-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 20px !important;
    width: 100%;
    box-sizing: border-box;
}

/* Responsive grid adjustments */
@media (min-width: 1400px) {
    .ceoz-job-list {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
        gap: 25px !important;
    }
}

@media (max-width: 1200px) {
    .ceoz-job-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
        gap: 18px !important;
    }
}

@media (max-width: 900px) {
    .ceoz-job-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        gap: 15px !important;
    }
}

@media (max-width: 600px) {
    .ceoz-job-list {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

.ceoz-job-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    word-wrap: break-word;
}

.ceoz-job-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ceoz-job-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
}

@media (min-width: 769px) {
    .ceoz-job-header {
        flex-direction: row;
    }
    
    .ceoz-job-title-section {
        flex: 1;
    }
    
    .ceoz-company-logo {
        flex-shrink: 0;
    }
}

.ceoz-company-logo {
    flex-shrink: 0;
}

.ceoz-company-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #eee;
}

.ceoz-job-title-section {
    flex: 1;
    min-width: 0; /* Prevent flex item from overflowing */
}

.ceoz-job-item h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.4em;
    line-height: 1.3;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    hyphens: auto !important;
    white-space: normal !important;
    max-width: 100% !important;
}

.ceoz-job-meta {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 0.9em;
    flex-wrap: wrap;
}

.ceoz-job-meta span {
    display: flex;
    align-items: center;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    hyphens: auto !important;
}

.ceoz-job-meta span:before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.ceoz-job-meta .company:before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z"/></svg>');
}

.ceoz-job-meta .location:before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>');
}

.ceoz-job-meta .job-type:before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"/></svg>');
}

.ceoz-job-meta .date:before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"/></svg>');
}

.ceoz-job-content {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #444;
    flex-grow: 1;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ceoz-benefits {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-left: 3px solid #FF6101;
    border-radius: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ceoz-company-link {
    margin: 10px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ceoz-company-link a {
    color: #FF6101;
    text-decoration: none;
}

.ceoz-company-link a:hover {
    text-decoration: underline;
}

.ceoz-job-footer {
    margin-top: auto;
    padding-top: 15px;
}

.ceoz-apply-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #FF6101;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    font-weight: 500;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.ceoz-apply-button:hover {
    background-color: #e55601;
    color: #fff;
}

.ceoz-no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* Container responsive adjustments */
@media (max-width: 1200px) {
    .ceoz-job-board {
        padding: 15px;
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    .ceoz-job-board {
        padding: 15px;
        max-width: 100%;
    }
    
    .ceoz-job-filters {
        gap: 12px;
    }
    
    .ceoz-job-filters input[type="text"],
    .ceoz-job-filters select {
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .ceoz-job-board {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .ceoz-job-item {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 10px 0 !important;
        box-sizing: border-box !important;
    }
    
    .ceoz-job-footer {
        padding-top: 10px;
    }
    
    .ceoz-apply-button {
        width: 100% !important;
        display: block !important;
    }
    
    .ceoz-job-filters {
        flex-direction: column !important;
        gap: 10px;
    }

    .ceoz-job-filters input[type="text"],
    .ceoz-job-filters select {
        width: 100% !important;
        min-width: unset !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    .ceoz-clear-filters {
        width: 100% !important;
        padding: 12px 16px;
        font-size: 16px;
    }

    .ceoz-job-item {
        padding: 15px !important;
    }

    .ceoz-job-header {
        gap: 12px;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .ceoz-job-title-section {
        width: 100% !important;
        text-align: center !important;
    }

    .ceoz-company-logo img {
        width: 50px !important;
        height: 50px !important;
    }
    
    .ceoz-job-item h3 {
        font-size: 1.2em !important;
        text-align: center !important;
    }

    .ceoz-job-meta {
        gap: 10px;
        justify-content: center !important;
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .ceoz-job-meta span {
        font-size: 0.85em;
        justify-content: center !important;
    }
    
    .ceoz-apply-button {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .ceoz-job-board {
        padding: 8px !important;
    }
    
    .ceoz-job-item {
        padding: 12px !important;
    }
    
    .ceoz-job-header {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 10px !important;
    }
    
    .ceoz-job-title-section {
        width: 100% !important;
        text-align: center !important;
    }

    .ceoz-job-meta {
        justify-content: center !important;
        flex-direction: column !important;
        gap: 8px !important;
        text-align: center !important;
    }
    
    .ceoz-job-meta span {
        justify-content: center !important;
        white-space: normal !important;
        word-break: break-word;
    }

    .ceoz-company-logo img {
        width: 45px !important;
        height: 45px !important;
    }
    
    .ceoz-job-item h3 {
        font-size: 1.1em !important;
        margin-bottom: 8px !important;
        text-align: center !important;
    }
    
    .ceoz-job-content {
        font-size: 0.9em !important;
        margin-bottom: 15px !important;
        text-align: center !important;
    }
    
    .ceoz-benefits {
        padding: 8px !important;
        margin: 10px 0 !important;
    }
    
    .ceoz-apply-button {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 14px 24px !important;
        font-size: 16px !important;
        box-sizing: border-box !important;
    }
    
    .ceoz-no-results {
        padding: 30px 10px !important;
        font-size: 0.9em !important;
    }
}

@media (max-width: 320px) {
    .ceoz-job-board {
        padding: 5px;
    }
    
    .ceoz-job-item {
        padding: 10px;
    }
    
    .ceoz-job-item h3 {
        font-size: 1em;
    }
    
    .ceoz-job-content {
        font-size: 0.85em;
    }
    
    .ceoz-job-meta span {
        font-size: 0.8em;
    }
}

/* Loading State */
.ceoz-job-board.loading {
    opacity: 0.7;
    pointer-events: none;
}

.ceoz-job-board.loading:after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #FF6101;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

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