:root {
    --primary-forest: #0D2E1F;       /* Deep Forest Green (Luxury & Trust) */
    --secondary-sage: #5F7A61;      /* Soft Muted Sage */
    --accent-gold: #C5A880;         /* Champagne Gold */
    --cta-emerald: #135A37;         /* Vibrant Emerald Green */
    --cta-hover: #0E4429;           /* Deep Emerald Green for Hover */
    --text-charcoal: #222222;       /* Charcoal for Body Text */
    --text-muted: #555555;          /* Muted Gray for descriptions */
    --bg-light: #F4F6F4;            /* Soft Tint Sage Background */
    --bg-warm: #FAF9F6;             /* Warm Editorial Alabaster White */
    --bg-white: #FFFFFF;
    --border-color: #E2E8F0;
    --border-glow: rgba(197, 168, 128, 0.3);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow-md: 0 4px 20px rgba(13, 46, 31, 0.06);
    --shadow-lg: 0 10px 30px rgba(13, 46, 31, 0.12);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

svg {
    stroke-width: 1.75px;
}

body {
    font-family: var(--font-body);
    color: var(--text-charcoal);
    background-color: var(--bg-warm);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Scroll Reveal Base CSS (Animations Disabled) */
.reveal {
    opacity: 1;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary-forest);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    line-height: 1.15;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
    position: relative;
    line-height: 1.2;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 14px;
}

p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.65;
}

/* Shared Navigation */
.navbar {
    position: sticky;
    top: 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 12px rgba(13, 46, 31, 0.05);
    z-index: 1000;
    transition: var(--transition-smooth);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary-forest);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: var(--transition-smooth);
}

.logo span {
    color: var(--accent-gold);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary-forest);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 6px 0;
    transition: var(--transition-smooth);
}

.nav-menu a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--cta-emerald);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-menu a:not(.btn):hover::after, 
.nav-menu a:not(.btn).active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-menu a:hover {
    color: var(--cta-emerald);
}

.nav-menu a.active {
    color: var(--cta-emerald);
    font-weight: 600;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    z-index: 1100;
}

.menu-toggle .bar {
    width: 28px;
    height: 2.5px;
    background-color: var(--primary-forest);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hamburger active/morph state */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    gap: 8px;
}

.btn-primary {
    background-color: var(--cta-emerald);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--cta-hover);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 20px rgba(19, 90, 55, 0.25), 0 4px 8px rgba(19, 90, 55, 0.15);
}

.btn-secondary {
    background-color: var(--primary-forest);
    color: var(--bg-white) !important;
}

.btn-secondary:hover {
    background-color: var(--cta-emerald);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 20px rgba(13, 46, 31, 0.25), 0 4px 8px rgba(13, 46, 31, 0.15);
}

.btn-outline {
    border: 2px solid var(--primary-forest);
    color: var(--primary-forest);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-forest);
    color: var(--bg-white);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 20px rgba(13, 46, 31, 0.15);
}

.btn-block {
    width: 100%;
}

.text-link {
    color: var(--cta-emerald);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-smooth);
}

.text-link:hover {
    color: var(--accent-gold);
    transform: translateX(4px) scale(1.02);
}

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, var(--primary-forest) 0%, #05160E 100%);
    color: var(--bg-white);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(197, 168, 128, 0.15), transparent 60%);
    pointer-events: none;
}

.page-banner h1 {
    color: var(--bg-white);
    font-size: 3rem;
    margin-bottom: 12px;
}

.page-banner p {
    color: var(--accent-gold);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    font-family: var(--font-body);
}

/* Hero Section */
.hero {
    /* Keep the search-led hero within the first viewport on common laptop screens. */
    min-height: calc(100svh - 80px);
    padding: clamp(36px, 5vw, 64px) 0;
    background: radial-gradient(circle at 10% 20%, rgba(244, 246, 244, 0.8) 0%, rgba(250, 249, 246, 1) 90%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background-color: rgba(197, 168, 128, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(32px, 5vw, 56px);
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(197, 168, 128, 0.15);
    border: 1px solid rgba(197, 168, 128, 0.3);
    color: var(--primary-forest);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 16px;
    max-width: 700px;
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.65;
    margin-bottom: 24px;
    color: var(--text-muted);
}

/* Reed.co.uk Style Hero Search Form */
.hero-search-form {
    display: flex;
    background-color: var(--bg-white);
    border-radius: 10px;
    padding: 6px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    align-items: center;
    width: 100%;
    max-width: 680px;
}

.search-input-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 6px 16px;
    position: relative;
}

.search-input-group:not(:last-of-type) {
    border-right: 1px solid var(--border-color);
}

.search-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary-sage);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.input-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-icon {
    color: var(--cta-emerald);
    flex-shrink: 0;
}

.hero-search-form input {
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    width: 100%;
    color: var(--text-charcoal);
    background: transparent;
}

.hero-search-form input::placeholder {
    color: #A0AEC0;
}

.btn-search {
    background-color: var(--cta-emerald);
    color: var(--bg-white);
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.btn-search:hover {
    background-color: var(--cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 90, 55, 0.2);
}

.popular-searches {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.popular-searches a {
    color: var(--cta-emerald);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.popular-searches a:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

.nav-link-signin {
    color: var(--primary-forest) !important;
    font-weight: 600 !important;
}

.nav-link-signin:hover {
    color: var(--cta-emerald) !important;
}

/* Authentication (Login/Signup) Layouts - similar to Reed.co.uk */
.auth-page {
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 60px 24px;
}

.auth-card {
    background-color: var(--bg-white);
    padding: 48px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 480px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 2.25rem;
    font-family: var(--font-heading);
    margin-bottom: 8px;
    color: var(--primary-forest);
}

.auth-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.auth-header p a {
    color: var(--cta-emerald);
    text-decoration: none;
    font-weight: 600;
}

.auth-header p a:hover {
    text-decoration: underline;
}

/* User Type Switcher (Jobseeker vs Recruiter) */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
}

.auth-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    text-align: center;
}

.auth-tab-btn.active {
    color: var(--cta-emerald);
    border-bottom-color: var(--cta-emerald);
}

/* Social Logins styling */
.social-auth-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.btn-social {
    background-color: var(--bg-warm);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-social:hover {
    background-color: var(--bg-light);
    border-color: var(--cta-emerald);
    transform: translateY(-2px);
}

.btn-social svg {
    width: 22px;
    height: 22px;
}

.divider-text {
    text-align: center;
    position: relative;
    margin: 24px 0;
}

.divider-text::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--border-color);
    z-index: 1;
}

.divider-text span {
    background-color: var(--bg-white);
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
    position: relative;
    z-index: 2;
}

.auth-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 0.875rem;
}

.auth-form-footer a {
    color: var(--cta-emerald);
    text-decoration: none;
    font-weight: 500;
}

.auth-form-footer a:hover {
    text-decoration: underline;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    accent-color: var(--cta-emerald);
}

.checkbox-group label {
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Password visibility toggle */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary-sage);
    padding: 4px;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.password-toggle:hover {
    color: var(--cta-emerald);
}

/* Mobile: stack form row */
@media (max-width: 540px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 32px 20px;
    }
}


.hero-image-wrapper {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-card {
    position: absolute;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--bg-white);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.6s ease;
}

.top-card {
    width: 75%;
    height: 250px;
    top: 10px;
    left: 0;
    z-index: 2;
    animation: float 6s ease-in-out infinite alternate;
}

.bottom-card {
    width: 75%;
    height: 250px;
    bottom: 10px;
    right: 0;
    z-index: 1;
    animation: float 6s ease-in-out infinite alternate-reverse;
    animation-delay: 1s;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 0.8s ease;
}

.image-card:hover {
    z-index: 3;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(13, 46, 31, 0.18);
}

.image-card:hover img {
    scale: 1.05;
}

.image-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(13, 46, 31, 0.9));
    color: var(--bg-white);
    padding: 24px 20px 16px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
}

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

/* Home Overview Section */
.overview-section {
    padding: 100px 0;
    background-color: var(--bg-white);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
    margin: 16px auto 0;
    border-radius: 2px;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.card {
    background: var(--bg-warm);
    border: 1px solid var(--border-color);
    padding: 40px 32px;
    border-radius: 12px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--cta-emerald), var(--accent-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card h3 {
    margin-top: 10px;
    font-size: 1.45rem;
    color: var(--primary-forest);
}

.card p {
    font-size: 1rem;
    margin-bottom: 24px;
    color: var(--text-muted);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-glow);
}

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

.card-icon {
    font-size: 2.2rem;
    color: var(--cta-emerald);
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(19, 90, 55, 0.05);
    border-radius: 16px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(19, 90, 55, 0.1);
}

/* Services Page Tabs Navigation */
.services-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    background: var(--bg-light);
    padding: 8px;
    border-radius: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.tab-btn {
    background: none;
    border: none;
    padding: 14px 28px;
    border-radius: 40px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-forest);
    cursor: pointer;
    transition: var(--transition-smooth);
    flex: 1;
    text-align: center;
}

.tab-btn:hover {
    background-color: rgba(197, 168, 128, 0.1);
}

.tab-btn.active {
    background-color: var(--primary-forest);
    color: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

/* Services Page Styles */
.services-detail-section {
    padding: 80px 0;
    background-color: var(--bg-warm);
}

.service-block {
    background-color: var(--bg-white);
    border-radius: 16px;
    padding: 60px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    display: none; /* Controlled by JS Tabs */
}

.service-block.active {
    animation: fadeInUp 0.5s ease forwards;
}

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

.service-tag {
    color: var(--accent-gold);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 12px;
}

.service-block h2 {
    font-size: 2.2rem;
    margin-bottom: 24px;
}

.service-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 32px;
}

.service-lists h4 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--primary-forest);
    border-left: 3px solid var(--accent-gold);
    padding-left: 12px;
}

.check-list, .bullet-list {
    list-style: none;
}

.check-list li, .bullet-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 1rem;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23135A37' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.bullet-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--accent-gold);
    border-radius: 50%;
}

.highlight-box {
    margin-top: 40px;
    background-color: var(--bg-light);
    padding: 30px;
    border-left: 4px solid var(--cta-emerald);
    border-radius: 8px;
}

.highlight-box p {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-forest);
    margin: 0;
}

.perfect-for {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 1rem;
    color: var(--text-muted);
}

.perfect-for strong {
    color: var(--primary-forest);
}

.pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.pill-grid span {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-forest);
    transition: var(--transition-smooth);
}

.pill-grid span:hover {
    background-color: var(--primary-forest);
    color: var(--bg-white);
    border-color: var(--primary-forest);
}

/* About Page Styles */
.about-page-content {
    padding: 100px 0;
}

.about-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.vision-mission-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.vision-mission-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-glow);
}

.vision-mission-card h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 12px;
}

.statement-block {
    margin-top: 24px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border-color);
}

.statement-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.statement-block strong {
    color: var(--cta-emerald);
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-family: var(--font-body);
}

.statement-block p {
    margin-bottom: 0;
    font-size: 1.05rem;
}

/* Brand Values Section (Added for better layout) */
.values-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.value-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition-smooth);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-card .icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: inline-block;
}

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.value-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Contact Page Styles */
.contact-page-content {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.info-list {
    margin-top: 40px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item .icon-badge {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cta-emerald);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.info-item:hover .icon-badge {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: scale(1.05);
}

.info-item strong {
    color: var(--primary-forest);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 4px;
}

.info-item p {
    margin-bottom: 0;
    color: var(--text-muted);
}

.contact-form-card {
    background-color: var(--bg-white);
    padding: 50px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--primary-forest);
    transition: var(--transition-smooth);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--bg-warm);
    transition: var(--transition-smooth);
    color: var(--text-charcoal);
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: #A0AEC0;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--cta-emerald);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(19, 90, 55, 0.1);
}

/* Floating validation error message */
.form-group.has-error input, .form-group.has-error textarea {
    border-color: #E53E3E;
    background-color: #FFF5F5;
}

.form-group.has-error label {
    color: #E53E3E;
}

.error-msg {
    color: #E53E3E;
    font-size: 0.8rem;
    font-weight: 500;
    position: absolute;
    bottom: -18px;
    left: 4px;
}

/* Form Feedback & Success Design */
.form-feedback {
    display: none;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.5;
}

.form-feedback.success {
    display: block;
    background-color: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #14532D;
    animation: successPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #22C55E;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.85rem;
}

.form-feedback.error {
    display: block;
    background-color: #FEF2F2;
    border: 1px solid #FEE2E2;
    color: #991B1B;
}

/* Loading button state */
.btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.shake-anim {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

@keyframes successPop {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Map Section (visual improvement) */
.map-section {
    padding: 80px 0 0;
    background-color: var(--bg-white);
}

.map-placeholder {
    height: 400px;
    background: linear-gradient(135deg, #1A3025 0%, #0D1E16 100%);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    text-align: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-placeholder::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    opacity: 0.15;
    background-image: radial-gradient(var(--accent-gold) 1px, transparent 0);
    background-size: 24px 24px;
    transform: rotate(15deg);
}

.map-placeholder h3 {
    color: var(--bg-white);
    font-size: 1.75rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.map-placeholder p {
    color: var(--accent-gold);
    max-width: 400px;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

/* Shared Footer */
.footer {
    background-color: var(--primary-forest);
    color: var(--bg-white);
    padding: 50px 0;
    border-top: 1px solid rgba(197, 168, 128, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--bg-white);
    text-decoration: none;
}

.footer-logo span {
    color: var(--accent-gold);
}

/* Responsive Rules */
@media (max-width: 1024px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    .hero-grid { gap: 40px; }
}

@media (max-width: 992px) {
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .about-section-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        height: 80px;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 50px 24px;
        gap: 30px;
        z-index: 999;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        pointer-events: none;
    }

    .nav-menu.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-menu a {
        font-size: 1.25rem;
    }

    .nav-menu a.btn {
        width: 100%;
        max-width: 280px;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .hero {
        min-height: auto;
        padding: 40px 0 56px;
    }

    .hero-search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
        margin: 0 auto 20px;
    }
    
    .search-input-group {
        padding: 8px 0;
    }

    .search-input-group:not(:last-of-type) {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 12px;
    }
    
    .btn-search {
        width: 100%;
        margin-top: 10px;
    }

    .hero-image-wrapper {
        height: 340px;
    }

    .top-card, .bottom-card {
        height: 200px;
    }

    .service-block {
        padding: 30px 20px;
    }

    .service-lists {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-form-card {
        padding: 30px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.85rem; }
    .hero-search-form {
        padding: 12px;
    }
    .hero-image-wrapper {
        display: none; /* Hide images on very small devices to prioritize content */
    }
    .values-grid {
        grid-template-columns: 1fr;
    }
    .tab-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* --------------------------------------------------------------------------
   Recruitment portal refresh: a compact, search-first interface inspired by
   modern job boards, retaining Jewtread's forest and gold brand palette.
   -------------------------------------------------------------------------- */
:root {
    --surface: #ffffff;
    --surface-subtle: #f5f7f5;
    --ink: #163326;
    --line: #d8e0da;
    --focus-ring: rgba(19, 90, 55, 0.18);
}

body {
    background: var(--surface-subtle);
    color: var(--ink);
}

h1, h2, h3, h4,
.logo, .footer-logo {
    font-family: var(--font-body);
    letter-spacing: -0.03em;
}

h1, h2, h3, h4 { font-weight: 700; }

.container {
    max-width: 1240px;
    padding-left: 32px;
    padding-right: 32px;
}

.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: none;
    backdrop-filter: none;
}

.nav-container { height: 72px; }

.logo {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.06em;
}

.navbar {
    box-shadow: 0 1px 0 rgba(13, 46, 31, 0.04);
}

.nav-container { gap: 24px; }

.logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--primary-forest);
    text-decoration: none;
}

.logo::before {
    display: none;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--bg-white);
    text-decoration: none;
}

.logo small {
    display: none;
}

.nav-menu { gap: 4px; }
.nav-menu a {
    border-radius: 4px;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 9px 11px;
}
.nav-menu a:not(.btn)::after { display: none; }
.nav-menu a:not(.btn):hover { background: #edf4ee; color: var(--cta-emerald); }
.nav-menu a:not(.btn).active { background: #e2eee4; color: var(--cta-emerald); }
.nav-link-signin { margin-left: 8px; border: 1px solid var(--line); }
.nav-link-signin:hover { border-color: var(--cta-emerald); }
.nav-menu .btn-secondary { margin-left: 4px; min-height: 38px; padding: 8px 15px; }

.btn {
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 4px;
    box-shadow: none;
    font-size: 0.9rem;
}

.btn-primary, .btn-search { background: var(--cta-emerald); }
.btn-secondary { background: var(--primary-forest); }
.btn-primary:hover, .btn-secondary:hover, .btn-search:hover {
    transform: none;
    box-shadow: none;
}

.page-banner {
    padding: 48px 0;
    text-align: left;
    background: var(--primary-forest);
}

.page-banner h1 {
    max-width: 760px;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.04em;
}

.page-banner p { max-width: 700px; margin-left: 0; font-size: 1.05rem; }

.hero {
    min-height: calc(100svh - 72px);
    background: linear-gradient(135deg, #f1f6f2 0%, #ffffff 65%);
}

.hero h1 { font-weight: 800; letter-spacing: -0.05em; }
.hero-content p { max-width: 650px; color: #466052; }

.badge {
    padding: 6px 10px;
    border: 0;
    border-radius: 3px;
    background: #e0ebe2;
    color: var(--cta-hover);
    font-size: 0.72rem;
}

.hero-search-form {
    max-width: 720px;
    padding: 0;
    border: 1px solid #aebcaf;
    border-radius: 4px;
    box-shadow: 0 3px 8px rgba(13, 46, 31, 0.08);
    overflow: hidden;
}

.search-input-group { padding: 10px 16px; }
.search-label { color: #40664d; font-size: 0.68rem; }
.hero-search-form input { font-size: 0.9rem; }
.btn-search { align-self: stretch; border-radius: 0; padding: 12px 22px; }
.popular-searches { font-size: 0.85rem; }
.popular-searches a { text-decoration: underline; text-underline-offset: 2px; }

.hero-image-wrapper { height: 400px; }
.image-card { border: 1px solid var(--surface); border-radius: 6px; box-shadow: 0 12px 24px rgba(13, 46, 31, 0.14); }
.top-card, .bottom-card { height: 238px; }
.top-card, .bottom-card { animation: none; }
.image-card-label { border-radius: 0; padding: 8px 12px; font-size: 0.78rem; }

.overview-section, .about-page-content, .contact-page-content, .services-detail-section, .values-section {
    padding-top: 64px;
    padding-bottom: 64px;
}

.section-header { max-width: 740px; margin-bottom: 32px; text-align: left; }
.section-header h2::after { display: none; }
.section-header p { margin: 0; }

.overview-grid, .values-grid { gap: 18px; }
.card, .value-card, .vision-mission-card, .contact-form-card, .auth-card, .service-block {
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface);
    box-shadow: none;
}

.card { padding: 26px; }
.card::before { height: 3px; background: var(--cta-emerald); }
.card:hover, .value-card:hover, .vision-mission-card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(13, 46, 31, 0.08); }
.card h3, .value-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p, .value-card p { font-size: 0.92rem; }
.card-icon, .value-card .icon { border-radius: 4px; background: #e5efe6; color: var(--cta-emerald); }
.text-link { font-size: 0.9rem; text-decoration: underline; text-underline-offset: 3px; }

.services-tabs {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.tab-btn {
    border-radius: 0;
    padding: 17px 20px;
    color: #466052;
    font-size: 0.9rem;
}

.tab-btn.active { background: var(--surface); color: var(--cta-emerald); box-shadow: inset 0 -3px var(--cta-emerald); }
.tab-btn:hover { background: #eef5ef; transform: none; }
.service-block { padding: 38px; }
.service-tag { border-radius: 3px; background: #e5efe6; color: var(--cta-emerald); font-size: 0.73rem; }
.service-block h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.service-lists { gap: 32px; }
.pill-grid span { border-radius: 3px; background: #f1f5f1; border-color: #d5e1d6; font-size: 0.85rem; }
.highlight-box, .perfect-for { border-radius: 3px; border-left-width: 4px; }

.about-section-grid { gap: 24px; }
.vision-mission-card { padding: 30px; }
.statement-block { padding: 20px 0; }
.value-card { padding: 24px; }

.contact-wrapper { gap: 48px; }
.contact-info h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.info-item { border-bottom: 1px solid var(--line); padding: 16px 0; }
.info-item .icon-badge { border-radius: 4px; background: #e5efe6; color: var(--cta-emerald); }
.contact-form-card { padding: 32px; }
.form-group input, .form-group textarea {
    border-color: #b9c8bb;
    border-radius: 3px;
    background: var(--surface);
    padding: 12px 13px;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--cta-emerald); box-shadow: 0 0 0 3px var(--focus-ring); }
.map-placeholder { border-radius: 0; }

.auth-page { background: #f0f4f1; }
.auth-container { padding: 56px 24px; }
.auth-card { width: min(100%, 500px); padding: 34px; }
.auth-header { text-align: left; }
.auth-header h1 { font-size: 2rem; }
.login-notice {
    margin: 0 0 20px;
    padding: 12px 14px;
    border-left: 3px solid var(--cta-emerald);
    background: #e5efe6;
    color: var(--cta-hover);
    font-size: 0.86rem;
    font-weight: 600;
}
/* Job seeker dashboard */
.dashboard-page { background: var(--surface-subtle); }
.dashboard-main { padding: 48px 0 72px; }
.dashboard-welcome { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 32px; padding: 36px; background: var(--primary-forest); }
.dashboard-welcome h1 { margin: 0 0 8px; color: var(--surface); font-size: clamp(2rem, 4vw, 3rem); }
.dashboard-welcome p { margin: 0; color: #d6e5d8; }
.dashboard-welcome .section-kicker { color: var(--accent-gold); }
.dashboard-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; align-items: start; }
.dashboard-profile, .dashboard-section { border: 1px solid var(--line); background: var(--surface); }
.dashboard-profile { padding: 24px; }
.profile-avatar { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 18px; border-radius: 50%; background: #e2eee4; color: var(--cta-emerald); font-weight: 800; }
.dashboard-profile h2 { font-size: 1.25rem; margin-bottom: 6px; }
.dashboard-profile > p { font-size: 0.88rem; }
.profile-progress { margin: 22px 0; }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 7px; color: #607365; font-size: 0.78rem; }
.progress-label strong { color: var(--cta-emerald); }
.progress-track { height: 7px; overflow: hidden; background: #e4ebe5; }
.progress-track span { display: block; width: 45%; height: 100%; background: var(--cta-emerald); }
.profile-checklist { display: grid; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; color: #607365; font-size: 0.82rem; }
.profile-checklist li::before { display: inline-block; width: 18px; color: #8a9a8d; content: '○'; }
.profile-checklist .complete { color: var(--cta-emerald); }
.profile-checklist .complete::before { content: '✓'; }
.dashboard-content { display: grid; gap: 24px; }
.dashboard-section { padding: 26px; }
.dashboard-section .section-heading-row { margin-bottom: 20px; }
.dashboard-section h2 { margin: 0; font-size: 1.35rem; }
.dashboard-role-list { border-top: 1px solid var(--line); }
.dashboard-role { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.dashboard-role h3 { margin: 8px 0 3px; font-size: 1rem; }
.dashboard-role p { margin: 0; color: #607365; font-size: 0.82rem; }
.save-job { padding: 7px 11px; border: 1px solid #b9c8bb; background: var(--surface); color: var(--cta-emerald); font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer; }
.save-job:hover { background: #e5efe6; }
.save-job.saved { border-color: var(--cta-emerald); background: #e5efe6; }
.activity-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.activity-grid > div { padding: 20px 18px 8px 0; }
.activity-grid > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.activity-grid strong { display: block; color: var(--cta-emerald); font-size: 1.65rem; }
.activity-grid span { display: block; margin-bottom: 7px; color: var(--primary-forest); font-size: 0.85rem; font-weight: 700; }
.activity-grid p { margin: 0; font-size: 0.8rem; }

/* Job opportunities */
.opportunities-page { background: var(--surface-subtle); }
.opportunities-hero { padding: 54px 0; background: var(--primary-forest); }
.opportunities-hero .section-kicker { color: var(--accent-gold); }
.opportunities-hero h1 { max-width: 700px; margin: 0 0 10px; color: var(--surface); font-size: clamp(2rem, 4vw, 3.1rem); }
.opportunities-hero > .container > p { max-width: 680px; color: #d6e5d8; }
.opportunity-search { display: grid; grid-template-columns: 1.2fr 1fr 0.8fr auto; gap: 0; margin-top: 28px; border: 1px solid #a5b9a8; background: var(--surface); }
.opportunity-search > div { padding: 10px 15px; border-right: 1px solid var(--line); }
.opportunity-search label { display: block; margin-bottom: 3px; color: #40664d; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.opportunity-search input, .opportunity-search select { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text-charcoal); font: inherit; font-size: 0.88rem; }
.opportunity-search .btn { border-radius: 0; }
.opportunities-content { padding: 48px 0 72px; }
.opportunities-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 28px; align-items: start; }
.filter-panel { padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.filter-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.filter-heading h2 { margin: 0; font-size: 1.05rem; }
.filter-heading button { border: 0; background: transparent; color: var(--cta-emerald); font: inherit; font-size: 0.76rem; font-weight: 700; cursor: pointer; }
.filter-panel fieldset { display: grid; gap: 10px; margin: 0; padding: 17px 0; border: 0; border-top: 1px solid var(--line); }
.filter-panel legend { margin-bottom: 10px; color: var(--primary-forest); font-size: 0.84rem; font-weight: 800; }
.filter-panel label { color: #607365; font-size: 0.82rem; }
.filter-panel input { margin-right: 7px; accent-color: var(--cta-emerald); }
.results-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.results-heading h2 { margin: 0 0 4px; font-size: 1.5rem; }
.results-heading p { margin: 0; font-size: 0.85rem; }
.sort-control { display: grid; gap: 4px; color: #607365; font-size: 0.75rem; font-weight: 700; }
.sort-control select { min-width: 145px; padding: 8px; border: 1px solid #b9c8bb; background: var(--surface); font: inherit; font-size: 0.82rem; }
.opportunity-list { display: grid; gap: 14px; }
.opportunity-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; border: 1px solid var(--line); background: var(--surface); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.opportunity-card h3 { margin: 10px 0 3px; font-size: 1.12rem; }
.opportunity-employer { margin: 0 0 12px; color: #607365; font-size: 0.87rem; }
.opportunity-meta { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 12px; }
.opportunity-meta span { padding: 0 9px; border-right: 1px solid var(--line); color: #607365; font-size: 0.76rem; }
.opportunity-meta span:first-child { padding-left: 0; }
.opportunity-meta span:last-child { border: 0; }
.opportunity-description { max-width: 610px; margin: 0; font-size: 0.84rem; }
.opportunity-card-actions { display: grid; min-width: 110px; gap: 9px; }
.opportunity-card-actions .btn { min-height: 36px; padding: 8px 10px; font-size: 0.8rem; }
@media (hover: hover) and (pointer: fine) { .opportunity-card:hover { transform: translateY(-3px); border-color: #9eb5a2; box-shadow: 0 10px 20px rgba(13, 46, 31, 0.09); } }

/* Job details and applications */
.job-details-main, .applications-main { padding: 42px 0 72px; }
.back-link { display: inline-block; margin-bottom: 22px; color: var(--cta-emerald); font-size: 0.88rem; font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.job-details-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; align-items: start; }
.job-details-content { padding: 34px; border: 1px solid var(--line); background: var(--surface); }
.job-details-content h1 { margin: 16px 0 5px; font-size: clamp(2rem, 4vw, 3rem); }
.job-company { margin-bottom: 14px; color: #607365; font-size: 1rem; }
.job-detail-meta { display: flex; flex-wrap: wrap; margin-bottom: 32px; }
.job-detail-meta span { padding: 0 10px; border-right: 1px solid var(--line); color: #607365; font-size: 0.8rem; }
.job-detail-meta span:first-child { padding-left: 0; }
.job-detail-meta span:last-child { border: 0; }
.job-details-content section { padding: 24px 0; border-top: 1px solid var(--line); }
.job-details-content section h2 { font-size: 1.2rem; }
.job-details-content section p { max-width: 740px; font-size: 0.94rem; }
.job-requirements { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.job-requirements li { position: relative; padding-left: 24px; color: #506454; font-size: 0.9rem; }
.job-requirements li::before { position: absolute; left: 0; color: var(--cta-emerald); content: '✓'; font-weight: 800; }
.job-benefits { display: flex; flex-wrap: wrap; gap: 8px; }
.job-benefits span { padding: 7px 9px; background: #e5efe6; color: var(--cta-emerald); font-size: 0.78rem; font-weight: 700; }
.application-panel { position: sticky; top: 94px; padding: 26px; border: 1px solid var(--line); background: var(--surface); }
.application-panel h2 { margin-bottom: 6px; font-size: 1.28rem; }
.application-panel > p { font-size: 0.87rem; }
.application-panel .form-group { margin-bottom: 16px; }
.details-save { width: 100%; margin-top: 10px; }
.applications-header { position: relative; margin-bottom: 28px; padding: 34px; background: var(--primary-forest); }
.applications-header .section-kicker { color: var(--accent-gold); }
.applications-header h1 { margin: 0 0 8px; color: var(--surface); font-size: clamp(2rem, 4vw, 3rem); }
.applications-header p { color: #d6e5d8; }
.applications-header .btn { position: absolute; right: 34px; bottom: 34px; }
.application-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 34px; border: 1px solid var(--line); background: var(--surface); }
.application-summary div { padding: 22px; border-right: 1px solid var(--line); }
.application-summary div:last-child { border: 0; }
.application-summary strong { display: block; color: var(--cta-emerald); font-size: 1.7rem; }
.application-summary span { color: #607365; font-size: 0.82rem; font-weight: 700; }
.applications-list-section { padding: 28px; border: 1px solid var(--line); background: var(--surface); }
.application-card { display: flex; align-items: center; gap: 20px; padding: 20px 0 0; border-top: 1px solid var(--line); }
.application-status { padding: 6px 8px; font-size: 0.73rem; font-weight: 800; }
.application-status.submitted { background: #e5efe6; color: var(--cta-emerald); }
.application-card-main { flex: 1; }
.application-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.application-card p { margin: 0 0 4px; font-size: 0.85rem; }
.application-card-main > span { color: #607365; font-size: 0.75rem; }
.application-help { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 34px; padding: 32px; background: #e5efe6; }
.application-help h2 { margin: 0 0 8px; font-size: 1.35rem; }
.application-help p { max-width: 650px; margin: 0; font-size: 0.9rem; }

@media (max-width: 768px) {
    .dashboard-main { padding: 32px 0 48px; }
    .dashboard-welcome { align-items: flex-start; flex-direction: column; padding: 26px 22px; }
    .dashboard-grid, .activity-grid { grid-template-columns: 1fr; }
    .dashboard-profile, .dashboard-section { padding: 22px; }
    .activity-grid > div, .activity-grid > div + div { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
    .activity-grid > div:last-child { border-bottom: 0; }
    .opportunities-hero { padding: 38px 0; }
    .opportunity-search, .opportunities-layout { grid-template-columns: 1fr; }
    .opportunity-search > div { border-right: 0; border-bottom: 1px solid var(--line); }
    .opportunity-search .btn { min-height: 48px; }
    .filter-panel { display: none; }
    .results-heading, .opportunity-card { align-items: flex-start; flex-direction: column; }
    .opportunity-card-actions { grid-template-columns: auto auto; min-width: 0; }
    .job-details-layout { grid-template-columns: 1fr; }
    .job-details-content, .application-panel, .applications-list-section { padding: 22px; }
    .application-panel { position: static; }
    .applications-header { padding: 26px 22px; }
    .applications-header .btn { position: static; margin-top: 12px; }
    .application-summary { grid-template-columns: repeat(2, 1fr); }
    .application-summary div:nth-child(2) { border-right: 0; }
    .application-summary div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
    .application-card, .application-help { align-items: flex-start; flex-direction: column; }
}

.auth-tabs { border-bottom: 1px solid var(--line); }
.auth-tab-btn { border-radius: 0; background: transparent; color: #466052; }
.auth-tab-btn.active { background: transparent; color: var(--cta-emerald); box-shadow: inset 0 -3px var(--cta-emerald); }
.btn-social { border-radius: 3px; border-color: #b9c8bb; }

.footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 28px 0; }
.footer-content { min-height: 0; }
.footer p { font-size: 0.8rem; }

.footer-main {
    display: grid;
    grid-template-columns: minmax(250px, 2fr) repeat(3, 1fr);
    gap: 36px;
    padding-top: 24px;
    padding-bottom: 36px;
}

.footer-brand p { max-width: 310px; margin: 14px 0 0; color: #607365; font-size: 0.86rem; }
.footer-brand .footer-contact { line-height: 1.55; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-links h3 { margin-bottom: 4px; font-size: 0.88rem; color: var(--primary-forest); }
.footer-links a { color: #607365; font-size: 0.84rem; text-decoration: none; position: relative; padding-bottom: 2px; }
.footer-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background-color: var(--cta-emerald); transform: scaleX(0); transform-origin: right; transition: transform 0.3s ease; }
.footer-links a:hover { color: var(--cta-emerald); }
.footer-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.footer-bottom p { margin: 0; }

/* Services and About page refresh */
.banner-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent-gold);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.service-directory-section, .about-intro-section, .principles-section, .service-journey-section { padding: 64px 0; }
.service-directory-section, .about-intro-section { background: var(--surface); }
.principles-section, .service-journey-section { background: var(--surface-subtle); }

.section-side-copy { max-width: 290px; margin: 0; font-size: 0.9rem; }

.service-directory-grid, .principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-directory-card {
    display: flex; min-height: 235px; flex-direction: column; align-items: flex-start; padding: 26px;
    border: 1px solid var(--line); background: var(--surface); color: var(--primary-forest); text-decoration: none;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.directory-number, .principle-card > span, .journey-step > span { color: var(--cta-emerald); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; }
.service-directory-card h3 { margin: 18px 0 8px; font-size: 1.16rem; }
.service-directory-card p { margin-bottom: 18px; font-size: 0.88rem; }
.service-directory-card > span:last-child { margin-top: auto; color: var(--cta-emerald); font-size: 0.85rem; font-weight: 800; }
.service-directory-card strong { display: inline-block; margin-left: 6px; transition: transform 0.2s ease; }

.service-journey-section .section-header { margin-bottom: 30px; }
.journey-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.journey-step { position: relative; padding-right: 18px; }
.journey-step:not(:last-child)::after { position: absolute; top: 7px; right: 0; width: 1px; height: 100%; background: var(--line); content: ''; }
.journey-step h3 { margin: 14px 0 8px; font-size: 1rem; }
.journey-step p { font-size: 0.86rem; }
.service-journey-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 42px; padding: 28px 32px; background: var(--primary-forest); }
.service-journey-cta h2 { margin: 0 0 5px; color: var(--surface); font-size: 1.35rem; }
.service-journey-cta p { margin: 0; color: #d6e5d8; font-size: 0.9rem; }

.about-intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: start; }
.about-intro-grid h2 { max-width: 460px; margin: 0; font-size: clamp(2rem, 4vw, 3rem); }
.about-intro-copy p { font-size: 1.04rem; line-height: 1.75; }
.about-intro-copy .text-link { margin-top: 3px; }
.principle-card { padding: 26px; border-top: 3px solid var(--cta-emerald); background: var(--surface); }
.principle-card h3 { margin: 18px 0 8px; font-size: 1.08rem; }
.principle-card p { margin: 0; font-size: 0.9rem; }

@media (hover: hover) and (pointer: fine) {
    .service-directory-card:hover { transform: translateY(-5px) scale(1.01); border-color: var(--cta-emerald); box-shadow: 0 12px 24px rgba(13, 46, 31, 0.1); }
    .service-directory-card:hover strong { transform: translateX(4px); }
    .principle-card { transition: transform 0.22s ease, box-shadow 0.22s ease; }
    .principle-card:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(13, 46, 31, 0.08); }
}

/* Homepage discovery content */
.discover-section, .recommended-section, .employer-section {
    padding: 64px 0;
}

.discover-section { background: var(--surface); }
.recommended-section { background: var(--surface-subtle); }

.section-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--cta-emerald);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.trend-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.trend-link {
    display: flex;
    min-height: 82px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--primary-forest);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.trend-link span { font-size: 0.92rem; font-weight: 700; }
.trend-link small { color: #607365; font-size: 0.75rem; }
.trend-link:hover { border-color: var(--cta-emerald); box-shadow: 0 4px 12px rgba(13, 46, 31, 0.08); }
.trend-link-all { align-items: center; flex-direction: row; justify-content: space-between; background: #e5efe6; }
.trend-link-all strong { color: var(--cta-emerald); font-size: 1.2rem; }

.section-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section-heading-row h2 { margin-bottom: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); }

.role-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.role-card {
    display: flex;
    min-height: 250px;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    border: 1px solid var(--line);
    background: var(--surface);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.role-type {
    padding: 4px 7px;
    border-radius: 2px;
    background: #e5efe6;
    color: var(--cta-emerald);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.role-card h3 { margin: 18px 0 5px; font-size: 1.1rem; }
.role-company { margin-bottom: 18px; color: #607365; font-size: 0.88rem; }
.role-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.role-meta span { padding-right: 7px; border-right: 1px solid var(--line); color: #607365; font-size: 0.78rem; }
.role-meta span:last-child { padding-right: 0; border-right: 0; }
.role-link { margin-top: auto; color: var(--cta-emerald); font-size: 0.88rem; font-weight: 800; text-decoration: none; }
.role-link span { margin-left: 6px; }
.role-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.employer-section { background: var(--primary-forest); }
.employer-panel { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.employer-panel h2 { max-width: 670px; margin-bottom: 12px; color: var(--surface); font-size: clamp(1.7rem, 3vw, 2.4rem); }
.employer-panel p { max-width: 600px; margin-bottom: 0; color: #d6e5d8; }
.section-kicker-light { color: var(--accent-gold); }
.employer-cta { flex: 0 0 auto; background: var(--accent-gold); color: var(--primary-forest); font-weight: 800; }
.employer-cta:hover { background: #dbc197; }

@media (hover: hover) and (pointer: fine) {
    .overview-grid .card {
        transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    }

    .overview-grid .card:hover {
        transform: translateY(-5px) scale(1.015);
        border-color: #9eb5a2;
        box-shadow: 0 12px 24px rgba(13, 46, 31, 0.12);
    }

    .overview-grid .card:hover .card-icon {
        transform: scale(1.08);
        background: var(--cta-emerald);
        color: var(--surface);
    }

    .card-icon {
        transition: transform 0.22s ease, background-color 0.22s ease, color 0.22s ease;
    }

    .trend-link:hover {
        transform: translateY(-3px) scale(1.01);
        background: #fbfdfb;
        border-color: var(--cta-emerald);
        box-shadow: 0 8px 16px rgba(13, 46, 31, 0.1);
    }
    .trend-link-all:hover { background: #d9e9dc; }
    .role-card:hover {
        transform: translateY(-5px) scale(1.01);
        border-color: #9eb5a2;
        box-shadow: 0 12px 24px rgba(13, 46, 31, 0.1);
    }
    .role-card:hover .role-link span { display: inline-block; transform: translateX(4px); }
    .role-link span { transition: transform 0.2s ease; }
    .footer-links a { transition: color 0.2s ease, transform 0.2s ease; }
    .footer-links a:hover { transform: translateX(3px); }
    .employer-cta { transition: transform 0.2s ease, background-color 0.2s ease; }
    .employer-cta:hover { transform: translateY(-2px) scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   MOBILE NAVIGATION & RESPONSIVE LAYOUT
   ========================================================================== */
@media (max-width: 768px) {
    .container { padding-left: 20px; padding-right: 20px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.25rem; }
    .menu-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        height: 100dvh;
        background: var(--bg-white);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 90px 28px 40px;
        box-shadow: -8px 0 30px rgba(13, 46, 31, 0.15);
        overflow-y: auto;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
    }
    .nav-menu.active { right: 0; }
    .nav-menu a { display: block; padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--border-color); }
    .nav-menu a:last-child { border-bottom: none; }
    .nav-menu a:not(.btn)::after { display: none; }
    .nav-menu .btn { margin-top: 16px; text-align: center; width: 100%; }
    .nav-link-signin { margin-left: 0 !important; }
    body.nav-open { overflow: hidden; }
    .nav-container { height: 64px; }
    .hero { min-height: auto; padding: 36px 0 48px; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 2rem; }
    .page-banner { padding: 60px 0 44px; }
    .page-banner h1 { font-size: 2rem; }
    .page-banner p { font-size: 1rem; }
    .overview-section, .about-page-content, .contact-page-content,
    .services-detail-section, .values-section, .about-intro-section,
    .principles-section, .service-directory-section, .service-journey-section,
    .how-it-works-section, .staff-showcase-section, .hire-main-section {
        padding-top: 44px; padding-bottom: 44px;
    }
    .service-block, .contact-form-card, .auth-card { padding: 24px 20px; }
    .tab-btn { padding: 14px 10px; font-size: 0.78rem; }
    .services-tabs { gap: 0; }
    .trend-grid, .role-grid, .hero-grid, .principles-grid,
    .journey-grid, .service-directory-grid, .about-intro-grid { grid-template-columns: 1fr; }
    .section-heading-row, .employer-panel, .service-journey-cta { align-items: flex-start; flex-direction: column; }
    .service-journey-cta { text-align: center; align-items: center; }
    .service-journey-cta .btn { width: 100%; }
    .role-card { min-height: 210px; }
    .footer-main { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; gap: 4px; }
    .discover-section, .recommended-section, .employer-section { padding: 44px 0; }
    .dashboard-welcome { flex-direction: column; align-items: stretch; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .opportunity-card { flex-direction: column; align-items: stretch; }
    .application-help { flex-direction: column; }
    .nav-dropdown { width: 100%; }
    .nav-dropdown-toggle { width: 100%; justify-content: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border-color); }
    .nav-dropdown-menu { position: static; box-shadow: none; border: none; padding: 0 0 0 20px; background: transparent; }
    .form-row, .form-grid-two { grid-template-columns: 1fr; gap: 0; }
}

/* Quick Apply Modal Styles */
.modal-backdrop {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: rgba(13, 46, 31, 0.6);
    display: flex; align-items: center; justify-content: center;
    z-index: 2000; opacity: 0; visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 20px;
}
.modal-backdrop.is-open { opacity: 1; visibility: visible; }
.modal-card {
    background-color: var(--bg-white); border-radius: 0;
    width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transform: translateY(15px);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-backdrop.is-open .modal-card { transform: translateY(0); }
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px; border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-light);
}
.modal-header h3 {
    margin-bottom: 0; font-size: 1.35rem; color: var(--primary-forest);
}

.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 0;
}

.modal-close-btn:hover {
    color: var(--primary-forest);
    background-color: rgba(0, 0, 0, 0.05);
}

.modal-body {
    padding: 24px;
}

/* Dropzone styling */
.file-dropzone {
    border: 2px dashed var(--secondary-sage);
    border-radius: 0;
    padding: 24px;
    text-align: center;
    background-color: var(--bg-warm);
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 6px;
}

.file-dropzone:hover, .file-dropzone.is-dragover {
    border-color: var(--cta-emerald);
    background-color: var(--bg-light);
}

.file-dropzone input[type="file"] {
    display: none;
}

.file-dropzone .dropzone-icon {
    display: block;
    margin: 0 auto 8px;
    color: var(--cta-emerald);
}

.file-dropzone p {
    margin-bottom: 4px;
    font-size: 0.95rem;
    color: var(--text-charcoal);
}

.file-dropzone small {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.direct-upload-main {
    padding: 48px 0 72px;
}

.direct-upload-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.direct-upload-copy {
    max-width: 44rem;
}

.direct-upload-copy h1 {
    margin-bottom: 12px;
    line-height: 1.1;
}

.direct-upload-copy p {
    max-width: 38rem;
    margin-bottom: 0;
}

.direct-upload-panel {
    width: 100%;
    max-width: 44rem;
    justify-self: center;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 28px;
}

.direct-upload-panel h2 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: var(--primary-forest);
}

.direct-upload-panel form > * + * {
    margin-top: 16px;
}

.form-grid-two {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.direct-upload-panel label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.92rem;
}

.direct-upload-panel input,
.direct-upload-panel textarea,
.direct-upload-panel select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.direct-upload-panel textarea {
    min-height: 120px;
    resize: vertical;
}

.file-dropzone {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.cv-attached-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 18px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.cv-attached-card strong,
.cv-attached-card small {
    display: block;
    word-break: break-word;
}

.direct-upload-panel .btn,
.direct-upload-panel .btn-block {
    width: 100%;
}

.direct-upload-panel .btn {
    min-height: 48px;
}

.direct-upload-panel .btn-secondary {
    width: 100%;
}

.direct-upload-panel .form-feedback {
    margin-top: 4px;
}

.file-preview {
    margin-top: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--cta-emerald);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.under-review {
    background-color: #FEF3C7;
    color: #92400E;
}

.status-badge.shortlisted {
    background-color: #D1FAE5;
    color: #065F46;
}

.status-badge.interview {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.status-badge.closed {
    background-color: #F3F4F6;
    color: #4B5563;
}

/* Employer Dashboard Components */
.employer-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.employer-kpi-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.employer-kpi-card .kpi-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

.employer-kpi-card .kpi-val {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-forest);
    font-family: var(--font-heading);
    margin: 8px 0 4px;
}

.employer-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.custom-table th, .custom-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
}

.custom-table th {
    background-color: var(--bg-light);
    color: var(--primary-forest);
    font-weight: 600;
}

.custom-table tr:last-child td {
    border-bottom: none;
}

/* Empty Search State */
.no-results-state {
    text-align: center;
    padding: 48px 20px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0;
    margin-top: 16px;
}

.no-results-state h3 {
    font-size: 1.4rem;
    color: var(--primary-forest);
    margin-bottom: 8px;
}

.no-results-state p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Toast Notifications */
.jewtread-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: var(--primary-forest);
    color: var(--bg-white);
    padding: 14px 24px;
    border-radius: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-left: 4px solid var(--accent-gold);
    z-index: 3000;
    font-size: 0.92rem;
    font-weight: 500;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.jewtread-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Nav Profile Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--primary-forest);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.nav-dropdown-toggle:hover, .nav-dropdown-toggle.active {
    border-color: var(--cta-emerald);
    background-color: var(--bg-light);
}

.avatar-sm {
    width: 26px;
    height: 26px;
    border-radius: 0;
    background-color: var(--primary-forest);
    color: var(--accent-gold);
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dropdown-arrow {
    transition: transform 0.2s ease;
}

.nav-dropdown-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 210px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0;
    box-shadow: 0 10px 25px rgba(13, 46, 31, 0.12);
    padding: 8px 0;
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.nav-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: var(--text-charcoal);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--cta-emerald);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 6px 0;
}

.dropdown-item.logout-item {
    color: #C53030;
}

.dropdown-item.logout-item:hover {
    background-color: #FFF5F5;
    color: #9B2C2C;
}


/* ==============================================
   EMPLOYER PORTAL & ADMIN PANEL SHARED STYLES
   ============================================== */

/* Portal Page Layout (Sidebar + Content) */
.portal-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 70px);
}

.portal-sidebar {
    background-color: var(--primary-forest);
    color: var(--bg-white);
    padding: 0;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.portal-sidebar-header {
    padding: 28px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.portal-sidebar-header .portal-brand {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 4px;
}

.portal-sidebar-header .portal-role {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.portal-sidebar-nav {
    flex: 1;
    padding: 16px 0;
}

.portal-nav-section {
    padding: 8px 24px 4px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-top: 12px;
}

.portal-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-left: 3px solid transparent;
}

.portal-nav-link:hover {
    background-color: rgba(255,255,255,0.06);
    color: var(--bg-white);
}

.portal-nav-link.active {
    background-color: rgba(197, 168, 128, 0.15);
    color: var(--accent-gold);
    border-left: 3px solid var(--accent-gold);
    font-weight: 600;
}

.portal-nav-link svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.portal-nav-link.active svg {
    opacity: 1;
}

.portal-nav-divider {
    height: 1px;
    background-color: rgba(255,255,255,0.08);
    margin: 12px 24px;
}

.portal-nav-link.danger {
    color: rgba(255, 120, 120, 0.8);
}

.portal-nav-link.danger:hover {
    color: #ff8888;
    background-color: rgba(255,80,80,0.08);
}

.portal-sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
}

/* Portal Main Content */
.portal-content {
    background-color: var(--bg-warm);
    padding: 0;
    overflow-x: hidden;
}

.portal-topbar {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 70px;
    z-index: 100;
}

.portal-topbar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-forest);
    font-family: var(--font-heading);
}

.portal-topbar-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.portal-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.portal-body {
    padding: 32px 36px;
}

/* Metric Cards */
.portal-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.metric-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background-color: var(--cta-emerald);
}

.metric-card.gold::before { background-color: var(--accent-gold); }
.metric-card.sage::before { background-color: var(--secondary-sage); }
.metric-card.alert::before { background-color: #C53030; }

.metric-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.metric-value {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-forest);
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 6px;
}

.metric-note {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.metric-note.up { color: var(--cta-emerald); font-weight: 600; }
.metric-note.down { color: #C53030; font-weight: 600; }

/* Portal Section Headings */
.portal-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.portal-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-forest);
    font-family: var(--font-heading);
    margin-bottom: 2px;
}

.portal-section-sub {
    font-size: 0.87rem;
    color: var(--text-muted);
}

/* Candidate Status Chips */
.chip {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid;
}

.chip-new { background-color: #EBF8FF; color: #1A5276; border-color: #BEE3F8; }
.chip-review { background-color: #FEF3C7; color: #92400E; border-color: #FDE68A; }
.chip-shortlisted { background-color: #D1FAE5; color: #065F46; border-color: #6EE7B7; }
.chip-rejected { background-color: #FFF5F5; color: #9B2C2C; border-color: #FEB2B2; }
.chip-interview { background-color: #EDE9FE; color: #5B21B6; border-color: #C4B5FD; }
.chip-active { background-color: #D1FAE5; color: #065F46; border-color: #6EE7B7; }
.chip-paused { background-color: #F3F4F6; color: #374151; border-color: #D1D5DB; }
.chip-closed { background-color: #FFF5F5; color: #9B2C2C; border-color: #FEB2B2; }

/* Table Action Buttons */
.tbl-btn {
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    font-family: var(--font-body);
    color: var(--text-charcoal);
    transition: background-color 0.15s ease, color 0.15s ease;
    margin-right: 4px;
}

.tbl-btn:hover { background-color: var(--bg-light); }
.tbl-btn.primary { background-color: var(--cta-emerald); color: white; border-color: var(--cta-emerald); }
.tbl-btn.primary:hover { background-color: var(--cta-hover); }
.tbl-btn.danger { color: #C53030; border-color: #FEB2B2; }
.tbl-btn.danger:hover { background-color: #FFF5F5; }

/* CSS Bar Chart */
.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 120px;
    padding: 0 0 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.bar-chart-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 100%;
    justify-content: flex-end;
}

.bar-chart-bar {
    width: 100%;
    background-color: var(--cta-emerald);
    transition: height 0.4s ease;
    position: relative;
}

.bar-chart-bar:hover { background-color: var(--secondary-sage); }

.bar-chart-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 6px;
    text-align: center;
}

/* Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child { border-bottom: none; }

.activity-icon {
    width: 34px;
    height: 34px;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--cta-emerald);
}

.activity-text {
    font-size: 0.88rem;
    color: var(--text-charcoal);
    line-height: 1.5;
}

.activity-time {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Portal Form Styles */
.portal-form-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 32px;
    margin-bottom: 24px;
}

.portal-form-card h2 {
    font-size: 1.2rem;
    color: var(--primary-forest);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.form-field {
    margin-bottom: 18px;
}

.form-field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--text-charcoal);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-charcoal);
    background-color: var(--bg-white);
    transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--cta-emerald);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Candidate Profile Card in Candidates Page */
.candidate-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 12px;
    transition: border-color 0.2s ease;
}

.candidate-card:hover { border-color: var(--secondary-sage); }

.candidate-avatar {
    width: 44px;
    height: 44px;
    background-color: var(--primary-forest);
    color: var(--accent-gold);
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-heading);
}

.candidate-info { flex: 1; }

.candidate-name {
    font-weight: 700;
    font-size: 0.97rem;
    color: var(--text-charcoal);
    margin-bottom: 3px;
}

.candidate-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.candidate-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Responsive Portal & Mobile Enhancements */
@media (max-width: 900px) {
    .portal-layout {
        grid-template-columns: 1fr;
    }
    .portal-sidebar {
        position: static;
        height: auto;
    }
    .portal-body {
        padding: 20px 16px;
    }
    .portal-topbar {
        padding: 14px 16px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .portal-metrics-grid {
        grid-template-columns: 1fr 1fr;
    }
    .account-settings-grid {
        grid-template-columns: 1fr !important;
    }
    .dashboard-welcome {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .candidate-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .candidate-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .activity-grid, .portal-metrics-grid {
        grid-template-columns: 1fr !important;
    }
    .account-settings-section, .portal-form-card {
        padding: 20px 16px !important;
    }
    .custom-table th, .custom-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

/* --------------------------------------------------------------------------
   Phase 2: mobile-first resilience layer
   Applied last so legacy page-specific styles retain their desktop design
   while all shared screens scale cleanly from 320px upwards.
   -------------------------------------------------------------------------- */

img, svg { max-width: 100%; }
img { height: auto; }

button, input, select, textarea { font: inherit; }

button, .btn, .tbl-btn, .save-job, .tab-btn, .nav-dropdown-toggle,
.modal-close-btn, .filter-heading button {
    min-height: 44px;
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
}

.custom-table { min-width: 42rem; }

@media (max-width: 1024px) {
    .container {
        width: min(100%, 76rem);
        padding-left: clamp(1.25rem, 3vw, 2rem);
        padding-right: clamp(1.25rem, 3vw, 2rem);
    }

    .hero-grid, .job-details-layout { gap: clamp(1.25rem, 3vw, 2rem); }
    .job-details-layout { grid-template-columns: minmax(0, 1fr) 18rem; }
    .opportunities-layout { grid-template-columns: 13.5rem minmax(0, 1fr); }
    .dashboard-grid { grid-template-columns: 15rem minmax(0, 1fr); }
}

@media (max-width: 768px) {
    html { -webkit-text-size-adjust: 100%; }

    h1 { font-size: clamp(2rem, 8vw, 2.65rem); }
    h2 { font-size: clamp(1.55rem, 6vw, 2.1rem); }
    h3 { font-size: clamp(1.1rem, 5vw, 1.4rem); }
    p { font-size: 1rem; }

    .nav-container { height: 4rem; }
    .menu-toggle { width: 2.75rem; min-height: 2.75rem; padding: .5rem; }
    .nav-menu {
        top: 4rem;
        padding: 1.25rem;
        gap: .5rem;
        align-items: stretch;
        overflow-y: auto;
    }
    .nav-menu a, .nav-menu a.btn, .nav-dropdown-toggle {
        width: 100%;
        max-width: none;
        min-height: 2.75rem;
        justify-content: flex-start;
        padding: .75rem 1rem;
        font-size: 1rem;
    }
    .nav-dropdown { width: 100%; }
    .nav-dropdown-menu {
        position: static;
        width: 100%;
        margin-top: .25rem;
        display: none;
        transform: none;
        box-shadow: none;
    }
    .nav-dropdown-menu.show { display: block; }
    .dropdown-item { min-height: 2.75rem; padding: .75rem 1rem; }

    .hero-content, .hero-grid { text-align: left; }
    .hero-search-form, .opportunity-search { width: 100%; }
    .opportunity-search { grid-template-columns: 1fr; gap: 0; }
    .opportunity-search > div { border-right: 0; border-bottom: 1px solid var(--line); }
    .opportunity-search .btn { width: 100%; }
    .search-input-group { min-width: 0; }
    .hero-image-wrapper { width: min(100%, 32rem); margin: 0 auto; }

    .dashboard-grid, .opportunities-layout, .job-details-layout { grid-template-columns: 1fr; }
    .filter-panel { order: 2; }
    .application-panel { position: static; }
    .dashboard-role, .opportunity-card { align-items: flex-start; flex-direction: column; }
    .dashboard-role > *, .opportunity-card-actions { width: 100%; }
    .opportunity-card-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-welcome, .applications-header { padding: clamp(1.25rem, 5vw, 2rem); }
    .dashboard-welcome .btn, .applications-header .btn { width: 100%; }

    /* Several dashboard pages contain intentional inline desktop grids. */
    .dashboard-main [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
    .dashboard-main [style*="display:flex"] { flex-wrap: wrap; }

    .portal-topbar { position: static; align-items: flex-start; flex-direction: column; }
    .portal-topbar-actions { width: 100%; flex-wrap: wrap; }
    .portal-topbar-actions .btn { flex: 1 1 12rem; }
    .portal-sidebar-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .5rem; }
    .portal-nav-section, .portal-nav-divider, .portal-sidebar-footer { display: none; }
    .portal-nav-link { min-height: 2.75rem; padding: .75rem; font-size: .8rem; }
}

@media (max-width: 768px) {
    body.nav-open { overflow: hidden; }
}

@media (max-width: 480px) {
    .container { padding-left: 1rem; padding-right: 1rem; }
    .logo { width: 2.5rem; height: 2.5rem; flex-basis: 2.5rem; }
    .hero { padding-top: 2rem; }
    .hero-image-wrapper { display: none; }
    .popular-searches { line-height: 1.9; }
    .section-heading-row .text-link, .employer-panel .btn { width: 100%; }
    .role-card, .card, .value-card, .dashboard-section, .job-details-content,
    .contact-form-card, .auth-card, .service-block { padding: 1.25rem; }
    .footer-main { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
    .activity-grid > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
    .opportunity-card-actions { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .modal-backdrop { padding: .75rem; }
    .modal-header, .modal-body { padding: 1rem; }
    .jewtread-toast { right: 1rem; bottom: 1rem; left: 1rem; }
    .portal-metrics-grid { grid-template-columns: 1fr; }
    .portal-sidebar-nav { grid-template-columns: 1fr; }
    .custom-table { min-width: 38rem; }
}

/* Inline-layout safety net for the profile, account and employer forms. */
@media (max-width: 768px) {
    main [style*="grid-template-columns"] {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 1rem !important;
    }

    main [style*="display: flex"] {
        flex-wrap: wrap;
    }

    main [style*="display: flex"] > input,
    main [style*="display: flex"] > select,
    main [style*="display: flex"] > textarea {
        min-width: 0;
    }

    .profile-layout-grid > aside,
    .account-settings-grid > aside {
        width: 100%;
    }

    .profile-layout-grid section,
    .account-settings-section,
    .portal-form-card {
        padding: 1.25rem !important;
    }

    #add-skill-form,
    #add-skill-form input,
    #add-skill-form .btn {
        width: 100%;
    }

    .cv-attached-card,
    #cv-attached-card {
        align-items: flex-start !important;
        gap: .875rem;
    }

    .cv-attached-card .btn,
    #cv-attached-card .btn {
        width: 100%;
    }

    .direct-upload-main {
        padding: 28px 0 56px;
    }

    .direct-upload-layout {
        gap: 18px;
    }

    .direct-upload-copy h1 {
        font-size: clamp(2rem, 8vw, 2.6rem);
    }

    .direct-upload-copy p {
        font-size: 0.98rem;
    }

    .direct-upload-panel {
        padding: 20px;
    }

    .direct-upload-panel h2 {
        font-size: 1.2rem;
        margin-bottom: 16px;
    }

    .form-grid-two {
        grid-template-columns: 1fr;
    }

    .file-dropzone {
        min-height: 160px;
        padding: 20px;
    }

    .direct-upload-panel .btn,
    .direct-upload-panel .btn-secondary,
    .direct-upload-panel .btn-block {
        width: 100%;
    }

    .service-directory-section {
        padding: 2.75rem 0;
    }

    .service-directory-section .section-heading-row {
        gap: .75rem;
        margin-bottom: 1.5rem;
    }

    .service-directory-section .section-side-copy {
        max-width: none;
        font-size: .95rem;
    }

    .service-directory-grid {
        grid-template-columns: 1fr;
        gap: .875rem;
    }

    .service-directory-card {
        min-height: 0;
        padding: 1.25rem;
    }

    .service-directory-card h3 {
        margin-top: .8rem;
        font-size: 1.2rem;
    }

    .service-directory-card p {
        margin-bottom: 1rem;
        font-size: .95rem;
    }

    .service-directory-card > span:last-child {
        margin-top: .25rem;
        font-size: .9rem;
    }
}

@media (min-width: 769px) {
    .direct-upload-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-grid-two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .direct-upload-panel {
        padding: 32px;
    }
}

@media (min-width: 1024px) {
    .direct-upload-main {
        padding: 64px 0 88px;
    }

    .direct-upload-layout {
        justify-items: center;
    }

    .direct-upload-copy,
    .direct-upload-panel {
        width: min(100%, 44rem);
    }
}

/* ==========================================================================
   Hire a Professional Page Styles
   ========================================================================== */
.hire-page {
    background-color: var(--bg-warm);
}

.hire-main-section {
    padding: 64px 0 80px;
}

.hire-grid-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 48px;
    align-items: start;
}

/* Left Column: Trust Info & Standards */
.hire-info-col {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.hire-intro-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.hire-intro-card h2 {
    font-size: 1.85rem;
    margin-top: 6px;
    margin-bottom: 14px;
    color: var(--primary-forest);
    line-height: 1.3;
}

.hire-intro-card p {
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 0;
    color: var(--text-muted);
}

.hire-highlights-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.highlight-item:hover {
    transform: translateY(-2px);
    border-color: var(--cta-emerald);
    box-shadow: var(--shadow-md);
}

.highlight-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: rgba(19, 90, 55, 0.08);
    color: var(--cta-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}

.highlight-item:hover .highlight-icon {
    transform: scale(1.1);
    background: rgba(19, 90, 55, 0.15);
}

.highlight-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--primary-forest);
}

.highlight-item p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 0;
}

.direct-consult-box {
    background: linear-gradient(135deg, rgba(13, 46, 31, 0.03) 0%, rgba(197, 168, 128, 0.1) 100%);
    border: 1px solid rgba(197, 168, 128, 0.4);
    border-radius: 12px;
    padding: 28px;
}

.direct-consult-box h3 {
    font-size: 1.25rem;
    color: var(--primary-forest);
    margin-bottom: 6px;
}

.direct-consult-box p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.consult-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.consult-line {
    display: flex;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--primary-forest);
}

.consult-line strong {
    color: var(--cta-emerald);
}

/* Right Column: Intake Form */
.hire-form-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 36px 32px;
    box-shadow: 0 10px 30px rgba(13, 46, 31, 0.08);
}

.hire-form-card .form-header {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}

.hire-form-card .form-header h2 {
    font-size: 1.7rem;
    color: var(--primary-forest);
    margin-bottom: 6px;
}

.hire-form-card .form-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.form-label-bold {
    display: block;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--primary-forest);
    margin-bottom: 10px;
}

.required-star {
    color: #DC2626;
}

.category-radio-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.radio-card {
    display: block;
    position: relative;
    cursor: pointer;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-card-body {
    display: flex;
    flex-direction: column;
    padding: 14px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-warm);
    transition: var(--transition-smooth);
    height: 100%;
}

.radio-card-body strong {
    font-size: 0.88rem;
    color: var(--primary-forest);
    margin-bottom: 4px;
}

.radio-card-body small {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.radio-card:hover .radio-card-body {
    border-color: var(--secondary-sage);
}

.radio-card input[type="radio"]:checked + .radio-card-body {
    border-color: var(--cta-emerald);
    background-color: #EDF7F1;
    box-shadow: 0 0 0 1px var(--cta-emerald);
}

.radio-card input[type="radio"]:checked + .radio-card-body strong {
    color: var(--cta-emerald);
}

.role-tags-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.suggestion-chip {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--primary-forest);
    cursor: pointer;
    transition: var(--transition-smooth);
    min-height: 32px;
}

.suggestion-chip:hover,
.suggestion-chip.active {
    background: var(--cta-emerald);
    color: var(--bg-white);
    border-color: var(--cta-emerald);
    transform: translateY(-1px);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hire-form-card .form-group {
    margin-bottom: 18px;
}

.hire-form-card .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-forest);
}

.hire-form-card input[type="text"],
.hire-form-card input[type="email"],
.hire-form-card input[type="tel"],
.hire-form-card select,
.hire-form-card textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-charcoal);
    background-color: var(--bg-white);
    transition: var(--transition-smooth);
    min-height: 46px;
}

.hire-form-card textarea {
    min-height: 100px;
    resize: vertical;
}

.hire-form-card input:focus,
.hire-form-card select:focus,
.hire-form-card textarea:focus {
    outline: none;
    border-color: var(--cta-emerald);
    box-shadow: 0 0 0 3px rgba(19, 90, 55, 0.12);
}

.form-privacy-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 14px;
    margin-bottom: 0;
    line-height: 1.45;
}

/* 4-Step Process Section */
.how-it-works-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.how-it-works-section .section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
}

.how-it-works-section .section-header h2 {
    margin-top: 6px;
    font-size: clamp(2rem, 4vw, 2.5rem);
}

.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px 24px;
    position: relative;
    transition: var(--transition-smooth);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(19, 90, 55, 0.25);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--primary-forest);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.logo span {
    color: var(--accent-gold);
}

.logo:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--cta-emerald);
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.85;
}

.step-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--primary-forest);
}

.step-card p {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Staff Categories Showcase Section */
.staff-showcase-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.staff-showcase-section .section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
}

.staff-showcase-section .section-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.showcase-card {
    background: var(--bg-warm);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 36px;
    transition: var(--transition-smooth);
}

.showcase-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(197, 168, 128, 0.5);
}

.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.showcase-header h3 {
    font-size: 1.45rem;
    margin-bottom: 0;
    color: var(--primary-forest);
}

.showcase-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(19, 90, 55, 0.1);
    color: var(--cta-emerald);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
}

.showcase-card > p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.showcase-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.showcase-list li {
    position: relative;
    padding-left: 26px;
    font-size: 0.92rem;
    color: var(--text-charcoal);
    font-weight: 500;
}

.showcase-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--cta-emerald);
    font-weight: 800;
}

/* Bottom CTA Banner */
.employer-cta-banner {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-forest) 0%, #05160E 100%);
    color: var(--bg-white);
}

.banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.employer-cta-banner h2 {
    color: var(--bg-white);
    font-size: 2rem;
    margin-bottom: 8px;
}

.employer-cta-banner p {
    color: var(--accent-gold);
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* ==========================================================================
   Services Page Tabs & Content Styles
   ========================================================================== */
.services-detail-section {
    padding: 64px 0 80px;
}

.services-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 14px 28px;
    border-radius: 8px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-white);
    color: var(--primary-forest);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    min-height: 46px;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--cta-emerald);
    color: var(--bg-white);
    border-color: var(--cta-emerald);
    box-shadow: 0 4px 12px rgba(19, 90, 55, 0.2);
}

.service-block {
    display: none;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 48px;
    box-shadow: var(--shadow-sm);
}

.service-block.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

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

.service-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cta-emerald);
    background: rgba(19, 90, 55, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.service-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    margin: 32px 0;
}

.service-lists h4 {
    font-size: 1.15rem;
    color: var(--primary-forest);
    margin-bottom: 16px;
}

.check-list,
.bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li,
.bullet-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-charcoal);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--cta-emerald);
    font-weight: 800;
}

.bullet-list li::before {
    content: '•';
    position: absolute;
    left: 6px;
    color: var(--cta-emerald);
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 1;
}

.highlight-box {
    background: var(--bg-light);
    border-left: 4px solid var(--cta-emerald);
    padding: 20px 24px;
    border-radius: 0 8px 8px 0;
    margin: 28px 0;
}

.highlight-box p {
    margin-bottom: 0;
    font-size: 1.02rem;
    font-weight: 500;
    color: var(--primary-forest);
}

.perfect-for {
    background: var(--bg-warm);
    border: 1px solid var(--border-color);
    padding: 18px 22px;
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--text-charcoal);
}

.pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 28px;
}

.pill-grid span {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--primary-forest);
}

.sub-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.sub-service-item {
    background: var(--bg-warm);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 22px;
}

.sub-service-item h4 {
    font-size: 1.05rem;
    color: var(--primary-forest);
    margin-bottom: 8px;
}

.sub-service-item p {
    font-size: 0.88rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* ==========================================================================
   About Us & Values Section Styles
   ========================================================================== */
.about-page-content {
    padding: 64px 0;
}

.about-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.vision-mission-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 36px;
    box-shadow: var(--shadow-sm);
}

.vision-mission-card h2 {
    font-size: 1.75rem;
    color: var(--primary-forest);
    margin-bottom: 18px;
}

.statement-block strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cta-emerald);
    margin-bottom: 8px;
}

.statement-block p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 0;
}

.values-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.values-section .section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
}

.values-section .section-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.value-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition-smooth);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(19, 90, 55, 0.2);
}

.value-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-forest);
}

.value-card p {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ==========================================================================
   Contact Page Styles
   ========================================================================== */
.contact-page-content {
    padding: 64px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 36px;
    box-shadow: var(--shadow-sm);
}

.contact-info h2 {
    font-size: 1.75rem;
    color: var(--primary-forest);
    margin-bottom: 12px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 28px;
}

.info-item {
    display: flex;
    gap: 16px;
    align-items: center;
}

.icon-badge {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: rgba(19, 90, 55, 0.1);
    color: var(--cta-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-item:hover .icon-badge {
    transform: scale(1.1);
}

.info-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item p {
    margin-bottom: 0;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--primary-forest);
}

.contact-form-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.map-section {
    padding: 24px 0 80px;
}

.map-placeholder {
    background: linear-gradient(135deg, var(--primary-forest) 0%, #05160E 100%);
    color: var(--bg-white);
    border-radius: 12px;
    padding: 60px 32px;
    text-align: center;
}

.map-placeholder h3 {
    color: var(--bg-white);
    font-size: 1.85rem;
    margin-bottom: 8px;
}

.map-placeholder p {
    color: var(--accent-gold);
    font-size: 1.05rem;
    margin-bottom: 24px;
}

/* ==========================================================================
   Responsive Overrides for Hire & Content Pages
   ========================================================================== */
@media (max-width: 1024px) {
    .hire-grid-layout {
        gap: 32px;
    }
    
    .process-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sub-service-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hire-grid-layout,
    .contact-wrapper,
    .about-section-grid,
    .showcase-grid,
    .service-lists {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .category-radio-group {
        grid-template-columns: 1fr;
    }
    
    .form-row-2 {
        grid-template-columns: 1fr;
    }
    
    .process-steps-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .hire-form-card,
    .service-block,
    .contact-form-card,
    .contact-info,
    .vision-mission-card,
    .showcase-card {
        padding: 24px 20px;
    }
    
    .banner-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .banner-inner .btn {
        width: 100%;
    }
}


.logo .brand-word,
.footer-logo .brand-word,
.sidebar-brand-text .brand-word {
    color: var(--primary-forest) !important;
    display: inline-block;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.footer-logo .brand-word {
    font-size: 1.35rem;
}

.logo,
.footer-logo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: auto !important;
    height: auto !important;
    flex-basis: auto !important;
    background: none !important;
    color: var(--primary-forest) !important;
    text-decoration: none;
}

.logo img,
.footer-logo img {
    display: block;
    flex: 0 0 auto;
}

.logo .brand-word,
.footer-logo .brand-word,
.sidebar-brand-text .brand-word {
    color: var(--primary-forest) !important;
    display: inline-block;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
}