:root {
    --primary: #1a1a2e;
    --primary-dark: #0f0f1a;
    --primary-light: #e8e8f0;
    --accent: #c9a227;
    --accent-dark: #a0801f;
    --secondary: #4a4a5e;
    --success: #2d5a27;
    --warning: #8b6914;
    --danger: #8b2942;
    --info: #1f5f7a;
    --dark: #0a0a12;
    --light: #f5f5f7;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e8e8e8;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --border-color: #e5e5e5;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: "Georgia", "Times New Roman", serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    font-size: 0.95rem;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.main-header {
    background: var(--white);
    color: var(--gray-900);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    transition: var(--transition);
    flex-shrink: 0;
}

.logo:hover {
    color: var(--primary-dark);
}

.logo:hover .logo-text {
    color: var(--primary-dark);
}

.logo-img {
    height: 90px;
    width: auto;
    display: block;
    object-fit: contain;
}

.auth-logo-wrap {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.logo-text {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    background-color: var(--gray-100);
}

.nav-link.active {
    color: var(--primary);
    background-color: var(--primary-light);
    font-weight: 600;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.welcome-text {
    color: var(--gray-600);
    margin-right: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    background-color: var(--gray-100);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: var(--transition);
    color: var(--gray-700);
}

.mobile-menu-toggle:hover {
    background-color: var(--gray-100);
}

.activity-feed {
    background: var(--white);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

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

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

.activity-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: var(--primary);
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
}

.activity-name {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
}

.activity-name a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.activity-name a:hover {
    text-decoration: underline;
}

.activity-org {
    margin: 0 0 0.25rem 0;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.activity-time {
    margin: 0;
    color: var(--gray-500);
    font-size: 0.8rem;
}

.status-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-verified {
    background-color: var(--success);
    color: var(--white);
}

.status-pending {
    background-color: var(--warning);
    color: var(--white);
}

.status-rejected {
    background-color: var(--danger);
    color: var(--white);
}

.status-published {
    background-color: var(--success);
    color: var(--white);
}

.status-draft {
    background-color: var(--gray-500);
    color: var(--white);
}

.status-closed {
    background-color: var(--danger);
    color: var(--white);
}

.status-reviewed {
    background-color: var(--info);
    color: var(--white);
}

.status-shortlisted {
    background-color: var(--primary);
    color: var(--white);
}

.status-hired {
    background-color: var(--success);
    color: var(--white);
}

.premium-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.5rem;
}

.premium-badge.featured {
    background-color: var(--success);
    color: var(--white);
}

.premium-badge.highlighted {
    background-color: var(--info);
    color: var(--white);
}

.premium-badge.sponsored {
    background-color: var(--warning);
    color: var(--white);
}

.job-card.premium-featured {
    border: 2px solid var(--success);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.job-card.premium-highlighted {
    border: 2px solid var(--info);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.job-card.premium-sponsored {
    border: 2px solid var(--warning);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    background-color: #fff9e6;
}

.language-selector {
    position: relative;
    margin-right: 1rem;
}

.language-dropdown {
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--gray-900);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    min-width: 130px;
}

.language-dropdown:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.language-dropdown:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.language-dropdown option {
    background: var(--white);
    color: var(--gray-900);
    padding: 0.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-400);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-danger {
    background-color: var(--danger);
    color: var(--white);
    border: 1px solid var(--danger);
}

.btn-danger:hover {
    background-color: #7a233a;
    border-color: #7a233a;
}

.hero {
    position: relative;
    height: 650px;
    overflow: hidden;
    color: var(--white);
    text-align: center;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(15, 15, 26, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 9rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.search-form {
    display: flex;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.search-select {
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    min-width: 160px;
    transition: var(--transition);
}

.search-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.search-btn {
    padding: 1rem 2.5rem;
    background-color: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.metrics {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 50%, var(--gray-100) 100%);
    padding: 6rem 0;
    margin-top: -4rem;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.metrics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(26, 26, 46, 0.03), transparent 40%),
                radial-gradient(circle at 80% 20%, rgba(26, 26, 46, 0.02), transparent 35%);
    pointer-events: none;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.metric-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 1.25rem;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 50%, var(--primary-dark) 100%);
}

.metric-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(26, 26, 46, 0.02) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.metric-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gray-300);
}

.metric-card:hover::after {
    opacity: 1;
}

.metric-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.08) 0%, rgba(26, 26, 46, 0.04) 100%);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
}

.metric-card:hover .metric-icon-wrapper {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.metric-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.metric-label {
    color: var(--gray-700);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}

@media (max-width: 768px) {
    .metrics {
        padding: 4rem 0;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .metric-card {
        padding: 2rem 1.5rem;
    }

    .metric-number {
        font-size: 2.5rem;
    }

    .metric-label {
        font-size: 0.9rem;
    }
}

.showcase-cards {
    padding: 6rem 0;
    background: var(--gray-900);
    position: relative;
    overflow: hidden;
}

.showcase-cards::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(15, 15, 26, 0.98) 100%);
    pointer-events: none;
}

.showcase-slider-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 1;
}

.showcase-slider {
    display: flex;
    gap: 2rem;
    overflow: hidden;
    padding: 1rem 0;
    animation: slideLeft 30s linear infinite;
}

@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.showcase-slider:hover {
    animation-play-state: paused;
}

.showcase-card {
    flex: 0 0 calc(20% - 1.6rem);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 50%, var(--primary-dark) 100%);
}

.showcase-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.showcase-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 1rem;
    line-height: 1;
}

.showcase-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.08) 0%, rgba(26, 26, 46, 0.04) 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.showcase-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.showcase-card p {
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.showcase-card-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    width: 320px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: none;
}

.showcase-card:hover .showcase-card-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-15px);
}

.showcase-card-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.98);
}

.showcase-card-popup h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.showcase-card-popup p {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.showcase-card-popup .popup-number {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--primary-dark) 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.showcase-metric-card {
    text-align: center;
}

.showcase-metric-card .showcase-icon {
    margin-bottom: 1rem;
}

.showcase-metric-card .showcase-number {
    display: none;
}

.showcase-metric-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.showcase-metric-label {
    color: var(--gray-700);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.showcase-slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.showcase-slider-btn {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--primary-dark) 100%);
    border: none;
    border-radius: 0.75rem;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.showcase-slider-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.showcase-slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.showcase-slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.showcase-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.showcase-slider-dot.active {
    background: var(--primary);
}

.featured-jobs {
    padding: 6rem 0;
    background: var(--white);
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.job-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.job-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    line-height: 1.3;
}

.job-type {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.job-details {
    flex: 1;
    margin-bottom: 1.5rem;
}

.job-details p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin: 0.5rem 0;
    line-height: 1.5;
}

.job-details strong {
    color: var(--gray-900);
    font-weight: 600;
}

.job-details i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.activity-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.activity-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.activity-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.activity-card-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.live-pill {
    background: var(--danger);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.live-feed-panel {
    max-height: 400px;
    overflow-y: auto;
}

.jobs-gallery-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 50%, var(--gray-100) 100%);
}

.jobs-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.jobs-gallery-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.jobs-gallery-header p {
    color: var(--gray-600);
    margin: 0.5rem 0 0 0;
    font-size: 1rem;
}

.gallery-scroll-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.jobs-gallery-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
}

.jobs-gallery-track::-webkit-scrollbar {
    height: 8px;
}

.jobs-gallery-track::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: 4px;
}

.jobs-gallery-track::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

.gallery-flip-card {
    flex: 0 0 300px;
    height: 400px;
    perspective: 1000px;
    cursor: pointer;
}

.gallery-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.gallery-flip-card.is-flipped .gallery-flip-inner {
    transform: rotateY(180deg);
}

.gallery-flip-front,
.gallery-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-flip-front img,
.gallery-flip-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-flip-back {
    transform: rotateY(180deg);
}

.gallery-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem;
    color: var(--white);
}

.gallery-card-overlay-back {
    background: linear-gradient(to top, rgba(26, 26, 46, 0.9), transparent);
}

.gallery-card-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.organization-types {
    padding: 6rem 0;
    background: var(--white);
}

.organization-types h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2rem;
    text-align: center;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.type-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.type-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.type-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.type-card i {
    color: var(--primary);
}

.premium-footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo-wrapper {
    margin-bottom: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

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

.footer-description {
    color: var(--gray-400);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

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

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-links-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-links-column h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

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

.footer-links-list a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links-list a:hover {
    color: var(--white);
    padding-left: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

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

.footer-copyright {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin: 0;
}

.footer-tagline {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin: 0;
}

@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-links-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero {
        height: 500px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .search-form {
        flex-direction: column;
    }

    .search-input,
    .search-select,
    .search-btn {
        width: 100%;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .featured-jobs > .container > div {
        grid-template-columns: 1fr;
    }

    .footer-links-section {
        grid-template-columns: 1fr;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .showcase-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

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

.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #fecaca;
}

.success-message {
    background: #d1fae5;
    color: #065f46;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #a7f3d0;
}

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

.form-group label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: var(--transition);
    width: 100%;
    font-family: var(--font-family);
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .home-button {
        top: 1rem;
        left: 1rem;
        padding: 0.8rem 1rem;
    }
}

.main-header {
    padding: 0.55rem 0;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(20, 34, 58, 0.08);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
}

.header-content {
    position: relative;
    min-height: 66px;
    gap: 1.5rem;
}

.logo {
    gap: 0.8rem;
    color: #13233e;
}

.logo-img {
    height: 56px;
    max-width: 170px;
}

.logo-text {
    color: #13233e;
    font-size: 1.2rem;
    font-weight: 750;
    letter-spacing: -0.045em;
}

.main-nav {
    gap: 0.25rem;
}

.nav-link {
    padding: 0.65rem 0.9rem;
    border-radius: 0.7rem;
    color: #526078;
    font-size: 0.88rem;
    font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
    color: #13233e;
    background: #f1f4f8;
}

.auth-buttons {
    gap: 0.65rem;
}

.auth-buttons .btn {
    min-height: 42px;
    padding: 0.65rem 1rem;
    border-radius: 0.7rem;
    font-size: 0.86rem;
    font-weight: 650;
}

.auth-buttons .btn-primary {
    background: #142844;
    border: 1px solid #142844;
    box-shadow: 0 5px 12px rgba(20, 40, 68, 0.15);
}

.auth-buttons .btn-primary:hover {
    background: #203a60;
    border-color: #203a60;
}

.auth-buttons .btn-secondary {
    color: #263954;
    background: #fff;
    border: 1px solid #dce2eb;
}

.auth-buttons .btn-secondary:hover {
    background: #f6f8fb;
}

.welcome-text {
    margin-right: 0;
    color: #526078;
    background: #f7f8fa;
    border-color: #e7eaf0;
}

.mobile-menu-toggle {
    color: #172a46;
    border: 1px solid #e2e7ef;
    background: #fff;
}

.mobile-menu-toggle[aria-expanded="true"] {
    background: #f1f4f8;
}

.featured-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
}

.featured-listings > h2 {
    color: #15243b;
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    letter-spacing: -0.04em;
}

.activity-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 1.25rem;
}

.activity-card {
    min-width: 0;
    padding: 1.35rem 1.4rem;
    border: 1px solid #e7eaf0;
    border-radius: 1.15rem;
    background: linear-gradient(150deg, #fff 0%, #fbfcfe 100%);
    box-shadow: 0 12px 35px rgba(20, 35, 58, 0.07);
}

.activity-card-header {
    min-height: 38px;
    margin-bottom: 0.7rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #edf0f4;
}

.activity-card-header h2 {
    color: #182943;
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: -0.025em;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.34rem 0.65rem;
    color: #16794b;
    background: #eaf7f0;
    border: 1px solid #d5efdf;
    border-radius: 999px;
    font-size: 0.66rem;
    letter-spacing: 0.07em;
}

.live-pill::before {
    width: 6px;
    height: 6px;
    content: "";
    background: #20a464;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(32, 164, 100, 0.12);
}

.activity-card .activity-feed,
.activity-card .live-feed {
    max-height: 390px;
    padding: 0;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.activity-card .activity-item {
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #edf0f4;
}

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

.activity-card .activity-icon {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    color: #344e70;
    background: #f0f4f9;
    border: 1px solid #e6edf5;
    border-radius: 12px;
}

.activity-card .activity-icon svg {
    width: 18px;
    height: 18px;
}

.activity-card .activity-content {
    min-width: 0;
}

.activity-card .activity-title {
    margin-bottom: 0.15rem;
    color: #66748a;
    font-size: 0.76rem;
    font-weight: 550;
}

.activity-card .activity-name {
    margin-bottom: 0.18rem;
    color: #172a46;
    font-size: 0.88rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.activity-card .activity-name a {
    color: #172a46;
    font-weight: 650;
    text-decoration: none;
}

.activity-card .activity-name a:hover {
    color: #9b7620;
    text-decoration: none;
}

.activity-card .activity-org,
.activity-card .activity-meta,
.activity-card .activity-time {
    margin: 0.15rem 0 0;
    color: #8590a1;
    font-size: 0.73rem;
}

.activity-card .live-feed-status {
    margin: 0.1rem 0 0.5rem;
    color: #738197;
    font-size: 0.72rem;
}

.activity-card .activity-feed > p,
.activity-card .live-feed > p {
    padding: 1rem 0;
    color: #738197;
    font-size: 0.88rem;
}

@media (max-width: 900px) {
    .header-content {
        flex-wrap: wrap;
    }

    .main-nav {
        position: absolute;
        z-index: 5;
        top: calc(100% + 0.55rem);
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 0.65rem;
        background: #fff;
        border: 1px solid #e7eaf0;
        border-radius: 1rem;
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav .nav-link {
        padding: 0.8rem 0.9rem;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .auth-buttons {
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .featured-layout {
        gap: 1.75rem;
    }

    .activity-sidebar {
        grid-template-columns: 1fr;
    }

    .activity-card .activity-feed,
    .activity-card .live-feed {
        max-height: 340px;
    }
}

@media (max-width: 520px) {
    .container {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .header-content {
        min-height: 58px;
        gap: 0.5rem;
    }

    .logo {
        gap: 0.45rem;
    }

    .logo-img {
        height: 42px;
        max-width: 118px;
    }

    .logo-text {
        font-size: 0.95rem;
    }

    .auth-buttons {
        order: 3;
        width: 100%;
        justify-content: flex-end;
    }

    .auth-buttons .btn {
        min-height: 38px;
        padding: 0.5rem 0.75rem;
        font-size: 0.78rem;
    }

    .activity-card {
        padding: 1.05rem;
    }
}

.testimonials-section {
    padding: 6rem 0 6.5rem;
    overflow: hidden;
    color: #f6f8fc;
    background:
        radial-gradient(ellipse at 82% 0%, rgba(58, 91, 137, 0.36), transparent 38%),
        linear-gradient(135deg, #0b1729 0%, #122743 58%, #0b1729 100%);
}

.testimonials-heading,
.testimonials-heading > div {
    display: flex;
}

.testimonials-heading {
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.35rem;
}

.testimonials-eyebrow,
.about-eyebrow {
    display: inline-block;
    color: #c49e58;
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.13em;
    line-height: 1.5;
    text-transform: uppercase;
}

.testimonials-heading h2 {
    margin: 0.55rem 0 0.4rem;
    color: #fff;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 740;
    letter-spacing: -0.05em;
    line-height: 1.1;
}

.testimonials-heading p {
    margin: 0;
    color: #bac7d8;
    font-size: 1rem;
}

.testimonials-pause {
    display: inline-flex;
    min-height: 44px;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.9rem;
    color: #eef3fb;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.19);
    border-radius: 0.75rem;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 650;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.testimonials-pause:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.34);
}

.testimonials-pause svg {
    width: 16px;
    height: 16px;
}

.testimonials-disclaimer {
    margin: 0 0 1.4rem;
    color: #b6c3d4;
    font-size: 0.79rem;
}

.testimonials-marquee {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
}

.testimonials-marquee:hover,
.testimonials-marquee:focus-within,
.testimonials-marquee.is-paused {
    animation-play-state: paused;
}

.testimonials-group {
    display: flex;
    width: max-content;
    gap: 1.15rem;
    padding: 0.35rem 0 1.5rem;
    animation: testimonial-glide 100s linear infinite;
}

.testimonials-marquee:hover .testimonials-group,
.testimonials-marquee:focus-within .testimonials-group,
.testimonials-marquee.is-paused .testimonials-group {
    animation-play-state: paused;
}

.testimonial-card {
    display: flex;
    width: 350px;
    min-height: 282px;
    flex-direction: column;
    padding: 1.4rem;
    color: #182943;
    background: linear-gradient(150deg, #fff 0%, #f8f9fc 100%);
    border: 1px solid rgba(231, 236, 245, 0.85);
    border-radius: 1.15rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.testimonial-rating {
    display: flex;
    align-items: center;
    gap: 0.24rem;
    color: #c3902f;
}

.testimonial-rating svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    stroke-width: 1.4;
}

.testimonial-rating span {
    margin-left: 0.3rem;
    color: #586a82;
    font-size: 0.75rem;
    font-weight: 700;
}

.testimonial-quote {
    flex: 1;
    margin: 1rem 0 1.3rem;
    color: #34455c;
    font-size: 0.92rem;
    line-height: 1.7;
}

.testimonial-profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-top: 0.95rem;
    border-top: 1px solid #e9edf3;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 9px rgba(16, 32, 55, 0.18);
}

.testimonial-profile div {
    display: grid;
    min-width: 0;
    gap: 0.12rem;
}

.testimonial-profile strong {
    color: #192b43;
    font-size: 0.82rem;
}

.testimonial-profile span {
    color: #77859a;
    font-size: 0.72rem;
    line-height: 1.35;
}

@keyframes testimonial-glide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.about-page {
    color: #1a2b43;
    background: #fff;
}

.about-hero {
    position: relative;
    display: grid;
    min-height: 540px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: center;
    overflow: hidden;
    background: linear-gradient(115deg, #f8fafc 0%, #edf2f7 58%, #e6edf5 100%);
}

.about-hero-content {
    position: relative;
    z-index: 1;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.about-hero h1 {
    max-width: 700px;
    margin: 1rem 0;
    color: #10233d;
    font-size: clamp(3rem, 5.4vw, 5rem);
    font-weight: 750;
    letter-spacing: -0.065em;
    line-height: 1.02;
}

.about-hero-content > p {
    max-width: 610px;
    margin: 0 0 1.6rem;
    color: #53637a;
    font-size: 1.1rem;
    line-height: 1.75;
}

.about-hero .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.1rem;
    border-radius: 0.75rem;
}

.about-hero .btn svg {
    width: 17px;
    height: 17px;
}

.about-hero-art {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 48%;
    overflow: hidden;
}

.about-hero-art::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, #f3f6fa 0%, rgba(243, 246, 250, 0.1) 52%, rgba(13, 28, 47, 0.24) 100%);
}

.about-hero-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-intro-grid,
.about-approach-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
}

.about-intro-grid h2,
.about-prose h2 {
    margin: 0.6rem 0 0;
    color: #142640;
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    font-weight: 730;
    letter-spacing: -0.045em;
    line-height: 1.18;
}

.about-prose p {
    margin: 0 0 1.1rem;
    color: #5c6b80;
    font-size: 1rem;
    line-height: 1.85;
}

.about-pillar-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
    margin-top: 2.5rem;
}

.about-pillars {
    padding: 5.5rem 0;
    background: #f6f8fb;
}

.about-section-heading {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about-section-heading h2 {
    margin: 0.6rem 0 0;
    color: #142640;
    font-size: clamp(1.9rem, 3vw, 2.65rem);
    font-weight: 730;
    letter-spacing: -0.045em;
    line-height: 1.2;
}

.about-pillar-card {
    min-height: 250px;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e7ebf1;
    border-radius: 1rem;
    box-shadow: 0 12px 34px rgba(18, 38, 64, 0.045);
}

.about-pillar-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: #b18539;
    background: #fbf5e9;
    border-radius: 0.8rem;
}

.about-pillar-icon svg {
    width: 21px;
    height: 21px;
}

.about-pillar-card h3 {
    margin: 1.1rem 0 0.55rem;
    color: #1c304b;
    font-size: 1rem;
    line-height: 1.4;
}

.about-pillar-card p,
.about-audience-grid p {
    margin: 0;
    color: #66758a;
    font-size: 0.89rem;
    line-height: 1.75;
}

.about-approach-grid {
    align-items: center;
}

.about-approach-art {
    height: 420px;
    overflow: hidden;
    background: #edf1f6;
    border-radius: 1.2rem;
    box-shadow: 0 20px 55px rgba(20, 38, 61, 0.12);
}

.about-approach-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-prose h2 {
    margin-bottom: 1.15rem;
}

.about-audience {
    padding: 5.25rem 0;
    background: #f7f9fc;
}

.about-audience-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2.4rem;
}

.about-audience-grid article {
    padding: 2rem;
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 1rem;
}

.about-audience-grid article > svg {
    width: 25px;
    height: 25px;
    color: #a9803b;
}

.about-audience-grid h3 {
    margin: 1rem 0 0.55rem;
    color: #1a2c45;
    font-size: 1.3rem;
}

.about-audience-grid a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.15rem;
    color: #183958;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.about-audience-grid a svg {
    width: 16px;
    height: 16px;
}

.about-next-step {
    padding: 3.3rem 0;
    color: #fff;
    background: linear-gradient(120deg, #12243d, #1b3b60);
}

.about-next-step-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.about-next-step h2 {
    margin: 0.45rem 0;
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    letter-spacing: -0.04em;
}

.about-next-step p {
    max-width: 630px;
    margin: 0;
    color: #c2cede;
    line-height: 1.7;
}

.about-next-step-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.about-next-step-actions .btn {
    padding: 0.75rem 0.9rem;
    border-radius: 0.7rem;
    font-size: 0.83rem;
}

.manual-page {
    background: #f6f8fb;
}

.manual-cover {
    padding: 3.5rem 0;
    color: #fff;
    background:
        radial-gradient(ellipse at 84% 10%, rgba(58, 91, 137, 0.42), transparent 35%),
        linear-gradient(135deg, #0c1b30, #183454);
}

.manual-cover-content {
    display: grid;
    justify-items: start;
}

.manual-logo {
    width: 190px;
    height: 145px;
    margin-bottom: 1.4rem;
    padding: 0.55rem;
    object-fit: contain;
    background: #fff;
    border: 1px solid rgba(226, 232, 241, 0.86);
    border-radius: 1rem;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.17);
}

.manual-cover h1 {
    max-width: 850px;
    margin: 0.55rem 0 0.7rem;
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 4.1rem);
    letter-spacing: -0.055em;
    line-height: 1.05;
}

.manual-cover-content > p {
    max-width: 690px;
    margin: 0 0 1.4rem;
    color: #cad4e1;
    font-size: 1.05rem;
    line-height: 1.7;
}

.manual-download {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.05rem;
    border-radius: 0.75rem;
}

.manual-download svg {
    width: 17px;
    height: 17px;
}

.manual-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    align-items: start;
    gap: 2rem;
    padding-top: 3rem;
    padding-bottom: 5rem;
}

.manual-toc {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 0.3rem;
    padding: 1.1rem;
    background: #fff;
    border: 1px solid #e4e9f0;
    border-radius: 0.9rem;
}

.manual-toc h2 {
    margin: 0 0 0.45rem;
    color: #1b2e49;
    font-size: 0.95rem;
}

.manual-toc a {
    padding: 0.55rem 0.6rem;
    color: #63738a;
    border-radius: 0.5rem;
    font-size: 0.79rem;
    line-height: 1.45;
    text-decoration: none;
}

.manual-toc a:hover {
    color: #1b2e49;
    background: #f2f5f9;
}

.manual-content {
    min-width: 0;
}

.manual-chapter {
    position: relative;
    margin-bottom: 1.25rem;
    padding: 2rem;
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 1rem;
    scroll-margin-top: 110px;
}

.manual-chapter-number {
    display: inline-flex;
    width: 39px;
    height: 39px;
    align-items: center;
    justify-content: center;
    color: #8c6928;
    background: #faf3e5;
    border-radius: 0.7rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.manual-chapter h2 {
    margin: 0.8rem 0 1rem;
    color: #162943;
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.manual-chapter h3 {
    margin: 1.55rem 0 0.55rem;
    color: #243a58;
    font-size: 1rem;
    line-height: 1.45;
}

.manual-chapter p,
.manual-chapter li,
.manual-glossary dd {
    color: #586a80;
    font-size: 0.9rem;
    line-height: 1.8;
}

.manual-chapter p {
    margin: 0 0 0.9rem;
}

.manual-chapter ul,
.manual-chapter ol {
    display: grid;
    gap: 0.5rem;
    margin: 0.65rem 0 1.1rem;
    padding-left: 1.35rem;
}

.manual-chapter li {
    padding-left: 0.2rem;
}

.manual-chapter strong {
    color: #293c55;
}

.manual-note {
    display: grid;
    gap: 0.3rem;
    margin: 1.2rem 0;
    padding: 1rem 1.1rem;
    background: #f6f8fb;
    border-left: 3px solid #b98d42;
    border-radius: 0 0.65rem 0.65rem 0;
}

.manual-note strong {
    color: #273c59;
    font-size: 0.86rem;
}

.manual-note span {
    color: #5d6e83;
    font-size: 0.85rem;
    line-height: 1.7;
}

.manual-glossary dt {
    margin-top: 0.85rem;
    color: #233954;
    font-size: 0.9rem;
    font-weight: 750;
}

.manual-glossary dd {
    margin-left: 0;
}

.manual-ending {
    margin-top: 1.5rem !important;
    padding-top: 1.1rem;
    border-top: 1px solid #e8ecf2;
}

.guide-nav-link {
    gap: 0.45rem;
    white-space: nowrap;
}

.guide-nav-link svg {
    width: 15px;
    height: 15px;
}

.homepage-hero {
    height: min(680px, calc(100vh - 84px));
    min-height: 560px;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    background: #edf2f7;
}

.homepage-hero .hero-slider {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 52%;
    width: auto;
    overflow: hidden;
    border-radius: 11rem 0 0 11rem;
}

.homepage-hero .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.homepage-hero .hero-overlay {
    background: linear-gradient(90deg, #f3f6fa 0%, rgba(243, 246, 250, 0.28) 50%, rgba(13, 28, 47, 0.36) 100%);
}

.homepage-hero .about-hero-content {
    z-index: 2;
    width: 100%;
    text-align: left;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.homepage-hero h1 {
    max-width: 660px;
    margin: 1rem 0;
    color: #10233d;
    font-size: clamp(3rem, 5.4vw, 5rem);
    font-weight: 750;
    letter-spacing: -0.065em;
    line-height: 1.02;
}

.homepage-hero .hero-content > p {
    max-width: 580px;
    margin-right: 0;
    margin-left: 0;
    color: #53637a;
    font-size: 1.1rem;
    line-height: 1.75;
}

.homepage-hero .homepage-search-form {
    max-width: 640px;
    margin: 0;
    gap: 0.6rem;
    padding: 0.55rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(216, 224, 235, 0.95);
    border-radius: 0.9rem;
    box-shadow: 0 16px 40px rgba(19, 39, 64, 0.13);
}

.homepage-hero .search-input,
.homepage-hero .search-select {
    min-width: 0;
    border-color: transparent;
    background: #fff;
}

.homepage-hero .homepage-search-form .search-btn {
    flex: 0 0 auto;
    border-radius: 0.7rem;
}

.manual-hero {
    min-height: 480px;
    padding: 0;
    background: linear-gradient(115deg, #f8fafc 0%, #edf2f7 58%, #e6edf5 100%);
}

.manual-hero .manual-cover-content {
    justify-items: start;
    padding-top: 4.25rem;
    padding-bottom: 4.25rem;
}

.manual-hero h1 {
    max-width: 700px;
    margin: 1rem 0;
    color: #10233d;
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 750;
    letter-spacing: -0.065em;
    line-height: 1.02;
}

.manual-hero .manual-cover-content > p {
    max-width: 570px;
    margin: 0 0 1.6rem;
    color: #53637a;
    font-size: 1.1rem;
    line-height: 1.75;
}

.manual-hero .about-hero-art::after {
    background: linear-gradient(90deg, #f3f6fa 0%, rgba(243, 246, 250, 0.1) 52%, rgba(13, 28, 47, 0.24) 100%);
}

@media (max-width: 1100px) {
    .about-pillar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .homepage-hero,
    .manual-hero {
        min-height: auto;
        height: auto;
        grid-template-columns: 1fr;
    }

    .homepage-hero .about-hero-content,
    .manual-hero .manual-cover-content {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .homepage-hero .hero-slider,
    .manual-hero .about-hero-art {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        height: 260px;
        grid-row: 2;
        border-radius: 0;
    }

    .homepage-hero .hero-overlay {
        background: linear-gradient(180deg, #edf2f7 0%, rgba(237, 242, 247, 0.3) 58%, rgba(13, 28, 47, 0.12) 100%);
    }

    .homepage-hero .homepage-search-form {
        flex-wrap: wrap;
    }

    .homepage-hero .homepage-search-form .search-input,
    .homepage-hero .homepage-search-form .search-select {
        flex: 1 1 100%;
    }

    .homepage-hero .homepage-search-form .search-btn {
        width: 100%;
    }

    .manual-hero .manual-hero-art::after {
        background: linear-gradient(180deg, #edf2f7 0%, rgba(237, 242, 247, 0) 42%);
    }

    .testimonials-section {
        padding: 4rem 0;
    }

    .testimonials-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .testimonial-card {
        width: 310px;
        min-height: 300px;
    }

    .about-hero {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .about-hero-content {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .about-hero-art {
        position: relative;
        width: 100%;
        height: 250px;
        grid-row: 2;
    }

    .about-hero-art::after {
        background: linear-gradient(180deg, #edf2f7 0%, rgba(237, 242, 247, 0) 42%);
    }

    .about-intro-grid,
    .about-approach-grid {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .about-pillar-grid {
        gap: 0.8rem;
    }

    .about-pillar-card {
        min-height: 0;
        padding: 1.1rem;
    }

    .about-approach-art {
        height: 290px;
    }

    .about-audience-grid {
        grid-template-columns: 1fr;
    }

    .about-next-step-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .manual-layout {
        grid-template-columns: 1fr;
    }

    .manual-toc {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .manual-toc h2 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .about-pillar-grid {
        grid-template-columns: 1fr;
    }

    .about-next-step-actions {
        flex-direction: column;
        width: 100%;
    }

    .manual-cover {
        padding: 2.5rem 0;
    }

    .manual-logo {
        width: 145px;
        height: 112px;
    }

    .manual-chapter {
        padding: 1.25rem;
    }

    .manual-toc {
        grid-template-columns: 1fr;
    }

    .manual-toc h2 {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonials-group {
        animation: none;
    }
}

@media print {
    .main-header,
    .premium-footer,
    .manual-toc,
    .manual-download {
        display: none !important;
    }

    .manual-page {
        background: #fff;
    }

    .manual-cover {
        padding: 12mm 0;
        background: #12243d !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .manual-cover-content {
        max-width: none;
    }

    .manual-logo {
        width: 42mm;
        height: 32mm;
    }

    .manual-layout {
        display: block;
        max-width: none;
        padding: 7mm 0 0;
    }

    .manual-chapter {
        margin-bottom: 5mm;
        padding: 8mm;
        border-color: #dfe4ea;
        border-radius: 0;
        break-inside: auto;
        box-shadow: none;
    }

    .manual-chapter h2,
    .manual-chapter h3 {
        break-after: avoid;
    }

    .manual-chapter li,
    .manual-note,
    .manual-glossary dt,
    .manual-glossary dd {
        break-inside: avoid;
    }

    .manual-chapter-number,
    .manual-note {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .manual-cover h1 {
        font-size: 30pt;
    }

    .manual-chapter h2 {
        font-size: 20pt;
    }

    .manual-chapter h3 {
        font-size: 11pt;
    }

    .manual-chapter p,
    .manual-chapter li,
    .manual-glossary dd {
        font-size: 9pt;
        line-height: 1.55;
    }

    @page {
        size: A4;
        margin: 16mm 17mm 19mm;
    }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    body.has-premium-cursor,
    body.has-premium-cursor * {
        cursor: none !important;
    }

    .premium-cursor {
        position: fixed;
        z-index: 20000;
        top: 0;
        left: 0;
        display: flex;
        width: 38px;
        height: 38px;
        align-items: center;
        justify-content: center;
        color: #183454;
        background: rgba(255, 255, 255, 0.72);
        border: 1px solid rgba(23, 50, 82, 0.72);
        border-radius: 50%;
        box-shadow: 0 3px 14px rgba(16, 36, 60, 0.2), inset 0 0 0 3px rgba(255, 255, 255, 0.7);
        opacity: 0;
        pointer-events: none;
        transform: translate(-50%, -50%);
        transition: width 220ms cubic-bezier(0.2, 0.75, 0.25, 1), height 220ms cubic-bezier(0.2, 0.75, 0.25, 1), opacity 180ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
        backdrop-filter: blur(7px);
        will-change: left, top, width, height, transform;
    }

    .premium-cursor.is-visible {
        opacity: 1;
    }

    .premium-cursor-core {
        width: 5px;
        height: 5px;
        background: #c99b42;
        border-radius: 50%;
        box-shadow: 0 0 0 3px rgba(201, 155, 66, 0.14);
        transition: opacity 140ms ease, transform 180ms ease;
    }

    .premium-cursor-helmet {
        display: block;
        width: 31px;
        height: 31px;
        color: #c99b42;
        opacity: 0;
        position: absolute;
        transform: scale(0.65);
        transition: opacity 220ms ease, transform 260ms cubic-bezier(0.2, 0.75, 0.25, 1);
    }

    body.cursor-button .premium-cursor {
        width: 10px;
        height: 10px;
        background: #d3a64c;
        border: 0;
        box-shadow: 0 0 0 4px rgba(211, 166, 76, 0.17), 0 2px 8px rgba(16, 36, 60, 0.25);
        backdrop-filter: none;
    }

    body.cursor-button .premium-cursor-core,
    body.cursor-typing .premium-cursor-core,
    body.cursor-idle .premium-cursor-core {
        opacity: 0;
        transform: scale(0);
    }

    body.cursor-typing .premium-cursor {
        width: 27px;
        height: 5px;
        background: linear-gradient(90deg, #c49135, #f0ca72, #c49135);
        border: 0;
        border-radius: 99px;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.72), 0 0 12px rgba(207, 161, 69, 0.55);
        animation: typing-cursor-pulse 1.15s ease-in-out infinite;
        backdrop-filter: none;
    }

    body.cursor-idle .premium-cursor {
        width: 58px;
        height: 58px;
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(240, 244, 250, 0.91));
        border: 1px solid rgba(194, 151, 70, 0.66);
        box-shadow: 0 10px 32px rgba(12, 31, 54, 0.2), inset 0 0 0 4px rgba(255, 255, 255, 0.84), 0 0 0 5px rgba(203, 162, 84, 0.1);
        animation: idle-helmet-float 2.6s ease-in-out infinite;
        backdrop-filter: blur(10px);
    }

    body.cursor-idle .premium-cursor-helmet {
        opacity: 1;
        transform: scale(1);
    }

    .cursor-bubble {
        position: fixed;
        z-index: 19999;
        width: var(--bubble-size);
        height: var(--bubble-size);
        background: radial-gradient(circle at 32% 28%, #fff 0%, var(--bubble-color) 42%, rgba(255, 255, 255, 0.12) 100%);
        border: 1px solid rgba(255, 255, 255, 0.78);
        border-radius: 50%;
        box-shadow: 0 1px 8px rgba(19, 39, 64, 0.18), inset -1px -2px 4px rgba(28, 55, 86, 0.15);
        pointer-events: none;
        transform: translate(-50%, -50%) scale(0.25);
        animation: cursor-bubble-burst 720ms cubic-bezier(0.16, 0.72, 0.25, 1) var(--bubble-delay) both;
    }
}

@keyframes cursor-bubble-burst {
    0% {
        opacity: 0.95;
        transform: translate(-50%, -50%) scale(0.3);
    }
    62% {
        opacity: 0.86;
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--bubble-x)), calc(-50% + var(--bubble-y))) scale(1);
    }
}

@keyframes typing-cursor-pulse {
    0%, 100% {
        opacity: 0.72;
        transform: translate(-50%, -50%) scaleX(0.84);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scaleX(1.08);
    }
}

@keyframes idle-helmet-float {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-6px) scale(1.045);
    }
}

@media (prefers-reduced-motion: reduce) {
    .premium-cursor,
    .premium-cursor-core,
    .premium-cursor-helmet,
    .cursor-bubble {
        animation: none !important;
        transition: none !important;
    }
}
