/**
 * World of Work Explorer - manage_wow_wow.css
 * Version 1.0
 * 
 * Premium card grid styling for the public-facing World of Work Explorer.
 * Mirrors the aesthetic of manage_wow_interests.css for card grids,
 * with the job detail image presented like areas/fields (large hero image).
 */

/* =====================================================
   SECONDARY HEADER — Pixel-identical to interests.php
   ===================================================== */

.info-header-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
    min-height: auto;
    padding: 8px 24px 0 24px;
    background: transparent;
    border-radius: 0;
    margin-bottom: 12px;
}

.navbar-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.navbar-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #111827;
    display: flex;
    align-items: center;
}

.navbar-icon {
    font-size: 26px;
    line-height: 1;
    color: #b91c1c !important;
    margin-right: 12px;
}

.navbar-step {
    font-size: 14px;
    font-weight: 400;
    color: #6B7280;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-btn-help {
    padding: 8px 16px;
    height: 38px;
    background: white;
    border: 1px solid #3B82F6;
    border-radius: 6px;
    color: #3B82F6;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar-btn-help:hover {
    background: #EFF6FF;
}

.navbar-btn-back {
    padding: 8px 16px !important;
    height: 38px !important;
    background: #bd2a31 !important;
    /* SkillsPassport Red */
    border: 1px solid #bd2a31 !important;
    border-radius: 6px !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 12px;
}

.navbar-btn-back:hover {
    background: #a51d24 !important;
    border-color: #a51d24 !important;
    color: white !important;
}

/* =====================================================
   SEARCH — Header search input + dropdown
   ===================================================== */

.wow-search-wrapper {
    position: relative;
}

.wow-search-input-container {
    display: flex;
    align-items: center;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 0 10px;
    height: 38px;
    transition: all 0.2s;
    min-width: 240px;
}

.wow-search-input-container:focus-within {
    background: white;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.wow-search-icon {
    color: #9CA3AF;
    font-size: 13px;
    margin-right: 8px;
    flex-shrink: 0;
}

.wow-search-input {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 13px;
    color: #374151;
    width: 100%;
    padding: 0 !important;
    height: 100%;
    box-shadow: none !important;
}

.wow-search-input::placeholder {
    color: #9CA3AF;
    font-size: 13px;
}

.wow-search-clear {
    background: none !important;
    border: none !important;
    color: #9CA3AF;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px !important;
    line-height: 1;
    flex-shrink: 0;
}

.wow-search-clear:hover {
    color: #374151;
}

/* Search Results Dropdown */
.wow-search-results {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 400px;
    max-height: 420px;
    overflow-y: auto;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.wow-search-group {
    padding: 8px 0;
    border-bottom: 1px solid #F3F4F6;
}

.wow-search-group:last-child {
    border-bottom: none;
}

.wow-search-group-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9CA3AF;
    padding: 4px 16px 6px;
}

.wow-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.15s;
}

.wow-search-item:hover {
    background: #F3F4F6;
}

.wow-search-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.wow-search-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wow-search-item-text {
    flex: 1;
    min-width: 0;
}

.wow-search-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #1F2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wow-search-item-context {
    font-size: 11px;
    color: #9CA3AF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wow-search-item-arrow {
    color: #D1D5DB;
    font-size: 12px;
    flex-shrink: 0;
}

.wow-search-empty {
    padding: 24px 16px;
    text-align: center;
    color: #9CA3AF;
    font-size: 13px;
}

.wow-search-loading {
    padding: 16px;
    text-align: center;
    color: #9CA3AF;
    font-size: 13px;
}

@media (max-width: 768px) {
    .wow-search-input-container {
        min-width: 160px;
    }

    .wow-search-results {
        width: calc(100vw - 32px);
        right: -60px;
    }
}

/* Mobile Header Layout — matches interests.php */
@media (max-width: 767px) {
    .info-header-navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 16px;
        height: auto;
        gap: 12px;
    }

    .navbar-left {
        width: 100%;
        margin-bottom: 0;
    }

    .navbar-right {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .navbar-title {
        font-size: 20px;
        flex-wrap: wrap;
    }

    .navbar-step {
        font-size: 13px;
        margin-top: 4px;
        line-height: 1.4;
    }

    .navbar-btn-help,
    .navbar-btn-back {
        flex: 1;
        justify-content: center;
    }

    .wow-search-input-container {
        min-width: 120px;
        flex: 1;
    }

    .wow-search-results {
        position: fixed;
        top: auto;
        left: 16px;
        right: 16px;
        width: auto;
    }
}

/* Stack Header Buttons on Mobile — matches interests.php */
@media (max-width: 768px) {
    .info-header-navbar .navbar-right {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 8px;
        margin-top: 12px;
    }

    .info-header-navbar .navbar-right button,
    .info-header-navbar .navbar-right .btn,
    .info-header-navbar .navbar-right .wow-search-wrapper {
        width: 100%;
        margin-right: 0 !important;
        justify-content: center;
    }

    .info-header-navbar .navbar-right .wow-search-input-container {
        width: 100%;
    }
}

/* =====================================================
   INFO CARD — Intro panel on areas page
   ===================================================== */

.wow-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    margin: 20px 0 0;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 12px;
}

.wow-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #3B82F6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.wow-info-content {
    flex: 1;
    min-width: 0;
}

.wow-info-title {
    font-size: 17px;
    font-weight: 700;
    color: #1E3A5F;
    margin: 0 0 8px;
}

.wow-info-text {
    font-size: 13px;
    color: #1E40AF;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 600px) {
    .wow-info-card {
        flex-direction: column;
        gap: 10px;
        padding: 16px;
    }
}

/* =====================================================
   SECTION 1: BASE LAYOUT
   ===================================================== */

.wow-explorer-container {
    padding: 0 16px 24px 16px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Loading Screen */
.screen.active .loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 20px;
}

.loading-text {
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* =====================================================
   SECTION 2: BREADCRUMB
   ===================================================== */

.wow-breadcrumb {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 20px;
    position: relative;
    z-index: 40;
}

.wow-breadcrumb-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 1400px;
    margin: 0 auto;
    font-size: 13px;
}

.wow-breadcrumb-item {
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.wow-breadcrumb-link {
    color: #4f46e5;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.wow-breadcrumb-link:hover {
    background: #eef2ff;
    color: #4338ca;
    text-decoration: none;
}

.wow-breadcrumb-link i {
    margin-right: 4px;
    font-size: 11px;
}

.wow-breadcrumb-current {
    color: #374151;
    font-weight: 600;
    background: rgba(79, 70, 229, 0.08);
}

.wow-breadcrumb-sep {
    color: #9ca3af;
    font-size: 10px;
    margin: 0 2px;
}

/* =====================================================
   SECTION 3: CARD GRID
   ===================================================== */

.wow-grid {
    display: grid;
    gap: 20px;
    padding: 20px 0;
}

.wow-areas-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.wow-fields-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.wow-jobs-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* =====================================================
   SECTION 4: CARD COMPONENT
   ===================================================== */

.wow-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.wow-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.wow-card:active {
    transform: translateY(-1px);
}

/* Card Image */
.wow-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.wow-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.wow-card:hover .wow-card-image {
    transform: scale(1.05);
}

.wow-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: rgba(255, 255, 255, 0.6);
}

.wow-card-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-end;
}

/* Card Badges */
.wow-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.wow-badge-entrepreneurial {
    background: rgba(245, 158, 11, 0.25);
    border-color: rgba(245, 158, 11, 0.3);
}

.wow-badge-trait {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.3);
}

.wow-badge-available {
    background: rgba(22, 163, 74, 0.85);
    border-color: rgba(22, 163, 74, 0.9);
    color: white;
}

.wow-badge-unavailable {
    background: rgba(220, 38, 38, 0.75);
    border-color: rgba(220, 38, 38, 0.8);
    color: white;
}

/* Card Body */
.wow-card-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}

.wow-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
}

.wow-card-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* Card Actions — STACKED BUTTONS at card bottom (matches interests.php pattern) */
.wow-card-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 16px 16px;
    margin-top: auto;
}

/* =====================================================
   SECTION 5: SPLIT BUTTONS — Explore + Watch Video
   Copied verbatim from manage_wow_results.css
   Added !important to override Tailwind resets
   ===================================================== */

.split-buttons {
    display: flex !important;
    margin-top: auto;
}

.split-btn {
    flex: 1;
    padding: 12px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    color: white !important;
    transition: background 0.15s;
    letter-spacing: 0.01em;
    border-radius: 0 !important;
    text-decoration: none !important;
}

.split-btn.explore {
    background: #F59E0B !important;
}

.split-btn.explore:hover {
    background: #D97706 !important;
}

.split-btn.video {
    background: #7C3AED !important;
}

.split-btn.video:hover {
    background: #6D28D9 !important;
}

.split-btn.disabled {
    background: #9CA3AF !important;
    cursor: not-allowed;
}

.split-btn.select {
    background: #10B981 !important;
}

.split-btn.select:hover {
    background: #059669 !important;
}

.split-btn.deselect {
    background: #EF4444 !important;
}

.split-btn.deselect:hover {
    background: #DC2626 !important;
}

.split-btn.blocked {
    background: #9CA3AF !important;
    cursor: not-allowed;
    opacity: 0.6;
}

/* =====================================================
   SECTION 6: JOB DETAIL (Hero Image like Areas/Fields)
   ===================================================== */

.job-detail-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    margin: 20px auto;
    max-width: 900px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Hero image — presented like area/field cards */
.job-detail-hero {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.job-detail-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75);
}

.job-detail-hero-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    color: rgba(255, 255, 255, 0.3);
}

.job-detail-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 0.85) 100%);
}

.job-detail-hero-title {
    font-size: 26px;
    font-weight: 700;
    color: white;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.job-detail-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.job-detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.job-detail-badge.verified {
    background: rgba(16, 185, 129, 0.25);
    color: #d1fae5;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.job-detail-badge.entrepreneurial {
    background: rgba(245, 158, 11, 0.25);
    color: #fef3c7;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.job-detail-badge.trait {
    background: rgba(139, 92, 246, 0.25);
    color: #ede9fe;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.job-detail-badge.video-link {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.job-detail-badge.video-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* =====================================================
   SECTION 7: JOB DETAIL SECTIONS
   ===================================================== */

.job-detail-section {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
}

.job-detail-section:last-child {
    border-bottom: none;
}

.job-detail-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.01em;
}

.job-detail-description {
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
    margin: 0;
}

/* Subjects */
.job-detail-subjects {
    margin-bottom: 14px;
}

.job-detail-subjects-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.job-detail-subjects-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.job-detail-subject {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 500;
}

.job-detail-subject.required {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.job-detail-subject.recommended {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.job-detail-notes {
    font-size: 13px;
    color: #64748b;
    font-style: italic;
    margin: 10px 0 0 0;
    line-height: 1.6;
}

/* Routes/Pathways */
.job-detail-routes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.job-detail-route {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
}

.job-detail-route:hover {
    border-color: #c7d2fe;
    background: #fafbff;
}

.job-detail-route-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.pathway-badge-small {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-academic {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-professional {
    background: #ede9fe;
    color: #6d28d9;
}

.badge-vocational {
    background: #fef3c7;
    color: #b45309;
}

.badge-v1 {
    background: #fef3c7;
    color: #b45309;
}

.badge-v2 {
    background: #fef3c7;
    color: #b45309;
}

.badge-v3 {
    background: #fef3c7;
    color: #b45309;
}

.badge-entrepreneurial {
    background: #fee2e2;
    color: #dc2626;
}

.badge-occupational {
    background: #ccfbf1;
    color: #0f766e;
}

.job-detail-route-qual {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.job-detail-route-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.job-detail-route-detail {
    font-size: 13px;
    color: #475569;
}

.job-detail-route-detail strong {
    color: #1e293b;
}

.job-detail-route-institutions {
    margin-top: 10px;
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}

.job-detail-route-institutions strong {
    color: #1e293b;
}

/* Reasoning Scores */
.job-detail-scores {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.job-detail-score-group {
    flex: 1;
    min-width: 200px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
}

.job-detail-score-label {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.job-detail-score-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.job-detail-score-item {
    font-size: 13px;
    color: #475569;
    padding: 4px 0;
}

.job-detail-score-item strong {
    color: #1e293b;
    min-width: 90px;
    display: inline-block;
}

/* Professional Registration */
.job-detail-registration {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 14px;
}

.job-detail-registration-body {
    font-size: 15px;
    font-weight: 600;
    color: #15803d;
    display: block;
    margin-bottom: 4px;
}

.job-detail-registration-note {
    font-size: 13px;
    color: #4ade80;
    margin: 0;
}

/* Footer */
.job-detail-footer {
    padding: 14px 24px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.job-detail-last-updated {
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
}

/* =====================================================
   SECTION 8: VIDEO MODAL (shared pattern with interests)
   ===================================================== */

.job-video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.job-video-modal-container {
    width: 100%;
    max-width: 800px;
    background: #111827;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.job-video-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #1f2937;
}

.job-video-modal-title {
    font-size: 14px;
    font-weight: 600;
    color: #d1d5db;
}

.job-video-modal-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.job-video-modal-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.job-video-modal-content {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
}

.job-video-modal-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* =====================================================
   SECTION 9: ANIMATIONS
   ===================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wow-card {
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.wow-grid .wow-card:nth-child(1) {
    animation-delay: 0.05s;
}

.wow-grid .wow-card:nth-child(2) {
    animation-delay: 0.1s;
}

.wow-grid .wow-card:nth-child(3) {
    animation-delay: 0.15s;
}

.wow-grid .wow-card:nth-child(4) {
    animation-delay: 0.2s;
}

.wow-grid .wow-card:nth-child(5) {
    animation-delay: 0.25s;
}

.wow-grid .wow-card:nth-child(6) {
    animation-delay: 0.3s;
}

.wow-grid .wow-card:nth-child(7) {
    animation-delay: 0.35s;
}

.wow-grid .wow-card:nth-child(8) {
    animation-delay: 0.4s;
}

.wow-grid .wow-card:nth-child(9) {
    animation-delay: 0.45s;
}

.wow-grid .wow-card:nth-child(10) {
    animation-delay: 0.5s;
}

.job-detail-card {
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* =====================================================
   SECTION 10: RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
    .wow-areas-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .wow-explorer-container {
        padding: 0 10px 16px 10px;
    }

    .wow-grid {
        gap: 14px;
    }

    .wow-areas-grid,
    .wow-fields-grid,
    .wow-jobs-grid {
        grid-template-columns: 1fr;
    }

    .wow-card-image-wrapper {
        height: 180px;
    }

    .wow-card-body {
        padding: 14px 14px 16px;
    }

    .wow-card-title {
        font-size: 15px;
    }

    .wow-card-actions {
        flex-direction: column;
    }

    .wow-btn {
        justify-content: center;
    }

    /* Job detail responsive */
    .job-detail-hero {
        height: 200px;
    }

    .job-detail-hero-title {
        font-size: 20px;
    }

    .job-detail-hero-overlay {
        padding: 16px;
    }

    .job-detail-section {
        padding: 16px;
    }

    .job-detail-scores {
        flex-direction: column;
    }

    /* Breadcrumb responsive */
    .wow-breadcrumb {
        padding: 8px 12px;
    }

    .wow-breadcrumb-inner {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .wow-card-image-wrapper {
        height: 160px;
    }

    .job-detail-hero {
        height: 180px;
    }

    .job-detail-hero-title {
        font-size: 18px;
    }

    .job-detail-hero-badges {
        gap: 6px;
    }

    .job-detail-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* =====================================================
   SECTION 11: HEADER BACK BUTTON (matched to interests)
   ===================================================== */

.navbar-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(79, 70, 229, 0.08);
    color: #4f46e5;
    border: 1px solid rgba(79, 70, 229, 0.15);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.navbar-btn-back:hover {
    background: rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.3);
    transform: translateX(-2px);
}

.navbar-btn-back i {
    font-size: 12px;
}

/* =====================================================
   SCROLL TO TOP BUTTON
   ===================================================== */

.wow-scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #bd2a31 !important;
    color: white !important;
    border: none !important;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
    z-index: 999;
}

.wow-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wow-scroll-top:hover {
    background: #a51d24 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* =====================================================
   JOB DETAIL MODAL (Matching manage_wow_interests.css)
   Tightened padding to maximize viewport width usage
   ===================================================== */

.area-explore-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    max-height: 100vh;
    max-height: 100dvh;
    max-height: -webkit-fill-available;
}

.area-explore-modal-container {
    background: white;
    border-radius: 12px;
    max-width: 1100px;
    width: 100%;
    max-height: 95vh;
    max-height: 95dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.area-explore-modal-header {
    background: linear-gradient(135deg, #0D9488 0%, #0891B2 100%);
    color: white;
    padding: 14px 12px;
    flex-shrink: 0;
    position: relative;
}

.area-explore-modal-header-content {
    position: relative;
}

.area-explore-modal-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 2px 0;
    color: white;
}

.area-explore-modal-subtitle {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
    color: white;
}

.area-explore-modal-close {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.2s;
}

.area-explore-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.area-explore-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 12px;
    background: #F9FAFB;
}

.area-explore-modal-footer {
    padding: 10px 12px;
    background: white;
    border-top: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.area-explore-modal-footer-info {
    font-size: 12px;
    color: #6B7280;
}

.area-explore-modal-footer-btn {
    padding: 8px 16px;
    background: #E5E7EB;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: background 0.2s;
}

.area-explore-modal-footer-btn:hover {
    background: #D1D5DB;
}

/* Mobile — near edge-to-edge */
@media (max-width: 600px) {
    .area-explore-modal-overlay {
        padding: 4px;
    }

    .area-explore-modal-container {
        max-height: calc(100vh - 8px);
        max-height: calc(100dvh - 8px);
        max-height: -webkit-fill-available;
        border-radius: 8px;
    }

    .area-explore-modal-header {
        padding: 10px 8px;
    }

    .area-explore-modal-title {
        font-size: 17px;
    }

    .area-explore-modal-body {
        padding: 8px;
    }

    .area-explore-modal-footer {
        padding: 8px;
        flex-direction: column;
        gap: 8px;
    }

    .area-explore-modal-footer-btn {
        width: 100%;
    }
}