/* ==========================================================================
   jobs.web.id — Premium Design System & Styles
   ========================================================================== */

:root {
    /* Color Palette (HSL Tailored) */
    --primary-hue: 243;
    --primary-sat: 75%;
    --primary-light: 59%; /* Indigo-like */
    
    --primary: hsl(var(--primary-hue), var(--primary-sat), var(--primary-light));
    --primary-hover: hsl(var(--primary-hue), var(--primary-sat), calc(var(--primary-light) - 8%));
    --primary-lightest: hsl(var(--primary-hue), var(--primary-sat), 96%);
    
    --secondary-hue: 188;
    --secondary-sat: 86%;
    --secondary-light: 53%; /* Cyan-like */
    --secondary: hsl(var(--secondary-hue), var(--secondary-sat), var(--secondary-light));
    
    --dark: #0f172a;
    --light: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-600: #475569;
    --slate-700: #334155;
    
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

body {
    font-family: var(--font-family);
    background-color: var(--light);
    color: var(--slate-700);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.02em;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--primary-hover);
}

/* ==========================================================================
   Components: Buttons & Navbar
   ========================================================================== */

.btn {
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

.navbar-main {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    transition: var(--transition);
}

.brand-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-right: 8px;
}

.brand-text {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--dark);
    letter-spacing: -0.03em;
}

.brand-dot {
    color: var(--primary);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--slate-600);
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--primary);
    background-color: var(--primary-lightest);
}

.nav-role-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    text-transform: uppercase;
}

.nav-role-badge.role-freelancer {
    background-color: #dbeafe;
    color: #1e40af;
}

.nav-role-badge.role-employer {
    background-color: #fae8ff;
    color: #86198f;
}

.nav-role-badge.role-admin {
    background-color: #fef3c7;
    color: #92400e;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    position: relative;
    padding: 3rem 0;
    background-color: #fff;
    overflow: hidden;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
}

.shape-1 {
    top: -10%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: rgba(79, 70, 229, 0.15);
}

.shape-2 {
    bottom: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(6, 182, 212, 0.12);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: var(--primary-lightest);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Region Chips (Ciayumajakuning) */
.region-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.region-chip {
    display: inline-flex;
    align-items: center;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.25);
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.region-chip:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
}

.hero-title {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

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

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--slate-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-hero {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-outline-hero {
    border: 2px solid var(--slate-200);
    padding: 0.875rem 1.75rem;
    color: var(--slate-700);
    font-weight: 600;
}
.btn-outline-hero:hover {
    background-color: var(--slate-100);
    border-color: var(--slate-300);
}

.stat-card {
    background: white;
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-200);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--slate-400);
    font-weight: 700;
}

.hero-illustration {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-illustration::before {
    content: '';
    position: absolute;
    width: 85%;
    height: 85%;
    background: linear-gradient(135deg, var(--primary) 0%, #06b6d4 100%);
    border-radius: 50% 50% 30% 70% / 50% 60% 40% 50%;
    filter: blur(50px);
    opacity: 0.25;
    z-index: 1;
    animation: blob-morph 10s ease-in-out infinite alternate;
}
.hero-img-premium {
    position: relative;
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.15), 0 10px 20px rgba(0, 0, 0, 0.05);
    animation: float-hero 6s ease-in-out infinite;
    border: 4px solid rgba(255, 255, 255, 0.9);
    z-index: 2;
}
@keyframes float-hero {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes blob-morph {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 45% 55% 50% 50% / 50% 60% 40% 50%;
    }
}


.floating-card {
    position: absolute;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    font-size: 0.875rem;
    animation: float 4s ease-in-out infinite;
    z-index: 10;
}

.card-1 {
    top: 20px;
    left: -20px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 40px;
    right: -20px;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==========================================================================
   Landing Sections & Cards
   ========================================================================== */

.section-label {
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.cat-card {
    display: flex;
    align-items: center;
    background: white;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: var(--primary-lightest);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 1rem;
}

.cat-name {
    font-weight: 600;
    color: var(--dark);
    flex-grow: 1;
}

.cat-arrow {
    opacity: 0;
    transform: translateX(-5px);
    transition: var(--transition);
    color: var(--primary);
}

.cat-card:hover .cat-arrow {
    opacity: 1;
    transform: translateX(0);
}

.project-card {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-200);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.project-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-pill {
    background-color: var(--slate-100);
    color: var(--slate-700);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

/* Category selection grid (post-project form) */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.6rem;
}
.category-option-wrap {
    display: contents;
}
.category-option-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    border: 2px solid var(--slate-200);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--slate-600);
    background: #fff;
    transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
    user-select: none;
    min-height: 72px;
}
.category-option-label:hover {
    border-color: var(--primary);
    background: #f0f4ff;
    color: var(--primary);
}
.btn-check:checked + .category-option-label {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.btn-check:checked + .category-option-label i {
    color: #fff;
}


.status-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
}

.badge-open      { background-color: #dcfce7; color: #166534; }
.badge-closed    { background-color: #fee2e2; color: #991b1b; }
.badge-cancelled { background-color: #f1f5f9; color: #475569; }
.badge-filled    { background-color: #dbeafe; color: #1e40af; }
.badge-pending   { background-color: #fef3c7; color: #92400e; }
.badge-accepted  { background-color: #d1fae5; color: #065f46; }
.badge-rejected  { background-color: #e2e8f0; color: #475569; }

/* Pulse dot for open/active status */
.badge-open::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #16a34a;
    margin-right: 5px;
    animation: pulse-dot 2s infinite;
    vertical-align: middle;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.3); }
}

.badge-freelance { background-color: #e0e7ff; color: #3730a3; }
.badge-fulltime  { background-color: #fae8ff; color: #86198f; }

.project-card-title {
    font-size: 1.15rem;
    margin: 1rem 0 0.5rem;
}

.project-card-desc {
    font-size: 0.875rem;
    color: var(--slate-600);
    line-height: 1.5;
    flex-grow: 1;
}

.project-card-footer {
    border-top: 1px solid var(--slate-100);
    padding-top: 1rem;
    margin-top: 1rem;
}

.project-budget {
    font-size: 1rem;
    color: var(--slate-700);
    font-weight: 700;
}

.meta-chip {
    background-color: var(--light);
    font-size: 0.75rem;
    color: var(--slate-600);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
}
.meta-chip-location {
    background-color: #fff1f2;
    color: #be123c;
    font-weight: 500;
}

/* ==========================================================================
   Forms & Auth Cards
   ========================================================================== */

.auth-section {
    padding: 4rem 0;
    background-color: var(--slate-100);
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
    border: 1px solid var(--slate-200);
}

.auth-logo {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.5rem;
}

.auth-title {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    color: var(--slate-400);
    font-size: 0.875rem;
}

.input-icon-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
}

.input-with-icon {
    padding-left: 2.5rem;
}

.btn-eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--slate-400);
    cursor: pointer;
}

.role-option {
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-check:checked + .role-option {
    border-color: var(--primary);
    background-color: var(--primary-lightest);
}

.password-strength {
    height: 4px;
    background-color: var(--slate-200);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: var(--transition);
}

/* ==========================================================================
   Content Cards
   ========================================================================== */

.content-card {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.content-card-header {
    background-color: white;
    border-bottom: 1px solid var(--slate-200);
    padding: 1.25rem 1.5rem;
}

.content-card-body {
    padding: 1.5rem;
}

.file-drop-zone {
    border: 2px dashed var(--slate-300);
    border-radius: var(--radius-md);
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    background-color: var(--light);
    transition: var(--transition);
}

.file-drop-zone:hover, .file-drop-zone.drag-over {
    border-color: var(--primary);
    background-color: var(--primary-lightest);
}

.file-input-hidden {
    display: none;
}

/* ==========================================================================
   Portfolio items
   ========================================================================== */

.portfolio-item-card {
    border: 1px solid var(--slate-200);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    background-color: var(--light);
}

.portfolio-item-title {
    font-weight: 600;
    color: var(--dark);
}

.portfolio-item-desc {
    font-size: 0.8rem;
    color: var(--slate-600);
    margin-top: 0.25rem;
}

.portfolio-file-link {
    font-size: 0.75rem;
    display: inline-block;
    margin-top: 0.5rem;
}

/* ==========================================================================
   How It Works & CTA
   ========================================================================== */

.how-card {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.how-badge {
    display: inline-block;
    background-color: var(--primary-lightest);
    color: var(--primary);
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

.how-badge-employer {
    background-color: #fae8ff;
    color: #a21caf;
}

.btn-gradient-employer {
    background: linear-gradient(135deg, #a21caf, #db2777);
    color: white;
}
.btn-gradient-employer:hover {
    color: white;
    box-shadow: 0 4px 12px rgba(219, 39, 119, 0.25);
    transform: translateY(-1px);
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-emp {
    background-color: #a21caf;
}

.section-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 5rem 0;
}

.cta-card {
    color: white;
}

.cta-title {
    color: white;
    font-size: 2.5rem;
}

.cta-btn-light {
    color: var(--primary);
    font-weight: 700;
}

/* ==========================================================================
   Admin Dashboard & Tables
   ========================================================================== */

.stat-card-admin {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.stat-card-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.stat-card-label {
    font-weight: 600;
    color: var(--slate-400);
    font-size: 0.875rem;
}

.stat-card-detail {
    font-size: 0.75rem;
    color: var(--slate-600);
    margin-top: 0.5rem;
}

.stat-card-admin.primary .stat-card-icon { background-color: var(--primary-lightest); color: var(--primary); }
.stat-card-admin.success .stat-card-icon { background-color: #d1fae5; color: #065f46; }
.stat-card-admin.warning .stat-card-icon { background-color: #fef3c7; color: #92400e; }
.stat-card-admin.info .stat-card-icon { background-color: #e0f2fe; color: #0369a1; }

.admin-table th {
    background-color: var(--slate-100);
    color: var(--slate-600);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
}

.admin-table td {
    padding: 1rem;
    vertical-align: middle;
}

.table-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.table-avatar.inactive {
    background-color: var(--slate-300);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background-color: var(--dark);
    color: var(--slate-400);
    border-top: 1px solid var(--slate-700);
}

.footer-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
}
.footer-brand:hover {
    color: white;
}

.footer-desc {
    line-height: 1.6;
    font-size: 0.875rem;
}

.footer-heading {
    color: white;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--slate-400);
    font-size: 0.875rem;
}
.footer-links a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.social-link:hover {
    background-color: var(--primary);
    color: white;
}

.footer-divider {
    border-top-color: var(--slate-700);
    margin: 2rem 0;
}

.footer-bottom a {
    color: var(--slate-400);
}
.footer-bottom a:hover {
    color: white;
}

/* ==========================================================================
   Employer dashboard and status tabs
   ========================================================================== */

.employer-project-card {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.applicant-stats {
    display: flex;
    gap: 1.5rem;
}

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

.stat-big {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
}

.applicant-stat.pending .stat-big { color: var(--primary); }
.applicant-stat.accepted .stat-big { color: #065f46; }

.status-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--slate-200);
    padding-bottom: 0.5rem;
}

.status-tab {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: var(--slate-600);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.status-tab:hover {
    background-color: var(--slate-100);
}

.status-tab.active {
    background-color: var(--primary-lightest);
    color: var(--primary);
}

.tab-count {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-size: 0.75rem;
}

/* ==========================================================================
   CV Card and Custom Tabs Styling
   ========================================================================== */

.custom-tabs {
    border-bottom: 2px solid var(--slate-200);
}

.custom-tabs .nav-link {
    border: none;
    color: var(--slate-600);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
}

.custom-tabs .nav-link:hover {
    color: var(--primary);
    border-bottom-color: var(--slate-300);
}

.custom-tabs .nav-link.active {
    color: var(--primary);
    background: none;
    border-bottom-color: var(--primary);
}

.cv-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.cv-avatar {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.cv-name {
    color: var(--dark);
    letter-spacing: -0.5px;
}

.portfolio-preview-card {
    transition: var(--transition);
    border-color: var(--slate-200) !important;
}

.portfolio-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary) !important;
}

.cv-card h5 {
    letter-spacing: -0.3px;
    color: var(--dark);
}

/* Promo Marquee Section */
.section-promo-marquee {
    background: transparent;
    padding: 1rem 0;
    overflow: hidden;
}

.promo-marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.015);
}

.promo-marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee-scroll 40s linear infinite;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--slate-700);
}

.promo-marquee-container:hover .promo-marquee-content {
    animation-play-state: paused;
}

.promo-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes marquee-scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Partner Ads Card Section */
.section-partner-ads {
    background: #fff;
}

.partner-ad-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.015);
}

.partner-ad-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.08);
}

.partner-ad-logo-wrap {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    padding: 0.5rem;
}

.partner-ad-logo {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.partner-ad-logo-placeholder {
    font-size: 2.2rem;
    color: var(--slate-400);
}

.partner-ad-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.partner-ad-company {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.partner-ad-title {
    font-size: 0.85rem;
    color: var(--slate-600);
    margin-bottom: 1rem;
    line-height: 1.4;
    flex-grow: 1;
}

.partner-ad-badge {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-lightest);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.2s;
}

.partner-ad-card:hover .partner-ad-badge {
    background: var(--primary);
    color: white;
}

/* ==========================================================================
   My Applications Page — Premium Redesign
   ========================================================================== */

/* Page Header */
.app-page-header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--slate-200);
}

.app-page-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.03em;
}

.app-page-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--primary-lightest);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ---- Summary Stat Cards ---- */
.app-stat-card {
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
}

.app-stat-card::after {
    content: '';
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    opacity: 0.12;
    background: currentColor;
}

.app-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.app-stat-icon {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
    opacity: 0.9;
}

.app-stat-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.app-stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.app-stat-total   { background: #f1f5f9;  color: #334155; border-color: #e2e8f0; }
.app-stat-pending { background: #fffbeb;  color: #92400e; border-color: #fde68a; }
.app-stat-accepted{ background: #f0fdf4;  color: #065f46; border-color: #bbf7d0; }
.app-stat-rejected{ background: #fef2f2;  color: #991b1b; border-color: #fecaca; }

/* ---- Application Item Card ---- */
.app-item-card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-200);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.app-item-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--slate-300);
}

/* Left accent bar — colored by status */
.app-item-accent {
    width: 5px;
    flex-shrink: 0;
    border-radius: 0;
}

.app-item-pending  .app-item-accent  { background: linear-gradient(180deg, #f59e0b, #fbbf24); }
.app-item-accepted .app-item-accent  { background: linear-gradient(180deg, #10b981, #34d399); }
.app-item-rejected .app-item-accent  { background: linear-gradient(180deg, #94a3b8, #cbd5e1); }

.app-item-inner {
    flex: 1;
    padding: 1.5rem;
    min-width: 0;
}

/* Top row: badges left, status badge right */
.app-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.app-item-badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    align-items: center;
}

.app-item-status-wrap {
    flex-shrink: 0;
}

/* Title */
.app-item-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

/* Meta row (employer, time) */
.app-item-meta-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.app-item-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--slate-600);
    background: var(--slate-100);
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    font-weight: 500;
}

/* Body: 2-col grid (cover letter + info) */
.app-item-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 768px) {
    .app-item-body {
        grid-template-columns: 1fr;
    }
}

/* Cover Letter */
.app-cover-letter-wrap {
    background: #f8fafc;
    border-left: 3px solid var(--slate-300);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1rem 1.1rem;
}

.app-cover-letter-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--slate-400);
    margin-bottom: 0.5rem;
}

.app-cover-letter-text {
    font-size: 0.88rem;
    color: var(--slate-700);
    line-height: 1.65;
    max-height: 140px;
    overflow-y: auto;
}

/* Info Box (right column) */
.app-info-box {
    background: #fafbff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.app-info-row {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.app-info-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--slate-400);
}

.app-info-value {
    font-size: 0.88rem;
    color: var(--dark);
    font-weight: 500;
}

/* Notification boxes */
.app-notify-box {
    margin-top: 0.25rem;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    line-height: 1.4;
}

.app-notify-accepted {
    background: #f0fdf4;
    color: #065f46;
    border: 1px solid #bbf7d0;
}

.app-notify-rejected {
    background: #f8fafc;
    color: #475569;
    border: 1px solid var(--slate-200);
}

.app-notify-pending {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Empty State */
.app-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 2rem;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 2px dashed var(--slate-200);
}

.app-empty-icon {
    font-size: 3.5rem;
    color: var(--slate-300);
    margin-bottom: 1.25rem;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--slate-100);
    border-radius: 50%;
}

.app-empty-state h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.app-empty-state p {
    color: var(--slate-600);
    max-width: 380px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* ==========================================================================
   News / Blog Section — Homepage & Detail Page
   ========================================================================== */

.section-news {
    background: #fff;
    border-bottom: 1px solid var(--slate-200);
}

/* News Slider Wrapper */
.news-slider-wrapper {
    position: relative;
    padding: 0 10px;
}

/* Track container */
.news-slider-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 2px;
    /* Hide scrollbars */
    scrollbar-width: none; /* Firefox */
}

.news-slider-container::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
}

/* Individual slider item */
.news-slider-item {
    flex: 0 0 100%; /* Mobile default */
    scroll-snap-align: start;
    display: flex;
}

@media (min-width: 768px) {
    .news-slider-item {
        flex: 0 0 calc((100% - 16px) / 2); /* 2 columns on tablet */
    }
}

@media (min-width: 992px) {
    .news-slider-item {
        flex: 0 0 calc((100% - 48px) / 4); /* 4 columns on desktop */
    }
}

/* Slider control buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-700);
    font-size: 1.1rem;
    z-index: 10;
    cursor: pointer;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-50%) scale(1.05);
}

.slider-btn.prev-btn {
    left: -20px;
}

.slider-btn.next-btn {
    right: -20px;
}

@media (max-width: 991px) {
    /* Hide navigation buttons on tablet/mobile where touch swipe is native */
    .slider-btn {
        display: none;
    }
    .news-slider-wrapper {
        padding: 0;
    }
}

/* Individual news list item (link card) */
.news-list-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    background: #fff;
    text-decoration: none !important;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.news-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.25s ease;
    border-radius: 3px 0 0 3px;
}

.news-list-item:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.07);
    transform: translateY(-2px);
}

.news-list-item:hover::before {
    transform: scaleY(1);
}

/* Featured first post */
.news-list-item--featured {
    background: var(--primary-lightest);
    border-color: hsl(var(--primary-hue), 60%, 85%);
}

.news-list-item--featured .news-list-title {
    color: hsl(var(--primary-hue), var(--primary-sat), 40%);
}

.news-list-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.news-cat-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--primary);
    background: var(--primary-lightest);
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
}

.news-date {
    font-size: 0.75rem;
    color: var(--slate-400);
    font-weight: 500;
}

.news-list-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
    margin: 0;
    letter-spacing: -0.01em;
    flex-grow: 1;
}

.news-read-more {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.news-list-item:hover .news-read-more {
    opacity: 1;
}

/* ==========================================================================
   Post Detail Page
   ========================================================================== */

.post-detail-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.post-detail-header {
    padding: 2.5rem 2.5rem 1.75rem;
    border-bottom: 1px solid var(--slate-100);
}

.post-detail-body {
    padding: 2rem 2.5rem;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--slate-700);
}

@media (max-width: 576px) {
    .post-detail-header,
    .post-detail-body { padding: 1.5rem; }
}

/* ==========================================================================
   Public Talent Profile Page Styles
   ========================================================================== */

.talent-avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-lightest);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
    border: 2px solid var(--primary-light);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.portfolio-item-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
    transition: var(--transition);
}

.portfolio-item-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.portfolio-preview-wrap {
    height: 180px;
    background: #f8fafc;
    border-bottom: 1px solid var(--slate-100);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

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

.portfolio-pdf-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #dc3545;
    font-size: 3rem;
}

.portfolio-pdf-placeholder span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--slate-600);
}

.portfolio-img-placeholder {
    font-size: 3rem;
    color: var(--slate-300);
}

.portfolio-info-body {
    padding: 1.1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.portfolio-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0;
}

.portfolio-desc {
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--slate-600);
    margin-bottom: 1.25rem;
    flex-grow: 1;
}







