/* ========================================
   Staff4All - Custom Styles
   Medical Blue Premium Theme
   ======================================== */

/* ========== CSS Variables ========== */
:root {
    /* Professional Medical Color Palette (Inspired by medicalkpis.org) */
    --primary-color: #006B7D;
    /* Deep Teal - Professional medical */
    --primary-dark: #004A5C;
    /* Navy Teal - Darker variant */
    --primary-light: #00A3B5;
    /* Light Teal - Brighter accent */
    --secondary-color: #FF6B35;
    /* Vibrant Orange - Energy & warmth */
    --accent-color: #FFA726;
    /* Warm Orange - Complementary */
    --success-color: #00C9A7;
    /* Teal Green - Success states */

    /* Neutral Colors */
    --white: #FFFFFF;
    --light-gray: #F5F7FA;
    /* Softer background */
    --medium-gray: #E8ECF0;
    --dark-gray: #5A6C7D;
    /* Medium gray for secondary text */
    --text-dark: #1A2332;
    /* Deep navy for primary text */
    --text-muted: #707D8F;
    /* Muted slate for descriptions */

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #006B7D 0%, #00A3B5 100%);
    --gradient-secondary: linear-gradient(135deg, #FF6B35 0%, #FFA726 100%);
    --gradient-accent: linear-gradient(135deg, #FFA726 0%, #FF6B35 100%);

    /* Typography - Enhanced (Inspired by glow-bloom-flow) */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Font Sizes */
    --font-size-hero: 72px;
    /* H1 - Hero headings */
    --font-size-h2: 48px;
    /* H2 - Section titles */
    --font-size-h3-large: 24px;
    /* H3 - Large cards */
    --font-size-h3-medium: 20px;
    /* H3 - Medium cards */
    --font-size-h4: 16px;
    /* H4 - Small headings */
    --font-size-body-large: 20px;
    /* Large body text */
    --font-size-body: 16px;
    /* Standard body */
    --font-size-small: 14px;
    /* Small text */

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 107, 125, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 107, 125, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 107, 125, 0.16);

    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* ========== Base Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: var(--font-size-hero);
    font-weight: 800;
    line-height: 1;
}

h2 {
    font-size: var(--font-size-h2);
    font-weight: 800;
    line-height: 1;
}

h3 {
    font-size: var(--font-size-h3-large);
    font-weight: 700;
    line-height: 1.33;
}

h4 {
    font-size: var(--font-size-h3-medium);
    font-weight: 700;
    line-height: 1.4;
}

p {
    margin-bottom: 1rem;
    color: var(--dark-gray);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

/* ========== Header / Navigation ========== */
.header-main {
    position: relative;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 2rem;
    color: var(--primary-color);
    animation: heartbeat 2s infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    10%,
    30% {
        transform: scale(1.1);
    }

    20%,
    40% {
        transform: scale(1);
    }
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: var(--transition-fast);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Button Styles */
.btn {
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    transition: var(--transition-normal);
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--primary-dark);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ========== Hero Section ========== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://images.unsplash.com/photo-1631217868264-e5b90bb7e133?q=80&w=2091') center/cover no-repeat;
    padding: 120px 0 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 107, 125, 0.92) 0%, rgba(0, 74, 92, 0.88) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: var(--font-size-hero);
    font-weight: 800;
    line-height: 1;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.gradient-text {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-size-body-large);
    font-weight: 400;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Search Bar */
.search-bar-wrapper {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
}

.search-input-group {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    z-index: 10;
}

.search-input {
    padding-left: 3rem;
    border: 2px solid var(--gray);
    border-radius: 8px;
    height: 50px;
    transition: var(--transition-fast);
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
}

.btn-search {
    background: var(--gradient-primary);
    color: var(--white);
    height: 50px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition-normal);
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--white);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========== How It Works Section ========== */
.how-it-works-section {
    padding: 60px 0;
    background: var(--light-gray);
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: var(--font-size-h2);
    font-weight: 800;
    line-height: 1;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: var(--font-size-body-large);
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.path-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    height: 100%;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.path-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.path-card.facility-path::before {
    background: var(--gradient-secondary);
}

.path-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.path-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.path-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.facility-path .path-icon {
    background: var(--gradient-secondary);
}

.path-header h3 {
    font-size: 1.5rem;
    margin: 0;
}

.path-steps {
    margin-bottom: 2rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.facility-path .step-number {
    background: var(--gradient-secondary);
}

.step-content h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--dark-gray);
    margin: 0;
}

.btn-candidate,
.btn-facility {
    width: 100%;
    padding: 0.875rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    transition: var(--transition-normal);
}

.btn-candidate {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-facility {
    background: var(--gradient-secondary);
    color: var(--white);
}

.btn-candidate:hover,
.btn-facility:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========== Browse by Category Section ========== */
.browse-category-section {
    padding: 60px 0;
    background: var(--white);
}

.category-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-normal);
    cursor: pointer;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    border-radius: 16px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    transition: var(--transition-normal);
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(-5deg);
}

.category-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.category-count {
    color: var(--dark-gray);
    font-weight: 500;
    margin: 0;
}

/* ========== Process Section ========== */
.process-section {
    padding: 60px 0;
    background: var(--light-gray);
}

.process-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number-badge {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition-normal);
}

.process-step:hover .step-icon {
    background: var(--gradient-primary);
    color: var(--white);
    transform: scale(1.1);
}

.process-step h4 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.process-step p {
    color: var(--dark-gray);
    margin: 0;
}

.step-connector {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    z-index: 1;
}

/* Mobile Process Steps */
@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        gap: 2rem;
    }

    .step-connector {
        width: 3px;
        height: 60px;
        background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    }
}

/* ========== Value Proposition Section (Glassmorphism Style) ========== */
.value-proposition-section {
    padding: 60px 0;
    background-image: linear-gradient(rgba(0, 107, 125, 0.88), rgba(0, 74, 92, 0.92)),
        url('https://images.unsplash.com/photo-1449824913935-59a10b8d2000?q=80&w=2070');
    background-size: cover;
    background-position: center bottom;
    background-attachment: fixed;
    position: relative;
}

.value-proposition-section .section-title,
.value-proposition-section .section-subtitle {
    color: var(--white);
}

.heartbeat-decoration {
    margin: 1.5rem 0;
    color: var(--white);
    font-size: 2rem;
    opacity: 0.9;
}

.value-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    transition: var(--transition-normal);
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.25);
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.value-card p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.value-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-secondary);
}

/* ========== Featured Jobs Section ========== */
.featured-jobs-section {
    padding: 60px 0;
    background: var(--light-gray);
}

.job-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    height: 100%;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.job-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.job-badge.full-time {
    background: var(--gradient-secondary);
}

.job-header {
    margin-bottom: 1.5rem;
}

.job-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.job-header h3 {
    font-size: 1.375rem;
    margin: 0;
}

.job-details {
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--dark-gray);
}

.detail-item i {
    color: var(--primary-color);
    width: 20px;
}

.job-footer {
    display: flex;
    gap: 0.75rem;
}

.btn-job-apply {
    flex: 1;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition-normal);
}

.btn-job-apply:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-job-details {
    flex: 1;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition-normal);
}

.btn-job-details:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Swiper Customization */
.swiper {
    padding: 2rem 0 4rem;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
    background: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.25rem;
}

.swiper-pagination-bullet {
    background: var(--primary-color);
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* ========== Footer Section ========== */
.footer-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-widget h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-list i {
    color: var(--accent-color);
    font-size: 1.25rem;
    width: 24px;
}

.contact-list a {
    color: var(--white);
    transition: var(--transition-fast);
}

.contact-list a:hover {
    color: var(--accent-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--white);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-links i {
    font-size: 0.75rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.vision-2030 img {
    max-width: 150px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

/* ========== Modal Styles ========== */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    padding: 2rem 2rem 1rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-body {
    padding: 1rem 2rem 2rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid var(--gray);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
}

.divider {
    position: relative;
    text-align: center;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gray);
}

.divider span {
    position: relative;
    background: var(--white);
    padding: 0 1rem;
    color: var(--dark-gray);
    font-weight: 600;
}

.social-login {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.btn-social {
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    color: var(--white);
    transition: var(--transition-normal);
}

.btn-linkedin {
    background: #0077B5;
}

.btn-facebook {
    background: #1877F2;
}

.btn-google {
    background: #DB4437;
}

.btn-twitter {
    background: #1DA1F2;
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ========== Responsive Design ========== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .navbar-nav {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .search-bar-wrapper {
        padding: 1.5rem;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .path-card,
    .value-card {
        margin-bottom: 1.5rem;
    }

    .social-login {
        grid-template-columns: 1fr;
    }
}

/* ========== Animations ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ========== Utility Classes ========== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

/* ========== Language Switcher ========== */
.language-switcher {
    position: relative;
    margin-left: 1rem;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--light-gray);
    border: 2px solid var(--gray);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 500;
    color: var(--text-dark);
}

.lang-toggle:hover {
    border-color: var(--primary-color);
    background: var(--white);
}

.lang-toggle i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.lang-flag {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 1000;
    overflow: hidden;
}

.language-switcher.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--gray);
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: var(--light-gray);
}

.lang-option.active {
    background: linear-gradient(90deg, rgba(0, 107, 125, 0.08) 0%, transparent 100%);
    border-left: 3px solid var(--primary-color);
}

.lang-option .lang-flag {
    flex-shrink: 0;
}

.lang-name {
    font-weight: 500;
    color: var(--text-dark);
    flex: 1;
}

.lang-code {
    font-size: 0.875rem;
    color: var(--dark-gray);
    text-transform: uppercase;
}

/* Mobile Language Switcher */
@media (max-width: 991px) {
    .language-switcher {
        margin-left: 0;
        margin-top: 1rem;
    }

    .lang-dropdown {
        right: auto;
        left: 0;
        width: 100%;
    }
}

/* RTL Support for Arabic */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .navbar-nav {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .lang-option.active {
    border-left: none;
    border-right: 3px solid var(--primary-color);
}

[dir="rtl"] .footer-links a:hover {
    transform: translateX(-5px);
}

/* ========== Responsive Typography ========== */
@media (max-width: 768px) {
    :root {
        --font-size-hero: 48px;
        /* Reduced from 72px */
        --font-size-h2: 36px;
        /* Reduced from 48px */
        --font-size-h3-large: 20px;
        /* Reduced from 24px */
        --font-size-h3-medium: 18px;
        /* Reduced from 20px */
        --font-size-body-large: 18px;
        /* Reduced from 20px */
    }

    .hero-title {
        font-size: var(--font-size-hero);
        line-height: 1.1;
    }

    .section-title {
        font-size: var(--font-size-h2);
        line-height: 1.1;
    }

    .section-subtitle {
        font-size: var(--font-size-body);
    }
}


@media (max-width: 480px) {
    :root {
        --font-size-hero: 40px;
        /* Further reduced */
        --font-size-h2: 32px;
        /* Further reduced */
    }
}

/* ========== Responsive Section Spacing ========== */
@media (max-width: 768px) {

    .how-it-works-section,
    .browse-category-section,
    .process-section,
    .value-proposition-section,
    .featured-jobs-section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {

    .how-it-works-section,
    .browse-category-section,
    .process-section,
    .value-proposition-section,
    .featured-jobs-section,
    .clients-section {
        padding: 30px 0;
    }
}

/* ========== Our Clients Slider Section ========== */
.clients-slider-section {
    padding: 50px 0 20px;
    /* Reduced bottom padding */
    background: linear-gradient(180deg, #ffffff 0%, #f4f7f9 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid #eff2f5;
    border-bottom: 1px solid #eff2f5;
}

/* Background Pattern/Gradient */
.clients-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle Dot Pattern */
    background-image: radial-gradient(#cfd8dc 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

/* Reduce spacing of the next section here */
.how-it-works-section {
    padding-top: 20px !important;
}

.clients-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 36px;
    line-height: 1.2;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.heading-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    margin-top: 15px;
}

/* Swiper Styles */
.clientsSwiper {
    padding: 20px 0 40px !important;
    /* Space for shadow/overflow */
    z-index: 1;
}

.client-logo-item {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    height: 110px;
    /* Fixed height for consistency */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    margin: 10px;
    /* Margin for slide spacing if needed, but Swiper handles gap */
    width: 220px;
    /* Approximate width */
    position: relative;
    overflow: hidden;
}

.client-logo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 0;
}

.client-logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.client-logo-item img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    z-index: 1;
}

.client-logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .clients-heading {
        font-size: 28px;
    }

    .clients-slider-section {
        padding: 40px 0;
    }

    .client-logo-item {
        height: 90px;
        width: 160px;
    }
}