/* ============================================================
   FRANORE GROUP — REDESIGN (v4)
   Based on corporate layout · Royal Blue theme
   Readability adjustments & Original Logo
   ============================================================ */

:root {
    --primary: #0047FF;
    --primary-dark: #0033B3;
    --ink: #05102E;
    --ink-light: #0A1C4F;
    --accent: #E6242F;
    
    --text: #1A202C;
    --muted: #4A5568;
    --line: #E2E8F0;
    --pale: #F4F7FB;
    --white: #fff;
    
    --max: 1160px;
    --font-serif: Georgia, 'Times New Roman', serif;
    --font-sans: 'DM Sans', Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
    margin: 0; color: var(--text); font-family: var(--font-sans);
    font-size: 16px; /* Increased from 14px */
    line-height: 1.7; background: var(--white);
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; object-fit: cover; }
button { font: inherit; }
.container { width: min(var(--max), calc(100% - 48px)); margin: auto; }

h1, h2, h3, .serif { font-family: var(--font-serif); }
h1, h2, h3, p { margin-top: 0; }
h2 { font-size: clamp(32px, 3.5vw, 44px); line-height: 1.15; letter-spacing: -.5px; margin-bottom: 16px; color: var(--ink); }

.eyebrow {
    font-size: 13px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.5px; display: flex; align-items: center;
    gap: 12px; color: var(--primary); margin-bottom: 12px;
}
.eyebrow:before { content: ""; display: block; width: 30px; height: 2px; background: var(--accent); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 18px;
    padding: 14px 24px; background: var(--primary); border: 1px solid var(--primary);
    color: white; font-weight: 700; font-size: 15px; min-height: 48px; transition: background .2s;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.55); }
.btn-outline:hover { background: #fff; color: var(--primary); }
.text-link { font-size: 15px; font-weight: 700; border-bottom: 2px solid currentColor; padding-bottom: 4px; }

/* Topbar & Header */
.topbar { background: var(--ink); color: #e9f2ed; font-size: 13px; }
.topbar-inner { min-height: 40px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.top-left, .top-right { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.topbar a:hover { color: #fff; }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.nav-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-img { max-height: 56px; width: auto; }
.footer-logo { filter: brightness(0) invert(1); max-height: 64px; margin-bottom: 20px; }

.nav-links { display: flex; align-items: center; gap: clamp(15px, 1.8vw, 28px); }
.nav-links > a { font-size: 15px; font-weight: 600; white-space: nowrap; padding: 32px 0; position: relative; }
.nav-links > a:not(.nav-button):hover:after, .nav-links > a.active:after {
    content: ""; height: 3px; background: var(--primary); position: absolute; bottom: 24px; left: 0; right: 0;
}
.nav-links .nav-button { background: var(--primary); color: white; padding: 12px 20px; border-radius: 4px; }
.menu-toggle { display: none; background: white; border: 1px solid var(--line); padding: 10px 16px; color: var(--ink); font-weight: 700; font-size: 15px; }

/* Full-Bleed Hero with Sliding Background */
.hero {
    position: relative; background: var(--ink); color: white;
    min-height: 520px; display: flex; align-items: center; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 1; }
.hero__slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.2s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__overlay {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(90deg, rgba(5,16,46,0.95) 0%, rgba(5,16,46,0.7) 60%, rgba(5,16,46,0.2) 100%);
}
.hero__inner {
    position: relative; z-index: 3; max-width: 650px; padding: 100px 0;
}
.hero .eyebrow { color: #dce9e2; }
.hero .eyebrow:before { background: var(--accent); }
.hero h1 { font-size: clamp(42px, 5vw, 62px); line-height: 1.05; letter-spacing: -1.5px; margin: 8px 0 20px; color: white; }
.hero__lede { font-size: 17px; line-height: 1.7; color: #dce7e1; max-width: 520px; margin-bottom: 32px; }
.hero__cta { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }

/* Page Hero (Sub-pages) */
.page-hero { position: relative; background: var(--ink); color: white; padding: 120px 0 100px; overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 1; opacity: 0.6; }
.page-hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,16,46,0.95) 0%, rgba(5,16,46,0.7) 100%); z-index: 2; }
.page-hero__inner { position: relative; z-index: 3; max-width: 750px; }
.page-hero h1 { color: white; margin-bottom: 16px; font-size: clamp(38px, 4.5vw, 52px); }
.page-hero__lede { color: #dce7e1; font-size: 17px; margin: 0; max-width: 600px; }

/* Quick Services */
.quick-services { border-bottom: 1px solid var(--line); background: #fbfcfb; }
.quick-grid { display: grid; grid-template-columns: repeat(7, 1fr); padding: 24px 0; }
.quick-item {
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    gap: 10px; text-align: center; padding: 8px 10px; border-right: 1px solid var(--line);
    font-size: 13px; font-weight: 600;
}
.quick-item:last-child { border: 0; }
.quick-icon { font-size: 24px; color: var(--primary); height: 30px; line-height: 1; }
.quick-item:hover { color: var(--primary); }

/* Sections */
section { padding: 90px 0; }
.section-title-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.section-title-row > p { max-width: 450px; color: var(--muted); font-size: 16px; margin-bottom: 4px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.about-photo { height: 400px; position: relative; background: var(--pale); }
.about-photo img { height: 100%; object-position: center; }
.photo-tag { position: absolute; bottom: 0; left: 0; background: var(--ink); color: white; padding: 14px 20px; font-size: 14px; font-weight: 600; }
.about-copy p { font-size: 16px; color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
.about-copy .btn { margin-top: 12px; }

/* Services Grid */
.services { background: var(--pale); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { background: white; padding: 32px 28px; border: 1px solid var(--line); min-height: 220px; transition: border-color .2s, transform .2s; }
.service-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.service-top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.service-icon { width: 48px; height: 48px; background: var(--primary); color: white; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; border-radius: 4px; }
.service-num { font-size: 13px; color: var(--primary); font-weight: 700; margin-bottom: 4px; }
.service-card h3 { font-size: 20px; line-height: 1.3; margin: 0; color: var(--ink); }
.service-card p { font-size: 15px; color: var(--muted); line-height: 1.7; margin: 0; }

/* Metrics */
.metrics { background: var(--ink); color: #fff; padding: 40px 0; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.metric { text-align: center; padding: 0 20px; border-right: 1px solid rgba(255,255,255,.15); }
.metric:last-child { border: 0; }
.metric strong { display: block; font-family: var(--font-serif); font-size: 44px; line-height: 1.15; color: #fff; margin-bottom: 8px; }
.metric span { font-size: 14px; font-weight: 600; letter-spacing: .5px; color: #dce7e1; }

/* Why Choose Us */
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.why-copy p { max-width: 480px; color: var(--muted); font-size: 16px; line-height: 1.8; margin: 20px 0 28px; }
.why-list { border-top: 1px solid var(--line); }
.why-item { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.why-num { height: 40px; width: 40px; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; border-radius: 4px; }
.why-item h3 { font-size: 18px; margin: 0 0 6px; color: var(--ink); }
.why-item p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.7; }

/* Testimonials */
.testimonials { background: #f1f5f9; }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.quote-card { background: #fff; border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 4px; }
.quote-mark { color: var(--primary); font-family: var(--font-serif); font-size: 48px; line-height: 1; margin-bottom: 12px; }
.quote-card blockquote { font-family: var(--font-serif); font-size: 16px; line-height: 1.7; margin: 0 0 24px; color: var(--text); font-style: italic; }
.quote-card footer { border-top: 1px solid var(--line); padding-top: 16px; font-size: 14px; color: var(--muted); }
.quote-card footer strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

/* Articles */
.articles-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card { border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; border-radius: 4px; overflow: hidden; transition: transform .2s; }
.article-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.article-card img { height: 200px; }
.article-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.article-meta { font-size: 12px; color: var(--primary); font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 8px; }
.article-body h3 { font-size: 20px; line-height: 1.4; margin: 0 0 12px; color: var(--ink); }
.article-body p { font-size: 15px; line-height: 1.7; color: var(--muted); margin-bottom: 20px; flex: 1; }
.article-body a { font-size: 14px; font-weight: 700; color: var(--primary); }

/* CTA */
.cta { background: var(--ink); color: white; padding: 50px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { color: white; font-size: clamp(30px, 3.5vw, 42px); margin: 0 0 8px; }
.cta p { font-size: 16px; color: #d4e2da; margin: 0; }
.cta-left { border-left: 4px solid var(--primary); padding-left: 24px; }

/* Footer */
.site-footer { background: var(--ink); color: #fff; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .8fr 1fr 1.1fr; gap: 40px; padding-bottom: 40px; }
.footer-about p { max-width: 300px; color: #bdcec5; font-size: 14px; line-height: 1.8; margin-top: 0; }
.site-footer h3 { font-family: var(--font-sans); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: #fff; margin: 0 0 20px; }
.footer-links { display: grid; gap: 12px; }
.footer-links a, .footer-contact p, .footer-contact a { font-size: 14px; color: #bdcec5; margin: 0; }
.footer-links a:hover, .footer-contact a:hover { color: white; }
.footer-contact { display: grid; align-content: start; gap: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.17); padding: 24px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #a9bdb3; font-size: 13px; }
.legal { display: flex; gap: 24px; flex-wrap: wrap; }

/* Forms (Register/Contact) */
.form-wrap { background: #fff; padding: 50px; border: 1px solid var(--line); box-shadow: 0 20px 40px rgba(5,16,46,.05); border-radius: 4px; }
.ef-form { display: block; }
.ef-step { display: none; border: none; padding: 0; margin: 0; }
.ef-step.is-active { display: block; }
.ef-legend { font-family: var(--font-sans); font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); border-bottom: 2px solid var(--primary); padding-bottom: 16px; margin-bottom: 32px; display: block; width: 100%; }
.ef-row { display: grid; gap: 24px; margin-bottom: 24px; }
.ef-row--2 { grid-template-columns: 1fr 1fr; }
.ef-field { display: flex; flex-direction: column; }
.ef-field label { font-size: 15px; font-weight: 600; margin-bottom: 10px; color: var(--ink); }
.ef-field .req { color: var(--primary); }
.ef-field input, .ef-field select, .ef-field textarea { width: 100%; padding: 16px; font-family: var(--font-sans); font-size: 16px; border: 1px solid var(--line); background: var(--pale); transition: all .2s; border-radius: 4px; }
.ef-field input:focus, .ef-field select:focus, .ef-field textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(0,71,255,.1); }
.ef-field textarea { resize: vertical; min-height: 140px; }
.ef-actions { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; }
.ef-actions--end { justify-content: flex-end; }
.ef-status { margin-top: 24px; font-size: 15px; padding: 16px; border-radius: 4px; display: none; }
.ef-status.is-success { display: block; background: #E6F4EA; color: #1E8E3E; }
.ef-status.is-error { display: block; background: #FCE8E6; color: #D93025; }

.form-progress { margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--line); position: relative; }
.form-progress__bar { height: 4px; background: var(--primary); position: absolute; bottom: -2px; left: 0; width: 20%; transition: width .4s; }
.form-progress__steps { display: flex; justify-content: space-between; list-style: none; padding: 0; margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--muted); gap: 8px; }
.form-progress__steps li.is-current { color: var(--primary); }
.form-progress__steps li.is-done { color: var(--ink); }

.ef-cond { display: none; padding: 24px; background: var(--pale); border-left: 4px solid var(--primary); margin-bottom: 24px; border-radius: 4px; }
.ef-cond.is-visible { display: block; }
.ef-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.ef-check input { margin-top: 4px; accent-color: var(--primary); width: 18px; height: 18px; }
.ef-radio { display: inline-flex; align-items: center; gap: 10px; margin-right: 20px; cursor: pointer; font-size: 15px; }
.ef-radio input { accent-color: var(--primary); width: 18px; height: 18px; }

/* Breadcrumbs */
.breadcrumbs { background: var(--pale); border-bottom: 1px solid var(--line); font-size: 14px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 16px 0; display: flex; flex-wrap: wrap; }
.breadcrumbs li { display: inline-flex; align-items: center; color: var(--muted); }
.breadcrumbs li + li::before { content: '/'; margin: 0 12px; color: #a0aec0; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* Reveal Animations */
.reveal { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(20px); }
@media (prefers-reduced-motion: reduce) { .js .reveal:not(.is-in) { opacity: 1; transform: none; } }

/* Responsive */
@media(max-width: 1020px) {
    .nav-links { gap: 15px; } .nav-links > a { font-size: 14px; }
    .why-grid { gap: 40px; }
}
@media(max-width: 780px) {
    .container { width: calc(100% - 34px); }
    .topbar-inner { padding: 7px 0; align-items: flex-start; } .top-right { display: none; }
    .nav-inner { min-height: 76px; } .menu-toggle { display: block; }
    .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; padding: 16px 20px 24px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; box-shadow: 0 12px 15px rgba(0,0,0,.05); }
    .nav-links.open { display: flex; } .nav-links > a { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
    .nav-links > a:not(.nav-button):hover:after, .nav-links > a.active:after { display: none; }
    .nav-links .nav-button { margin-top: 16px; text-align: center; }
    
    .hero { min-height: 450px; }
    .quick-grid { grid-template-columns: repeat(4, 1fr); gap: 16px 0; }
    .quick-item:nth-child(4) { border-right: 0; } .quick-item:nth-child(n+5) { padding-top: 16px; }
    .about-grid, .why-grid { grid-template-columns: 1fr; gap: 40px; }
    .section-title-row { flex-direction: column; align-items: flex-start; gap: 12px; }
    .service-grid, .quote-grid, .article-grid { grid-template-columns: 1fr; }
    .metric-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 0; }
    .metric:nth-child(2) { border-right: 0; } .metric:nth-child(3) { border-right: 1px solid rgba(255,255,255,.15); }
    .article-card { display: grid; grid-template-columns: 40% 1fr; }
    .article-card img { height: 100%; min-height: 200px; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .ef-row--2 { grid-template-columns: 1fr; }
}
@media(max-width: 460px) {
    .quick-grid { grid-template-columns: repeat(2, 1fr); } .quick-item:nth-child(2n) { border-right: 0; }
    .service-grid { grid-template-columns: 1fr; } .service-card { min-height: unset; }
    .article-card { display: block; } .article-card img { height: 200px; }
    .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; }
}

/* ============================================================
   COMPATIBILITY LAYER
   Restores class names used by sub-pages (about, services,
   shopfitting, contact, blog, register, re-register).
   Styled to match the new design — readable fonts, blue theme.
   ============================================================ */

/* Skip link (used by header) */
.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--ink); color: #fff;
    padding: 12px 20px; z-index: 9999;
    font-weight: 600; font-size: 15px;
    border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 16px; top: 16px; outline: 2px solid var(--primary); }

/* Lede paragraphs */
.lede { font-size: 17px; color: var(--muted); line-height: 1.75; margin-bottom: 20px; }

/* Section wrappers */
.section { padding: 90px 0; }
.section--surface { background: var(--pale); }
.section--ink { background: var(--ink); color: rgba(255,255,255,.85); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.section--ink .lede { color: rgba(255,255,255,.8); }
.section--ink .eyebrow { color: #8FB3FF; }

.section-head { margin-bottom: 48px; max-width: 760px; }
.section-head--split {
    display: flex; justify-content: space-between; align-items: flex-end;
    max-width: none; flex-wrap: wrap; gap: 24px;
}
.section-title { font-family: var(--font-serif); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -.5px; color: var(--ink); margin: 0 0 12px; }
.section-sub { color: var(--muted); font-size: 16px; margin: 0; max-width: 600px; line-height: 1.7; }
.section--ink .section-sub { color: rgba(255,255,255,.75); }

/* Grids */
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Cards (about, shopfitting, contact) */
.card {
    background: #fff; padding: 32px 28px;
    border: 1px solid var(--line); border-radius: 4px;
    transition: box-shadow .25s, transform .25s, border-color .25s;
    display: flex; flex-direction: column;
}
.card:hover { box-shadow: 0 12px 30px rgba(5,16,46,.08); border-color: transparent; transform: translateY(-3px); }
.card__icon {
    width: 52px; height: 52px; background: rgba(0,71,255,.1);
    color: var(--primary); display: grid; place-items: center;
    font-size: 22px; margin-bottom: 20px; border-radius: 4px;
}
.card__title { font-family: var(--font-serif); font-size: 22px; line-height: 1.3; margin: 0 0 12px; color: var(--ink); }
.card__desc { color: var(--muted); font-size: 15px; line-height: 1.75; margin: 0 0 20px; flex: 1; }
.card__desc a { color: var(--primary); font-weight: 600; }
.card__desc a:hover { color: var(--primary-dark); text-decoration: underline; }
.card__link {
    font-weight: 700; font-size: 14px; text-transform: uppercase;
    letter-spacing: .04em; display: inline-flex; align-items: center;
    gap: 8px; color: var(--primary); margin-top: auto;
}

/* Numbered services rows (services.php) */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.section--ink .svc-list { border-top-color: rgba(255,255,255,.25); }
.svc-row {
    display: grid; grid-template-columns: 80px 1fr auto; gap: 32px;
    align-items: start; padding: 36px 0;
    border-bottom: 1px solid var(--line);
    transition: padding .3s ease;
}
.section--ink .svc-row { border-bottom-color: rgba(255,255,255,.15); }
.svc-row:hover { padding-left: 12px; }
.svc-row__num {
    font-family: var(--font-serif); font-size: 28px; font-weight: 700;
    color: var(--primary); line-height: 1;
}
.svc-row__title { font-family: var(--font-serif); font-size: 24px; font-weight: 700; margin: 0 0 10px; color: var(--ink); line-height: 1.25; }
.section--ink .svc-row__title { color: #fff; }
.svc-row__desc { color: var(--muted); font-size: 16px; line-height: 1.7; margin: 0; max-width: 720px; }
.section--ink .svc-row__desc { color: rgba(255,255,255,.75); }
.svc-row__desc ul { margin: 12px 0 0; padding-left: 20px; line-height: 1.8; }
.svc-row__desc ul li { font-size: 15px; color: var(--muted); }
.svc-row__link {
    display: grid; place-items: center; width: 52px; height: 52px;
    background: var(--pale); color: var(--ink); border-radius: 50%;
    transition: all .3s ease;
}
.section--ink .svc-row__link { background: rgba(255,255,255,.15); color: #fff; }
.svc-row:hover .svc-row__link { background: var(--primary); color: #fff; transform: rotate(-45deg); }

/* Why items — old component names (why-card.php) */
.why-item__num {
    font-family: var(--font-serif); font-size: 28px; font-weight: 700;
    color: var(--primary); line-height: 1; padding-top: 4px;
}
.why-item__title { font-family: var(--font-serif); font-size: 19px; font-weight: 700; margin: 0 0 6px; color: var(--ink); line-height: 1.3; }
.section--ink .why-item__title { color: #fff; }
.why-item__desc { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0; }
.section--ink .why-item__desc { color: rgba(255,255,255,.75); }

/* Old service-card component (service-card.php) */
.service-card__icon {
    width: 52px; height: 52px; background: var(--primary); color: #fff;
    display: grid; place-items: center; font-size: 22px;
    margin-bottom: 16px; border-radius: 4px;
}
.service-card__num { font-size: 13px; font-weight: 700; color: var(--primary); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 6px; display: block; }
.service-card__title { font-family: var(--font-serif); font-size: 20px; line-height: 1.3; margin: 0 0 12px; color: var(--ink); }
.service-card__desc { font-size: 15px; line-height: 1.7; color: var(--muted); margin: 0 0 20px; flex: 1; }
.service-card__link { font-size: 14px; font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: 8px; }
.service-card__link:hover { color: var(--primary-dark); }

/* Article card — old component names (article-card.php) */
.article-card__media { display: block; aspect-ratio: 16/10; overflow: hidden; }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.article-card:hover .article-card__media img { transform: scale(1.05); }
.article-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.article-card__meta { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 10px; }
.article-card__title { font-family: var(--font-serif); font-size: 20px; line-height: 1.35; margin: 0 0 12px; }
.article-card__title a { color: var(--ink); }
.article-card__title a:hover { color: var(--primary); }
.article-card__desc { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0 0 20px; flex: 1; }
.article-card__link { font-size: 14px; font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: 8px; margin-top: auto; }
.article-card__link:hover { color: var(--primary-dark); }

/* Testimonials — old names (card-quote, card-author) */
.card-quote { font-style: italic; font-family: var(--font-serif); color: var(--text); font-size: 16px; line-height: 1.7; flex: 1; margin: 16px 0 20px; }
.card-author { font-weight: 700; color: var(--ink); font-size: 15px; }

/* Two-column layout (re-register.php) */
.two-col { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 60px; align-items: start; }
.two-col--tight { gap: 40px; }

/* FAQ component (faq.php) — uses --border which was removed */
.section--surface .container > div[style*="border-top"] {
    border-color: var(--line) !important;
}
details {
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
}
details summary {
    font-family: var(--font-serif); font-size: 18px; font-weight: 600;
    cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
    color: var(--ink);
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--primary); font-size: 22px; font-weight: 400; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 16px 0 0; color: var(--muted); line-height: 1.75; font-size: 16px; }

/* Text-link fallback (used in old markup) */
.btn--text {
    padding: 0; background: none; border: none;
    border-bottom: 2px solid var(--primary); border-radius: 0;
    color: var(--primary); font-weight: 700; font-size: 15px;
    display: inline-flex; align-items: center; gap: 8px;
}
.btn--text:hover { color: var(--primary-dark); border-bottom-color: var(--primary-dark); }
.btn--sm { padding: 10px 18px; font-size: 14px; min-height: 40px; }
.btn--lg { padding: 16px 32px; font-size: 16px; min-height: 52px; }
.btn--block { width: 100%; }
.btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-light); border-color: var(--ink-light); }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--primary); }

/* Mobile responsive adjustments for compat classes */
@media (max-width: 780px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .section { padding: 56px 0; }
    .section-head--split { flex-direction: column; align-items: flex-start; }
    .svc-row { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; }
    .svc-row__link { justify-self: flex-start; }
    .two-col { grid-template-columns: 1fr; gap: 32px; }
    .article-card { display: flex; flex-direction: column; }
    .article-card__media { aspect-ratio: 16/9; }
}
@media (max-width: 460px) {
    .section-title { font-size: 26px; }
    .svc-row__title { font-size: 20px; }
}

/* ============================================================
   WIZARD FORM — MISSING CLASSES
   ============================================================ */

.ef-subhead {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ink);
    margin: 32px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.ef-note {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 24px;
    padding: 16px 20px;
    background: var(--pale);
    border-left: 3px solid var(--primary);
    border-radius: 0 4px 4px 0;
}

.ef-hint {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin: -4px 0 10px;
}

/* Make the wizard progress bar not overflow its container */
.form-progress__steps li {
    flex: 1;
    text-align: center;
    position: relative;
}

/* Better spacing between the wizard card and the footer */
.form-section { padding-bottom: 90px; }

/* ============================================================
   WIZARD FORM FIXES
   ============================================================ */

/* 1. Force the `hidden` attribute to actually hide elements, 
      overriding our custom `.btn { display: inline-flex }` */
[hidden] {
    display: none !important;
}

/* 2. Hide the honeypot field properly */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* 3. Style disabled buttons (like the "Previous" button on step 1) */
.btn:disabled,
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background-color: var(--muted);
    border-color: var(--muted);
}

/* 4. Make the progress bar step labels a bit cleaner */
.form-progress__steps {
    gap: 12px;
}
.form-progress__steps li {
    flex: 1;
    text-align: center;
    border-bottom: 2px solid transparent;
    padding-bottom: 8px;
    transition: border-color .3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.form-progress__steps li.is-current {
    border-bottom-color: var(--primary);
}
.form-progress__steps li.is-done {
    border-bottom-color: var(--ink);
}

/* 5. Center the action buttons and ensure they stack well on mobile */
.ef-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
@media (max-width: 500px) {
    .ef-actions {
        flex-direction: column;
    }
    .ef-actions .btn {
        width: 100%;
    }
}

/* ============================================================
   PREMIUM TALENT DIRECTORY & PROFILE STYLES
   ============================================================ */

/* Directory Cards */
.talent-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 30px 24px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.talent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(5,16,46,0.1);
    border-color: var(--primary);
}

/* Initials Avatar (Fallback) */
.talent-avatar-initials {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.talent-avatar-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.talent-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--ink);
    margin: 0 0 8px;
    font-weight: 700;
}

.talent-skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    flex: 1;
}

.skill-pill {
    background: var(--pale);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    box-sizing: border-box;
    vertical-align: middle;
}

/* Make pills slightly larger on the single profile page */
.profile-main-card .skill-pill {
    font-size: 13px;
    padding: 6px 14px;
}

/* Single Profile Page */
.profile-header-banner {
    height: 200px;
    background: linear-gradient(100deg, var(--ink) 0%, var(--primary) 100%);
    border-radius: 12px;
    position: relative;
    margin-bottom: -60px;
}

.profile-main-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--line);
    padding: 40px;
    position: relative;
    z-index: 2;
}

.profile-header-content {
    display: flex;
    gap: 30px;
    align-items: flex-end;
    margin-top: -80px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 30px;
}

.profile-header-avatar img, 
.profile-header-avatar .talent-avatar-initials {
    width: 140px;
    height: 140px;
    font-size: 48px;
    border: 6px solid #fff;
    margin: 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.profile-title-block h1 {
    margin: 0 0 8px;
    font-size: 2.2rem;
    line-height: 1.1;
}

.profile-bio-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    white-space: pre-wrap; /* preserves line breaks from WP */
}

/* Sidebar */
.profile-sidebar {
    background: var(--pale);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--line);
}

.profile-sidebar h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin: 0 0 20px;
    color: var(--ink);
    border-bottom: 2px solid var(--line);
    padding-bottom: 12px;
}

.sidebar-stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--muted);
}

.sidebar-stat strong {
    color: var(--ink);
}

/* ============================================================
   FIX: PROFILE NAME PADDING (Top Edge Issue)
   ============================================================ */

/* Add breathing room above the name in the Directory Cards */
.talent-name {
    margin-top: 15px;
    word-wrap: break-word;
}

/* Adjust the Single Profile Header Layout */
.profile-header-content {
    align-items: center; /* Aligns name with the middle of the avatar */
    margin-top: -70px; /* Slightly less aggressive pull */
    padding-top: 20px; /* Adds safe padding at the top */
}

/* Ensure the name itself has top margin so it never touches the edge */
.profile-title-block h1 {
    margin-top: 10px;
}

/* Mobile Responsive Fix */
@media (max-width: 768px) {
    .profile-header-content {
        flex-direction: column;
        align-items: flex-start;
        margin-top: -30px; /* Less pull on mobile */
        padding-top: 10px;
    }
    
    .profile-title-block h1 {
        margin-top: 15px;
        font-size: 1.8rem; /* Slightly smaller on mobile to prevent overflow */
    }
}

/* ============================================================
   FULL SKILLS LIST (Single Profile)
   ============================================================ */

.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.skill-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--pale);
    padding: 16px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
}

.skill-list-item i {
    color: var(--primary);
    margin-top: 4px;
    font-size: 14px;
}

/* ============================================================
   FIX: Profile Image Size & Bio Indentation
   ============================================================ */

/* Make the avatar much bigger (Desktop) */
.profile-header-avatar img, 
.profile-header-avatar .talent-avatar-initials {
    width: 180px;
    height: 180px;
    font-size: 64px;
    border: 6px solid #fff;
    margin: 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Adjust overlap since the image is bigger */
.profile-header-content {
    margin-top: -110px; 
    padding-top: 20px;
}

/* Fix the text indentation */
.profile-bio-content {
    /* pre-line keeps line breaks but collapses leading spaces */
    white-space: pre-line; 
    text-align: left;
}

/* Mobile Responsive adjustments */
@media (max-width: 768px) {
    .profile-header-avatar img, 
    .profile-header-avatar .talent-avatar-initials {
        width: 130px;
        height: 130px;
        font-size: 48px;
    }
    .profile-header-content {
        margin-top: -70px;
    }
}

/* ============================================================
   FIX: Profile Name Clipping & Avatar Geometry
   ============================================================ */

/* 1. Make the banner taller to accommodate the larger avatar */
.profile-header-banner {
    height: 240px; 
}

/* 2. Adjust the pull-up so it doesn't overlap the name */
.profile-header-content {
    margin-top: -80px; /* Less aggressive pull */
    align-items: flex-end; /* Align name to the bottom of the image */
    flex-wrap: wrap; /* Prevent overflow on long names */
    padding-bottom: 20px;
}

/* 3. Give the text block plenty of breathing room */
.profile-title-block {
    flex: 1;
    min-width: 250px; /* Prevents the name from getting squeezed */
    padding-bottom: 10px;
    overflow: visible;
}

/* 4. Ensure the name itself is fully visible and bold */
.profile-title-block h1 {
    margin-top: 0;
    line-height: 1.15;
    word-break: break-word; /* Wraps long names instead of cutting them */
}

/* 5. Mobile specific adjustments */
@media (max-width: 768px) {
    .profile-header-banner {
        height: 180px;
    }
    .profile-header-content {
        margin-top: -60px;
        align-items: center;
        flex-direction: column;
        text-align: center;
    }
    .profile-title-block {
        margin-top: 15px;
    }
    .profile-title-block h1 {
        font-size: 1.8rem;
    }
}

/* ============================================================
   PREMIUM DASHBOARD & LOGIN REDESIGN
   ============================================================ */

/* --- Split Screen Login --- */
.login-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 88px);
    background: #fff;
}
.login-image {
    background: linear-gradient(135deg, rgba(5,16,46,0.9), rgba(0,71,255,0.7)), url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1200&q=80') center/cover;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    color: white;
}
.login-image h2 {
    color: white;
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
}
.login-image p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 400px;
}
.login-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--pale);
}
.login-form-inner {
    width: 100%;
    max-width: 420px;
    background: #fff;
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border: 1px solid var(--line);
}

/* --- Premium Dashboard Layout --- */
.dash-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Sidebar */
.dash-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--line);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    height: fit-content;
    position: sticky;
    top: 100px;
}
.dash-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 4px solid var(--primary);
    display: block;
}
.dash-avatar-fallback {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    display: grid;
    place-items: center;
    font-size: 36px;
    font-weight: 700;
    margin: 0 auto 16px;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.dash-menu { list-style: none; padding: 0; margin: 30px 0 0; border-top: 1px solid var(--line); padding-top: 20px; }
.dash-menu li { margin-bottom: 10px; }
.dash-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
}
.dash-menu a:hover, .dash-menu a.active {
    background: var(--primary-light);
    color: var(--primary);
}
.dash-menu i { width: 20px; text-align: center; font-size: 16px; }

/* Main Content */
.dash-main { display: flex; flex-direction: column; gap: 30px; }
.dash-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.dash-header h1 { margin: 0; font-size: 2rem; }

/* Stats Grid */
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-box {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 20px;
}
.stat-info span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-info strong { display: block; font-size: 24px; color: var(--ink); font-family: var(--font-display); line-height: 1.2; }

/* Application Cards */
.app-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.app-card:hover { transform: translateX(4px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); border-color: var(--primary); }
.app-info h3 { margin: 0 0 6px; font-size: 1.2rem; font-family: var(--font-display); }
.app-info p { margin: 0; color: var(--muted); font-size: 14px; }
.app-status { padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.status-Pending { background: #fff3cd; color: #856404; }
.status-Interview { background: #d4edda; color: #155724; }
.status-Reviewed { background: #cce5ff; color: #004085; }
.status-Rejected { background: #f8d7da; color: #721c24; }

/* Profile Completeness Bar */
.completeness-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}
.progress-track { width: 100%; background: #e2e8f0; height: 10px; border-radius: 10px; overflow: hidden; margin-top: 10px; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 10px; transition: width 0.5s; }

/* Responsive */
@media (max-width: 1024px) {
    .dash-layout { grid-template-columns: 1fr; }
    .dash-sidebar { position: static; display: flex; flex-direction: column; align-items: center; text-align: center; }
    .dash-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; border: none; padding: 0; }
    .dash-menu li { margin: 0; }
    .dash-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .login-split { grid-template-columns: 1fr; }
    .login-image { display: none; }
    .dash-stats { grid-template-columns: 1fr; }
    .app-card { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ============================================================
   PREMIUM EDIT PROFILE PAGE
   ============================================================ */

.profile-edit-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.profile-section-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--ink);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar-upload-row {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--pale);
    padding: 20px;
    border-radius: 8px;
    border: 1px dashed var(--line);
    margin-bottom: 30px;
}

.avatar-preview {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.avatar-preview-fallback {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: grid;
    place-items: center;
    font-size: 32px;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Custom File Input */
.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}
.file-upload-wrapper input[type=file] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
}
.file-upload-btn {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    font-size: 14px;
    transition: all 0.2s;
}
.file-upload-wrapper:hover .file-upload-btn {
    background: var(--primary);
    color: #fff;
}

/* ============================================================
   ADVANCED UI: TAG INPUTS & DRAG-DROP
   ============================================================ */

/* Tag Input Container */
.tags-input-wrapper {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    cursor: text;
    transition: border-color 0.2s;
}
.tags-input-wrapper:focus-within {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Individual Tag */
.tag {
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: popIn 0.2s ease-out;
}
.tag span {
    cursor: pointer;
    color: rgba(255,255,255,0.7);
    font-weight: bold;
}
.tag span:hover {
    color: white;
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* The actual input field inside the tags box */
.tag-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 15px;
    font-family: var(--font-body);
    flex: 1;
    min-width: 150px;
    padding: 4px;
    color: var(--text);
}

/* Add Skill Button */
.add-skill-btn {
    background: var(--pale);
    color: var(--primary);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 10px;
    transition: background 0.2s;
}
.add-skill-btn:hover {
    background: var(--primary-light);
}

/* Drag and Drop File Zone */
.drop-zone {
    border: 2px dashed var(--line);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    background: #f8fafc;
    transition: all 0.2s;
    position: relative;
    cursor: pointer;
}
.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
}
.drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.drop-zone i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 12px;
}
.drop-zone p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}
.drop-zone strong {
    color: var(--ink);
}

/* Loading Spinner for Save Button */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}
.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
}
@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* ============================================================
   FIX: DRAG AND DROP ZONE LAYOUT
   ============================================================ */

.drop-zone {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    border: 2px dashed var(--line);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    background: #f8fafc;
    transition: all 0.2s;
    position: relative;
    cursor: pointer;
    min-height: 140px;
}

.drop-zone:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.drop-zone i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 12px;
}

.drop-zone p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.drop-zone strong {
    color: var(--ink);
}

/* Fix the avatar upload row spacing */
.avatar-upload-row {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--pale);
    padding: 20px;
    border-radius: 8px;
    border: 1px dashed var(--line);
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    .avatar-upload-row {
        flex-direction: column;
        text-align: center;
    }
    .avatar-upload-row > div {
        width: 100%;
    }
}

/* ============================================================
   PROFESSIONAL JOB BOARD REDESIGN
   ============================================================ */

/* Modern Job Card */
.job-card-modern {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 28px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.job-card-modern:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(5,16,46,0.08);
    transform: translateY(-2px);
}

/* Company Logo Initials */
.job-company-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    font-family: var(--font-display);
    flex-shrink: 0;
}

.job-content { flex: 1; }
.job-title-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.job-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--ink); margin: 0; }
.job-title a { color: var(--ink); }
.job-title a:hover { color: var(--primary); }

/* Metadata Tags */
.job-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.job-meta-item { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 500; }
.job-meta-item i { color: var(--text-light); }

/* Badges */
.job-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-type { background: var(--pale); color: var(--primary); }
.badge-salary { background: #d4edda; color: #155724; }
.badge-remote { background: #e0c3fc; color: #4a148c; }
.badge-new { background: #ff4757; color: white; margin-left: 10px; }

/* Footer of Card */
.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
    padding-top: 16px;
    margin-top: 8px;
}
.job-posted-date { font-size: 13px; color: var(--text-light); }

/* Modern Sidebar Search */
.search-sidebar {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 100px;
}
.search-sidebar h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 0 0 20px; color: var(--ink); }
.search-sidebar .ef-field { margin-bottom: 16px; }
.search-sidebar .ef-field label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; display: block; }
.search-sidebar .ef-field input, .search-sidebar .ef-field select {
    width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #f8fafc; font-size: 14px;
}
.search-sidebar .ef-field input:focus, .search-sidebar .ef-field select:focus {
    border-color: var(--primary); outline: none; background: #fff;
}

@media (max-width: 768px) {
    .job-card-modern { flex-direction: column; padding: 20px; }
    .job-title-row { flex-direction: column; }
    .job-title-row .btn { margin-top: 10px; width: 100%; }
    .job-meta { gap: 10px; }
}

/* ============================================================
   JOB BOARD LAYOUT FIX (Sticky Sidebar & Compact Cards)
   ============================================================ */

/* 1. Make the sidebar sticky */
.search-sidebar {
    position: sticky;
    top: 100px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

/* 2. Redesign the Job Card to be horizontal and compact */
.job-card-modern {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.2s ease;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.job-card-modern:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(5,16,46,0.06);
    transform: translateY(-2px);
}

/* Top Row: Logo, Title, Badge, Button */
.job-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}
.job-card-info {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.job-company-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    flex-shrink: 0;
}
.job-title-wrap h3 {
    margin: 0 0 4px 0;
    font-size: 1.15rem;
    font-family: var(--font-display);
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 10px;
}
.job-title-wrap h3 a {
    color: var(--ink);
}
.job-title-wrap h3 a:hover {
    color: var(--primary);
}
.job-company-name {
    margin: 0;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

/* Badges */
.badge-new {
    background: #e6242f;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Bottom Row: Meta Info */
.job-card-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.job-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}
.job-meta-item i {
    color: var(--text-light);
}
.job-meta-item .badge-type {
    background: var(--pale);
    color: var(--ink);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--line);
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .job-card-top {
        flex-direction: column;
        align-items: stretch;
    }
    .job-card-top .btn {
        width: 100%;
        margin-top: 10px;
    }
    .job-card-info {
        flex-direction: column;
    }
}

/* ============================================================
   JOB BOARD GRID LAYOUT & TOP SEARCH BAR
   ============================================================ */

/* Horizontal Search Bar */
.search-bar-horizontal {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 40px;
}
.search-bar-horizontal .ef-field {
    margin-bottom: 0;
    flex: 1;
    min-width: 200px;
}
.search-bar-horizontal .ef-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 8px;
    display: block;
}
.search-bar-horizontal .ef-field input, 
.search-bar-horizontal .ef-field select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    font-size: 15px;
    color: var(--ink);
}
.search-bar-horizontal .ef-field input:focus, 
.search-bar-horizontal .ef-field select:focus {
    border-color: var(--primary);
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Job Grid Layout (2 columns) */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* Rich Job Card */
.job-card-modern {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.job-card-modern:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(5,16,46,0.08);
    transform: translateY(-4px);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}
.job-title-wrap h3 {
    margin: 0 0 6px 0;
    font-size: 1.25rem;
    font-family: var(--font-display);
    line-height: 1.3;
}
.job-title-wrap h3 a {
    color: var(--ink);
}
.job-title-wrap h3 a:hover {
    color: var(--primary);
}
.job-company-name {
    margin: 0;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Description Snippet */
.job-excerpt {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta Tags */
.job-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.job-meta-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--pale);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    border: 1px solid var(--line);
}
.job-meta-tag i {
    color: var(--primary);
}

/* Card Footer */
.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
    padding-top: 20px;
    margin-top: auto;
}
.job-date {
    font-size: 12px;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 900px) {
    .jobs-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   PREMIUM SINGLE JOB PAGE & APPLY PAGE
   ============================================================ */

/* Job Header (Compact Hero) */
.job-header {
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-light) 100%);
    color: white;
    padding: 60px 0;
    border-bottom: 4px solid var(--primary);
}
.job-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.job-header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}
.job-header-logo {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: white;
    font-family: var(--font-display);
}
.job-header-text h1 {
    color: white;
    margin: 0 0 8px;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}
.job-header-text p {
    color: rgba(255,255,255,0.8);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Job Detail Body */
.job-detail-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}
.job-description-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.job-description-content {
    line-height: 1.8;
    color: var(--text);
    font-size: 16px;
}
.job-description-content br {
    margin-bottom: 8px;
    display: block;
    content: "";
}

/* Sidebar */
.job-sidebar {
    position: sticky;
    top: 100px;
}
.job-sidebar-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    margin-bottom: 24px;
}
.job-sidebar-box h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin: 0 0 20px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}
.job-overview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
}
.job-overview-item span:first-child {
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.job-overview-item span:last-child {
    font-weight: 600;
    color: var(--ink);
    text-align: right;
}

/* Apply Page */
.apply-header-context {
    background: var(--pale);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}
.apply-logo {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    flex-shrink: 0;
}
.apply-header-context h3 {
    margin: 0 0 4px;
    font-size: 1.3rem;
    font-family: var(--font-display);
}
.apply-header-context p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 900px) {
    .job-detail-grid { grid-template-columns: 1fr; }
    .job-sidebar { position: static; }
}

/* ============================================================
   FIX: JOB CARD FOOTER SPACING (Overlapping text and button)
   ============================================================ */

.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
    padding-top: 20px;
    margin-top: auto;
    gap: 16px; /* Forces space between text and button */
    flex-wrap: wrap; /* Prevents squishing on small screens */
}

.job-date {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap; /* Prevents the date from wrapping awkwardly */
}

/* Ensure the button inside the footer doesn't shrink and looks right */
.job-card-footer .btn {
    flex-shrink: 0;
    padding: 10px 20px;
    font-size: 14px;
}

/* ============================================================
   ADMIN TABLE POLISH & BUTTON FIXES
   ============================================================ */

/* Force table cells to align properly and prevent date wrapping */
.admin-table td {
    vertical-align: middle !important;
}
.admin-table td:nth-child(4), 
.admin-table td:nth-child(5) {
    white-space: nowrap; /* Prevents dates from stacking */
}

/* Action button group */
.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Red Danger Button */
.btn--danger {
    background: #fee2e2;
    color: #e6242f;
    border-color: #fecaca;
}
.btn--danger:hover {
    background: #e6242f;
    color: white;
    border-color: #e6242f;
}

/* Make sure small icon buttons in tables are perfectly square */
.btn-icon {
    width: 34px;
    height: 34px;
    padding: 0 !important;
    display: inline-grid !important;
    place-items: center !important;
    border-radius: 6px !important;
}

/* 3 Column Form Row */
.ef-row--3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}
@media (max-width: 768px) {
    .ef-row--3 { grid-template-columns: 1fr; }
}

/* ============================================================
   VISUAL IMPROVEMENTS: Overlays, Footer Logo, & Image Grids
   ============================================================ */

/* Make hero overlays a transparent black so the images show through */
.hero__overlay {
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 100%) !important;
}
.page-hero__overlay {
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 100%) !important;
}

/* Remove the white filter from the footer logo */
.footer-logo {
    filter: none !important;
    background: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    max-height: 80px;
}

/* Service Card with Image */
.service-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 12px 12px 0 0;
}
.service-card-content {
    padding: 24px;
}

/* 2-Image Grid for About Section */
.image-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    height: 100%;
    min-height: 400px;
}
.image-grid-2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}
.image-grid-2 img:nth-child(2) {
    margin-top: 40px; /* Offset the second image for a stylish look */
}

@media (max-width: 768px) {
    .image-grid-2 { grid-template-columns: 1fr; min-height: auto; }
    .image-grid-2 img:nth-child(2) { margin-top: 0; }
}

/* Ken Burns Effect for Page Heroes */
.page-hero__media {
    animation: pageKenBurns 20s ease-out infinite alternate !important;
}
@keyframes pageKenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.15) translate(-1%, -1%); }
}

/* Services Page Layout with Images */
.svc-row {
    display: grid;
    grid-template-columns: 300px 1fr auto;
    gap: 32px;
    align-items: center;
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
}
.svc-row-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
@media (max-width: 768px) {
    .svc-row { grid-template-columns: 1fr; gap: 20px; }
    .svc-row-img { height: 250px; }
}

/* Shopfitting Cards */
.shopfitting-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}
.shopfitting-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
.shopfitting-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.shopfitting-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   PORTAL CTA & GLOBAL LAYOUT FIXES
   ============================================================ */

/* Portal CTA Banner */
.portal-cta {
    background: linear-gradient(90deg, var(--ink) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
    color: white;
    border-top: 4px solid var(--primary);
}
.portal-cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
.portal-cta h2 {
    color: white;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin: 0 0 10px;
}
.portal-cta p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin: 0;
}
.portal-cta-buttons {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

/* Mobile Close Button for Nav Drawer */
.nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pale);
    border: none;
    color: var(--ink);
    font-size: 20px;
    cursor: pointer;
    display: grid;
    place-items: center;
}

/* ============================================================
   ULTIMATE MOBILE OVERHAUL (max-width: 980px)
   ============================================================ */
@media (max-width: 980px) {
    /* Topbar - Stack instead of hiding */
    .header-topbar { 
        display: block; 
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .header-topbar__inner { 
        flex-direction: column; 
        height: auto; 
        padding: 12px 0; 
        gap: 12px; 
    }
    .header-topbar__contact, 
    .header-topbar__actions, 
    .top-left, 
    .top-right { 
        display: flex; 
        justify-content: center; 
        flex-wrap: wrap; 
        gap: 15px; 
        width: 100%;
    }
    .header-topbar__divider { display: none; }
    
    /* Mobile Nav Drawer */
    .nav-toggle { display: flex; z-index: 220; }
    .nav-links {
        display: none;
        position: fixed; top: 0; right: 0; bottom: 0;
        width: min(340px, 90vw);
        background: #fff; flex-direction: column; align-items: stretch;
        padding: 80px 24px 32px;
        transform: translateX(105%); transition: transform .3s ease;
        z-index: 10000; overflow-y: auto; box-shadow: -20px 0 60px rgba(0,0,0,.3);
    }
    .nav-links.open { display: flex; transform: translateX(0); }
    .nav-links > a {
        padding: 16px 0; font-size: 1.1rem;
        border-bottom: 1px solid var(--line); color: var(--ink);
    }
    .nav-links .nav-button {
        margin-top: 24px; text-align: center;
        padding: 14px; border-radius: 4px;
    }

    /* Grid Overrides */
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr !important; }
    .two-col { grid-template-columns: 1fr !important; gap: 30px !important; }
    .jobs-grid { grid-template-columns: 1fr !important; }
    
    /* Footer Grid */
    .footer-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 600px) {
    /* Footer Stacking */
    .footer-grid { grid-template-columns: 1fr !important; }
    
    /* Portal CTA Stacking */
    .portal-cta-inner { flex-direction: column; text-align: center; }
    .portal-cta-buttons { flex-direction: column; width: 100%; }
    
    /* Forms */
    .ef-row--2, .ef-row--3 { grid-template-columns: 1fr !important; }
    
    /* Job Page Details */
    .job-detail-grid { grid-template-columns: 1fr !important; }
    .job-sidebar { position: static !important; }
    
    /* Search Bar */
    .search-bar-horizontal { flex-direction: column; align-items: stretch; }
    .search-bar-horizontal .ef-field { min-width: 100%; }
}

/* Admin & Seeker Dashboard Mobile Overrides */
@media (max-width: 1024px) {
    .dash-layout { grid-template-columns: 1fr !important; }
    .dash-sidebar { 
        position: static !important; 
        display: flex; flex-direction: column; align-items: center; 
        padding: 20px; 
    }
    .dash-menu { 
        display: flex; flex-wrap: wrap; justify-content: center; 
        gap: 10px; border: none; padding-top: 10px; 
    }
    .dash-stats { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 768px) {
    .dash-stats { grid-template-columns: 1fr !important; }
    .admin-layout { flex-direction: column !important; }
    .admin-sidebar { width: 100% !important; height: auto !important; position: static !important; }
    .admin-menu { display: flex !important; flex-wrap: wrap !important; padding: 10px !important; }
    .admin-main { padding: 20px !important; }
    .admin-stats { grid-template-columns: 1fr !important; }
}

/* ============================================================
   MOBILE TOPBAR CLEANUP
   ============================================================ */

@media (max-width: 980px) {
    /* 1. Hide the phone and email section */
    .topbar .top-left,
    .header-topbar .top-left {
        display: none !important;
    }

    /* 2. Keep the remaining links inline and centered */
    .topbar-inner,
    .header-topbar__inner {
        flex-direction: row !important;
        justify-content: center !important;
        padding: 10px 0 !important;
    }

    /* 3. Style the portal links for mobile */
    .topbar .top-right,
    .header-topbar__actions {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 20px !important;
        width: 100% !important;
        font-size: 13px !important;
    }

    .topbar .top-right a,
    .header-topbar__actions a {
        white-space: nowrap !important;
    }
}

/* ============================================================
   FORCE MOBILE TOPBAR LINKS INLINE
   ============================================================ */

@media (max-width: 980px) {
    .topbar .top-right,
    .header-topbar__actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important; /* Forces them into a single line */
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important; /* Tighter gap so they fit */
        width: 100% !important;
        font-size: 11px !important; /* Slightly smaller text for mobile */
        overflow-x: auto; /* Allows scrolling if screen is extremely tiny */
        padding: 0 5px;
    }

    /* Hide the FontAwesome icons on mobile to save horizontal space */
    .topbar .top-right a i,
    .header-topbar__actions a i {
        display: none !important;
    }

    /* Remove the hardcoded non-breaking spaces (&nbsp;) from the HTML */
    .topbar .top-right a {
        padding: 0 !important;
        white-space: nowrap !important;
    }
}

/* For very small phones, shrink the text a bit more */
@media (max-width: 400px) {
    .topbar .top-right,
    .header-topbar__actions {
        font-size: 10px !important;
        gap: 6px !important;
    }
}

/* ============================================================
   PERFECT MOBILE TOPBAR (Icons + Text inline)
   ============================================================ */

@media (max-width: 980px) {
    .topbar .top-right,
    .header-topbar__actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-evenly !important; /* Spreads them perfectly across the width */
        align-items: center !important;
        width: 100% !important;
        font-size: 13px !important; /* Readable size */
        padding: 0 5px;
    }

    /* Ensure icons are visible on mobile */
    .topbar .top-right a i,
    .header-topbar__actions a i {
        display: inline-block !important;
        margin-right: 6px;
    }

    .topbar .top-right a,
    .header-topbar__actions a {
        padding: 0 !important;
        white-space: nowrap !important;
        color: rgba(255,255,255,0.9) !important;
        display: flex;
        align-items: center;
    }
}

/* Extra Small Phones (iPhone SE, etc.) */
@media (max-width: 380px) {
    .topbar .top-right,
    .header-topbar__actions {
        font-size: 11px !important; /* Only shrink if the screen is tiny */
    }
    .topbar .top-right a i,
    .header-topbar__actions a i {
        margin-right: 4px;
    }
}

/* ============================================================
   MOBILE TOPBAR FONT SIZE 15PX
   ============================================================ */

@media (max-width: 980px) {
    .topbar .top-right,
    .header-topbar__actions {
        font-size: 15px !important; /* Increased to 15px */
        gap: 5px !important; /* Slightly tighter gap to ensure they fit */
        overflow-x: auto !important; /* Adds a smooth swipe if the screen is very narrow */
        scrollbar-width: none; /* Hides the ugly scrollbar */
    }
    
    .topbar .top-right::-webkit-scrollbar,
    .header-topbar__actions::-webkit-scrollbar {
        display: none; /* Hides scrollbar on Safari/Chrome */
    }

    .topbar .top-right a i,
    .header-topbar__actions a i {
        margin-right: 5px; /* Adjust icon spacing for the larger text */
    }
}

/* Remove the previous small-screen override so it stays exactly 15px */
@media (max-width: 380px) {
    .topbar .top-right,
    .header-topbar__actions {
        font-size: 15px !important;
    }
}

/* ============================================================
   DECORATED MOBILE MENU DRAWER
   ============================================================ */

/* Hide icons on desktop by default */
.nav-icon {
    display: none;
}

@media (max-width: 980px) {
    /* Show icons inside the mobile drawer */
    .nav-icon {
        display: inline-block;
        color: var(--primary);
        font-size: 18px;
        width: 24px;
        text-align: center;
        margin-right: 12px;
    }

    /* Style the drawer links to align icon and text */
    .nav-links > a {
        display: flex !important;
        align-items: center !important;
        padding: 18px 10px !important;
        border-bottom: 1px solid var(--line) !important;
        transition: all 0.2s ease;
    }

    /* Hover effect for drawer links */
    .nav-links > a:hover, 
    .nav-links > a.active {
        background: var(--pale);
        padding-left: 20px !important; /* Slight slide effect */
        color: var(--primary) !important;
        border-bottom-color: transparent !important;
    }

    /* Special styling for the CTA button in the drawer */
    .nav-links .nav-button {
        margin-top: 24px;
        justify-content: center;
        border-radius: 8px;
        background: var(--primary);
        color: white !important;
        border-bottom: none !important;
        padding: 16px !important;
    }
    
    .nav-links .nav-button .nav-icon {
        color: white;
    }

    .nav-links .nav-button:hover {
        background: var(--primary-dark);
        padding-left: 16px !important; /* Override slide effect for button */
    }
}
