/**
 * Frontend Styles
 * 
 * @package Ektos_Open_Positions
 */

/* Main Container */
.eop-job-listings {
    max-width: 1200px;
    margin: 0 auto;
/*     padding: 20px; */
}

/* Job Card */
.eop-job-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

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

.eop-job-card-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    padding: 32px;
    gap: 40px;
    align-items: start;
}

/* Job Info Section (Left) */
.eop-job-info {
    width: 280px;
}

.eop-job-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eop-job-category {
    display: inline-block;
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.eop-job-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.eop-job-title a {
    color: var(--eop-primary-color, #00A7B5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.eop-job-title a:hover {
    color: var(--eop-primary-hover, #008a96);
}

.eop-job-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
    margin-top: 4px;
}

.eop-location-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Job Description Section (Right) */
.eop-job-description {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.eop-job-description p {
    color: #444;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Job Footer */
.eop-job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.eop-job-deadline {
    font-size: 14px;
    color: #666;
}

.eop-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--eop-primary-color, #00A7B5);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.eop-read-more:hover {
    color: var(--eop-primary-hover, #008a96);
    gap: 10px;
}

.eop-arrow-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.eop-read-more:hover .eop-arrow-icon {
    transform: translateX(2px);
}

/* No Positions Message */
.eop-no-positions {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.eop-no-positions p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Tablet Styles */
@media screen and (max-width: 992px) {
    .eop-job-card-inner {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 20px;
    }
    
    .eop-job-info {
        width: 100%;
    }
    
    .eop-job-title {
        font-size: 22px;
    }
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .eop-job-listings {
        padding: 16px;
    }
    
    .eop-job-card {
        margin-bottom: 20px;
    }
    
    .eop-job-card-inner {
        padding: 20px;
        gap: 16px;
    }
    
    .eop-job-title {
        font-size: 20px;
    }
    
    .eop-job-description p {
        font-size: 14px;
    }
    
    .eop-job-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .eop-job-deadline {
        font-size: 13px;
    }
    
    .eop-read-more {
        font-size: 14px;
    }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
    .eop-job-card-inner {
        padding: 16px;
    }
    
    .eop-job-title {
        font-size: 18px;
    }
    
    .eop-job-category {
        font-size: 12px;
    }
    
    .eop-job-location {
        font-size: 13px;
    }
}

/* Dynamic Primary Color Support */
:root {
    --eop-primary-color: #00A7B5;
    --eop-primary-hover: #008a96;
}
