/* ===== MODERN VARIABLES ===== */
:root {
    /* Warna dari app.blade.php */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --gradient-blue: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --gradient-green: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-info: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.16);
}

/* ===== GLOBAL BACKGROUND ===== */
body {
    background: linear-gradient(
        135deg,
        #f8fafc 0%,
        #e0e7ff 50%,
        #ede9fe 100%
    ) !important;
    background-attachment: fixed !important;
}

/* ===== HERO SECTION MODERN ===== */
.hero-section-modern {
    min-height: 85vh;
    background: transparent;
    position: relative;
    padding: 4rem 0;
    display: flex;
    align-items: center;
}

/* Animated Background Shapes */
.hero-bg-shapes,
.section-bg-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    top: 0;
    left: 0;
}

@keyframes float {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(40px, -40px) scale(1.15);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

/* Hero Title Modern */
.hero-title-modern {
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Subtitle */
.hero-subtitle-modern {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #475569;
    line-height: 1.7;
    max-width: 540px;
}

/* Modern CTA Buttons */
.btn-primary-modern {
    position: relative;
    padding: 1rem 2.25rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 28px rgba(37, 99, 235, 0.35);
    text-decoration: none;
    display: inline-block;
}

.btn-primary-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 100%
    );
    transform: translateX(-100%);
    transition: transform 0.3s;
}

.btn-primary-modern:hover {
    /* transform: translateY(-3px); */
    box-shadow: 0 10px 36px rgba(37, 99, 235, 0.45);
    color: white;
}

.btn-primary-modern:hover::before {
    transform: translateX(0);
}

.btn-outline-modern {
    padding: 1rem 2.25rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #2563eb;
    border: 2px solid rgba(37, 99, 235, 0.4);
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-modern:hover {
    background: var(--gradient-primary);
    border-color: #2563eb;
    /* transform: translateY(-3px); */
    color: white;
}

/* Hero Image Wrapper */
.hero-image-wrapper {
    position: relative;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lottie-container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}

/* FIX untuk Lottie Size - UKURAN NORMAL */
.lottie-container dotlottie-wc {
    width: 100% !important;
    height: auto !important;
    max-width: 650px !important;
}

/* Floating Cards 3D */
.floating-cards {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.floating-card i {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-1 {
    top: 20%;
    right: 10%;
    animation: floatCard 6s infinite ease-in-out;
}

.card-2 {
    top: 50%;
    left: -5%;
    animation: floatCard 7s infinite ease-in-out 1s;
}

.card-3 {
    bottom: 15%;
    right: 15%;
    animation: floatCard 8s infinite ease-in-out 2s;
}

@keyframes floatCard {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-25px) rotate(3deg);
    }
}

/* ===== JOB CARDS MODERN ===== */
.jobs-modern-section {
    background: transparent;
}

.jobs-masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.job-card-modern {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.job-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(59, 130, 246, 0.4);
}

.job-card-modern:hover .card-glow {
    opacity: 1;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(37, 99, 235, 0.12) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

/* Job Card Header */
.job-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1.125rem;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 2;
}

.company-avatar {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.company-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    background: #f8fafc;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.job-meta-header {
    flex: 1;
    min-width: 0;
}

.job-title-modern {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.375rem 0;
    line-height: 1.4;
}

.company-name-modern {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

/* Job Tags Modern */
.job-tags-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.125rem;
    position: relative;
    z-index: 2;
}

.job-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.tag-type {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #dcfce7;
}

.tag-salary {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.tag-category {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #dbeafe;
}

/* Job Info Modern */
.job-info-modern {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(241, 245, 249, 0.8);
    border-bottom: 1px solid rgba(241, 245, 249, 0.8);
    margin-bottom: 1.125rem;
    position: relative;
    z-index: 2;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: #475569;
}

.info-item i {
    width: 16px;
    color: #94a3b8;
    font-size: 0.8125rem;
}

.info-deadline {
    color: #dc2626;
    font-weight: 500;
}

.info-deadline i {
    color: #dc2626;
}

/* Job Card Footer */
.job-card-footer {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.btn-apply-quick {
    width: 100%;
    padding: 0.8125rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.btn-apply-quick:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    color: white;
}

/* ===== SECTION HEADER MODERN ===== */
.section-header-modern {
    position: relative;
    z-index: 2;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.section-title-modern {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.section-subtitle-modern {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* View All Button Modern */
.btn-view-all-modern {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    transition: all 0.3s;
    box-shadow: 0 6px 28px rgba(15, 23, 42, 0.3);
    text-decoration: none;
}

.btn-view-all-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(15, 23, 42, 0.4);
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    grid-column: 1 / -1; /* Ini yang penting untuk spanning full width di grid */
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.empty-state p {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

/* ===== RECRUITMENT PROCESS SECTION ===== */
.recruitment-process-section {
    background: transparent;
    position: relative;
}

.process-steps-wrapper {
    position: relative;
}

.process-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem 1.75rem 2.25rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: visible;
    z-index: 1;
}

.process-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.06) 0%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 20px;
}

.process-card:hover::before {
    opacity: 1;
}

.process-number {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.875rem;
    color: #2563eb;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
    z-index: 2;
}

.process-icon {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.75rem auto 1.5rem;
    color: white;
    font-size: 2.125rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.process-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.process-description {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

/* ===== RESPONSIVE ===== */

/* Tablet Portrait (768px - 1024px) */
@media (max-width: 1024px) and (orientation: portrait) {
    .hero-section-modern {
        min-height: auto;
        padding: 3.5rem 0;
    }

    .hero-title-modern {
        font-size: clamp(2rem, 6vw, 3rem);
        text-align: center;
    }

    .hero-subtitle-modern {
        text-align: center;
        margin: 0 auto 2.5rem;
    }

    .hero-cta-group {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .btn-primary-modern,
    .btn-outline-modern {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        margin: 0 !important;
    }

    .jobs-masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .process-card {
        padding: 2.5rem 1.5rem 2rem;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991.98px) {
    .hero-section-modern {
        padding: 3rem 0;
    }

    .btn-primary-modern,
    .btn-outline-modern {
        padding: 0.875rem 1.875rem;
        font-size: 0.9375rem;
    }

    .jobs-masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .process-card {
        padding: 2.5rem 1.5rem 2rem;
    }

    .process-icon {
        width: 76px;
        height: 76px;
        font-size: 1.75rem;
    }

    .process-title {
        font-size: 1.125rem;
    }

    .process-description {
        font-size: 0.875rem;
    }

    .process-number {
        width: 54px;
        height: 54px;
        font-size: 1.625rem;
        top: -22px;
    }
}

/* Mobile (576px - 767px) */
@media (max-width: 767.98px) {
    .hero-section-modern {
        min-height: auto;
        padding: 2.5rem 0;
    }

    .section-title-modern {
        font-size: clamp(1.75rem, 5vw, 2rem);
    }

    .jobs-masonry-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .job-card-modern {
        padding: 1.5rem;
    }

    .process-card {
        padding: 2.25rem 1.25rem 1.75rem;
        margin-bottom: 1.25rem;
    }

    .process-icon {
        width: 68px;
        height: 68px;
        font-size: 1.625rem;
    }

    .process-title {
        font-size: 1.0625rem;
    }

    .process-description {
        font-size: 0.8125rem;
    }

    .process-number {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
        top: -20px;
    }
}

/* Small Mobile (360px - 575px) */
@media (max-width: 575.98px) {
    .hero-title-modern {
        font-size: 2rem;
    }

    .hero-subtitle-modern {
        font-size: 0.9375rem;
    }

    .btn-primary-modern,
    .btn-outline-modern {
        padding: 0.8125rem 1.75rem;
        font-size: 0.875rem;
    }

    .job-tags-modern {
        gap: 0.375rem;
    }

    .job-tag {
        padding: 0.4375rem 0.875rem;
        font-size: 0.75rem;
    }

    .btn-apply-quick {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .process-card {
        padding: 2rem 1rem 1.5rem;
    }

    .process-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .process-title {
        font-size: 1rem;
    }

    .process-description {
        font-size: 0.75rem;
    }

    .process-number {
        width: 44px;
        height: 44px;
        font-size: 1.375rem;
        top: -18px;
    }
}

/* Extra Small Mobile (<360px) */
@media (max-width: 359.98px) {
    .hero-title-modern {
        font-size: 1.75rem;
    }

    .btn-primary-modern,
    .btn-outline-modern {
        padding: 0.75rem 1.5rem;
        font-size: 0.8125rem;
    }

    .job-card-modern {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .company-avatar {
        width: 48px;
        height: 48px;
    }

    .job-title-modern {
        font-size: 1rem;
    }

    .process-card {
        padding: 1.75rem 0.875rem 1.25rem;
    }

    .process-icon {
        width: 56px;
        height: 56px;
        font-size: 1.375rem;
    }

    .process-title {
        font-size: 0.9375rem;
    }

    .process-description {
        font-size: 0.6875rem;
    }

    .process-number {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
        top: -16px;
    }
}

/* Desktop (1200px - 1439px) */
@media (min-width: 1200px) and (max-width: 1439px) {
    .card-1 {
        top: 20%;
        right: 15%;
    }

    .card-2 {
        top: 50%;
        left: -2%;
    }

    .card-3 {
        bottom: 15%;
        right: 8%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .process-steps-wrapper .row {
        row-gap: 2rem !important; /* Jarak vertikal antar row */
    }
}

@media (min-width: 320px) and (max-width: 767px) {
    .process-steps-wrapper .row {
        row-gap: 2rem !important;
    }
}
