/* ============================================
   ULTRA PREMIUM CAREER PORTAL
   Font: Manrope | Minimal Red Accents | Exceptional Design
   ============================================ */

:root {
    /* Brand Colors - Minimal Red Usage */
    --primary-red: #bf162e;
    --accent-red: #f91520;

    /* Neutrals - Dominant Palette */
    --black: #0a0a0a;
    --dark-gray: #1a1a1a;
    --medium-gray: #4a4a4a;
    --light-gray: #a0a0a0;
    --border-gray: #e5e5e5;
    --bg-gray: #f8f9fa;
    --white: #ffffff;

    /* Semantic Colors */
    --success: #10b981;
    --info: #3b82f6;
    --warning: #f59e0b;

    /* Shadows - Refined */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.16);

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.career-body {
    font-family: "Aptos", -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    color: var(--dark-gray);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

.career-main {
    min-height: calc(100vh - 70px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Typography Scale */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
    margin-bottom: var(--space-md);
}

h1 {
    font-size: 3rem;
    letter-spacing: -0.02em;
}
h2 {
    font-size: 2.25rem;
    letter-spacing: -0.015em;
}
h3 {
    font-size: 1.75rem;
    letter-spacing: -0.01em;
}
h4 {
    font-size: 1.375rem;
}
h5 {
    font-size: 1.125rem;
}
h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--space-md);
    color: var(--medium-gray);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Selection */
::selection {
    background-color: var(--black);
    color: var(--white);
}

::-moz-selection {
    background-color: var(--black);
    color: var(--white);
}

/* Focus States */
*:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: 2px;
}

/* ============================================
   NAVIGATION - ULTRA CLEAN
   ============================================ */
.career-nav {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

.career-nav.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav-logo {
    height: 36px;
    width: auto;
}

.nav-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--medium-gray);
    position: relative;
    padding: var(--space-sm) 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--black);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--black);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: var(--black);
    transition: all var(--transition-base);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    padding: var(--space-3xl) var(--space-xl);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-menu-close {
    position: absolute;
    top: var(--space-xl);
    right: var(--space-xl);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--black);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--medium-gray);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--black);
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.hero-section {
    position: relative;
    padding: var(--space-3xl) 0;
    background-color: var(--bg-gray);
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-label {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--medium-gray);
    margin-bottom: var(--space-lg);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--black);
    margin-bottom: var(--space-lg);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--medium-gray);
    margin-bottom: var(--space-xl);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Search Bar in Hero */
.hero-search {
    display: flex;
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-lg);
    padding: var(--space-xs);
    max-width: 600px;
    box-shadow: var(--shadow-md);
    margin-top: var(--space-xl);
}

.hero-search-input {
    flex: 1;
    border: none;
    padding: var(--space-md) var(--space-lg);
    font-size: 1rem;
    font-family: "Manrope", sans-serif;
}

.hero-search-input:focus {
    outline: none;
}

.hero-search-btn {
    background-color: var(--black);
    color: var(--white);
    border: none;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.hero-search-btn:hover {
    background-color: var(--dark-gray);
    transform: translateY(-1px);
}

/* ============================================
   BUTTONS - REFINED SYSTEM
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: "Manrope", sans-serif;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--black);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-gray);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--black);
    border: 1px solid var(--border-gray);
}

.btn-secondary:hover {
    background-color: var(--bg-gray);
    border-color: var(--medium-gray);
}

.btn-accent {
    background-color: var(--primary-red);
    color: var(--white);
}

.btn-accent:hover {
    background-color: var(--accent-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

/* ============================================
   JOB LISTINGS - EXCEPTIONAL DESIGN
   ============================================ */
.jobs-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

/* Filter Sidebar */
.filter-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.filter-group {
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.filter-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--black);
    margin-bottom: var(--space-md);
}

.filter-option {
    display: flex;
    align-items: center;
    padding: var(--space-sm) 0;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-option:hover {
    color: var(--black);
}

.filter-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-gray);
    border-radius: var(--radius-sm);
    margin-right: var(--space-sm);
    transition: all var(--transition-fast);
}

.filter-option:hover .filter-checkbox {
    border-color: var(--black);
}

.filter-checkbox.checked {
    background-color: var(--black);
    border-color: var(--black);
}

.filter-label {
    font-size: 0.9375rem;
    color: var(--medium-gray);
    flex: 1;
}

.filter-count {
    font-size: 0.8125rem;
    color: var(--light-gray);
}

/* Job Cards */
.job-cards-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.job-card {
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.job-card:hover {
    border-color: var(--primary-red);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.job-card:hover::before {
    transform: scaleX(1);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
}

.job-card-main {
    flex: 1;
}

.job-card-badge {
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.badge-fulltime {
    background-color: #ecfdf5;
    color: #065f46;
}

.badge-parttime {
    background-color: #eff6ff;
    color: #1e40af;
}

.badge-internship {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-freelance {
    background-color: #f3e8ff;
    color: #6b21a8;
}

.job-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: var(--space-xs);
    line-height: 1.3;
}

.job-card-company {
    font-size: 0.9375rem;
    color: var(--medium-gray);
    margin-bottom: var(--space-md);
}

.job-card-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--medium-gray);
    margin-bottom: var(--space-lg);
}

.job-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-gray);
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--medium-gray);
}

.job-meta-item i {
    font-size: 0.875rem;
    color: var(--light-gray);
}

/* ============================================
   JOB DETAILS - PREMIUM LAYOUT
   ============================================ */
.job-detail-hero {
    background-color: var(--bg-gray);
    padding: var(--space-2xl) 0;
    border-bottom: 1px solid var(--border-gray);
    position: relative;
}

.job-detail-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    opacity: 0.025;
    pointer-events: none;
}

.job-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-2xl);
    position: relative;
    z-index: 1;
}

.job-detail-info {
    flex: 1;
}

.job-detail-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.job-detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--black);
    margin-bottom: var(--space-md);
}

.job-detail-company {
    font-size: 1.125rem;
    color: var(--medium-gray);
    margin-bottom: var(--space-lg);
}

.job-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xl);
}

.job-detail-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9375rem;
    color: var(--medium-gray);
}

.job-detail-meta-item i {
    font-size: 1rem;
    color: var(--light-gray);
}

.job-detail-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* Job Content Layout */
.job-content-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--space-3xl);
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.job-content-main {
    min-width: 0;
}

.job-content-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

/* Content Sections */
.content-section {
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    margin-bottom: var(--space-xl);
}

.section-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-gray);
}

.section-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
}

.section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--black);
    margin: 0;
}

.section-content {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--medium-gray);
}

.section-content h3 {
    font-size: 1.125rem;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.section-content ul,
.section-content ol {
    margin-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.section-content li {
    margin-bottom: var(--space-sm);
}

/* Overview Sidebar */
.overview-card {
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.overview-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--black);
    margin-bottom: var(--space-lg);
}

.overview-item {
    margin-bottom: var(--space-lg);
}

.overview-item:last-child {
    margin-bottom: 0;
}

.overview-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--light-gray);
    margin-bottom: var(--space-xs);
}

.overview-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--black);
}

/* Sticky Apply Card */
.sticky-apply-card {
    background-color: var(--bg-gray);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
}

.sticky-apply-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: var(--space-md);
}

.sticky-apply-text {
    font-size: 0.875rem;
    color: var(--medium-gray);
    margin-bottom: var(--space-lg);
}

/* ============================================
   APPLICATION MODAL - BEAUTIFUL
   ============================================ */
.modal-content {
    border: none;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.modal-header {
    background-color: var(--black);
    color: var(--white);
    padding: var(--space-xl) var(--space-2xl);
    border: none;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.modal-body {
    padding: var(--space-2xl);
    background-color: var(--white);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: var(--space-sm);
    display: block;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-family: "Manrope", sans-serif;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.form-control:focus {
    outline: none;
    border-color: var(--black);
    box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.input-group {
    position: relative;
}

.input-group-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-gray);
}

.input-group .form-control {
    padding-left: 2.75rem;
}

/* ============================================
   FOOTER - RICH & INFORMATIVE
   ============================================ */
.career-footer {
    background-color: var(--black);
    color: var(--white);
    padding-top: var(--space-3xl);
    margin-top: var(--space-3xl);
}

.footer-main {
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 40px;
    margin-bottom: var(--space-lg);
    filter: brightness(0) invert(1);
}

.footer-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-lg);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--white);
    transition: all var(--transition-base);
}

.social-link:hover {
    background-color: var(--white);
    color: var(--black);
    transform: translateY(-2px);
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: var(--space-xl) 0;
    text-align: center;
}

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 48px;
    height: 48px;
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   ANIMATIONS & UTILITIES
   ============================================ */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        position: static;
    }

    .job-content-layout {
        grid-template-columns: 1fr;
    }

    .job-content-sidebar {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .application-layout {
        grid-template-columns: 1fr;
    }

    .application-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .job-detail-title {
        font-size: 1.75rem;
    }

    .job-detail-header {
        flex-direction: column;
    }

    .job-card {
        padding: var(--space-lg);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.25rem;
    }

    .form-col-6 {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .hero-section {
        padding: var(--space-xl) 0;
    }

    .content-section {
        padding: var(--space-lg);
    }
}

/* ============================================
   APPLICATION FORM PAGE
   ============================================ */
.application-header {
    background-color: var(--bg-gray);
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--border-gray);
}

.application-header-content {
    max-width: 800px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--medium-gray);
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: var(--space-lg);
    transition: all var(--transition-base);
}

.back-link:hover {
    color: var(--black);
    transform: translateX(-3px);
}

.application-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: var(--space-md);
}

.application-job-info {
    padding: var(--space-lg);
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
}

.application-job-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.application-company {
    font-size: 0.9375rem;
    color: var(--medium-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.application-container {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-3xl);
}

.application-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--space-3xl);
}

.application-main {
    min-width: 0;
}

.application-form-card {
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
}

/* Form Sections */
.form-section {
    margin-bottom: var(--space-3xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--border-gray);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.form-section-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    flex-shrink: 0;
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.25rem;
}

.form-section-description {
    font-size: 0.9375rem;
    color: var(--medium-gray);
    margin: 0;
}

/* Form Layout */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.form-col-6 {
    flex: 1;
    min-width: min(280px, 100%);
}
.form-col-12 {
    flex: 1 1 100%;
}

.form-group {
    margin-bottom: 0;
}

.required {
    color: var(--primary-red);
}

/* Character Counter */
.character-count {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--light-gray);
    text-align: right;
}

/* File Upload */
.file-upload-area {
    position: relative;
    border: 2px dashed var(--border-gray);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
}

.file-upload-area.drag-over {
    border-color: var(--black);
    background-color: var(--bg-gray);
}

.file-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    cursor: pointer;
}

.file-upload-icon {
    font-size: 3rem;
    color: var(--light-gray);
}

.file-upload-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    display: block;
}

.file-upload-hint {
    font-size: 0.875rem;
    color: var(--medium-gray);
    display: block;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background-color: var(--bg-gray);
    border-radius: var(--radius-md);
}

.file-preview-icon {
    font-size: 2rem;
    color: var(--medium-gray);
}

.file-preview-info {
    flex: 1;
    text-align: left;
}

.file-preview-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.25rem;
}

.file-preview-size {
    font-size: 0.8125rem;
    color: var(--medium-gray);
}

.file-preview-remove {
    width: 32px;
    height: 32px;
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.file-preview-remove:hover {
    background-color: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

/* Form Submit */
.form-submit-section {
    margin-top: var(--space-2xl);
    text-align: center;
}

.form-submit-note {
    margin-top: var(--space-md);
    font-size: 0.875rem;
    color: var(--medium-gray);
}

.form-submit-note a {
    color: var(--black);
    text-decoration: underline;
}

/* Form Alerts */
.form-result {
    margin-bottom: var(--space-xl);
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.alert i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* Application Sidebar */
.application-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.application-sidebar-card {
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.sidebar-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: var(--space-lg);
}

.sidebar-job-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.sidebar-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-info-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--light-gray);
}

.sidebar-info-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--black);
}

.sidebar-tips-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.sidebar-tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--medium-gray);
}

.sidebar-tips-list i {
    color: var(--success);
    margin-top: 2px;
    flex-shrink: 0;
}

/* ============================================
   SUCCESS PAGE
   ============================================ */
.success-page {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    padding: var(--space-3xl) 0;
    background-color: var(--bg-gray);
}

.success-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.success-icon {
    margin-bottom: var(--space-2xl);
}

.success-icon-circle {
    width: 100px;
    height: 100px;
    background-color: var(--success);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: successPulse 0.6s ease-out;
}

.success-icon-circle i {
    font-size: 3rem;
    color: var(--white);
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: var(--space-md);
}

.success-subtitle {
    font-size: 1.125rem;
    color: var(--medium-gray);
    margin-bottom: var(--space-3xl);
}

.success-card {
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    text-align: left;
}

.success-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: var(--space-xl);
    text-align: center;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.timeline-item {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: var(--space-lg);
    position: relative;
}

.timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 50px;
    width: 2px;
    height: calc(100% + var(--space-xl));
    background-color: var(--border-gray);
}

.timeline-marker {
    width: 50px;
    height: 50px;
    background-color: var(--bg-gray);
    border: 2px solid var(--border-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.timeline-item:first-child .timeline-marker {
    background-color: var(--success);
    border-color: var(--success);
    color: var(--white);
}

.timeline-marker i {
    font-size: 1.25rem;
}

.timeline-content {
    padding-bottom: var(--space-md);
}

.timeline-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.timeline-description {
    font-size: 0.9375rem;
    color: var(--medium-gray);
    margin-bottom: 0.75rem;
}

.timeline-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-status.complete {
    background-color: #ecfdf5;
    color: #065f46;
}

.timeline-status.pending {
    background-color: #fef3c7;
    color: #92400e;
}

.timeline-status.upcoming {
    background-color: #eff6ff;
    color: #1e40af;
}

/* Info Grid */
.success-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.success-info-card {
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
}

.success-info-icon {
    width: 60px;
    height: 60px;
    background-color: var(--bg-gray);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.success-info-icon i {
    font-size: 1.5rem;
    color: var(--medium-gray);
}

.success-info-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.success-info-text {
    font-size: 0.875rem;
    color: var(--medium-gray);
    margin: 0;
}

/* Success Actions */
.success-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-2xl);
}

/* Success Footer */
.success-footer {
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--border-gray);
}

.success-footer-text {
    font-size: 0.9375rem;
    color: var(--medium-gray);
    margin-bottom: var(--space-md);
}

.success-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    font-size: 0.875rem;
}

.success-footer-links a {
    color: var(--black);
    font-weight: 500;
    transition: color var(--transition-base);
}

.success-footer-links a:hover {
    color: var(--primary-red);
}

.success-footer-links span {
    color: var(--light-gray);
}

.hero-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    opacity: 0.05;
    pointer-events: none;
    overflow: hidden;
}

.hero-pattern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Multiple pattern layers */
.pattern-layer-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
}

.pattern-layer-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.02;
    transform: rotate(45deg);
}

.hero-graphic {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 550px;
    pointer-events: none;
    z-index: 1;
    animation: slideInRight 1.2s ease-out; /* Smooth entrance */
}

.hero-graphic img {
    width: 100%;
    height: auto;
    filter: none !important; /* Keep RED color */
}

/* Slide in from right animation */
@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(100px);
    }
    100% {
        opacity: 0.8; /* Ends at 80% brightness - BRIGHT! */
        transform: translateY(-50%) translateX(0);
    }
}

/* ========================================
   OPTION 3: Floating Shapes
   ======================================== */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    opacity: 0.08;
    filter: blur(1px);
}

.shape-1 {
    top: 15%;
    left: 8%;
    width: 180px;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    top: 65%;
    right: 12%;
    width: 140px;
    animation: float 8s ease-in-out infinite reverse;
}

.shape-3 {
    bottom: 20%;
    left: 20%;
    width: 100px;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-25px) rotate(5deg);
    }
}

/* ========================================
   OPTION 4: Background Image Hero
   ======================================== */
.hero-with-bg {
    background-image: linear-gradient(
            rgba(20, 20, 20, 0.85),
            rgba(20, 20, 20, 0.85)
        ),
        url("/images/backgrounds/hero-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* ========================================
   JOB DETAIL HERO PATTERNS
   ======================================== */
.job-detail-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    opacity: 0.04;
    pointer-events: none;
}

.job-detail-pattern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Corner decorations for job detail */
.job-detail-hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background-image: url("/images/graphics/corner-shape.svg");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.06;
    pointer-events: none;
}

/* ========================================
   APPLICATION PAGE PATTERNS
   ======================================== */
.application-header {
    position: relative;
    overflow: hidden;
}

.application-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("/images/patterns/subtle-dots.svg");
    background-size: 300px;
    background-repeat: repeat;
    opacity: 0.03;
    pointer-events: none;
}

/* Application form decorative element */
.application-main {
    position: relative;
}

.application-main::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-image: url("/images/graphics/form-decoration.svg");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.05;
    pointer-events: none;
    z-index: -1;
}

/* ========================================
   SUCCESS PAGE PATTERNS
   ======================================== */
.success-page {
    position: relative;
}

.success-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("/images/patterns/celebration-confetti.svg");
    background-size: 400px;
    background-repeat: repeat;
    opacity: 0.04;
    pointer-events: none;
}

/* ========================================
   FILTER SIDEBAR DECORATION
   ======================================== */
.filter-sidebar {
    position: relative;
}

.filter-sidebar::before {
    content: "";
    position: absolute;
    top: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background-image: url("/images/graphics/filter-icon.svg");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.04;
    pointer-events: none;
}

/* ========================================
   JOB CARD CORNER ACCENT
   ======================================== */
.job-card {
    position: relative;
    overflow: hidden;
}

.job-card::after {
    content: "";
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background-image: url("/images/graphics/fluid_red.svg");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.03;
    transition: all var(--transition-base);
}

.job-card:hover::after {
    opacity: 0.08;
    transform: translate(-5px, -5px);
}

/* ========================================
   FOOTER BACKGROUND PATTERN
   ======================================== */
.career-footer {
    position: relative;
}

.career-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("/images/patterns/pattern_red.svg");
    background-size: 600px;
    background-repeat: repeat;
    opacity: 0.02;
    pointer-events: none;
}

/* ========================================
   BRANDED SECTION DIVIDERS
   ======================================== */
.section-divider {
    width: 100%;
    height: 60px;
    background-image: url("/images/graphics/section-divider.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin: 3rem 0;
    opacity: 0.1;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 1024px) {
    .hero-graphic {
        width: 40%;
        opacity: 0.08;
    }

    .hero-pattern {
        width: 60%;
    }
}

@media (max-width: 768px) {
    .hero-graphic {
        display: none;
    }

    .hero-pattern {
        width: 100%;
        opacity: 0.03;
    }

    .hero-shapes {
        display: none;
    }

    .floating-shape {
        display: none;
    }

    .job-detail-pattern {
        width: 100%;
        opacity: 0.02;
    }
}

/* ========================================
   ALTERNATIVE: Full Background Image
   ======================================== */
/* Use this class on hero-section for full background */
.hero-with-image {
    background-image: linear-gradient(
            135deg,
            rgba(191, 22, 46, 0.9) 0%,
            rgba(20, 20, 20, 0.95) 100%
        ),
        url("/images/backgrounds/office-team.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* /* ========================================
   BRAND COLOR OVERLAY OPTIONS
   ======================================== */
.red-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(191, 22, 46, 0.1) 0%,
        transparent 100%
    );
    pointer-events: none;
}

.black-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(20, 20, 20, 0.3) 0%,
        transparent 100%
    );
    pointer-events: none;
}
*/

/* ========================================
   PATTERN ANIMATION OPTIONS
   ======================================== */
.animated-pattern {
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Pulse effect for shapes */
.pulse-shape {
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 0.08;
        transform: scale(1);
    }
    50% {
        opacity: 0.12;
        transform: scale(1.05);
    }
}
/* ============================================
   APPLICATION PAGE - MOBILE OVERHAUL
   ============================================ */
@media (max-width: 768px) {
    .application-layout {
        display: flex;
        flex-direction: column;
        gap: var(--space-lg);
    }

    /* Keep sidebar BELOW the form on mobile */
    .application-sidebar {
        position: static;
        order: 1;
    }

    .application-main {
        order: 0;
    }

    .application-form-card {
        padding: var(--space-lg);
    }

    .application-container {
        padding-top: var(--space-lg);
        padding-bottom: var(--space-xl);
    }

    .form-col-6 {
        min-width: 100% !important;
        flex: 1 1 100% !important;
    }

    .form-row {
        gap: var(--space-md);
    }

    .form-section {
        margin-bottom: var(--space-xl);
        padding-bottom: var(--space-lg);
    }

    .form-section-header {
        gap: var(--space-md);
    }

    .form-section-number {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }

    .form-submit-section .btn {
        width: 100%;
    }

    /* Collapse sidebar cards into a compact horizontal summary */
    .application-sidebar-card {
        padding: var(--space-md);
    }

    .sidebar-job-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    /* Hide tips and help cards on mobile to save space */
    .application-sidebar-card:nth-child(2),
    .application-sidebar-card:nth-child(3) {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .application-header {
        padding: var(--space-md) 0;
    }

    .application-title {
        font-size: 1.2rem;
    }

    .application-job-title {
        font-size: 1rem;
    }

    .application-job-info {
        padding: var(--space-md);
    }

    .application-form-card {
        padding: var(--space-md);
        border-radius: var(--radius-md);
    }

    .form-control {
        font-size: 16px !important;
        padding: 0.625rem 0.75rem;
    }

    .form-section-header {
        flex-direction: row;
        align-items: center;
        gap: var(--space-sm);
    }

    .form-section-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .form-section-title {
        font-size: 1rem;
        margin-bottom: 0;
    }

    .form-section-description {
        font-size: 0.8125rem;
    }

    .file-upload-area {
        padding: var(--space-md);
    }

    .file-upload-icon {
        font-size: 2rem;
    }

    .back-link {
        font-size: 0.8125rem;
        margin-bottom: var(--space-md);
    }

    .alert {
        flex-direction: column;
        padding: var(--space-md);
        font-size: 0.875rem;
    }
}
