/* Jobs Page Specific Styles */

/* Import Common Page Styles */
@import url('pages.css');

/* Jobs Info Section */
.jobs-info-section {
    padding: 80px 0;
}

.jobs-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.jobs-image-container {
    position: relative;
    height: auto;  /* Changed from fixed height */
    min-height: 400px;  /* Minimum height instead of fixed */
    width: 100%;
    margin-bottom: 30px;
}

.jobs-image-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 80%;
    min-height: 300px;  /* Added minimum height */
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1;
    background-color: rgba(10, 10, 20, 0.3);  /* Added background color in case image doesn't load */
}


.jobs-image-accent {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 50%;
    min-height: 150px;  /* Added minimum height */
    overflow: hidden;
    border: 10px solid var(--dark);
    z-index: 2;
    background-color: rgba(10, 10, 20, 0.3);  /* Added background color in case image doesn't load */
}

.jobs-image-main img,
.jobs-image-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.1);
    transition: all 0.5s ease;
    display: block;  /* Added display block to prevent gaps */
}

.jobs-image-container:hover .jobs-image-main img,
.jobs-image-container:hover .jobs-image-accent img {
    transform: scale(1.05);
}

.jobs-content {
    max-width: 90%;
}

.jobs-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--light);
    position: relative;
    padding-bottom: 20px;
}

.jobs-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--primary);
}

.jobs-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.9;
}

.benefits-list {
    margin-top: 40px;
    margin-bottom: 40px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(10px);
}

.benefit-icon {
    margin-right: 20px;
    min-width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--light);
}

.benefit-content h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--light);
}

.benefit-content p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.7;
}

/* Additional Benefits Section */
.additional-benefits {
    padding: 80px 0;
    background: rgba(10, 10, 20, 0.5);
    position: relative;
}

.additional-benefits:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/benefits-bg.webp') center/cover no-repeat;
    opacity: 0.05;
    z-index: -1;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 0, 124, 0.05);
    border-color: rgba(255, 0, 124, 0.1);
}

.benefit-card .benefit-icon {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 20px;
    background: transparent;
    min-width: auto;
    height: auto;
    display: block;
    margin: 0 auto 20px;
}

.benefit-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.benefit-card p {
    font-size: 15px;
    opacity: 0.8;
    line-height: 1.6;
}

/* Application Form Section */
.application-form-section {
    padding: 80px 0;
}

.application-form {
    max-width: 900px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    background: rgba(10, 10, 20, 0.3);
}

.form-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px 20px;
}

.form-group {
    flex: 1;
    min-width: 250px;
    padding: 0 15px;
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.form-control.error {
    border-color: #ff3e3e;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-control-file {
    padding: 10px 0;
    cursor: pointer;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
}

.privacy-group {
    display: flex;
    align-items: flex-start;
}

.privacy-group input {
    margin-top: 5px;
    margin-right: 10px;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.form-info {
    margin-bottom: 20px;
    opacity: 0.8;
    font-size: 14px;
}

/* Testimonial Section */
.testimonial-section {
    padding: 80px 0;
    background: url('../img/testimonial-bg.webp') center/cover no-repeat;
    position: relative;
}

.testimonial-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 8, 0.7);
    z-index: 0;
}

.testimonial-section .container {
    position: relative;
    z-index: 1;
}

.testimonial-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.testimonial {
    padding: 30px;
    background: rgba(5, 5, 8, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 0, 124, 0.2);
}

.testimonial-content {
    margin-bottom: 30px;
}

.testimonial-content p {
    font-style: italic;
    font-size: 18px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.author-info p {
    font-size: 14px;
    opacity: 0.7;
}

/* Success/Error Messages */
.success-message, .error-message {
    padding: 15px 20px;
    margin-bottom: 30px;
    font-weight: 500;
    border-left: 4px solid;
}

.success-message {
    background: rgba(40, 167, 69, 0.1);
    border-color: #2ecc71;
    color: #2ecc71;
}

.error-message {
    background: rgba(220, 53, 69, 0.1);
    border-color: #e74c3c;
    color: #e74c3c;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .jobs-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .jobs-image-container {
        height: auto;
        min-height: 400px;
        margin: 0 auto;
        max-width: 600px;
    }
    
    .jobs-content {
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .testimonial-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
    
   .jobs-image-container {
        min-height: 350px;
    }
    
    .jobs-image-main {
        width: 75%;
        height: 75%;
        min-height: 250px;
    }
    
    .jobs-image-accent {
        width: 45%;
        height: 45%;
        min-height: 120px;
    }
}

@media (max-width: 576px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-item {
        flex-direction: column;
    }
    
    .benefit-icon {
        margin-bottom: 15px;
        margin-right: 0;
    }
}