/**
 * Westerlund Group - Main Styles
 * Recruitment platform for Poland & Europe
 *
 * @package Westerlund_Group
 * @version 1.0.0
 */

/* =============================================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================================= */
:root {
    --primary: #1e3a8a;
    --primary-light: #3b82f6;
    --primary-dark: #1e3070;
    --secondary: #f59e0b;
    --secondary-light: #fbbf24;
    --accent: #10b981;
    --accent-dark: #059669;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --gray-lighter: #e2e8f0;
    --white: #ffffff;
    --danger: #ef4444;
    --warning: #f97316;
    --info: #06b6d4;

    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #3b82f6 100%);
    --gradient-accent: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --gradient-secondary: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);

    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-heavy: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 50px;

    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
}

/* =============================================================================
   2. RESET & BASE
   ============================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
    background: var(--white);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

ul,
ol {
    list-style: none;
}

/* Override Astra defaults */
.ast-container {
    max-width: 1200px;
}

/* =============================================================================
   3. LANGUAGE SWITCHER
   ============================================================================= */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    background: var(--light);
    border-radius: var(--radius-full);
    margin-left: 1rem;
    flex-shrink: 0;
}

.lang-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 25px;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    color: var(--gray);
    font-family: inherit;
    white-space: nowrap;
}

.lang-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
}

.lang-btn:hover:not(.active) {
    background: var(--gray-lighter);
    color: var(--primary);
}

.lang-btn .flag-icon {
    margin-right: 3px;
    font-size: 14px;
}

/* =============================================================================
   4. NAVIGATION
   ============================================================================= */
.wg-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    padding: 0 5%;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.wg-header.scrolled {
    padding: 0 5%;
    box-shadow: var(--shadow-medium);
}

.wg-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

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

.logo i {
    color: var(--secondary);
    font-size: 1.4rem;
}

.logo img {
    height: 45px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links .nav-cta {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.nav-links .nav-cta::after {
    display: none;
}

.nav-links .nav-cta:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
    background: none;
    border: none;
    padding: 0.5rem;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-heavy);
    z-index: 998;
    padding: 1rem 0;
}

.mobile-nav.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
}

.mobile-nav li {
    border-bottom: 1px solid var(--gray-lighter);
}

.mobile-nav a {
    display: block;
    padding: 1rem 2rem;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
}

.mobile-nav a:hover {
    background: var(--light);
    color: var(--primary);
    padding-left: 2.5rem;
}

/* =============================================================================
   5. HERO SECTION
   ============================================================================= */
.hero {
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 120px 5% 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

.hero-content {
    max-width: 900px;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--secondary);
    position: relative;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--secondary);
    opacity: 0.3;
    z-index: -1;
}

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

/* =============================================================================
   6. BUTTONS
   ============================================================================= */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
}

.btn-primary {
    background: var(--secondary);
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-accent {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-block {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

.btn-sm {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

/* =============================================================================
   7. STATS BAR
   ============================================================================= */
.stats-bar {
    background: var(--white);
    padding: 3rem 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: -60px auto 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-heavy);
    position: relative;
    z-index: 10;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* =============================================================================
   8. SECTIONS
   ============================================================================= */
.wg-section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.wg-section-full {
    padding: 5rem 5%;
    max-width: none;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.section-title p {
    color: var(--gray);
    max-width: 600px;
    margin: 1.5rem auto 0;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* =============================================================================
   9. SERVICES GRID
   ============================================================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s;
}

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

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

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* =============================================================================
   10. USER TYPES (EMPLOYEE / EMPLOYER CARDS)
   ============================================================================= */
.user-types {
    background: var(--light);
    padding: 5rem 5%;
}

.user-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.user-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.user-card:hover {
    transform: scale(1.02);
}

.user-card-header {
    padding: 2rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.user-card.employee .user-card-header {
    background: var(--gradient-primary);
}

.user-card.employer .user-card-header {
    background: var(--gradient-accent);
}

.user-card-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.user-card-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.user-card-header p {
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.user-card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.feature-list {
    list-style: none;
    margin: 1.5rem 0;
    flex-grow: 1;
}

.feature-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray);
}

.feature-list li i {
    color: var(--accent);
}

.user-card.employee .feature-list li i {
    color: var(--primary-light);
}

/* =============================================================================
   11. TESTIMONIALS
   ============================================================================= */
.testimonials-section {
    background: var(--white);
    padding: 5rem 5%;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.testimonial-card {
    background: var(--light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-light);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-info h4 {
    font-size: 1rem;
    color: var(--dark);
}

.testimonial-info span {
    font-size: 0.85rem;
    color: var(--gray);
}

.testimonial-rating {
    margin-bottom: 1rem;
    color: var(--secondary);
}

/* =============================================================================
   12. ARTICLES PREVIEW
   ============================================================================= */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.article-card-image {
    height: 200px;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

.article-card-content {
    padding: 1.5rem;
}

.article-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.8rem;
}

.article-card-meta i {
    margin-right: 4px;
}

.article-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--dark);
    line-height: 1.4;
}

.article-card h3 a {
    color: var(--dark);
}

.article-card h3 a:hover {
    color: var(--primary);
}

.article-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.article-card .read-more {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-card .read-more:hover {
    gap: 10px;
}

/* =============================================================================
   13. FORMS (MODAL)
   ============================================================================= */
.form-section {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
    padding: 2rem;
}

.form-section.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-container {
    background: var(--white);
    max-width: 600px;
    width: 100%;
    border-radius: var(--radius-xl);
    padding: 3rem;
    position: relative;
    animation: slideIn 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-form {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-form:hover {
    background: var(--light);
    color: var(--dark);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-lighter);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: var(--white);
    color: var(--dark);
}

/* Fix select dropdowns: ensure visible text and proper native rendering */
.form-group select {
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
    color: var(--dark) !important;
    background-color: var(--white) !important;
    line-height: 1.4;
}

.form-group select option {
    color: var(--dark);
    background: var(--white);
    padding: 0.5rem;
}

.form-group select:invalid,
.form-group select option[value=''] {
    color: var(--gray);
}

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

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: var(--danger);
}

.form-error {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: none;
}

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

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

.checkbox-group input {
    width: auto;
    margin-top: 0.3rem;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
}

.checkbox-group a {
    color: var(--primary);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Success & Error Messages */
.success-message {
    background: #dcfce7;
    color: #166534;
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: none;
    align-items: center;
    gap: 10px;
}

.success-message.show {
    display: flex;
}

.error-message {
    background: #fef2f2;
    color: #991b1b;
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: none;
    align-items: center;
    gap: 10px;
}

.error-message.show {
    display: flex;
}

/* =============================================================================
   14. RODO / GDPR SECTION
   ============================================================================= */
.rodo-section {
    background: var(--light);
    border-left: 4px solid var(--primary);
    padding: 2rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 2rem 0;
}

.rodo-section h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rodo-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray);
}

.rodo-content ul {
    margin: 1rem 0 1rem 1.5rem;
    list-style: disc;
}

.rodo-content li {
    margin: 0.5rem 0;
}

/* =============================================================================
   15. CONTACT SECTION
   ============================================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    text-align: center;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.contact-card .service-icon {
    margin: 0 auto 1.5rem;
}

.contact-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.contact-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* =============================================================================
   16. JOB BOARD
   ============================================================================= */
.job-board {
    padding: 2rem 0;
}

.job-board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.job-filters {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.job-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.job-filters .form-group {
    margin-bottom: 0;
}

.job-filters .form-group label {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.job-filters .form-group input,
.job-filters .form-group select {
    padding: 0.8rem;
    font-size: 0.95rem;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.job-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-light);
}

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

.job-card-id {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(30, 58, 138, 0.08);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
}

.job-card-country {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--gray);
    background: var(--light);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
}

.job-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
    color: var(--dark);
}

.job-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.job-card-tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    background: var(--light);
    color: var(--gray);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.job-card-tag i {
    font-size: 0.7rem;
}

.job-card-salary {
    font-weight: 700;
    color: var(--accent-dark);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.job-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-lighter);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-card-date {
    font-size: 0.8rem;
    color: var(--gray-light);
}

.job-no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray);
}

.job-no-results i {
    font-size: 3rem;
    color: var(--gray-lighter);
    margin-bottom: 1rem;
    display: block;
}

/* =============================================================================
   17. DASHBOARD (PERSONAL CABINET)
   ============================================================================= */
.dashboard {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    min-height: calc(100vh - 200px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.dashboard-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.dashboard-user {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-lighter);
    margin-bottom: 1.5rem;
}

.dashboard-user-id {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(30, 58, 138, 0.08);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-bottom: 0.5rem;
}

.dashboard-user h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.dashboard-user span {
    font-size: 0.85rem;
    color: var(--gray);
}

.dashboard-nav {
    list-style: none;
}

.dashboard-nav li {
    margin-bottom: 0.3rem;
}

.dashboard-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--gray);
    font-weight: 500;
    transition: var(--transition);
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
    background: rgba(30, 58, 138, 0.08);
    color: var(--primary);
}

.dashboard-nav a i {
    width: 20px;
    text-align: center;
}

.dashboard-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
}

.dashboard-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-lighter);
}

/* Dashboard Stats Cards */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.dash-stat-card {
    background: var(--light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
}

.dash-stat-card i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.dash-stat-card .number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    display: block;
}

.dash-stat-card .label {
    font-size: 0.85rem;
    color: var(--gray);
}

/* =============================================================================
   18. LOGIN / REGISTER
   ============================================================================= */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 5% 80px;
    background: var(--light);
}

.auth-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-heavy);
    padding: 3rem;
    width: 100%;
    max-width: 480px;
}

.auth-container h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.auth-container .auth-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 2rem;
}

.auth-tabs {
    display: flex;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 2rem;
    background: var(--light);
    padding: 4px;
}

.auth-tab {
    flex: 1;
    padding: 0.8rem;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: transparent;
    color: var(--gray);
    font-family: inherit;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
}

.auth-tab.active {
    background: var(--gradient-primary);
    color: var(--white);
}

.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.role-option {
    border: 2px solid var(--gray-lighter);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.role-option:hover {
    border-color: var(--primary-light);
}

.role-option.selected {
    border-color: var(--primary);
    background: rgba(30, 58, 138, 0.05);
}

.role-option i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.role-option h4 {
    font-size: 0.95rem;
    color: var(--dark);
}

.role-option p {
    font-size: 0.8rem;
    color: var(--gray);
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--gray);
}

.auth-link a {
    color: var(--primary);
    font-weight: 600;
}

/* =============================================================================
   19. FAQ
   ============================================================================= */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--gray-lighter);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark);
    transition: var(--transition);
    background: var(--white);
}

.faq-question:hover {
    background: var(--light);
    color: var(--primary);
}

.faq-question i {
    transition: transform 0.3s;
    color: var(--primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--light);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 1.2rem 1.5rem;
    color: var(--gray);
    line-height: 1.8;
}

/* =============================================================================
   20. COOKIE BANNER
   ============================================================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: var(--white);
    padding: 1.5rem 5%;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    display: none;
}

.cookie-banner.show {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-banner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
}

.cookie-banner p a {
    color: var(--secondary);
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* =============================================================================
   21. FOOTER
   ============================================================================= */
.wg-footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 5% 2rem;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary);
    color: var(--dark);
    transform: translateY(-3px);
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* =============================================================================
   22. 404 PAGE
   ============================================================================= */
.page-404 {
    text-align: center;
    padding: 150px 5% 100px;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-404 h1 {
    font-size: 8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 1rem;
}

.page-404 p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

/* =============================================================================
   23. PAGE TEMPLATES
   ============================================================================= */
.page-header {
    background: var(--gradient-primary);
    padding: 140px 5% 60px;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 5%;
    line-height: 1.8;
    color: var(--dark-light);
}

.page-content h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 2.5rem 0 1rem;
}

.page-content h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin: 2rem 0 0.8rem;
}

.page-content p {
    margin-bottom: 1.2rem;
}

.page-content ul,
.page-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    list-style: disc;
}

.page-content li {
    margin-bottom: 0.5rem;
}

/* =============================================================================
   24. UTILITY CLASSES
   ============================================================================= */
.text-center {
    text-align: center;
}

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

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

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.hidden {
    display: none;
}

/* Pagination */
.wg-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.wg-pagination a,
.wg-pagination span {
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
    min-width: 40px;
    text-align: center;
}

.wg-pagination a {
    background: var(--light);
    color: var(--gray);
}

.wg-pagination a:hover {
    background: var(--primary);
    color: var(--white);
}

.wg-pagination .current {
    background: var(--primary);
    color: var(--white);
}

/* Loading spinner */
.wg-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-lighter);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =============================================================================
   25. RESPONSIVE
   ============================================================================= */
@media (max-width: 1100px) {
    .nav-links {
        gap: 0.8rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .lang-btn {
        padding: 5px 8px;
        font-size: 11px;
    }
}

@media (max-width: 968px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

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

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

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

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

    .dashboard-sidebar {
        position: static;
    }

    .job-filters-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .lang-switcher {
        order: -1;
        margin-left: 0;
        margin-right: auto;
        position: absolute;
        top: 90px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 50;
        background: var(--white);
        box-shadow: var(--shadow-soft);
    }

    .lang-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

    .wg-header {
        padding-bottom: 0;
    }

    .wg-header-inner {
        height: 65px;
    }

    .hero {
        padding-top: 100px;
    }

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

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

    .stats-bar {
        grid-template-columns: 1fr 1fr;
        margin-top: -30px;
        padding: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

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

    .job-filters-grid {
        grid-template-columns: 1fr;
    }

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

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

    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
    }

    .auth-container {
        padding: 2rem 1.5rem;
    }

    .role-selector {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.9rem;
    }

    .wg-section {
        padding: 3rem 5%;
    }
}

@media (max-width: 480px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}