/* =========================================
   DESIGN TOKENS & VARIABLES
========================================= */
:root {
    /* Colors - Light Friendly Theme */
    --clr-bg: #FFFDF8;
    --clr-bg-surface: rgba(255, 255, 255, 0.9);
    --clr-bg-surface-lighter: #FFFFFF;

    --clr-primary: #F66748;
    /* Coral Orange */
    --clr-primary-glow: rgba(246, 103, 72, 0.4);

    --clr-accent: #FFD166;
    /* Soft Yellow */
    --clr-accent-glow: rgba(255, 209, 102, 0.4);

    --clr-text: #333333;
    --clr-text-muted: #666666;

    --clr-border: rgba(246, 103, 72, 0.15);
    --clr-border-highlight: rgba(246, 103, 72, 0.3);

    /* Typography */
    --font-heading: 'M PLUS Rounded 1c', 'Inter', sans-serif;
    --font-body: 'M PLUS Rounded 1c', 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --section-y: 6rem;

    /* Effects */
    --glass-blur: blur(12px);
    --glass-shadow: 0 8px 32px 0 rgba(246, 103, 72, 0.08);
    /* Softer shadow */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   RESET & BASE
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--clr-bg);
    color: var(--clr-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   BACKGROUND GLOWS
========================================= */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.bg-glow-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--clr-primary);
    animation: drift 20s ease-in-out infinite alternate;
}

.bg-glow-2 {
    top: 20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--clr-accent);
    animation: drift 25s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.1);
    }
}


/* =========================================
   BUTTONS
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 100px;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--clr-primary);
    color: var(--clr-bg);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    z-index: -1;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--clr-primary-glow);
}

.btn-secondary {
    background: var(--clr-bg-surface);
    color: var(--clr-text);
    border: 1px solid var(--clr-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
    background: var(--clr-bg-surface-lighter);
    border-color: var(--clr-primary);
    transform: translateY(-2px);
}

.btn-glow {
    box-shadow: 0 0 20px var(--clr-primary-glow);
}

.btn-glow:hover {
    box-shadow: 0 0 40px var(--clr-primary-glow);
}

/* =========================================
   HEADER (Glassmorphic)
========================================= */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    transition: var(--transition-smooth);
    background: transparent;
}

.glass-header.scrolled {
    background: rgba(255, 253, 248, 0.95);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 2px solid var(--clr-border);
    padding: 0.75rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a:not(.btn) {
    font-weight: 700;
    color: #2B3A5A;
    position: relative;
    transition: var(--transition-smooth);
}

.main-nav a:not(.btn):hover {
    color: #3b82f6;
    /* Blue hover state */
}

.glass-header.scrolled .main-nav a:not(.btn) {
    color: #2B3A5A;
}

.glass-header.scrolled .main-nav a:not(.btn):hover {
    color: var(--clr-text);
}

.main-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--clr-primary);
    transition: var(--transition-smooth);
}

.main-nav a:not(.btn):hover::after {
    width: 100%;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Offset header */
    position: relative;
    padding-bottom: 4rem;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Background Image Hero Override */
.hero-bg-dark .hero-container {
    display: block;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Badge */
.badge-animated {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--clr-bg-surface);
    border: 1px solid var(--clr-border);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--clr-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--clr-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 var(--clr-primary-glow);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px transparent;
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 transparent;
    }
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--clr-Primary);
    /* Fix casing below */
}

/* Quick fix for case */
.stat-value {
    color: var(--clr-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.divider {
    width: 1px;
    height: 40px;
    background: var(--clr-border);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    perspective: 1000px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* =========================================
   MARQUEE SCROLLER
========================================= */
.scroller-wrapper {
    position: relative;
    width: 100%;
    background: var(--clr-bg-surface);
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
    padding: 1rem 0;
    overflow: hidden;
    z-index: 20;
}

.scroller {
    width: 100%;
}

.scroller-inner {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    animation: scroll 20s linear infinite;
    align-items: center;
}

.scroller-inner li {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--clr-text-muted);
    letter-spacing: 2px;
}

@keyframes scroll {
    to {
        transform: translateX(calc(-50% - 1.5rem));
    }
}

/* =========================================
   MEDIA QUERIES
========================================= */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .main-nav {
        display: none;
        /* Mobile menu to be added later if needed */
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .divider {
        width: 40px;
        height: 1px;
    }
}

/* =========================================
   SECTIONS & TYPOGRAPHY
========================================= */
.section {
    padding: var(--section-y) 0;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--clr-text-muted);
}

/* =========================================
   GLASS PANELS
========================================= */
.glass-panel {
    background: var(--clr-bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--clr-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

/* =========================================
   FEATURES SECTION
========================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    cursor: default;
}

.feature-card:hover {
    border-color: var(--clr-border-highlight);
    transform: translateY(-10px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.icon-glow-primary {
    background: rgba(0, 240, 255, 0.1);
    color: var(--clr-primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.icon-glow-accent {
    background: rgba(255, 0, 85, 0.1);
    color: var(--clr-accent);
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.2);
    border: 1px solid rgba(255, 0, 85, 0.2);
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.feature-desc {
    color: var(--clr-text-muted);
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

/* Abstract Background Shapes inside cards */
.feature-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.15;
    z-index: 0;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-bg-shape {
    opacity: 0.3;
    transform: scale(1.2);
}

.bg-shape-1 {
    width: 200px;
    height: 200px;
    background: var(--clr-primary);
    bottom: -50px;
    right: -50px;
}

.bg-shape-2 {
    width: 200px;
    height: 200px;
    background: var(--clr-accent);
    top: -50px;
    right: -50px;
}

.bg-shape-3 {
    width: 150px;
    height: 150px;
    background: var(--clr-primary);
    top: 50%;
    left: -50px;
    transform: translateY(-50%);
}

/* =========================================
   SEARCH & FILTER BAR
========================================= */
.search-container {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--clr-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.search-container:hover {
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.85);
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.search-input-wrapper {
    position: relative;
    transition: transform 0.2s ease;
}

.search-input-wrapper:focus-within {
    transform: translateY(-2px);
}

.search-input-wrapper input:focus,
.search-input-wrapper select:focus {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 4px rgba(246, 103, 72, 0.1);
}

/* =========================================
   JOB CARDS (ENHANCED)
========================================= */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.job-card {
    background: transparent;
    border: none;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    z-index: 1;
    /* Establishes stacking context */
}

/* Default subtle outline fallback base */
.job-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: rgba(246, 103, 72, 0.1);
    z-index: -3;
    /* Absolute back */
}

/* The solid inner background masking the gradient */
.job-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    /* Thickness of the glowing border */
    background: #ffffff;
    border-radius: 19px;
    z-index: -1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Make sure all actual card content sits on top of the mask */
.job-card>*:not(.job-card-glow) {
    position: relative;
    z-index: 2;
}

/* The spinning glow layer */
.job-card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    /* Gradient: transparent -> primary -> bright accent yellow tip */
    background: conic-gradient(from 180deg at 50% 50%,
            transparent 0%,
            transparent 75%,
            var(--clr-primary) 95%,
            var(--clr-accent) 100%);
    transform: translate(-50%, -50%) rotate(0deg);
    z-index: -2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* Hover States */
.job-card:hover {
    transform: translateY(-4px);
}

.job-card:hover::after {
    box-shadow: 0 12px 30px rgba(246, 103, 72, 0.08);
}

.job-card:hover .job-card-glow {
    opacity: 1;
    animation: spin-glow 3s linear infinite;
}

/* Mobile & First-Render Scroll Reveal (Flash) */
.job-card.flash-glow .job-card-glow {
    animation: spin-glow-once 2.5s ease-out forwards;
}

@keyframes spin-glow {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes spin-glow-once {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
        opacity: 0;
    }
}

.job-card.is-hidden {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    position: absolute;
}

.job-header-updated {
    position: relative;
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    z-index: 10;
}

.job-badge {
    padding: 0.3rem 1rem;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-radius: 100px;
    background: #FFF9E6;
    color: #F8B036;
    border: 1px solid #FFE6A3;
}

.job-badge.urgent {
    background: #FFEEEB;
    color: #F66748;
    border: 1px solid #FFD8D0;
}

.job-title-updated {
    font-size: 1.25rem;
    color: #333;
    margin-top: 0;
    margin-bottom: 0.2rem;
    font-weight: 800;
    padding-right: 0;
    line-height: 1.4;
}

.job-id-updated {
    color: var(--clr-text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.job-tag-styled {
    background: rgba(246, 103, 72, 0.06);
    color: var(--clr-primary);
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(246, 103, 72, 0.1);
    white-space: nowrap;
}

.job-details-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: var(--clr-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.detail-icon {
    flex-shrink: 0;
    color: var(--clr-primary);
    margin-top: 0.1rem;
    display: flex;
    opacity: 0.9;
}

.recommended-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.job-action {
    width: 100%;
    margin-top: auto;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.9rem;
    background: var(--clr-primary);
    color: #fff;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 10px rgba(246, 103, 72, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.job-action:hover {
    background: #e55638;
}

.job-card:hover .job-action {
    background: #E5573B;
    /* Slightly darker orange on hover */
    box-shadow: 0 6px 20px rgba(246, 103, 72, 0.4);
    transform: translateY(-2px);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 240, 255, 0.1);
    border-top-color: var(--clr-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.job-card:hover .job-action {
    background: var(--clr-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(246, 103, 72, 0.3);
}

.mt-4 {
    margin-top: 2rem;
}

.text-center {
    text-align: center;
}

/* =========================================
   REGISTRATION FORM
========================================= */
.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 3rem;
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.premium-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-control {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    padding: 1.25rem 1rem 0.75rem;
    font-size: 1rem;
    color: var(--clr-text);
    font-family: var(--font-body);
    transition: var(--transition-fast);
    outline: none;
}

.form-control:focus {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 4px var(--clr-primary-glow);
    background: #FFFFFF;
}

.form-label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--clr-text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: var(--transition-fast);
}

/* Floating Label Magic */
.form-control:focus~.form-label,
.form-control:not(:placeholder-shown)~.form-label {
    top: 0.5rem;
    transform: translateY(0);
    font-size: 0.75rem;
    color: var(--clr-primary);
}

/* Select Styling */
.select-control {
    appearance: none;
    cursor: pointer;
}

.select-control:focus~.select-label,
.select-control:valid~.select-label {
    top: 0.5rem;
    transform: translateY(0);
    font-size: 0.75rem;
    color: var(--clr-primary);
}

.select-arrow {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--clr-text-muted);
}

/* Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 2rem;
    cursor: pointer;
    user-select: none;
    font-size: 0.875rem;
    color: var(--clr-text-muted);
    margin-top: 1rem;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #FFFFFF;
    border: 1px solid var(--clr-border);
    border-radius: 6px;
    transition: var(--transition-fast);
}

.checkbox-container:hover input~.checkmark {
    border-color: var(--clr-primary);
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--clr-primary);
    border-color: var(--clr-primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 4px;
    height: 10px;
    border: solid #FFFFFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.text-link {
    color: var(--clr-primary);
}

.text-link:hover {
    text-decoration: underline;
}

.submit-btn {
    margin-top: 1.5rem;
    width: 100%;
}

.submit-btn svg {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.submit-btn:hover svg {
    transform: translateX(5px);
}

/* =========================================
   FOOTER
========================================= */
.site-footer {
    border-top: 1px solid var(--clr-border);
    background: var(--clr-bg);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo-text {
    font-size: 1.75rem;
}

.footer-desc {
    color: var(--clr-text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-col h4 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--clr-text);
}

.link-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.link-col a {
    color: var(--clr-text-muted);
    font-size: 0.875rem;
}

.link-col a:hover {
    color: var(--clr-primary);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--clr-border);
    padding-top: 2rem;
    color: rgba(156, 163, 175, 0.5);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .form-wrapper {
        padding: 3rem 1.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 2rem;
    }
}

/* =========================================
   ANIMATIONS & EFFECTS (Scroll Reveal)
========================================= */
.view-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.view-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children in view-section if needed */
.is-visible .feature-card:nth-child(1) {
    transition-delay: 0.1s;
}

.is-visible .feature-card:nth-child(2) {
    transition-delay: 0.2s;
}

.is-visible .feature-card:nth-child(3) {
    transition-delay: 0.3s;
}

/* =========================================
   STICKY BOTTOM CTA (JOB DETAIL) - FLOATING PILL
========================================= */
.sticky-cta {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: 90%;
    max-width: 700px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Soft border instead of border-top */
    border-radius: 100px;
    /* Make it a pill shape */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    /* Premium shadow */
    z-index: 900;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    /* Padding adjusted for the pill */
}

.sticky-cta.hidden-cta {
    transform: translateX(-50%) translateY(150px);
    opacity: 0;
    pointer-events: none;
}

.sticky-cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* keep side by side on desktop */
    gap: 1rem;
    width: 100%;
}

.sticky-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    flex-grow: 1;
    overflow: hidden;
    /* Ensure text doesn't overflow bounds */
}

.sticky-title {
    font-weight: 800;
    font-size: 1rem;
    color: var(--clr-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-salary {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
    font-weight: 600;
}

@media (max-width: 768px) {
    .sticky-cta {
        bottom: 1.5rem;
        padding: 0.5rem 0.5rem 0.5rem 1rem;
        /* tighter padding on mobile */
    }

    .sticky-title {
        font-size: 0.85rem;
    }

    .sticky-salary {
        font-size: 0.75rem;
    }

    .sticky-cta-container {
        flex-direction: row;
        /* Force side-by-side even on mobile for a slim pill */
        align-items: center;
    }

    #sticky-apply-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
        flex-shrink: 0;
        /* Prevent button from squeezing too much */
    }
}

/* =========================================
   ULTIMATE CTA BUTTON (Conversion Focused)
========================================= */
#sticky-apply-btn {
    font-size: 1rem;
    padding: 0.75rem 2rem;
    border-radius: 100px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--clr-primary) 0%, #FF512F 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(246, 103, 72, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

#sticky-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(246, 103, 72, 0.4);
    background: linear-gradient(135deg, #FF512F 0%, var(--clr-primary) 100%);
}

#sticky-apply-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(246, 103, 72, 0.3);
}

/* Shiny Sweep Animation */
#sticky-apply-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg);
    animation: cta-shine 3.5s infinite cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes cta-shine {
    0% {
        transform: translateX(-150%) rotate(45deg);
    }

    20% {
        transform: translateX(150%) rotate(45deg);
    }

    100% {
        transform: translateX(150%) rotate(45deg);
    }
}

/* =========================================
   JOB DETAIL PAGE RESPONSIVENESS
========================================= */
.job-detail-panel {
    padding: 3rem;
    margin-bottom: 3rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.job-header {
    margin-bottom: 2rem;
}

.job-header-flex {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.job-detail-logo {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-badge-wrapper {
    margin-bottom: 0.5rem;
}

.job-title-main {
    font-size: 2rem;
    font-weight: 800;
    color: #333;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    word-break: break-word;
    /* Prevents long titles from overflowing */
}

.job-company {
    font-size: 1.125rem;
    color: #666;
}

/* Job Detail Segments */
.job-detail-segment {
    margin-bottom: 3rem;
    padding: 2rem;
    border-radius: 12px;
}

.review-segment {
    background: #FAF9F8;
    border-left: 5px solid var(--clr-primary);
}

.recommend-segment {
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    margin-bottom: 2rem;
}

.require-segment {
    background: rgba(246, 103, 72, 0.08);
    border: 2px solid rgba(246, 103, 72, 0.3);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(246, 103, 72, 0.05);
}

.segment-title-review {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-block {
    margin-bottom: 1.5rem;
}

.review-block:last-child {
    margin-bottom: 0;
}

.review-block-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.75rem;
}

.review-block-text {
    color: #555;
    line-height: 1.8;
    white-space: pre-wrap;
    font-size: 1rem;
}

.segment-title-recommend {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recommend-text {
    color: #444;
    line-height: 1.8;
    white-space: pre-wrap;
    font-size: 1rem;
}

.segment-title-require {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--clr-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.require-text {
    color: #333;
    font-weight: 600;
    line-height: 1.8;
    white-space: pre-wrap;
    font-size: 1.05rem;
}

.segment-title-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--clr-border);
}

/* Job Detail Table Rows */
.job-detail-table {
    display: flex;
    flex-direction: column;
}

.job-detail-row {
    display: flex;
    flex-direction: row;
    /* Desktop: side by side */
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--clr-border);
}

.job-detail-row:last-child {
    border-bottom: none;
}

.job-detail-label {
    font-weight: 700;
    color: #333;
    width: 100%;
    max-width: 200px;
    flex-shrink: 0;
    margin-bottom: 0;
}

.job-detail-content {
    color: #444;
    line-height: 1.8;
    width: 100%;
    white-space: pre-wrap;
}

.apply-btn-container {
    margin-bottom: 2rem;
}

.apply-btn-inner {
    font-size: 1.125rem;
    padding: 1rem 3rem;
}

/* Mobile Overrides for Job Detail */
@media (max-width: 768px) {
    .job-detail-panel {
        padding: 1.25rem 1rem;
        margin-bottom: 2rem;
        border-radius: 12px;
    }

    .job-header {
        margin-bottom: 1.5rem;
    }

    .job-header-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .job-header-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .job-detail-logo {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .job-title-main {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    .job-company {
        font-size: 0.95rem;
    }

    .job-tags {
        margin-bottom: 2rem !important;
        justify-content: center !important;
        /* Center tags on mobile */
    }

    .job-detail-segment {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .segment-title-review,
    .segment-title-main {
        font-size: 1.2rem;
    }

    .segment-title-recommend,
    .segment-title-require {
        font-size: 1.1rem;
    }

    .review-block-title,
    .require-text,
    .review-block-text,
    .recommend-text {
        font-size: 0.95rem;
    }

    .job-detail-row {
        flex-direction: column;
        padding: 1rem 0;
    }

    .job-detail-label {
        font-size: 1.05rem;
        max-width: 100%;
        margin-bottom: 0.5rem;
        color: var(--clr-primary);
        /* Highlight labels on mobile */
    }

    .job-detail-content {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .apply-btn-inner {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
}

/* =========================================
   COOKIE CONSENT BANNER (PREMIUM GLASS)
========================================= */
.cookie-consent {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: 90%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(246, 103, 72, 0.2);
    border-radius: 20px;
    padding: 1.5rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-consent.show {
    transform: translateX(-50%) translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cookie-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.cookie-text {
    font-size: 0.9rem;
    color: var(--clr-text);
    line-height: 1.5;
}

.cookie-text a {
    color: var(--clr-primary);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: var(--clr-primary);
    color: #fff;
    padding: 0.75rem 1.75rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-cookie-accept:hover {
    background: #e5563a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(246, 103, 72, 0.3);
}

@media (max-width: 768px) {
    .cookie-consent {
        bottom: 1rem;
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.25rem;
        text-align: center;
    }

    .cookie-content {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cookie-actions {
        width: 100%;
    }

    .btn-cookie-accept {
        width: 100%;
    }
}