﻿/* Only key updates for News Section will be added below custom styles */
/* =========================================
            HERO SECTION (V24 Clean)
            ========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 900px;
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: calc(var(--nav-height) * -1);
    padding-bottom: 50px;
    overflow: hidden;
    perspective: 1000px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(10, 10, 10, 0.2) 0%, rgba(10, 10, 10, 0.9) 100%);
    z-index: 1;
}

.hero-char-wrapper {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.hero-char {
    position: absolute;
    bottom: 0;
    transition: all 0.5s ease;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
}

.char-left {
    left: 5%;
    transform-origin: bottom left;
}

.char-right {
    right: 5%;
    transform-origin: bottom right;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero-logo-img {
    max-width: 500px;
    width: 90%;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 30px rgba(251, 191, 36, 0.4));
    animation: pulseLogo 4s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 28px;
    color: #fff;
    margin-bottom: 50px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    font-weight: 600;
    width: 100%;
    max-width: 1200px;
    /* Opacity 0.6 */
    background: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.6) 20%, rgba(0, 0, 0, 0.6) 80%, transparent 100%);
    padding: 20px 0;
    border-top: 1px solid rgba(251, 191, 36, 0.3);
    border-bottom: 1px solid rgba(251, 191, 36, 0.3);
    display: block;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 1px;
}

@keyframes pulseLogo {

    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 30px rgba(251, 191, 36, 0.4));
    }

    50% {
        transform: scale(1.02);
        filter: drop-shadow(0 0 50px rgba(251, 191, 36, 0.6));
    }
}

@keyframes floatBreathing {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Particles */
.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

.particle {
    position: absolute;
    bottom: -10px;
    background: var(--accent-gold);
    border-radius: 50%;
    opacity: 0;
    animation: rise 5s infinite ease-in;
    box-shadow: 0 0 10px var(--accent-gold), 0 0 20px var(--accent-magenta);
}

@keyframes rise {
    0% {
        bottom: -10px;
        transform: translateX(0);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        bottom: 100%;
        transform: translateX(100px);
        opacity: 0;
    }
}

/* Buttons & Scroll */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-download-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 250px;
    height: 60px;
    background: linear-gradient(to right, #f59e0b, #ea580c);
    color: white;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(234, 88, 12, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

    .btn-download-hero:hover {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(234, 88, 12, 0.8);
        background: linear-gradient(to right, #fbbf24, #f97316);
    }

.btn-info-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 180px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    color: white;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

    .btn-info-hero:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: var(--accent-gold);
        color: var(--accent-gold);
    }

.client-info {
    margin-top: 15px;
    font-size: 14px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 15px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    color: var(--accent-gold);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--accent-gold);
    border-radius: 20px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes bounce {

    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

@keyframes scrollWheel {
    0% {
        top: 10px;
        opacity: 1;
    }

    100% {
        top: 30px;
        opacity: 0;
    }
}

/* =========================================
            CONTENT SECTION (Enhanced)
            ========================================= */
.content-section {
    position: relative;
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    padding-top: 100px;
    padding-bottom: 50px;
    z-index: 20;
    background-color: #0a0a0a;
    box-shadow: 0 -50px 100px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 1) 0%, rgba(10, 10, 10, 0.8) 20%, rgba(10, 10, 10, 0.9) 100%);
    z-index: 0;
}

/* Decorations (Updated) */
.content-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.content-char {
    position: absolute;
    filter: grayscale(20%) brightness(0.8);
    transition: all 0.5s ease;
}

/* Left Guard (Moved Left) */
.c-char-left {
    left: -280px;
    bottom: -50px;
    height: 750px;
    transform: scaleX(-1);
}

/* Right Guard */
.c-char-right {
    right: -80px;
    bottom: -50px;
    height: 700px;
    z-index: 2;
}

/* Content Wrapper */
.content-wrapper {
    position: relative;
    z-index: 10;
}

/* Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: -80px auto 50px;
    position: relative;
    z-index: 15;
    padding: 0 20px;
}

.feature-card {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(251, 191, 36, 0.1);
    padding: 30px 20px;
    text-align: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

    .feature-card:hover {
        transform: translateY(-10px);
        background: rgba(20, 20, 20, 0.95);
        border-color: var(--accent-gold);
        box-shadow: 0 15px 40px rgba(234, 88, 12, 0.2);
    }

.feature-icon {
    font-size: 32px;
    color: var(--accent-gold);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.feature-desc {
    font-size: 13px;
    color: #94a3b8;
}

/* --- ENHANCED NEWS SECTION --- */
.news-container {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0;
}

/* Tabs Style */
.news-tabs {
    display: flex;
    gap: 30px;
}

.news-tab {
    padding-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

    .news-tab:hover {
        color: #fff;
    }

    .news-tab.active {
        color: var(--accent-gold);
    }

        .news-tab.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100%;
            height: 3px;
            background: var(--accent-gold);
            border-radius: 2px;
            box-shadow: 0 0 10px var(--accent-gold);
        }

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Enhanced News Card Style */
/* Enhanced News Card Style (Uniform Size) */
.news-item-row {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    /* Mobile Default: Auto Height */
    height: auto;
}

@media (min-width: 768px) {
    .news-item-row {
        flex-direction: row;
        /* Desktop: Fixed Height for Uniformity */
        height: 180px;
        min-height: 180px;
    }

    .news-thumb {
        width: 270px;
        /* Balanced Width */
        height: 100%;
        flex-shrink: 0;
        /* Prevent shrinking */
    }
}

.news-item-row:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-gold);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.news-thumb {
    position: relative;
    overflow: hidden;
    /* Mobile: Full Width height ratio */
    height: 200px;
    width: 100%;
}

@media (min-width: 768px) {
    .news-thumb {
        height: 100%;
        width: 270px;
    }
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item-row:hover .news-thumb img {
    transform: scale(1.1);
}

.news-content {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    gap: 5px;
    overflow: hidden;
    /* Hide excess content */
}

.news-header-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 5px;
}

.news-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid;
    display: inline-block;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.news-head {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 5px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-desc {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: auto;
    /* Push footer down */
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
    margin-top: auto;
}

.news-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #64748b;
}

    .news-meta i {
        margin-right: 5px;
        color: var(--accent-gold);
    }

.news-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.news-tag {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    color: #cbd5e1;
}

/* Category Colors - reused */
.cat-general {
    color: #94a3b8;
    border-color: #94a3b8;
}

.cat-system {
    color: #94a3b8;
    border-color: #94a3b8;
}

.cat-event {
    color: #eab308;
    border-color: #eab308;
}

.cat-update {
    color: #ef4444;
    border-color: #ef4444;
}

.cat-announce {
    color: #ef4444;
    border-color: #ef4444;
}

.cat-promotion {
    color:#3b82f6;
    border-color:#3b82f6;
}

.cat-gameguide {
    color: #22c55e;
    border-color: #22c55e;
    /* Green */
}

.cat-upclass {
    color: #a855f7;
    border-color: #a855f7;
    /* Purple */
}

.cat-quest {
    color: #a855f7;
    border-color: #a855f7;
    /* Purple */
}


/* Hidden utility for tabs */
.news-group {
    display: none;
}

    .news-group.active {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

/* Responsive */
@media (max-width: 1200px) {

    .char-left,
    .char-right {
        opacity: 0.6;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-char {
        opacity: 0.2;
    }
}

@media (max-width: 768px) {

    .hero-char,
    .content-char {
        display: none;
    }

    .feature-grid,
    .news-grid,
    .news-group.active {
        grid-template-columns: 1fr;
    }

    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .news-tabs {
        gap: 20px;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
}


/* Job Section Container */
.job-section {
    position: relative;
    width: 100%;
    height: 850px;
    background-color: #020617;
    /* Solid Dark Background to match connector */
    overflow: hidden;
    font-family: 'Sarabun', sans-serif;
    border-top: none;
    margin-top: 0;
    /* No overlap - cleaner separation */
    z-index: 1;
}

/* Background Layer with Fade Mask */
.job-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/home/content_bg_cdce607dd2fd8a8ce67df91999b10599.png');
    background-repeat: repeat-y;
    background-position: center top;
    background-size: 100% auto;
    opacity: 0.6;
    /* Fade IN from top (Transparent at top -> Solid Image) */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
    z-index: 0;
    pointer-events: none;
}

/* Top Shadow blending (optional extra smoothness) */
.job-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    /* Small fade just in case */
    background: linear-gradient(to bottom, #020617 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}



/* Main View Area */
.job-view-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 5;
    /* Text above bg */
}

.job-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    pointer-events: none;
    display: none;
}

    .job-item.active {
        opacity: 1;
        pointer-events: auto;
        display: block;
    }

/* Character Background Images */
.job-bg-1 {
    /* Position character art slightly to the right */
    background: url('../images/home/jobs/bg_job1.png') no-repeat 75% 20px;
    background-size: auto 90%;
}

.job-bg-2 {
    /* Position character art slightly to the right */
    background: url('../images/home/jobs/bg_job2.png') no-repeat 75% 20px;
    background-size: auto 90%;
}

.job-bg-3 {
    /* Position character art slightly to the right */
    background: url('../images/home/jobs/bg_job3.png') no-repeat 75% 20px;
    background-size: auto 90%;
}

.job-bg-4 {
    /* Position character art slightly to the right */
    background: url('../images/home/jobs/bg_job4.png') no-repeat 75% 20px;
    background-size: auto 90%;
}

.job-bg-5 {
    /* Position character art slightly to the right */
    background: url('../images/home/jobs/bg_job5.png') no-repeat 75% 20px;
    background-size: auto 90%;
}

.job-bg-6 {
    /* Position character art slightly to the right */
    background: url('../images/home/jobs/bg_job6.png') no-repeat 75% 20px;
    background-size: auto 90%;
}

.job-bg-7 {
    /* Position character art slightly to the right */
    background: url('../images/home/jobs/bg_job7.png') no-repeat 75% 20px;
    background-size: auto 90%;
}

.job-bg-8 {
    /* Position character art slightly to the right */
    background: url('../images/home/jobs/bg_job8.png') no-repeat 75% 20px;
    background-size: auto 90%;
}

.job-bg-9 {
    /* Position character art slightly to the right */
    background: url('../images/home/jobs/bg_job9.png') no-repeat 75% 20px;
    background-size: auto 90%;
}

.job-bg-10 {
    /* Position character art slightly to the right */
    background: url('../images/home/jobs/bg_job10.png') no-repeat 75% 20px;
    background-size: auto 90%;
}

.job-bg-11 {
    /* Position character art slightly to the right */
    background: url('../images/home/jobs/bg_job11.png') no-repeat 75% 20px;
    background-size: auto 90%;
}

.job-bg-12 {
    /* Position character art slightly to the right */
    background: url('../images/home/jobs/bg_job12.png') no-repeat 75% 20px;
    background-size: auto 90%;
}

.job-bg-13 {
    /* Position character art slightly to the right */
    background: url('../images/home/jobs/bg_job13.png') no-repeat 75% 20px;
    background-size: auto 90%;
}


/* Content Text Styling */
.job-content {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    height: 100%;
    padding-top: 100px;
    /* Increased to give more space for Job Title */
    padding-left: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 140px;
    /* More space at bottom for tabs */
}

    .job-content h3 {
        color: #e2e8f0;
        font-size: 28px;
        margin-bottom: 5px;
        /* Reduced from 15px */
        display: flex;
        align-items: baseline;
        gap: 10px;
    }

        .job-content h3 strong {
            color: #fff;
            font-size: 72px;
            font-weight: 800;
            text-transform: uppercase;
            background: linear-gradient(to bottom, #fff, #cbd5e1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            /* line-height: 1; Removed for better Thai text support */
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
        }

    .job-content p.desc {
        color: #cbd5e1;
        font-size: 16px;
        /* Slightly smaller */
        font-weight: 300;
        line-height: 1.6;
        width: 500px;
        margin-bottom: 20px;
        /* Reduced from 30px */
        background: rgba(0, 0, 0, 0.6);
        /* Darker solid bg for readability */
        padding: 15px;
        border-radius: 8px;
        border-left: 4px solid #f59e0b;
        backdrop-filter: blur(2px);
    }

    .job-content h4 {
        color: #fbbf24;
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 10px;
        /* Reduced */
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
        /* Add drop shadow */
    }

/* Stats Table */
.job-stats-table {
    background: rgba(15, 23, 42, 0.85);
    /* Slightly darker */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 20px;
    /* Reduced padding */
    width: 500px;
    margin-bottom: 15px;
    /* Reduced */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

    .job-stats-table table {
        width: 100%;
        border-collapse: collapse;
        color: #cbd5e1;
        text-align: center;
        font-size: 14px;
    }

    .job-stats-table th {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 8px 0;
        color: #fbbf24;
        font-weight: 500;
    }

    .job-stats-table td {
        padding: 8px 0;
        color: #fff;
        font-weight: 600;
        font-size: 16px;
    }

/* Actions Row (List + Button) */
.job-actions {
    display: flex;
    align-items: center;
    /* Center Vertically */
    gap: 20px;
    width: 100%;
    max-width: 800px;
}

.ability-list {
    color: #e2e8f0;
    /* Brighter text */
    font-size: 13px;
    list-style: none;
    padding: 0;
    margin-top: 0;
    background: rgba(0, 0, 0, 0.75);
    /* Much Darker for readability */
    padding: 12px;
    border-radius: 8px;
    display: inline-block;
    width: 500px;
    /* Fixed width */
    flex-shrink: 0;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

    .ability-list li {
        margin-bottom: 3px;
        display: inline-block;
        width: 49%;
    }

        .ability-list li strong {
            color: #fbbf24;
        }

/* Detail Button */
.btn-job-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 50px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    margin-top: 0;
    /* No top margin needed in flex */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

    .btn-job-detail:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
        background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
    }

    .btn-job-detail:after {
        content: '→';
        margin-left: 10px;
        transition: transform 0.3s;
    }

    .btn-job-detail:hover:after {
        transform: translateX(5px);
    }


/* Bottom Slider/Tabs - Sprite Implementation */
.job-tabs-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 160px;
    background: linear-gradient(to top, #020617 20%, transparent 100%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 30px;
    z-index: 20;
}

.job-tabs-container {
    max-width: 1400px;
    width: 100%;
    display: flex;
    overflow-x: visible;
    /* Close to auto but allow pop up if parent allows - actually parent clips. Need padding. */
    gap: 10px;
    padding: 40px 20px 10px 20px;
    /* Increased Top Padding to prevent clipping on hover/active */
    scrollbar-width: none;
    justify-content: center;
    /* Try centering tabs if possible */
}

    .job-tabs-container::-webkit-scrollbar {
        display: none;
    }

.job-tab {
    flex: 0 0 90px;
    height: 90px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #0f172a;
}

    .job-tab img {
        width: 100%;
        height: auto;
        display: block;
        margin-top: 0;
        transition: margin-top 0.3s ease;
        opacity: 0.6;
        filter: grayscale(100%);
    }

    .job-tab:hover {
        border-color: #fbbf24;
        transform: translateY(-5px);
    }

    .job-tab.active {
        border-color: #fbbf24;
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
        transform: translateY(-10px) scale(1.1);
        z-index: 5;
    }

        .job-tab.active img {
            margin-top: -100%;
            /* Show colored bottom half */
            opacity: 1;
            filter: grayscale(0%);
        }

    /* Overlay Text on Tab */
    .job-tab span {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        text-align: center;
        padding: 3px 0;
        color: #94a3b8;
        font-size: 11px;
        font-weight: 600;
        background: rgba(15, 23, 42, 0.9);
        transition: all 0.3s;
    }

    .job-tab.active span {
        background: #fbbf24;
        color: #0f172a;
        font-weight: 800;
    }


/* Mobile Responsive */
@media (max-width: 1024px) {
    .job-tabs-container {
        justify-content: flex-start;
    }

    .job-content {
        align-items: center;
        text-align: center;
        padding: 40px 20px 180px 20px;
    }

    .job-actions {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .ability-list {
        width: 100%;
    }

    .btn-job-detail {
        width: 100%;
        max-width: 300px;
        margin-top: 10px;
    }

    .job-content h3 {
        justify-content: center;
    }

    .job-content p.desc {
        width: 100%;
        border-left: none;
        border-top: 3px solid #f59e0b;
    }
}

