/* ========================
   CS Jobs Board - Main Styles
   ======================== */

/* Container & Grid Layout */
.cs-jobs-list {
    display: grid;
    grid-template-columns: repeat(var(--columns, 3), 1fr);
    gap: 25px;
    margin: 40px 0;
}

/* Individual Job Card */
.cs-job-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    transition: all 0.3s ease;
    border-top: 4px solid #3498db;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cs-job-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Job Logo */
.cs-job-logo {
    margin-bottom: 15px;
    text-align: center;
}

.cs-job-logo img {
    max-height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Job Title */
.cs-job-title {
    margin: 0 0 10px;
    font-size: 1.4em;
    color: #2c3e50;
    line-height: 1.3;
}

.cs-job-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cs-job-title a:hover {
    color: #3498db;
}

/* Company Name */
.cs-job-company {
    font-size: 1.1em;
    color: #34495e;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Job Meta */
.cs-job-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.cs-job-meta > div {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
}

.cs-job-meta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #7f8c8d;
}

/* Job Excerpt */
.cs-job-excerpt {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.5;
    flex-grow: 1;
}

/* Apply Button */
.cs-job-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #3498db;
    color: white !important;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    gap: 8px;
}

.cs-job-apply:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.cs-job-apply .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Single Job Apply Button */
.cs-job-apply-single {
    display: inline-block;
    background: #3498db;
    color: white !important;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.cs-job-apply-single:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* Empty State */
.cs-jobs-empty {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
}

.cs-jobs-empty p {
    font-size: 1.1em;
    color: #7f8c8d;
}

/* ========================
   Related Jobs Section
   ======================== */
.related-jobs {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.related-jobs h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

.related-jobs .cs-jobs-list {
    margin-top: 20px;
}

.related-jobs .cs-job-item {
    padding: 20px;
    border-top: 3px solid #3498db;
}

.related-jobs .cs-job-title {
    font-size: 1.2em;
}

.related-jobs .cs-job-apply {
    background: #f8f9fa;
    color: #3498db !important;
    border: 1px solid #3498db;
}

.related-jobs .cs-job-apply:hover {
    background: #3498db;
    color: white !important;
}

.view-all-jobs {
    text-align: center;
    margin-top: 30px;
}

.view-all-jobs .button {
    background: #2ecc71;
    color: white !important;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-jobs .button:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .cs-jobs-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cs-jobs-list {
        grid-template-columns: 1fr;
    }
    
    .cs-job-meta {
        grid-template-columns: 1fr;
    }
}

/* Single Job View Styles */
.single-cs_job .entry-header {
    margin-bottom: 30px;
}

.single-cs_job .entry-title {
    font-size: 2em;
    margin-bottom: 10px;
}

.single-cs_job .entry-subtitle {
    font-size: 1.2em;
    color: #7f8c8d;
}

.single-cs_job .cs-job-meta-single {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.single-cs_job .cs-job-meta-single > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========================
   Jobs Homepage Styles
   ======================== */

.jobs-homepage {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.jobs-hero {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 8px;
}

.jobs-hero h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.jobs-hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.jobs-search-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .jobs-search-form {
        grid-template-columns: 2fr 1fr 1fr auto;
    }
}

.jobs-search-form input,
.jobs-search-form select {
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
}

.jobs-search-form button {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.jobs-search-form button:hover {
    background: #27ae60;
}

/* Featured Jobs */
.featured-jobs {
    padding: 60px 0;
    background: #f8f9fa;
    margin-bottom: 40px;
}

.featured-jobs h2,
.recent-jobs h2,
.jobs-cta h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    color: #2c3e50;
}

.featured-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.featured-job-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #3498db;
    transition: transform 0.3s ease;
}

.featured-job-card:hover {
    transform: translateY(-5px);
}

.featured-job-card .job-badge {
    background: #f39c12;
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

/* Recent Jobs */
.recent-jobs {
    padding: 60px 0;
}

/* Call to Action */
.jobs-cta {
    background: #2c3e50;
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 40px;
}

.jobs-cta h2 {
    color: white;
}

.jobs-cta p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.button-large {
    padding: 15px 30px;
    font-size: 1.1em;
}

.view-all-jobs {
    text-align: center;
    margin-top: 40px;
}

.view-all-jobs .button {
    background: #3498db;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.view-all-jobs .button:hover {
    background: #2980b9;
}