/* Jobs Page Specific Styles */

/* Hero Section */
.jobs-hero {
    background: url('../images/dance-teacher-position.jpg') center center/cover;
    padding: 120px 0 80px;
    text-align: center;
    color: white;
    margin-top: 0;
    position: relative;
}

.jobs-hero .container {
    position: relative;
    z-index: 2;
}

.jobs-hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.jobs-hero p {
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: white;
}

/* Container for both text elements with single background */
.jobs-hero .container {
    background: rgba(0, 0, 0, 0.7);
    display: inline-block;
    padding: 20px 30px;
    border-radius: 5px;
    max-width: fit-content;
    margin: 0 auto;
}

/* Introduction Section */
.jobs-intro {
    padding: 80px 0;
    text-align: center;
    background: #f8f8f8;
}

.jobs-intro h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.jobs-intro p {
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

/* Job Openings Section */
.job-openings {
    padding: 80px 0;
    background: white;
}

.job-openings h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: #1a1a1a;
}

/* Jobs Table Section */
.jobs-table-section {
    margin-bottom: 60px;
}

.jobs-table-section h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #1a1a1a;
}

/* Dance Jobs Table */
.dance-jobs-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.dance-jobs-table thead {
    background: #1a1a1a;
    color: white;
}

.dance-jobs-table thead th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dance-jobs-table tbody tr {
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Alternating row colors */
.dance-jobs-table tbody tr:nth-child(odd) {
    background: white;
}

.dance-jobs-table tbody tr:nth-child(even) {
    background: #f8f8f8;
}

/* Hover effect with different colors based on row */
.dance-jobs-table tbody tr:hover:nth-child(1),
.dance-jobs-table tbody tr:hover:nth-child(4),
.dance-jobs-table tbody tr:hover:nth-child(7) {
    background: white;
    transform: scale(1.01);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.dance-jobs-table tbody tr:hover:nth-child(2),
.dance-jobs-table tbody tr:hover:nth-child(5),
.dance-jobs-table tbody tr:hover:nth-child(8) {
    background: #4a4a4a;
    color: white;
    transform: scale(1.01);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.dance-jobs-table tbody tr:hover:nth-child(3),
.dance-jobs-table tbody tr:hover:nth-child(6),
.dance-jobs-table tbody tr:hover:nth-child(9) {
    background: #e8e8e8;
    transform: scale(1.01);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.dance-jobs-table tbody td {
    padding: 18px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.dance-jobs-table tbody tr:last-child td {
    border-bottom: none;
}

.dance-jobs-table tbody td:first-child {
    font-weight: 600;
    color: #FF6B6B;
}

.dance-jobs-table tbody tr:hover td:first-child {
    color: inherit;
}

/* Special Positions Section */
.special-positions {
    margin-top: 60px;
}

.special-positions h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #1a1a1a;
}

/* Job Listing Cards */
.job-listing {
    background: #f9f9f9;
    border-left: 4px solid #FF6B6B;
    padding: 30px;
    margin-bottom: 40px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-listing:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.job-listing h3,
.job-listing h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.job-details {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.job-type,
.job-location {
    display: inline-block;
    padding: 5px 15px;
    background: #FF6B6B;
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.job-location {
    background: #4ECDC4;
}

.job-listing p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.job-listing ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.job-listing ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    color: #555;
}

.job-listing ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4ECDC4;
    font-weight: bold;
}

/* Why Work Section */
.why-work {
    padding: 80px 0;
    background: #f8f8f8;
}

.why-work h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: #1a1a1a;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.benefit {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.benefit:hover {
    transform: translateY(-5px);
}

.benefit h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #FF6B6B;
}

.benefit p {
    color: #666;
    line-height: 1.7;
}

/* Application Form Section */
.job-application {
    padding: 80px 0;
    background: white;
}

.job-application h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.job-application > p {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
}

/* Job Form */
.job-form {
    max-width: 600px;
    margin: 0 auto;
    background: #f9f9f9;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF6B6B;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background: #FF6B6B;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 30px auto 0;
}

.btn-submit:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

.alternative-apply {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1rem;
    color: #666;
}

.alternative-apply a {
    color: #FF6B6B;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.alternative-apply a:hover {
    color: #ff5252;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Make table horizontally scrollable */
    .jobs-table-section {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .dance-jobs-table {
        font-size: 0.9rem;
        min-width: 600px;
    }
    
    .dance-jobs-table thead th {
        padding: 12px 15px;
        font-size: 0.85rem;
    }
    
    .dance-jobs-table tbody td {
        padding: 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .jobs-hero h1 {
        font-size: 2.5rem;
    }
    
    .jobs-hero p {
        font-size: 1.1rem;
    }
    
    .job-details {
        flex-direction: column;
        gap: 10px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .job-form {
        padding: 30px 20px;
    }
    
    .job-openings,
    .why-work,
    .job-application,
    .jobs-intro {
        padding: 60px 20px;
    }
}

@media (max-width: 480px) {
    .jobs-hero h1 {
        font-size: 2rem;
    }
    
    .job-listing {
        padding: 20px;
    }
    
    .job-listing h3 {
        font-size: 1.5rem;
    }
    
    .btn-submit {
        width: 100%;
        padding: 12px 30px;
    }
}