:root {
    --bg: #f5f7fa;
    --bg-soft: #eef2f7;
    --text: #1a2332;
    --text-muted: #5c6b7c;
    --line: rgba(0, 0, 0, 0.08);
    --glass: rgba(255, 255, 255, 0.85);
    --glass-strong: rgba(255, 255, 255, 0.95);
    --brand: #2fa4ff;
    --brand-strong: #0c7ed9;
    --radius: 18px;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #eef2f7 0%, var(--bg) 40%, #e8ecf2 100%);
    color: var(--text);
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > main,
body > .admin-main {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--brand-strong);
}

a:hover,
a:focus-visible {
    color: #0568b8;
}

.container {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
    z-index: 300;
    background: var(--text);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
}

.glass {
    background: var(--glass);
    border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
}

.header-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.brand img {
    width: auto;
    max-height: 56px;
}

/* Logo in circle */
.brand-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 8px 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    text-decoration: none;
}

.brand-circle-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 0;
}

.brand-circle img {
    max-height: 48px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.brand-circle:hover,
.brand-circle:focus-visible {
    background: #fafbfc;
}

.nav-toggle {
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--glass-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle-bar {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    margin: 0 20px;
    padding: 14px;
    border-radius: 16px;
    background: var(--glass-strong);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    gap: 8px;
}

.site-nav.is-open {
    display: flex;
}

.site-nav a {
    text-decoration: none;
    color: var(--text);
    padding: 11px 12px;
    border-radius: 10px;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
    background: rgba(47, 164, 255, 0.12);
}

.hero,
.page-hero {
    background-size: cover;
    background-position: center;
    padding: 72px 0 54px;
}

.hero-content,
.page-hero-content {
    border-radius: 20px;
    padding: 22px 20px;
    color: var(--text);
}

.hero .hero-content,
.page-hero .page-hero-content {
    color: var(--text);
}

.eyebrow {
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-strong);
}

h1,
h2,
h3 {
    margin-top: 0;
    line-height: 1.2;
}

h1 {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    margin-bottom: 12px;
}

h2 {
    font-size: clamp(1.4rem, 4vw, 2rem);
    margin-bottom: 12px;
}

h3 {
    font-size: clamp(1.05rem, 3vw, 1.25rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    color: #fff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--text);
}

.section {
    padding: 48px 0;
}

.section-soft {
    background: rgba(200, 212, 230, 0.35);
}

.grid-two {
    display: grid;
    gap: 16px;
}

.card,
.process-step,
.stat,
.accordion-item,
.tag {
    border-radius: var(--radius);
    padding: 16px;
}

.process-grid {
    display: grid;
    gap: 14px;
}

.stats-grid {
    display: grid;
    gap: 14px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.1rem;
    margin: 0 0 6px;
    font-weight: 800;
}

.cta-section {
    background-size: cover;
    background-position: center;
}

.cta-box {
    border-radius: 20px;
    text-align: center;
    padding: 22px 20px;
}

.accordion {
    display: grid;
    gap: 12px;
}

.accordion-trigger {
    width: 100%;
    text-align: left;
    color: var(--text);
    background: transparent;
    border: 0;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 0;
}

.accordion-trigger:hover {
    color: var(--brand-strong);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.accordion-item.is-open .accordion-content {
    max-height: 400px;
}

.tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    font-weight: 700;
}

.quick-form {
    display: grid;
    gap: 10px;
}

.quick-form input,
.quick-form textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    color: var(--text);
    padding: 10px 12px;
}

.quick-form textarea {
    resize: vertical;
}

.quick-form input:focus-visible,
.quick-form textarea:focus-visible,
.quick-form select:focus-visible,
.btn:focus-visible,
.accordion-trigger:focus-visible,
.nav-toggle:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.form-feedback {
    min-height: 20px;
    margin: 0;
    font-size: 0.92rem;
    color: var(--brand-strong);
}

.form-feedback-error {
    color: #b91c1c;
}

.quick-form select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    color: var(--text);
    font-size: 1rem;
}

.site-footer {
    margin-top: auto;
    border-top: 3px solid var(--brand-strong);
    background: linear-gradient(180deg, #1a2838 0%, #121a24 100%);
    color: rgba(255, 255, 255, 0.88);
}

.site-footer a {
    color: #9fd4ff;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-main {
    padding: 2.5rem 0 2rem;
}

.footer-grid {
    display: grid;
    gap: 2rem 2.5rem;
}

.footer-brand {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 10px 16px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
    text-decoration: none;
}

.footer-logo-link:hover,
.footer-logo-link:focus-visible {
    background: #fafbfc;
    text-decoration: none;
}

.footer-logo-link:hover .footer-logo,
.footer-logo-link:focus-visible .footer-logo {
    opacity: 0.95;
}

.footer-logo {
    display: block;
    max-height: 52px;
    width: auto;
}

.footer-tagline {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.68);
    max-width: 22rem;
}

.footer-heading {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 1rem;
}

.footer-nav .footer-heading {
    margin-bottom: 0.85rem;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li + li {
    margin-top: 0.5rem;
}

.footer-links a {
    font-weight: 600;
    font-size: 0.95rem;
}

.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-contact-list li + li {
    margin-top: 1rem;
}

.footer-contact-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.2rem;
}

.footer-contact-value {
    font-size: 0.98rem;
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1rem 0 1.35rem;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
}

.copyright {
    margin: 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-region {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.job-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.job-card {
    padding: 20px;
}

.job-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.job-title a {
    color: inherit;
    text-decoration: none;
}

.job-title a:hover {
    color: var(--brand-strong);
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 12px;
}

.job-excerpt {
    margin: 0 0 14px;
    font-size: 0.95rem;
}

.filters-form {
    padding: 16px;
    margin-bottom: 24px;
    border-radius: var(--radius);
}

.filters-grid {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto;
    gap: 10px 12px;
    align-items: center;
}

.filters-grid label { font-size: 0.9rem; }
.filters-grid input {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    color: var(--text);
}

@media (max-width: 600px) {
    .filters-grid {
        grid-template-columns: 1fr 1fr;
    }
    .filters-grid .btn { grid-column: 1 / -1; }

    .footer-bottom-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}

.empty-state {
    text-align: center;
    padding: 32px 20px;
}

.job-detail .job-body { margin-top: 16px; }
.job-detail .job-body h2 { font-size: 1.1rem; margin: 16px 0 8px; }
.job-detail .job-description,
.job-detail .job-requirements { margin: 0 0 8px; }

.apply-form .quick-form { max-width: 32rem; }

/* Services page: For Employers / For Job Seekers */
.services-split {
    display: grid;
    gap: 1.5rem;
}

.services-block {
    padding: 1.5rem;
}

.services-block h2 {
    margin-bottom: 1rem;
}

.services-list {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
}

.services-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

.services-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--brand-strong);
    font-weight: 700;
}

@media (min-width: 768px) {
    .services-split {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile: hide circular / pill logo in header (logo still in nav & footer) */
@media (max-width: 767px) {
    .site-header .brand-circle {
        display: none;
    }

    .header-inner {
        justify-content: flex-end;
    }
}

@media (min-width: 768px) {
    .site-header {
        border-radius: 0;
    }

    .nav-toggle {
        display: none;
    }

    .site-nav {
        position: static;
        display: flex;
        flex-direction: row;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .grid-two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .header-inner {
        min-height: 78px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
