/* Maritime Jobs Platform - Main CSS File */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* SVG Icon Defaults */
svg {
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* RTL Font Support */
.rtl-font {
    font-family: var(--font-family-rtl) !important;
}

.rtl-font * {
    font-family: var(--font-family-rtl) !important;
}

/* RTL Transition */
.transition-direction {
    transition: all 0.3s ease;
}

:root {
    /* Maritime Color Palette */
    --maritime-50: #f0f9ff;
    --maritime-100: #e0f2fe;
    --maritime-200: #bae6fd;
    --maritime-300: #7dd3fc;
    --maritime-400: #38bdf8;
    --maritime-500: #0ea5e9;
    --maritime-600: #0284c7;
    --maritime-700: #0369a1;
    --maritime-800: #075985;
    --maritime-900: #0c4a6e;
    
    /* Additional Colors */
    --coral-500: #f97316;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --purple-500: #a855f7;
    --yellow-500: #eab308;
    --blue-500: #3b82f6;
    --orange-500: #f97316;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Spacing */
    --container-max-width: 1200px;
    --container-padding: 1rem;
    
    /* Typography */
    --font-family: 'Inter', system-ui, sans-serif;
    --font-family-rtl: 'Vazirmatn', 'Inter', system-ui, sans-serif;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-maritime: 0 25px 50px -12px rgba(14, 165, 233, 0.25);
}

/* RTL Support */
[dir="rtl"] {
    font-family: var(--font-family-rtl);
}

.rtl-flip {
    transform: scaleX(-1);
}

[dir="rtl"] .rtl-flip {
    transform: scaleX(1);
}

/* Base Styles */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    /* Prevent horizontal scroll */
    overflow-x: hidden;
}

/* Ensure proper viewport handling */
html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
    transition: all var(--transition-normal);
    padding-top: 4rem; /* Account for fixed header on desktop */
}

/* Custom Scrollbar Styles - Large Screens Only */
@media (min-width: 1024px) {
    body {
        --sb-track-color: #ffffff;
        --sb-thumb-color: #0284c7;
        --sb-size: 8px;
    }

    body::-webkit-scrollbar {
        width: var(--sb-size)
    }

    body::-webkit-scrollbar-track {
        background: var(--sb-track-color);
        border-radius: 20px;
    }

    body::-webkit-scrollbar-thumb {
        background: var(--sb-thumb-color);
        border-radius: 20px;
    }

    @supports not selector(::-webkit-scrollbar) {
        body {
            scrollbar-color: var(--sb-thumb-color)
                             var(--sb-track-color);
        }
    }
}

[dir="rtl"] body {
    font-family: var(--font-family-rtl);
}

.transition-direction {
    transition: all var(--transition-normal);
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--maritime-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--maritime-700);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    font-size: 0.875rem;
    white-space: nowrap;
    line-height: 1;
}

.btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.btn-primary {
    background: var(--maritime-600);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--maritime-700);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

/* Center icon-only buttons */
.btn-secondary:has(svg:only-child),
.btn-secondary:has(svg:only-child) {
    justify-content: center;
    align-items: center;
    min-width: 2.5rem;
    padding: 0.75rem;
}

.btn-secondary:has(svg:only-child) svg {
    margin: 0;
}

/* Alternative approach for browsers that don't support :has() */
.btn-icon-only {
    justify-content: center;
    align-items: center;
    min-width: 2.5rem;
    padding: 0.75rem;
}

.btn-icon-only svg {
    margin: 0;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--maritime-600);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--maritime-600);
}

.btn-white:hover {
    background: var(--gray-50);
    color: var(--maritime-700);
}

.btn-telegram {
    background: #0088cc;
    color: var(--white);
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-telegram:hover {
    background: #0077bb;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    /* Ensure it stays fixed during scroll */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* Prevent any movement during scroll */
    will-change: transform;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--maritime-600);
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    stroke-width: 2;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-600);
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--maritime-600);
}



.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}



/* Language Selector */
.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: background var(--transition-fast);
}

.language-btn:hover {
    background: var(--gray-100);
}

.flag-img {
    width: 1.5rem;
    height: auto;
    border-radius: 0.125rem;
}

.chevron {
    width: 1rem;
    height: 1rem;
    transition: transform var(--transition-fast);
}

.language-btn.active .chevron {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    min-width: 8rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: all var(--transition-fast);
    z-index: 1000;
}

/* Responsive language dropdown */
@media (max-width: 768px) {
    .language-dropdown {
        right: -1rem;
        min-width: 10rem;
    }
    
    .language-option {
        padding: 1rem 0.75rem;
    }
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.language-option:hover {
    background: var(--gray-50);
}

.language-option:first-child {
    border-radius: 0.5rem 0.5rem 0 0;
}

.language-option:last-child {
    border-radius: 0 0 0.5rem 0.5rem;
}



/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0.5rem 0;
    backdrop-filter: blur(10px);
    transition: transform var(--transition-normal);
    /* Ensure it stays fixed during scroll */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* Prevent any movement during scroll */
    will-change: transform;
    /* Ensure proper layout when visible */
    align-items: center;
    justify-content: space-around;
    /* Ensure it's always on top */
    pointer-events: auto;
    /* Prevent any interference with content */
    isolation: isolate;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0.5rem;
    text-decoration: none;
    color: var(--gray-500);
    transition: all var(--transition-fast);
    border-radius: 0.5rem;
    margin: 0 0.25rem;
    /* Ensure proper touch targets */
    min-height: 3rem;
    /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Ensure proper spacing */
    position: relative;
    /* Prevent any layout shifts */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: var(--maritime-600);
    background: var(--maritime-50);
}

.mobile-nav-item:active {
    transform: scale(0.95);
}

.mobile-nav-icon {
    width: 1.5rem;
    height: 1.5rem;
    margin-bottom: 0.25rem;
    transition: transform var(--transition-fast);
}

.mobile-nav-item:hover .mobile-nav-icon,
.mobile-nav-item.active .mobile-nav-icon {
    transform: scale(1.1);
}

.mobile-nav-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    line-height: 1;
}

.mobile-nav-item.active .mobile-nav-label {
    font-weight: 600;
}

/* Add bottom padding to body when mobile nav is visible */
body.has-mobile-nav {
    padding-bottom: 5rem;
}

/* Notification animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification {
    animation: slideInRight 0.3s ease-out;
}

.notification.removing {
    animation: slideOutRight 0.3s ease-out;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--maritime-500), var(--maritime-600), var(--maritime-700));
    color: var(--white);
    padding: 4rem 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.wave-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M0 0h60v30H0z'/%3E%3Cpath d='M15 30c8.284 0 15-6.716 15-15S23.284 0 15 0 0 6.716 0 15s6.716 15 15 15zm30 0c8.284 0 15-6.716 15-15S53.284 0 45 0s-15 6.716-15 15 6.716 15 15 15z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.maritime-pattern {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.float-element {
    position: absolute;
    color: rgba(255, 255, 255, 0.2);
}

.float-element svg {
    width: 2rem;
    height: 2rem;
}

.float-element.ship {
    top: 5rem;
    left: 2.5rem;
    animation: float 6s ease-in-out infinite;
}

.float-element.anchor {
    top: 8rem;
    right: 5rem;
    animation: float 6s ease-in-out infinite 2s;
}

.float-element.compass {
    bottom: 5rem;
    left: 5rem;
    animation: float 6s ease-in-out infinite 4s;
}

/* Responsive floating elements */
@media (max-width: 768px) {
    .float-element {
        display: none; /* Hide on mobile for better performance */
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 64rem;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.gradient-text {
    display: block;
    background: linear-gradient(135deg, var(--white), rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Search Container */
.search-container {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.search-bar {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 0.5rem;
    max-width: 48rem;
    margin: 0 auto;
}

.search-input-group {
    position: relative;
    flex: 1;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    z-index: 2;
    pointer-events: none;
}

/* RTL support for search icons */
[dir="rtl"] .search-icon {
    left: auto;
    right: 1rem;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 1rem 1rem 1rem 3rem;
    color: var(--white);
    font-size: 1rem;
    transition: all var(--transition-fast);
    box-sizing: border-box;
}

/* RTL support for search input padding */
[dir="rtl"] .search-input {
    padding: 1rem 3rem 1rem 1rem;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.search-btn {
    background: var(--white);
    color: var(--maritime-600);
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.search-btn:hover {
    background: var(--gray-100);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.search-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Main Menu Section (Bot Logic) */
.main-menu-section {
    padding: 5rem 0;
    background: var(--gray-50);
}

.main-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 80rem;
    margin: 0 auto;
}

.menu-role-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    width: 100%;
}



.menu-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--maritime-500), var(--maritime-600));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.menu-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-maritime);
    border-color: var(--maritime-200);
}

.menu-card:hover::before {
    transform: scaleX(1);
}

.menu-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.menu-icon.blue { background: rgba(14, 165, 233, 0.1); color: var(--maritime-600); }
.menu-icon.purple { background: rgba(168, 85, 247, 0.1); color: var(--purple-500); }
.menu-icon.green { background: rgba(34, 197, 94, 0.1); color: var(--green-500); }
.menu-icon.orange { background: rgba(249, 115, 22, 0.1); color: var(--coral-500); }
.menu-icon.gray { background: rgba(107, 114, 128, 0.1); color: var(--gray-600); }

.menu-icon svg {
    width: 2rem;
    height: 2rem;
}

.menu-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
    transition: color var(--transition-fast);
}

.menu-card:hover .menu-title {
    color: var(--maritime-600);
}

.menu-description {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--gray-50);
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.stat-icon.blue { background: rgba(14, 165, 233, 0.1); color: var(--maritime-600); }
.stat-icon.green { background: rgba(34, 197, 94, 0.1); color: var(--green-500); }
.stat-icon.purple { background: rgba(168, 85, 247, 0.1); color: var(--purple-500); }
.stat-icon.orange { background: rgba(249, 115, 22, 0.1); color: var(--coral-500); }

.stat-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-600);
    font-weight: 500;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 32rem;
    margin: 0 auto;
}

.section-header-with-action {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

/* Featured Jobs */
.featured-jobs {
    padding: 5rem 0;
    background: rgba(14, 165, 233, 0.02);
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.job-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    padding: 2rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.job-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-lg);
    border-color: var(--maritime-200);
}

.job-urgent {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--coral-500);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.job-logo {
    font-size: 2.5rem;
}

.job-posted {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.job-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    transition: color var(--transition-fast);
}

.job-card:hover .job-title {
    color: var(--maritime-600);
}

.job-company {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.job-details {
    margin-bottom: 1.5rem;
}

.job-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.job-detail svg {
    width: 1rem;
    height: 1rem;
    color: var(--maritime-600);
}

.job-actions {
    display: flex;
    gap: 0.75rem;
}

.job-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Language Section */
.language-section {
    padding: 5rem 0;
    background: var(--gray-50);
}

.language-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 64rem;
    margin: 0 auto 3rem;
}

.language-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.language-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-maritime);
    border-color: var(--maritime-200);
}

.language-flag {
    width: 3rem;
    height: auto;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.language-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.language-users {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.login-prompt {
    text-align: center;
    color: var(--gray-600);
}

.login-link {
    color: var(--maritime-600);
    font-weight: 600;
    text-decoration: none;
}

.login-link:hover {
    text-decoration: underline;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: var(--gray-50);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-details p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gray-700);
    font-weight: 500;
}

.feature-item svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--maritime-600);
    flex-shrink: 0;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: var(--maritime-100);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--maritime-600);
}

.image-placeholder svg {
    width: 4rem;
    height: 4rem;
}

.image-placeholder .about-logo {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background: var(--maritime-100);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--maritime-600);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.contact-details h4 {
    color: var(--gray-900);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: var(--gray-700);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.contact-details span {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.contact-form-container {
    background: var(--gray-50);
    border-radius: 1rem;
    padding: 2rem;
}

.contact-form h3 {
    color: var(--gray-900);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--white);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group .contact-form-label {
    display: block;
    color: var(--gray-700);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--maritime-500);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-full {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
}

/* Telegram Integration Section */
.telegram-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0088cc, #0077bb);
    color: var(--white);
}

.telegram-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

/* Telegram section specific text styles */
.telegram-section .section-title {
    color: var(--white);
    margin-bottom: 1rem;
}

.telegram-section .section-description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    text-align: left;
    padding-left: 0;
    margin-left: 0;
}

.telegram-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.telegram-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.telegram-feature svg {
    width: 1.25rem;
    height: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: var(--gray-200);
    padding: 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    padding: 3rem 0;
    border-bottom: 1px solid var(--gray-800);
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--maritime-400);
}

.footer-tagline {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.footer-description {
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.contact-item svg {
    width: 1rem;
    height: 1rem;
    color: var(--maritime-400);
    flex-shrink: 0;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-title {
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--maritime-400);
}

/* Newsletter Section */
.footer-newsletter {
    padding: 2rem 0;
    border-bottom: 1px solid var(--gray-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.newsletter-content h3 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.newsletter-content p {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin: 0;
}

.email-input-group {
    display: flex;
    gap: 0;
    background: var(--gray-800);
    border-radius: 0.5rem;
    overflow: hidden;
    min-width: 320px;
}

.email-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 0.875rem;
}

.email-input::placeholder {
    color: var(--gray-500);
}

.email-input:focus {
    outline: none;
}

.subscribe-btn {
    padding: 0.75rem 1.5rem;
    background: var(--maritime-600);
    color: var(--white);
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition-fast);
    font-size: 0.875rem;
}

.subscribe-btn:hover {
    background: var(--maritime-700);
}

/* Footer Bottom */
.footer-bottom {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-bottom-left p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin: 0;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
    color: var(--maritime-400);
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-selector-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-400);
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background var(--transition-fast);
}

.language-selector-footer:hover {
    background: var(--gray-800);
}

.language-selector-footer svg {
    width: 1rem;
    height: 1rem;
}

.chevron-down {
    width: 0.75rem !important;
    height: 0.75rem !important;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 2rem;
    height: 2rem;
    background: var(--gray-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.social-link:hover {
    background: var(--maritime-600);
    color: var(--white);
    transform: translateY(-1px);
}

.social-link svg {
    width: 1rem;
    height: 1rem;
}

/* Jobs Page Styles */
.jobs-hero {
    background: linear-gradient(135deg, var(--maritime-600), var(--maritime-700));
    color: var(--white);
    padding: 2rem 0 3rem;
    margin-top: 4rem;
}

.jobs-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-description {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.jobs-search-container {
    max-width: 900px;
    margin: 0 auto;
}

.jobs-search-bar {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    gap: 0.5rem;
    background: var(--white);
    padding: 0.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* RTL support for jobs search bar */
[dir="rtl"] .jobs-search-bar {
    direction: rtl;
}

.search-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: var(--white);
}

.jobs-content {
    padding: 3rem 0;
    background: var(--gray-50);
    min-height: calc(100vh - 4rem);
}

.jobs-content .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.jobs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-areas: "filters main";
    gap: 2rem;
    min-height: 600px;
}

.jobs-filters {
    grid-area: filters;
}

.jobs-main {
    grid-area: main;
}

/* Tablet optimization for jobs layout */
@media (min-width: 768px) and (max-width: 1023px) {
    .jobs-layout {
        grid-template-columns: 250px 1fr;
        grid-template-areas: "filters main";
        gap: 1.5rem;
    }
    
    .jobs-filters {
        padding: 1.5rem;
        position: sticky;
        top: 2rem;
        height: fit-content;
        max-height: calc(100vh - 4rem);
        overflow-y: auto;
    }
    
    .job-details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .job-card-full {
        padding: 1.5rem;
    }
}

/* Desktop and large screen optimization for jobs layout */
@media (min-width: 1024px) {
    .jobs-layout {
        grid-template-columns: 300px 1fr;
        grid-template-areas: "filters main";
        gap: 2.5rem;
    }
    
    .jobs-filters {
        padding: 1.75rem;
        position: sticky;
        top: 2rem;
        height: fit-content;
        max-height: calc(100vh - 4rem);
        overflow-y: auto;
    }
    
    .jobs-main {
        min-height: 600px;
    }
}

/* Large screen optimization for jobs layout */
@media (min-width: 1200px) {
    .jobs-layout {
        grid-template-columns: 320px 1fr;
        grid-template-areas: "filters main";
        gap: 3rem;
    }
    
    .jobs-filters {
        padding: 2rem;
    }
}

/* Extra large screen optimization */
@media (min-width: 1400px) {
    .jobs-layout {
        grid-template-columns: 350px 1fr;
        grid-template-areas: "filters main";
        gap: 3.5rem;
    }
    
    .jobs-filters {
        padding: 2.5rem;
    }
}

/* Ultra wide screen optimization */
@media (min-width: 1600px) {
    .jobs-content .container {
        max-width: 1600px;
    }
    
    .jobs-layout {
        grid-template-columns: 380px 1fr;
        grid-template-areas: "filters main";
        gap: 4rem;
    }
    
    .jobs-filters {
        padding: 3rem;
    }
}

.jobs-filters {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.5rem;
    height: fit-content;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.filters-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-filter-close {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    color: var(--gray-600);
    transition: all var(--transition-fast);
}

.mobile-filter-close:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.mobile-filter-close svg {
    width: 1.25rem;
    height: 1.25rem;
}

.mobile-filter-toggle {
    display: none;
    justify-content: center;
    margin-bottom: 1rem;
    width: 100%;
}

.mobile-filter-toggle .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.filters-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
}

.clear-filters {
    background: none;
    border: none;
    color: var(--maritime-600);
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: underline;
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.salary-inputs {
    display: grid;
    grid-template-columns: 1 fr 1 fr;
    gap: 0.5rem;
}

.salary-inputs input {
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.25rem;
    font-size: 0.875rem;
    max-width: 9rem;
    width: 100%;
}


.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.checkbox-item input[type="checkbox"] {
    margin: 0;
}

.jobs-main {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.jobs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.jobs-count {
    font-weight: 600;
    color: var(--gray-700);
}

.jobs-sort select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    background: var(--white);
}

.job-card-full {
    position: relative;
    padding: 2rem;
    border-bottom: 1px solid var(--gray-200);
    transition: background var(--transition-fast);
}

.job-card-full:hover {
    background: var(--gray-50);
}

.job-card-full:last-child {
    border-bottom: none;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.job-company-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.job-logo {
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--maritime-100);
    border-radius: 0.5rem;
}

.job-meta h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.job-meta p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.job-posted {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.job-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Tablet optimization for job cards */
@media (min-width: 768px) and (max-width: 1023px) {
    .job-details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .job-card-full {
        padding: 1.5rem;
    }
    
    .job-actions {
        gap: 1rem;
    }
    
    .job-actions .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

/* Desktop optimization for job cards */
@media (min-width: 1024px) {
    .job-details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .job-card-full {
        padding: 2rem;
    }
    
    .job-actions {
        gap: 1.25rem;
    }
    
    .job-actions .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* Large screen optimization for job cards */
@media (min-width: 1200px) {
    .job-details-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .job-card-full {
        padding: 2.5rem;
    }
    
    .job-actions {
        gap: 1.5rem;
    }
    
    .job-actions .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* Extra large screen optimization for job cards */
@media (min-width: 1400px) {
    .job-card-full {
        padding: 3rem;
    }
    
    .job-details-grid {
        gap: 2rem;
    }
    
    .job-actions {
        gap: 2rem;
    }
}

.job-description {
    margin-bottom: 1.5rem;
    color: var(--gray-700);
    line-height: 1.6;
}

.job-actions {
    display: flex;
    gap: 1rem;
}

.pagination {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--gray-200);
}

.pagination-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--maritime-600);
    color: var(--white);
    border-color: var(--maritime-600);
}

.no-jobs {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-500);
}

.no-jobs svg {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    color: var(--gray-400);
}

.no-jobs h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

/* Registration Page Styles */
.registration-section {
    padding: 5rem 0 2rem;
    background: linear-gradient(135deg, var(--maritime-50), var(--white));
    min-height: 100vh;
}

.registration-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.registration-header {
    text-align: center;
    margin-bottom: 3rem;
}

.registration-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--maritime-700);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--maritime-600), var(--maritime-800));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.registration-header p {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.user-type-selection {
    margin-bottom: 3rem;
}

.user-type-selection h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--gray-900);
}

.user-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.user-type-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 1.5rem;
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.user-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--maritime-50), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.user-type-card:hover {
    border-color: var(--maritime-400);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -5px rgba(14, 165, 233, 0.15);
}

.user-type-card:hover::before {
    opacity: 1;
}

.user-type-card.active {
    border-color: var(--maritime-600);
    background: linear-gradient(135deg, var(--maritime-50), var(--white));
    box-shadow: 0 15px 35px -5px rgba(14, 165, 233, 0.2);
}

.user-type-card > * {
    position: relative;
    z-index: 2;
}

.user-type-icon {
    width: 4rem;
    height: 4rem;
    background: var(--maritime-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--maritime-600);
}

.user-type-icon svg {
    width: 2rem;
    height: 2rem;
}

.user-type-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.user-type-card p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.pricing {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--maritime-600);
    margin-bottom: 1rem;
}

.features {
    list-style: none;
    text-align: left;
}

.features li {
    color: var(--gray-700);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.registration-form {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-step h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--gray-900);
    text-align: center;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
}

.payment-summary {
    background: var(--gray-50);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.payment-summary h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.payment-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.payment-item.total {
    font-weight: 600;
    font-size: 1rem;
    color: var(--gray-900);
    padding-top: 0.5rem;
    border-top: 1px solid var(--gray-300);
}

.wallet-address-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gray-100);
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.wallet-address {
    font-family: monospace;
    font-size: 0.875rem;
    color: var(--gray-900);
    flex: 1;
    word-break: break-all;
}

.copy-btn {
    background: var(--maritime-600);
    color: var(--white);
    border: none;
    padding: 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn svg {
    width: 1rem;
    height: 1rem;
}

.success-message {
    text-align: center;
    padding: 3rem;
}

.success-icon {
    width: 4rem;
    height: 4rem;
    background: var(--green-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--green-600);
}

.success-icon svg {
    width: 2rem;
    height: 2rem;
}

.success-message h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

/* AI Chat Page Styles */
.ai-chat-section {
    padding: 1rem 0 0;
    min-height: calc(100vh - 4rem);
    background: var(--gray-50);
}

/* AI Chat Mobile Header Spacing */
.ai-chat-section-mobile {
    margin-top: 4rem; /* Push content below fixed header */
}

.chat-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: calc(100vh - 8rem);
    max-height: 800px;
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
    position: relative;
}

.chat-sidebar {
    background: var(--gray-900);
    color: var(--white);
    padding: 2rem;
    overflow-y: auto;
}

.chat-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-700);
}

.ai-avatar {
    width: 4rem;
    height: 4rem;
    background: var(--maritime-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.ai-avatar svg {
    width: 2rem;
    height: 2rem;
    color: var(--white);
}

.ai-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.ai-info p {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-bottom: 0.5rem;
}

.status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--green-400);
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--green-400);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-features h4,
.quick-topics h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-300);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-300);
}

.feature-list svg {
    width: 1rem;
    height: 1rem;
    color: var(--maritime-400);
    flex-shrink: 0;
}

.topic-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.topic-btn {
    background: var(--gray-800);
    color: var(--gray-300);
    border: 1px solid var(--gray-700);
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-align: left;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.topic-btn:hover {
    background: var(--gray-700);
    color: var(--white);
    border-color: var(--maritime-600);
}

.chat-main {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.chat-header-main {
    padding: 2rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.chat-header-main h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.chat-header-main p {
    color: var(--gray-600);
}

.chat-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    scroll-behavior: smooth;
    height: calc(100% - 120px); /* Account for input container height */
    min-height: 300px;
    max-height: calc(100% - 120px); /* Ensure it doesn't exceed container */
}

.message {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-message .message-avatar {
    background: var(--maritime-100);
    color: var(--maritime-600);
}

.user-message .message-avatar {
    background: var(--gray-200);
    color: var(--gray-600);
}

.message-avatar svg {
    width: 1.25rem;
    height: 1.25rem;
}

.message-content {
    max-width: 70%;
}

.user-message .message-content {
    text-align: right;
}

.message-text {
    background: var(--gray-100);
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.user-message .message-text {
    background: var(--maritime-600);
    color: var(--white);
}

.message-text p {
    margin-bottom: 1rem;
}

.message-text p:last-child {
    margin-bottom: 0;
}

.message-text ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.message-text li {
    margin-bottom: 0.25rem;
}

.message-time {
    font-size: 0.75rem;
    color: var(--gray-500);
    padding: 0 0.25rem;
}

.typing-indicator .message-content {
    background: var(--gray-100);
    padding: 1rem 1.25rem;
    border-radius: 1rem;
}

.typing-dots {
    display: flex;
    gap: 0.25rem;
}

.typing-dots span {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--gray-400);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-0.5rem); }
}

.chat-input-container {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    height: 120px; /* Fixed height to prevent movement */
    box-sizing: border-box;
}

/* Mobile fixed input container */
@media (max-width: 768px) {
    .chat-input-container {
        position: fixed;
        bottom: 80px; /* Position above mobile navigation */
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 1rem;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
}

.chat-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 1px solid var(--gray-300);
    border-radius: 1.5rem;
    font-size: 0.875rem;
    resize: none;
    max-height: 120px;
    min-height: 48px;
}

.chat-input:focus {
    outline: none;
    border-color: var(--maritime-500);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.send-btn {
    width: 3rem;
    height: 3rem;
    background: var(--maritime-600);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.send-btn:hover {
    background: var(--maritime-700);
}

.send-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .jobs-layout {
        grid-template-columns: 1fr;
    }

    .jobs-filters {
        order: 2;
    }

    .jobs-main {
        order: 1;
    }

    .ai-chat-section {
        padding: 2rem 0;
    }

    .chat-layout {
        grid-template-columns: 1fr;
        height: calc(100vh - 8rem);
        max-height: none;
        margin: 0;
        border-radius: 0.5rem;
    }

    .chat-sidebar {
        display: none;
    }

    .chat-messages {
        max-height: calc(100vh - 250px);
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .jobs-search-bar {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    /* Mobile jobs search bar RTL support */
    [dir="rtl"] .jobs-search-bar {
        direction: rtl;
    }

    .user-types {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .job-details-grid {
        grid-template-columns: 1fr;
    }

    .job-actions {
        flex-direction: column;
    }

    /* AI Chat Mobile Responsive */
    .ai-chat-section {
        padding: 1rem 0 0;
        min-height: calc(100vh - 4rem);
        margin-top: 4rem; /* Push content below fixed header */
    }

    .chat-layout {
        grid-template-columns: 1fr;
        height: calc(100vh - 8rem);
        max-height: none;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .chat-sidebar {
        display: none;
    }

    .chat-header-main {
        padding: 1rem;
        text-align: center;
    }

    .chat-header-main h1 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .chat-header-main p {
        font-size: 0.875rem;
    }

    .chat-messages {
        height: calc(100% - 100px);
        padding: 1rem;
        padding-bottom: calc(1rem + 160px); /* Account for mobile bottom nav + fixed input */
        min-height: 250px;
    }

    .message {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .message-avatar {
        width: 2rem;
        height: 2rem;
    }

    .message-avatar svg {
        width: 1rem;
        height: 1rem;
    }

    .message-content {
        max-width: 85%;
    }

    .message-text {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    /* Chat input container is now handled by the fixed mobile styles above */

    .chat-input {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        min-height: 44px;
    }

    .send-btn {
        width: 2.5rem;
        height: 2.5rem;
    }

    .send-btn svg {
        width: 1rem;
        height: 1rem;
    }

    .input-footer {
        font-size: 0.75rem;
        margin-top: 0.25rem;
    }
}

/* Responsive form layout */
@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

/* Responsive job actions */
@media (min-width: 480px) {
    .job-actions {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .job-actions .btn {
        flex: 1;
    }
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-newsletter {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-bottom-left {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-legal-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .email-input-group {
        min-width: 280px;
    }
}

/* Loading States */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--gray-500);
    font-style: italic;
}

.spinner {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Blog Styles */
.blog-hero {
    background: linear-gradient(135deg, var(--maritime-600) 0%, var(--maritime-800) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.blog-search-form {
    max-width: 500px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-input-group input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 1rem;
}

.search-input-group button {
    padding: 15px 25px;
    background: var(--maritime-600);
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-input-group button:hover {
    background: var(--maritime-700);
}

.featured-posts {
    padding: 60px 0;
    background: #f8f9fa;
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--maritime-800);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.featured-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.featured-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.featured-post-card .post-image {
    height: 200px;
    overflow: hidden;
}

.featured-post-card .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.featured-post-card:hover .post-image img {
    transform: scale(1.05);
}

.featured-post-card .post-content {
    padding: 1.5rem;
}

.featured-post-card .post-category {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-post-card h3 {
    margin-bottom: 1rem;
}

.featured-post-card h3 a {
    color: var(--maritime-800);
    text-decoration: none;
    transition: color 0.3s;
}

.featured-post-card h3 a:hover {
    color: var(--maritime-600);
}

.featured-post-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.featured-post-card .post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #888;
}

.blog-content {
    padding: 60px 0;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.page-header {
    margin-bottom: 3rem;
}

.page-header h2 {
    color: var(--maritime-800);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #666;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.post-card .post-image {
    height: 200px;
    overflow: hidden;
}

.post-card .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-card .post-content {
    padding: 1.5rem;
}

.post-card .post-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-card h3 {
    margin-bottom: 1rem;
}

.post-card h3 a {
    color: var(--maritime-800);
    text-decoration: none;
    transition: color 0.3s;
}

.post-card h3 a:hover {
    color: var(--maritime-600);
}

.post-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-card .post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #888;
    margin-bottom: 1rem;
}

.post-card .post-meta i {
    margin-right: 0.25rem;
}

.read-more {
    color: var(--maritime-600);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--maritime-700);
}

.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-posts i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.no-posts h3 {
    margin-bottom: 1rem;
    color: var(--maritime-800);
}

.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--maritime-200);
    border-radius: 8px;
    color: var(--maritime-600);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination-btn:hover {
    background: var(--maritime-600);
    color: white;
    border-color: var(--maritime-600);
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.pagination-number {
    padding: 10px 15px;
    background: white;
    border: 2px solid var(--maritime-200);
    border-radius: 8px;
    color: var(--maritime-600);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination-number:hover,
.pagination-number.active {
    background: var(--maritime-600);
    color: white;
    border-color: var(--maritime-600);
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-widget h3 {
    color: var(--maritime-800);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
}

.category-list a:hover,
.category-list a.active {
    background: var(--maritime-50);
    color: var(--maritime-700);
}

.category-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.post-count {
    margin-left: auto;
    font-size: 0.875rem;
    color: #999;
}

.recent-posts {
    list-style: none;
}

.recent-posts li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.recent-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-posts a {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.recent-posts a:hover {
    color: var(--maritime-600);
}

.recent-posts img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.recent-posts .post-info h4 {
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
    color: var(--maritime-800);
}

.recent-posts .post-date {
    font-size: 0.75rem;
    color: #888;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    padding: 0.5rem 1rem;
    background: var(--maritime-100);
    color: var(--maritime-700);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s;
}

.tag-item:hover {
    background: var(--maritime-600);
    color: white;
    transform: translateY(-2px);
}

/* Individual Post Page Styles */
.breadcrumb {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: #999;
}

.breadcrumb a {
    color: var(--maritime-600);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .active {
    color: #666;
}

.blog-post {
    padding: 60px 0;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.post-header {
    margin-bottom: 2rem;
}

.post-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-category a {
    color: inherit;
    text-decoration: none;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--maritime-800);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-featured-image {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 2rem;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: var(--maritime-800);
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.post-content h1 { font-size: 2rem; }
.post-content h2 { font-size: 1.75rem; }
.post-content h3 { font-size: 1.5rem; }
.post-content h4 { font-size: 1.25rem; }

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--maritime-600);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--maritime-50);
    font-style: italic;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.post-content a {
    color: var(--maritime-600);
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

.post-tags {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.post-tags h4 {
    margin-bottom: 1rem;
    color: var(--maritime-800);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.social-sharing {
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.social-sharing h4 {
    margin-bottom: 1rem;
    color: var(--maritime-800);
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.comments-section {
    margin-bottom: 3rem;
}

.comments-section h3 {
    color: var(--maritime-800);
    margin-bottom: 2rem;
}

.comment-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.comment-form h4 {
    margin-bottom: 1.5rem;
    color: var(--maritime-800);
}

.comment-form .form-group {
    margin-bottom: 1rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--maritime-700);
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--maritime-600);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.no-comments {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

.comment-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 600;
    color: var(--maritime-800);
}

.comment-author a {
    color: var(--maritime-600);
    margin-left: 0.5rem;
}

.comment-date {
    font-size: 0.875rem;
    color: #666;
}

.comment-content {
    line-height: 1.6;
    color: #333;
}

.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.related-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-post-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.related-post-item:hover {
    transform: translateY(-2px);
}

.related-post-image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-content {
    flex: 1;
}

.related-post-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.related-post-content h4 {
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.related-post-content h4 a {
    color: var(--maritime-800);
    text-decoration: none;
}

.related-post-content h4 a:hover {
    color: var(--maritime-600);
}

.related-post-date {
    font-size: 0.75rem;
    color: #888;
}

.newsletter-widget {
    background: linear-gradient(135deg, var(--maritime-600) 0%, var(--maritime-800) 100%);
    color: white;
}

.newsletter-widget h3 {
    color: white;
}

.newsletter-widget p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form input {
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 0.75rem;
    background: white;
    color: var(--maritime-600);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    background: var(--maritime-50);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        --container-padding: 1rem;
    }
    
    /* Blog Responsive Styles */
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-hero p {
        font-size: 1rem;
    }
    
    .blog-layout,
    .post-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .post-title {
        font-size: 1.75rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .comment-form {
        padding: 1rem;
    }
    
    .related-post-item {
        flex-direction: column;
    }
    
    .related-post-image {
        width: 100%;
        height: 150px;
    }
    
    /* Hide desktop navigation on mobile */
    .nav {
        display: none;
    }
    
    .header-actions .btn {
        display: none;
    }
    
    /* Show mobile bottom navigation */
    .mobile-bottom-nav {
        display: flex !important;
        align-items: center;
        justify-content: space-around;
    }
    
        /* Add padding to body for fixed header and mobile nav */
    body {
        padding-top: 3.5rem; /* Account for fixed header */
        padding-bottom: 5rem; /* Account for mobile bottom nav */
        /* Ensure smooth scrolling */
        -webkit-overflow-scrolling: touch;
        /* Prevent layout shifts */
        overflow-x: hidden;
    }
    
    /* Hide footer on mobile since we have bottom nav */
    .footer {
        margin-bottom: 5rem;
    }
    
    /* Header responsive adjustments */
    .header-content {
        height: 3.5rem;
    }
    
    .logo {
        font-size: 1.125rem;
    }
    
    .logo-icon {
        width: 1.75rem;
        height: 1.75rem;
    }
    
    /* Hero section responsive */
    .hero {
        min-height: 70vh;
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    /* Search bar responsive */
    .search-container {
        margin: 1.5rem 0;
    }
    
    .search-bar {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .search-input-group {
        width: 100%;
    }
    
    /* Mobile search input improvements */
    .search-input {
        padding: 0.875rem 1rem 0.875rem 2.75rem;
        font-size: 0.875rem;
    }
    
    /* RTL mobile search input */
    [dir="rtl"] .search-input {
        padding: 0.875rem 2.75rem 0.875rem 1rem;
    }
    
    .search-icon {
        width: 1.125rem;
        height: 1.125rem;
        left: 0.875rem;
    }
    
    /* RTL mobile search icon */
    [dir="rtl"] .search-icon {
        left: auto;
        right: 0.875rem;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Quick actions responsive */
    .quick-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .quick-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* Section headers responsive */
    .section-header-with-action {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    /* Main menu grid responsive */
    .main-menu-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
        /* Jobs page mobile styles */
    .jobs-layout {
        grid-template-columns: 1fr;
        grid-template-areas: "main";
        gap: 1rem;
        min-height: auto;
    }
    
    .jobs-filters {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        background: var(--white);
        padding: 1rem;
        overflow-y: auto;
        border-radius: 0;
        max-height: none;
    }
    
    .jobs-filters.mobile-active {
        display: block;
    }
    
    .mobile-filter-close {
        display: block;
    }
    
    .mobile-filter-toggle {
        display: flex;
        justify-content: center;
        margin: 1rem 0 1.5rem 0;
        width: 100%;
        padding: 0 1rem;
    }
    
    .mobile-filter-toggle .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        background: var(--white);
        color: var(--gray-700);
        border: 1px solid var(--gray-300);
        padding: 0.875rem 1.25rem;
        font-weight: 500;
        box-shadow: var(--shadow-sm);
        border-radius: 0.5rem;
        transition: all var(--transition-fast);
    }
    
    .mobile-filter-toggle .btn:hover {
        background: var(--gray-50);
        border-color: var(--gray-400);
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }
    
    .mobile-filter-toggle .btn:active {
        transform: translateY(0);
        box-shadow: var(--shadow-sm);
    }
    
    .mobile-filter-toggle .btn svg {
        width: 1.25rem;
        height: 1.25rem;
        margin-right: 0.5rem;
        color: var(--maritime-600);
    }
    
    .filter-badge {
        background: var(--maritime-600);
        color: var(--white);
        font-size: 0.75rem;
        font-weight: 600;
        padding: 0.125rem 0.375rem;
        border-radius: 0.75rem;
        margin-left: 0.5rem;
        min-width: 1.25rem;
        text-align: center;
        line-height: 1;
    }
    
    .jobs-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .jobs-sort select {
        width: 100%;
    }
    
    .job-card-full {
        padding: 1rem;
    }
    
    .job-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .job-details-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .job-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .job-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .menu-card {
        padding: 1.5rem;
    }
    
    /* Stats grid responsive */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    /* Jobs grid responsive */
    .jobs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .job-card {
        padding: 1.5rem;
    }
    
    /* Language cards responsive */
    .language-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .language-card {
        padding: 1.5rem;
    }
    
    /* About section responsive */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Contact section responsive */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Telegram section responsive */
    .telegram-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    /* Footer responsive */
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-bottom-left {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-legal-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-newsletter {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .email-input-group {
    min-width: 280px;
    width: 100%;
}

/* Responsive newsletter */
@media (max-width: 480px) {
    .email-input-group {
        min-width: auto;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .subscribe-btn {
        width: 100%;
    }
    
    .footer-social {
        justify-content: center;
        gap: 1rem;
    }
    
    .social-link {
        width: 2.5rem;
        height: 2.5rem;
    }
}
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        --container-padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .main-menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .language-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Small Mobile Responsive */
@media (max-width: 480px) {
    .container {
        --container-padding: 0.75rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .main-menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0.75rem;
    }
    
    .menu-card {
        padding: 1rem;
    }
    
    .menu-title {
        font-size: 1rem;
    }
    
    .menu-description {
        font-size: 0.8rem;
    }
    
    .job-card {
        padding: 1rem;
    }
    
    .language-card {
        padding: 1rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    /* Mobile navigation adjustments for smaller screens */
    .mobile-nav-label {
        font-size: 0.7rem;
    }
    
    .mobile-nav-icon {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .mobile-nav-item {
        padding: 0.4rem 0.25rem;
    }
    
    /* Header adjustments for very small screens */
    .header-content {
        height: 3rem;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .logo-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    /* Search bar adjustments */
    .search-bar {
        gap: 0.5rem;
    }
    
    .search-input {
        font-size: 0.9rem;
        padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    }
    
    /* RTL support for small mobile search input */
    [dir="rtl"] .search-input {
        padding: 0.75rem 2.5rem 0.75rem 0.75rem;
    }
    
    .search-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Button adjustments */
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Footer adjustments */
    .footer {
        margin-bottom: 4rem;
    }
    
    body {
        padding-bottom: 4rem;
    }

    /* AI Chat Small Mobile Responsive */
    .ai-chat-section {
        padding: 0.5rem 0 0;
        margin-top: 4rem; /* Push content below fixed header */
    }

    .chat-layout {
        height: calc(100vh - 6rem);
    }

    .chat-header-main {
        padding: 0.75rem;
    }

    .chat-header-main h1 {
        font-size: 1.125rem;
    }

    .chat-header-main p {
        font-size: 0.8rem;
    }

    .chat-messages {
        height: calc(100% - 90px);
        padding: 0.75rem;
        padding-bottom: calc(0.75rem + 160px); /* Account for mobile bottom nav + fixed input */
        min-height: 200px;
    }

    .message {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .message-avatar {
        width: 1.75rem;
        height: 1.75rem;
    }

    .message-avatar svg {
        width: 0.875rem;
        height: 0.875rem;
    }

    .message-content {
        max-width: 90%;
    }

    .message-text {
        padding: 0.625rem 0.875rem;
        font-size: 0.8rem;
    }

    /* Chat input container is now handled by the fixed mobile styles above */

    .chat-input {
        padding: 0.625rem 0.875rem;
        font-size: 0.8rem;
        min-height: 40px;
    }

    .send-btn {
        width: 2.25rem;
        height: 2.25rem;
    }

    .send-btn svg {
        width: 0.875rem;
        height: 0.875rem;
    }

    .input-footer {
        font-size: 0.7rem;
    }
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none !important; }
.visible { display: block !important; }

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--gray-600);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--maritime-500);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notification Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification {
    animation: slideInRight 0.3s ease-out;
}

/* Job Card Improvements */
.job-urgent {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--red-500);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.job-card {
    position: relative;
}

/* Button Hover Effects */
.btn {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: var(--maritime-700);
}

.btn-secondary:hover {
    background: var(--gray-600);
}

/* Menu Card Hover Effects */
.menu-card {
    transition: all 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Language Card Hover Effects */
.language-card {
    transition: all 0.3s ease;
}

.language-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Job Card Hover Effects */
.job-card {
    transition: all 0.3s ease;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Improve SVG icon visibility */
svg {
    flex-shrink: 0;
}

.menu-icon svg,
.stat-icon svg,
.search-icon,
.job-detail svg {
    stroke: currentColor;
    fill: none;
}

/* Telegram button specific styling */
.btn-telegram {
    background: #0088cc;
    color: white;
    border: none;
}

.btn-telegram:hover {
    background: #006ba8;
}

.btn-telegram svg {
    fill: currentColor;
    stroke: none;
}

/* Login Page Styles */
.login-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--maritime-50), var(--white));
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.login-card {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon {
    width: 4rem;
    height: 4rem;
    background: var(--maritime-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--maritime-600);
}

.login-icon svg {
    width: 2rem;
    height: 2rem;
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--gray-600);
    line-height: 1.6;
}

.login-form {
    margin-bottom: 2rem;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--gray-400);
    z-index: 1;
}

.input-with-icon input {
    padding-left: 3rem;
}

.form-help {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.link-button {
    background: none;
    border: none;
    color: var(--maritime-600);
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
}

.link-button:hover {
    color: var(--maritime-700);
}

.login-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-200);
    z-index: 1;
}

.login-divider span {
    background: var(--white);
    color: var(--gray-500);
    padding: 0 1rem;
    position: relative;
    z-index: 2;
    font-size: 0.875rem;
}

.alternative-login {
    text-align: center;
    margin-bottom: 2rem;
}

.alternative-login p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.login-help {
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.help-link {
    color: var(--maritime-600);
    text-decoration: none;
}

.help-link:hover {
    text-decoration: underline;
}

.login-features h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2rem;
}

.login-features .feature-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.login-features .feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.login-features .feature-item svg {
    width: 2rem;
    height: 2rem;
    color: var(--maritime-600);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.login-features .feature-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.login-features .feature-item p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Login Responsive */
@media (max-width: 1024px) {
    .login-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .login-features {
        order: -1;
    }

    .login-card {
        padding: 2rem;
    }
}

/* Legal/Policy Pages Styles */
.legal-section {
    padding: 4rem 0;
    background: var(--white);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.legal-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    text-align: center;
}

.legal-date {
    font-size: 0.875rem;
    color: var(--gray-500);
    text-align: center;
    margin-bottom: 3rem;
    font-style: italic;
}

.legal-text {
    line-height: 1.7;
    color: var(--gray-700);
}

.legal-text h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--maritime-200);
}

.legal-text h2:first-child {
    margin-top: 0;
}

.legal-text p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
}

.legal-text ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.legal-text li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.legal-text a {
    color: var(--maritime-600);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.legal-text a:hover {
    color: var(--maritime-700);
    text-decoration: underline;
}

.legal-text strong {
    font-weight: 600;
    color: var(--gray-900);
}

/* Main Content Styles */
.main-content {
    min-height: calc(100vh - 200px);
    padding-top: 10px; /* Account for fixed header */
}

/* Responsive Design for Legal Pages */
@media (max-width: 768px) {
    .legal-section {
        padding: 2rem 0;
    }
    
    .legal-content {
        padding: 0 1rem;
    }
    
    .legal-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .legal-date {
        margin-bottom: 2rem;
    }
    
    .legal-text h2 {
        font-size: 1.25rem;
        margin-top: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .legal-text p {
        margin-bottom: 1.25rem;
        font-size: 0.95rem;
    }
    
    .legal-text ul {
        margin: 1.25rem 0;
        padding-left: 1.25rem;
    }
    
    .legal-text li {
        margin-bottom: 0.5rem;
    }
    
    .main-content {
        padding-top: 70px;
    }
}

@media (max-width: 480px) {
    .legal-section {
        padding: 1.5rem 0;
    }
    
    .legal-content {
        padding: 0 0.75rem;
    }
    
    .legal-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .legal-date {
        margin-bottom: 1.5rem;
        font-size: 0.8rem;
    }
    
    .legal-text h2 {
        font-size: 1.125rem;
        margin-top: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .legal-text p {
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }
    
    .legal-text ul {
        margin: 1rem 0;
        padding-left: 1rem;
    }
    
    .legal-text li {
        margin-bottom: 0.4rem;
        font-size: 0.9rem;
    }
    
    .main-content {
        padding-top: 60px;
    }
}

/* Ensure proper spacing for all paragraphs in legal content */
.legal-text p + p {
    margin-top: 1.5rem;
}

.legal-text p + ul,
.legal-text ul + p {
    margin-top: 1.5rem;
}

.legal-text h2 + p {
    margin-top: 1rem;
}

/* Additional spacing for better readability */
.legal-text > * + * {
    margin-top: 1.5rem;
}

.legal-text > h2 + * {
    margin-top: 1rem;
}

/* Contact information styling */
.legal-text p:has(strong) {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--maritime-500);
    margin: 2rem 0;
}

/* List styling improvements */
.legal-text ul {
    list-style-type: disc;
}

.legal-text ul li::marker {
    color: var(--maritime-500);
}

/* Link styling improvements */
.legal-text a {
    position: relative;
}

.legal-text a:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--maritime-500);
}

/* Print styles for legal pages */
@media print {
    .legal-section {
        padding: 0;
    }
    
    .legal-content {
        max-width: none;
        padding: 0;
    }
    
    .legal-text h2 {
        page-break-after: avoid;
    }
    
    .legal-text p {
        orphans: 3;
        widows: 3;
    }
}
