/* Jobs Page Specific Styles */

/* First Viewport Container */
.jobs-page .first-viewport {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.jobs-page .first-viewport .info-banner {
    flex-shrink: 0;
}

.jobs-page .first-viewport .class-hero {
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* Hero Section */
.jobs-page .class-hero {
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.jobs-page .hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.jobs-page .hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 200;
    color: #000000;
    text-align: center;
    letter-spacing: 0.02em;
    margin: 0 auto;
    padding: 0 20px;
    max-width: 900px;
    width: 100%;
    animation: slideDown 1.2s ease-out forwards;
    opacity: 0;
    transform: translateY(-100px);
}

/* Animations */
@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Jobs Introduction Section */
.jobs-intro {
    background: #FAF8F3;
    padding: 80px 20px;
}

.jobs-intro-container {
    max-width: 1200px;
    margin: 0 auto;
}

.jobs-intro-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    color: #000000;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 0.02em;
}

.jobs-intro-text {
    font-family: 'Josefin Sans', sans-serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    color: #333333;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

/* Job Types Grid */
.job-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.job-type-card {
    background: #FFFFFF;
    padding: 40px 30px;
    border: 1px solid #E5E5E5;
    transition: all 0.3s ease;
    position: relative;
}

.job-type-card:hover {
    border-color: #000000;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.job-type-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 300;
    color: #E5E5E5;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.job-type-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: #000000;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.job-type-description {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: #666666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.job-type-requirements {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.job-type-requirements li {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    color: #333333;
    line-height: 1.6;
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

.job-type-requirements li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #000000;
    font-weight: 400;
}

.job-type-rate {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #000000;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #E5E5E5;
}

/* Dance Styles Hiring Section */
.dance-styles-hiring {
    background: #FFFFFF;
    padding: 80px 20px;
}

.dance-styles-container {
    max-width: 1200px;
    margin: 0 auto;
}

.dance-styles-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.dance-styles-intro {
    font-family: 'Josefin Sans', sans-serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    color: #333333;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.8;
}

/* Position Details */
.position-details {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.detail-label {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.detail-value {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #000000;
}

/* Table Scroll Wrapper */
.table-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 40px;
}

/* Dance Styles Table */
.dance-styles-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Josefin Sans', sans-serif;
    min-width: 800px;
}

.dance-styles-table thead {
    background: #000000;
}

.dance-styles-table th {
    font-size: 0.9rem;
    font-weight: 400;
    color: #FFFFFF;
    text-align: left;
    padding: 20px 25px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.dance-styles-table tbody tr {
    border-bottom: 1px solid #E5E5E5;
    transition: background 0.2s ease;
}

.dance-styles-table tbody tr:hover {
    background: #FAF8F3;
}

.dance-styles-table td {
    font-size: 1rem;
    font-weight: 300;
    color: #333333;
    padding: 18px 25px;
}

.dance-styles-table td:first-child {
    font-weight: 400;
    color: #000000;
}

/* Why Work Bento Box Section */
.why-work-bento {
    background: #FAF8F3;
    padding: 80px 20px;
}

.why-work-container {
    max-width: 1200px;
    margin: 0 auto;
}

.why-work-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    color: #000000;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 0.02em;
}

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 200px);
    gap: 20px;
}

.bento-box {
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #000000;
}

.bento-box h3 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #000000;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bento-box p {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    color: #666666;
    line-height: 1.6;
}

/* Grid positioning for different box sizes */
.bento-large-1 {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.bento-medium-1 {
    grid-column: 3 / 5;
    grid-row: 1 / 2;
}

.bento-small-1 {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

.bento-medium-2 {
    grid-column: 4 / 5;
    grid-row: 2 / 4;
}

.bento-small-2 {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.bento-large-2 {
    grid-column: 2 / 4;
    grid-row: 3 / 5;
}

.bento-medium-3 {
    grid-column: 4 / 5;
    grid-row: 4 / 5;
}

.bento-small-3 {
    grid-column: 1 / 2;
    grid-row: 4 / 5;
}

/* Application Form Section */
.application-form-section {
    background: #F5F5F5;
    padding: 80px 20px;
}

.application-form-container {
    max-width: 700px;
    margin: 0 auto;
}

.form-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.form-section-intro {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: #666666;
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.6;
}

.jobs-application-form {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    padding: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #000000;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: #333333;
    padding: 15px;
    border: 1px solid #E5E5E5;
    background: #FFFFFF;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000000;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

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

.form-submit-btn {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #FFFFFF;
    background: #000000;
    border: 2px solid #000000;
    padding: 18px 50px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.form-submit-btn:hover {
    background: #FFFFFF;
    color: #000000;
}

.alternative-contact {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #E5E5E5;
    text-align: center;
}

.alternative-contact p {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: #666666;
}

.alternative-contact a {
    color: #000000;
    font-weight: 400;
    text-decoration: none;
    border-bottom: 1px solid #000000;
    transition: opacity 0.3s ease;
}

.alternative-contact a:hover {
    opacity: 0.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .jobs-page .first-viewport {
        height: 100vh;
        max-height: 100vh;
    }

    .jobs-intro {
        padding: 60px 20px;
    }

    .job-types {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .job-type-card {
        padding: 30px 20px;
    }

    .dance-styles-hiring {
        padding: 60px 20px;
    }

    .position-details {
        gap: 30px;
    }

    .why-work-bento {
        padding: 60px 20px;
    }

    .why-work-title {
        margin-bottom: 40px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 15px;
    }

    .bento-large-1,
    .bento-medium-1,
    .bento-small-1,
    .bento-medium-2,
    .bento-small-2,
    .bento-large-2,
    .bento-medium-3,
    .bento-small-3 {
        grid-column: 1 / 2;
        grid-row: auto;
    }

    .bento-box {
        padding: 25px;
        min-height: 180px;
    }

    .bento-box h3 {
        font-size: 1.1rem;
    }

    .bento-box p {
        font-size: 0.9rem;
    }

    .application-form-section {
        padding: 60px 20px;
    }

    .form-section-intro {
        margin-bottom: 40px;
    }

    .jobs-application-form {
        padding: 30px 20px;
    }

    .form-submit-btn {
        padding: 15px 40px;
    }
}
