.jobs-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 80vh;
}

.dark-theme .jobs-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.jobs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-badge {
    display: inline-block;
    background: var(--primary-color, #2c5e38);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color, #2c5e38) 0%, #4a7c59 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.dark-theme .section-subtitle {
    color: #aaa;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.job-card {
    background: #fff;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

.dark-theme .job-card {
    background: #2d2d2d;
    border-color: #404040;
}

.dark-theme .job-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color, #2c5e38), #4a7c59);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.job-card:hover::before {
    transform: scaleX(1);
}

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.job-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
    line-height: 1.3;
}

.dark-theme .job-title {
    color: #e0e0e0;
}

.job-type {
    background: linear-gradient(135deg, var(--primary-color, #2c5e38), #4a7c59);
    color: white;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}

.job-location {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.dark-theme .job-location {
    color: #aaa;
}

.job-location i {
    color: var(--primary-color, #2c5e38);
    font-size: 1rem;
}

.job-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.dark-theme .job-description {
    color: #aaa;
}

.apply-btn {
    width: 100%;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--primary-color, #2c5e38), #4a7c59);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.apply-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.apply-btn:hover::before {
    width: 300px;
    height: 300px;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 94, 56, 0.3);
}

.apply-btn:active {
    transform: translateY(0);
}

/* Submit button in modal */
#applicationForm button[type="submit"] {
    width: 100%;
    padding: 14px 30px;
    background: linear-gradient(135deg, #2c5e38, #4a7c59);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#applicationForm button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#applicationForm button[type="submit"]:hover::before {
    width: 300px;
    height: 300px;
}

#applicationForm button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 94, 56, 0.3);
}

#applicationForm button[type="submit"]:active {
    transform: translateY(0);
}

/* Button class styles in modal */
.btn-primary {
    width: 100%;
    padding: 14px 30px;
    background: linear-gradient(135deg, #2c5e38, #4a7c59);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 94, 56, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.no-jobs {
    text-align: center;
    padding: 80px 20px;
}

.no-jobs-content {
    background: #fff;
    border-radius: 16px;
    padding: 60px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.dark-theme .no-jobs-content {
    background: #2d2d2d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.no-jobs-content i {
    font-size: 4rem;
    color: #999;
    margin-bottom: 20px;
}

.dark-theme .no-jobs-content i {
    color: #666;
}

.no-jobs-content p {
    color: #666;
    font-size: 1.2rem;
}

.dark-theme .no-jobs-content p {
    color: #aaa;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.dark-theme .modal-content {
    background: #2d2d2d;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1a1a1a;
}

.dark-theme .modal-close {
    background: #404040;
    color: #e0e0e0;
}

.modal-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.dark-theme .modal-close:hover {
    background: #555;
}

.modal-header {
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
}

.dark-theme .modal-header h3 {
    color: #e0e0e0;
}

.selected-job {
    background: linear-gradient(135deg, rgba(44, 94, 56, 0.1), rgba(74, 124, 89, 0.1));
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid var(--primary-color, #2c5e38);
}

.selected-job-title {
    font-weight: 700;
    color: var(--primary-color, #2c5e38);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.selected-job-location {
    color: #666;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dark-theme .selected-job-location {
    color: #aaa;
}

#applicationForm {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 10px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.dark-theme .form-group label {
    color: #e0e0e0;
}

.form-group input {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    background: #fff;
    color: #1a1a1a;
    transition: all 0.3s ease;
}

.dark-theme .form-group input {
    border-color: #404040;
    background: #3a3a3a;
    color: #e0e0e0;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color, #2c5e38);
    box-shadow: 0 0 0 3px rgba(44, 94, 56, 0.1);
}

.form-group small {
    margin-top: 8px;
    color: #666;
    font-size: 0.85rem;
}

.dark-theme .form-group small {
    color: #aaa;
}

.form-message {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 10px;
    display: none;
    font-weight: 500;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
    border: 1px solid #f5c6cb;
}

[dir="rtl"] .modal-close {
    right: auto;
    left: 20px;
}

[dir="rtl"] .selected-job {
    border-left: none;
    border-right: 4px solid var(--primary-color, #2c5e38);
}

/* Responsive */
@media (max-width: 768px) {
    .jobs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .modal-content {
        padding: 25px;
    }

    .job-card {
        padding: 25px;
    }
}

