/**
 * Job Opportunities Archive Page Styles
 * 
 * Following Gateway College architecture:
 * - Uses .cpt-scope namespace for isolation
 * - Works with cpt-isolation.css for Astra overrides
 * - Full-width sections with centered content containers
 * 
 * Brand Colors:
 * - Navy: #262474
 * - Blue: #1b60aa
 * - Teal: #24906b
 * - Green: #6db460
 * 
 * @package Gateway_College
 * @since 1.0.0
 */

/* ==============================================
   CSS Variables
   ============================================== */

.cpt-scope[data-page="jobs-archive"] {
    --gateway-navy: #262474;
    --gateway-blue: #1b60aa;
    --gateway-teal: #24906b;
    --gateway-green: #6db460;
    --gateway-gray-100: #f8f9fa;
    --gateway-gray-600: #718096;
    --gateway-gray-800: #4a5568;
    --gateway-white: #ffffff;
}

/* ==============================================
   Banner Section
   ============================================== */

.cpt-scope .gw-archive-banner {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(135deg, var(--gateway-navy) 0%, var(--gateway-blue) 100%);
    padding: 80px 0 60px 0;
}

.cpt-scope .gw-archive-banner-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    color: white;
}

.cpt-scope .gw-archive-banner-title {
    margin: 0 0 2rem 0;
    color: var(--gateway-white, #ffffff);
    opacity: 0;
    animation: fadeUpJobs 0.6s ease forwards 0.4s;
}

@keyframes fadeUpJobs {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cpt-scope .gw-archive-banner-subtitle {
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    animation: fadeUpJobs 0.6s ease forwards 0.6s;
}

/* ==============================================
   Introduction Section
   ============================================== */

.cpt-scope .gw-intro-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: linear-gradient(135deg, #e8f0f7 0%, #f4f7fa 100%);
    padding: 100px 0;
}

.cpt-scope .gw-intro-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.cpt-scope .gw-intro-block {
    margin-bottom: 90px;
}

.cpt-scope .gw-intro-block:last-child {
    margin-bottom: 0;
}

.cpt-scope .gw-intro-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 70px;
    align-items: center;
}

.cpt-scope .gw-intro-grid.reverse {
    grid-template-columns: 1fr 1.3fr;
}

.cpt-scope .gw-intro-text h2 {
    font-size: 36px;
    color: var(--gateway-navy);
    margin-bottom: 28px;
    line-height: 1.2;
    font-weight: 700;
}

.cpt-scope .gw-intro-text p {
    font-size: 17px;
    line-height: 1.75;
    color: #2d3748;
    margin-bottom: 24px;
}

.cpt-scope .gw-intro-text p:last-child {
    margin-bottom: 0;
}

.cpt-scope .gw-intro-image {
    border-radius: 0 60px 60px 60px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(38, 36, 116, 0.15);
    position: relative;
}

.cpt-scope .gw-intro-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(38,36,116,0.05) 0%, transparent 100%);
    z-index: 1;
}

.cpt-scope .gw-intro-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

/* ==============================================
   Filter Bar
   ============================================== */

.cpt-scope .gw-filter-bar-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
}

.cpt-scope .gw-filter-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 40px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.cpt-scope .gw-filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 200px;
}

.cpt-scope .gw-filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gateway-navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.cpt-scope .gw-filter-select {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #1a202c;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.cpt-scope .gw-filter-select:hover {
    border-color: var(--gateway-teal);
}

.cpt-scope .gw-filter-select:focus {
    outline: none;
    border-color: var(--gateway-blue);
    box-shadow: 0 0 0 3px rgba(27, 96, 170, 0.1);
}

/* ==============================================
   Section Container
   ============================================== */

.cpt-scope .gw-archive-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: var(--gateway-gray-100);
    padding: 80px 0;
}

.cpt-scope .gw-archive-jobs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==============================================
   Jobs Section Headers
   ============================================== */

.cpt-scope .gw-jobs-section {
    margin-bottom: 70px;
}

.cpt-scope .gw-jobs-section:last-of-type {
    margin-bottom: 0;
}

.cpt-scope .gw-section-header {
    margin-bottom: 40px;
}

.cpt-scope .gw-section-title {
    font-size: 32px;
    font-weight: 700;
    position: relative;
    padding-bottom: 16px;
    display: inline-block;
}

.cpt-scope .gw-section-title.college {
    color: var(--gateway-teal);
}

.cpt-scope .gw-section-title.college::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gateway-teal);
    border-radius: 2px;
}

.cpt-scope .gw-section-title.placement {
    color: var(--gateway-blue);
}

.cpt-scope .gw-section-title.placement::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gateway-blue);
    border-radius: 2px;
}

/* ==============================================
   Jobs Listing
   ============================================== */

.cpt-scope .gw-archive-jobs-listing {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cpt-scope .gw-archive-no-jobs {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: var(--gateway-gray-600);
}

.cpt-scope .gw-archive-job-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0 40px 40px 40px;
    padding: 32px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.cpt-scope .gw-archive-job-item:hover {
    border-color: var(--gateway-blue);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(38,36,116,0.08);
}

.cpt-scope .gw-archive-job-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cpt-scope .gw-archive-job-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cpt-scope .gw-archive-job-type {
    padding: 4px 12px;
    background: rgba(36,144,107,0.1);
    color: var(--gateway-teal);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cpt-scope .gw-archive-job-employment {
    padding: 4px 12px;
    background: rgba(27,96,170,0.1);
    color: var(--gateway-blue);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.cpt-scope .gw-archive-job-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.cpt-scope .gw-archive-job-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.cpt-scope .gw-archive-job-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--gateway-gray-600);
}

.cpt-scope .gw-archive-job-meta-item svg {
    flex-shrink: 0;
}

.cpt-scope .gw-archive-job-action {
    flex-shrink: 0;
}

.cpt-scope .gw-archive-job-arrow {
    width: 48px;
    height: 48px;
    background: var(--gateway-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cpt-scope .gw-archive-job-arrow svg {
    width: 16px;
    height: 16px;
}

.cpt-scope .gw-archive-job-item:hover .gw-archive-job-arrow {
    background: var(--gateway-navy);
    transform: scale(1.05);
}

/* ==============================================
   Responsive Design
   ============================================== */

@media (max-width: 968px) {
    .cpt-scope .gw-archive-jobs-container,
    .cpt-scope .gw-intro-container {
        padding: 0 20px;
    }

    .cpt-scope .gw-intro-grid,
    .cpt-scope .gw-intro-grid.reverse {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .cpt-scope .gw-intro-image img {
        height: 320px;
    }
    
    .cpt-scope .gw-archive-job-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .cpt-scope .gw-filter-bar {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .cpt-scope .gw-filter-group {
        min-width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .cpt-scope .gw-filter-select {
        width: 100%;
    }
    
    .cpt-scope .gw-archive-banner-title {
        font-size: 40px;
    }
    
    .cpt-scope .gw-archive-section,
    .cpt-scope .gw-intro-section {
        padding: 60px 0;
    }

    .cpt-scope .gw-section-title {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .cpt-scope .gw-archive-banner {
        min-height: 350px;
    }
    
    .cpt-scope .gw-archive-banner-content {
        padding: 0 20px;
    }
    
    .cpt-scope .gw-archive-banner-title {
        font-size: 32px;
    }
    
    .cpt-scope .gw-archive-banner-subtitle {
        font-size: 16px;
    }

    .cpt-scope .gw-intro-section {
        padding: 70px 0;
    }

    .cpt-scope .gw-intro-text h2 {
        font-size: 28px;
    }

    .cpt-scope .gw-intro-text p {
        font-size: 16px;
    }
}