/* ============================================================
   TitanRecruit — Premium Professional Theme
   Clean, Elegant, Ultra-Modern Light/Dark Hybrid Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

/* ---- CSS Variables ---- */
:root {
    /* Backgrounds & Surfaces */
    --bg:           #f8fafc;
    --bg-white:     #ffffff;
    --bg-soft:      #f0f6ff;
    --bg-muted:     #e2e8f0;

    /* Navy Brand Colors */
    --navy:         #0f172a;
    --navy-dark:    #020617;
    --navy-mid:     #1e293b;
    --navy-light:   rgba(15, 23, 42, 0.05);

    /* Sky & Royal Accents */
    --sky:          #0ea5e9;
    --sky-dark:     #0284c7;
    --sky-light:    #38bdf8;
    --sky-pale:     #f0f9ff;
    --royal:        #2563eb;
    --royal-hover:  #1d4ed8;

    /* Text Scales */
    --text-main:    #0f172a;
    --text-body:    #334155;
    --text-muted:   #64748b;
    --text-light:   #94a3b8;

    /* Borders */
    --border:       #e2e8f0;
    --border-mid:   #cbd5e1;
    --border-soft:  #f1f5f9;

    /* Utility */
    --radius:       16px;
    --radius-sm:    10px;
    --shadow-sm:    0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow:       0 8px 30px rgba(15, 23, 42, 0.06);
    --shadow-lg:    0 20px 50px rgba(15, 23, 42, 0.12);
    --shadow-sky:   0 8px 24px rgba(14, 165, 233, 0.2);
    --transition:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text-body);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    font-size: 1rem;
}

a {
    color: var(--royal);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--navy-dark); }

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

/* ---- Layout ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
main { flex: 1; }

/* ============================================================
   HEADER / NAV — Premium Dark Navy
   ============================================================ */
.site-header {
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.15rem;
}
.logo span {
    color: var(--sky-light);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}
.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}
.nav-links a:hover { color: #fff; }
.nav-links a.nav-active { color: var(--sky-light); }
.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--sky-light);
    transition: var(--transition);
}
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-links a:not(.btn).nav-active::after { width: 100%; }

/* ============================================================
   BUTTONS — Premium Gradients & Scales
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
}

/* Primary — Gradient Royal & Sky */
.btn-primary {
    background: linear-gradient(135deg, var(--royal), var(--sky));
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    filter: brightness(1.05);
}
.btn-primary:active { transform: translateY(0); }

/* Accent — Clean Outline Cyan */
.btn-accent {
    background: var(--bg-white);
    border: 1.5px solid var(--sky-dark);
    color: var(--sky-dark) !important;
}
.btn-accent:hover {
    background: var(--sky-pale);
    color: var(--sky-dark) !important;
    border-color: var(--sky-dark);
    transform: translateY(-2px);
}

/* Admin Portal — Glowing Dark Gradient */
.btn-admin-portal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.5rem 2.2rem;
    min-width: 200px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1.5px solid rgba(99, 102, 241, 0.5);
    color: #e2e8ff !important;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.0), inset 0 1px 0 rgba(255,255,255,0.08);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}
.btn-admin-portal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(168,85,247,0.1) 100%);
    opacity: 0;
    transition: opacity 0.28s ease;
}
.btn-admin-portal:hover {
    border-color: rgba(99, 102, 241, 0.8);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35), 0 0 0 1px rgba(99,102,241,0.2);
}
.btn-admin-portal:hover::before {
    opacity: 1;
}
.btn-admin-portal svg {
    opacity: 0.75;
    transition: opacity 0.2s;
    flex-shrink: 0;
    position: relative;
}
.btn-admin-portal:hover svg {
    opacity: 1;
}

/* Outline — Neutral */
.btn-outline {
    background: var(--bg-white);
    color: var(--text-body) !important;
    border: 1.5px solid var(--border-mid);
}
.btn-outline:hover {
    background: var(--bg-soft);
    color: var(--royal) !important;
    border-color: var(--royal);
    transform: translateY(-2px);
}

/* Navy solid */
.btn-navy {
    background: var(--navy);
    color: #fff !important;
}
.btn-navy:hover {
    background: var(--navy-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* White (CTA on dark sections) */
.btn-white {
    background: #fff;
    color: var(--royal) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.btn-white:hover {
    background: var(--sky-pale);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-sm  { padding: 0.5rem 1rem; font-size: 0.9rem; border-radius: 8px; }
.btn-lg  { padding: 1rem 2.25rem; font-size: 1.05rem; border-radius: 12px; }

/* ============================================================
   MESSAGES / NOTIFICATIONS
   ============================================================ */
.messages {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}
.messages li {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    border-left: 5px solid var(--royal);
    background: var(--sky-pale);
    color: var(--royal-hover);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.messages li.success { border-color: #10b981; background: #ecfdf4; color: #065f46; }
.messages li.error   { border-color: #ef4444; background: #fef2f2; color: #991b1b; }
.messages li.warning { border-color: #f59e0b; background: #fffbeb; color: #92400e; }

/* ============================================================
   HERO SECTION — Dark Blue Gradients
   ============================================================ */
.hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, #1e1b4b 50%, #0c0a0f 100%);
    position: relative;
    padding: 6.5rem 0 6rem;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 100%, rgba(56, 189, 248, 0.12), transparent),
        radial-gradient(ellipse 50% 50% at 80% 20%, rgba(37, 99, 235, 0.08), transparent);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.07);
    color: var(--sky-light);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}
.hero h1 span {
    background: linear-gradient(135deg, var(--sky-light), var(--royal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 640px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Premium Search Box on Hero */
.search-box {
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem;
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    box-shadow: var(--shadow-lg);
}

.search-box input,
.search-box select {
    flex: 1;
    min-width: 160px;
    padding: 0.9rem 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    font-family: inherit;
}
.search-box input::placeholder { color: var(--text-light); }
.search-box input + input,
.search-box input + select {
    border-left: 1px solid var(--border);
}
.search-box select {
    color: var(--text-body);
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.1rem;
    padding-right: 2.5rem;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.25rem 3rem;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 860px;
    margin: -3rem auto 0;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-lg);
}

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

.stat-item .number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
    line-height: 1;
}
.stat-item .label {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-top: 0.5rem;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 6rem 0; }

.section-heading {
    text-align: center;
    margin-bottom: 4rem;
}
.section-heading h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}
.section-heading p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 4px solid var(--royal);
}

.features-section {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.testimonials-section {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
}

/* CTA Block */
.cta-section {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
    padding: 6.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(56, 189, 248, 0.15), transparent);
    pointer-events: none;
}
.cta-section h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.25rem;
    position: relative;
    letter-spacing: -0.02em;
}
.cta-section p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.125rem;
    max-width: 620px;
    margin: 0 auto 3rem;
    position: relative;
}

/* ============================================================
   CARDS & GRIDS
   ============================================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

.card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.card:hover {
    transform: translateY(-5px);
    border-color: var(--sky-light);
    box-shadow: var(--shadow), var(--shadow-sky);
}

/* Job Card Details */
.job-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.35rem;
    line-height: 1.4;
}
.job-card .company-name {
    color: var(--royal);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.salary {
    font-weight: 800;
    color: #10b981;
    font-size: 0.88rem;
}

/* Feature Grid Cards */
.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.25rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--royal), var(--sky));
    opacity: 0;
    transition: var(--transition);
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
    border-color: var(--sky-light);
    transform: translateY(-6px);
    box-shadow: var(--shadow), var(--shadow-sky);
}
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    display: block;
}
.feature-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.6rem;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Testimonial Section Cards */
.testimonial-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.testimonial-card:hover {
    border-color: var(--sky-light);
    box-shadow: var(--shadow);
}
.testimonial-card blockquote {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 1.75rem;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--royal), var(--sky));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.testimonial-author-name {
    font-weight: 800;
    color: var(--navy);
    font-size: 1rem;
}
.testimonial-author-role {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 700;
    background: var(--bg-soft);
    color: var(--text-muted);
    border: 1px solid var(--border);
    letter-spacing: 0.02em;
}
.badge-primary {
    background: var(--sky-pale);
    color: var(--sky-dark);
    border-color: #bae6fd;
}
.badge-accent {
    background: #ecfdf5;
    color: #059669;
    border-color: #a7f3d0;
}
.badge-warning {
    background: #fffbeb;
    color: #d97706;
    border-color: #fde68a;
}
.badge-sky {
    background: var(--sky-pale);
    color: var(--royal);
    border-color: #bfdbfe;
}
.badge-navy {
    background: #eff6ff;
    color: var(--navy);
    border-color: #bfdbfe;
}

/* ============================================================
   FORMS & INPUT FIELDS
   ============================================================ */
.form-page {
    max-width: 540px;
    margin: 4.5rem auto;
    padding: 0 1.5rem;
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-body);
    letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--royal);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.form-group input::placeholder { color: var(--text-light); }
.form-group .helptext {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}
.form-errors {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    list-style: none;
}

/* ============================================================
   AUTH CARD LAYOUTS — Premium Split Panel Design
   ============================================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: #f0f4ff;
    position: relative;
    overflow: hidden;
}

/* Animated background blobs */
.auth-page::before,
.auth-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.auth-page::before {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation: authBlob1 8s ease-in-out infinite alternate;
}
.auth-page::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(14,165,233,0.1) 0%, transparent 70%);
    bottom: -150px;
    right: -100px;
    animation: authBlob2 10s ease-in-out infinite alternate;
}

@keyframes authBlob1 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.1); }
}
@keyframes authBlob2 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-40px, -30px) scale(1.08); }
}

/* Inner wrapper — centres the card */
.auth-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2.5rem 1.5rem;
}

/* The glass card */
.auth-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    padding: 3rem 3.25rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.14), 0 4px 16px rgba(37, 99, 235, 0.08);
    animation: authCardIn 0.55s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes authCardIn {
    from { opacity: 0; transform: translateY(28px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Logo */
.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    text-decoration: none;
}
.auth-logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--royal), var(--sky));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.auth-logo-icon svg {
    width: 22px;
    height: 22px;
    color: #fff;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.auth-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.03em;
}
.auth-logo-text span { color: var(--sky-dark); }

/* Heading block */
.auth-heading {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
    margin-bottom: 0.45rem;
}
.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Form field enhancements inside auth */
.auth-card .form-group {
    margin-bottom: 1.25rem;
}
.auth-card .form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-body);
    margin-bottom: 0.45rem;
    letter-spacing: 0.01em;
}
.auth-card .form-group input {
    padding: 0.8rem 1.1rem;
    border-radius: 12px;
    border: 1.5px solid var(--border-mid);
    background: #fff;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}
.auth-card .form-group input:focus {
    border-color: var(--royal);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}
.auth-card .form-group .helptext {
    font-size: 0.73rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    line-height: 1.5;
}

/* Submit button full-width */
.auth-submit {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.875rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--royal), var(--sky-dark));
    color: #fff;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    letter-spacing: 0.01em;
}
.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    filter: brightness(1.06);
}
.auth-submit:active { transform: translateY(0); }

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-light);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Bottom switch text */
.auth-switch {
    text-align: center;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-soft);
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}
.auth-switch a {
    color: var(--royal);
    font-weight: 700;
    text-decoration: none;
}
.auth-switch a:hover {
    color: var(--sky-dark);
    text-decoration: underline;
}

/* Role badge pills on register */
.auth-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.auth-role-badge.employer {
    background: #eff6ff;
    color: var(--royal);
    border: 1px solid #bfdbfe;
}
.auth-role-badge.candidate {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

/* Error list inside auth */
.auth-errors {
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    background: rgba(239,68,68,0.07);
    border-radius: 10px;
    border: 1px solid rgba(239,68,68,0.2);
    list-style: none;
}
.auth-errors li {
    color: #dc2626;
    font-size: 0.84rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.auth-errors li + li { margin-top: 0.35rem; }

/* Responsive */
@media (max-width: 520px) {
    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    .auth-wrapper {
        padding: 1.5rem 1rem;
        align-items: flex-start;
        padding-top: 3rem;
    }
}

/* ============================================================
   DETAIL PAGES
   ============================================================ */
.detail-header {
    background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
    padding: 4.5rem 0;
}
.detail-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
}
.detail-content { padding: 4.5rem 0; background: var(--bg); }

.detail-section {
    margin-bottom: 2rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
}
.detail-section h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--navy);
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
}

/* ============================================================
   EMPTY STATES
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 5rem 2.5rem;
    background: var(--bg-soft);
    border: 2px dashed var(--border-mid);
    border-radius: var(--radius);
}
.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    color: var(--navy);
}
.empty-state p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
}

/* ============================================================
   FOOTER — Premium Deep Navy
   ============================================================ */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.5);
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top-bar {
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--sky) 30%, var(--royal) 60%, #10b981 85%, transparent);
}

.site-footer > .container {
    padding-top: 5rem;
    padding-bottom: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-logo {
    display: inline-block;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}
.footer-logo span { color: var(--sky-light); }

.footer-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.8;
    max-width: 280px;
    margin-bottom: 1.75rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}
.footer-social a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.05rem;
    transition: var(--transition);
}
.footer-social a:hover {
    border-color: var(--sky-light);
    background: rgba(14, 165, 233, 0.1);
    color: var(--sky-light);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-col ul li a {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.45);
    transition: var(--transition);
}
.footer-col ul li a:hover {
    color: var(--sky-light);
    padding-left: 6px;
}

.footer-bottom {
    padding: 2rem 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}
.footer-legal a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.3);
}
.footer-legal a:hover { color: rgba(255, 255, 255, 0.6); }

/* ============================================================
   RESPONSIVE DESIGN ADAPTATIONS
   ============================================================ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    .hero { padding: 4.5rem 0; }
    .hero h1 { font-size: 2.25rem; }
    
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
        gap: 0.85rem;
    }
    .nav-links { gap: 1rem; flex-wrap: wrap; justify-content: center; }

    .search-box { flex-direction: column; }
    .search-box input + input,
    .search-box input + select,
    .search-box select { border-left: none; border-top: 1px solid var(--border); }

    .stats-bar { padding: 1.75rem 1.5rem; }
    .stat-item .number { font-size: 2.25rem; }

    .section { padding: 4.5rem 0; }
    .section-heading h2 { font-size: 2rem; }
    .cta-section h2 { font-size: 2rem; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .footer-brand-col { grid-column: 1 / -1; }
    .footer-desc { max-width: 100%; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-legal { justify-content: center; }

    .auth-card { padding: 2.5rem 2rem; }
    .detail-header h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .btn-lg  { padding: 0.9rem 1.75rem; font-size: 1rem; }
    .card-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   NAV — Active Link
   ============================================================ */
.nav-links a.nav-active {
    color: #fff !important;
}
.nav-links a.nav-active::after { width: 100% !important; }

/* ── Scrolled Header ── */
.site-header.scrolled {
    box-shadow: 0 8px 32px rgba(2, 6, 23, 0.55);
}

/* ============================================================
   USER AVATAR DROPDOWN
   ============================================================ */
.nav-user-menu {
    position: relative;
}

.user-avatar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.75rem 0.4rem 0.45rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 99px;
    cursor: pointer;
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
}
.user-avatar-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.user-avatar-initials {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sky), var(--royal));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: -0.02em;
}
.user-avatar-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-caret { opacity: 0.6; flex-shrink: 0; transition: var(--transition); }
.user-avatar-btn[aria-expanded="true"] .avatar-caret { transform: rotate(180deg); opacity: 1; }

/* Dropdown panel */
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 195px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03), 0 12px 32px rgba(15, 23, 42, 0.12), 0 0 0 0.5px rgba(226,232,240,0.5);
    z-index: 400;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}
.user-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Dropdown Header */
.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f6ff 100%);
    border-bottom: 1px solid var(--border);
}
.user-dropdown-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sky) 0%, var(--royal) 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: -0.02em;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.user-dropdown-info {
    flex: 1;
    min-width: 0;
}
.user-dropdown-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.user-dropdown-email {
    font-size: 0.68rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.1rem;
}

/* Divider */
.user-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0;
}

/* Menu items */
.user-dropdown-items {
    padding: 0.35rem 0;
}
.user-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-body) !important;
    transition: background 0.15s ease, color 0.15s ease;
    border-radius: 0;
    text-decoration: none;
}
.user-dropdown-item svg {
    opacity: 0.5;
    flex-shrink: 0;
    transition: opacity 0.15s;
}
.user-dropdown-item:hover {
    background: var(--sky-pale);
    color: var(--royal) !important;
}
.user-dropdown-item:hover svg {
    opacity: 0.85;
}

/* Sign out — red danger style */
.user-dropdown-signout {
    color: #dc2626 !important;
}
.user-dropdown-signout svg {
    opacity: 0.6;
}
.user-dropdown-signout:hover {
    background: #fff5f5 !important;
    color: #b91c1c !important;
}

/* ============================================================
   HAMBURGER / MOBILE NAV
   ============================================================ */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: var(--transition);
}
.hamburger:hover { background: rgba(255, 255, 255, 0.08); }
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel */
.mobile-nav {
    display: none;
    background: var(--navy-mid);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-nav.is-open {
    max-height: 600px;
}

.mobile-nav-links {
    list-style: none;
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.mobile-nav-links li a {
    display: block;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    transition: var(--transition);
}
.mobile-nav-links li a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    padding-left: 1.25rem;
}
.mobile-nav-signout {
    color: #fca5a5 !important;
}

/* Show hamburger + mobile nav on small screens */
@media (max-width: 860px) {
    #desktop-nav { display: none; }
    .hamburger   { display: flex; }
    .mobile-nav  { display: block; }
    .header-inner {
        flex-direction: row !important;
        height: 64px !important;
        padding: 0 !important;
        gap: 0 !important;
    }
}

/* ============================================================
   FOOTER — Tagline Pills
   ============================================================ */
.footer-tagline-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}
.footer-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.02em;
}

