* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --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;

    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    --gradient-success: linear-gradient(135deg, var(--success) 0%, var(--primary) 100%);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(to bottom, #f9fafb 0%, #ffffff 100%);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--gray-900);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--gray-100);
    color: var(--gray-700);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-description {
    font-size: 1.125rem;
    opacity: 0.95;
    font-weight: 300;
}

/* Tabs */
.tabs-section {
    padding: 1.5rem 0;
    background: white;
    box-shadow: var(--shadow-sm);
}

.tabs-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tabs-wrapper {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
}

.tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.tabs {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.tab {
    padding: 8px 14px;
    font-size: 0.8125rem;
    background: var(--gray-100);
    color: var(--gray-700);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.tab:hover {
    background: var(--primary-light);
    color: white;
    transform: translateY(-2px);
}

.tab.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary);
}

.tab svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.tabs-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--gray-200);
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tabs-arrow:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary);
}

.tabs-arrow svg {
    width: 20px;
    height: 20px;
}

/* Jobs Section */
.jobs-section {
    padding: 2rem 0 4rem;
    min-height: 500px;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    animation: fadeIn 0.4s ease-out;
}

/* Job Card */
.job-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: scaleIn 0.3s ease-out;
    animation-fill-mode: both;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.job-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.job-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.job-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.job-meta {
    flex: 1;
}

.job-date {
    font-size: 0.875rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 6px;
}

.job-date svg {
    width: 16px;
    height: 16px;
}

.job-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-excerpt {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.job-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--gray-700);
    font-weight: 500;
}

.job-badge svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.job-badge.company {
    background: linear-gradient(135deg, #ddd6fe 0%, #e9d5ff 100%);
    color: var(--secondary);
}

.job-badge.city {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: var(--primary);
}

.job-action {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.job-btn {
    width: 100%;
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.job-btn:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.job-btn svg {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.job-btn:hover svg {
    transform: translateX(-4px);
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-spinner {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-state p {
    font-size: 1.125rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state svg {
    margin: 0 auto 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 1rem;
    color: var(--gray-500);
}

/* Infinite Loading Indicator */
.infinite-loading {
    text-align: center;
    padding: 3rem 2rem;
    animation: fadeIn 0.3s ease-out;
}

.infinite-loading-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.infinite-loading p {
    font-size: 1rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Share Section */
.share-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.share-wrapper {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.share-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}

.share-section .a2a_kit {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-section .a2a_kit a {
    transition: var(--transition) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
}

.share-section .a2a_kit a:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--shadow-lg) !important;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.02"/></svg>');
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.footer-section h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-section p {
    color: var(--gray-400);
    line-height: 1.8;
    font-size: 1rem;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.footer-social-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition);
    z-index: -1;
}

.footer-social-link:hover::before {
    right: 0;
}

.footer-social-link:hover {
    border-color: var(--primary-light);
    color: white;
    transform: translateX(-6px);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

.footer-social-link svg {
    flex-shrink: 0;
}

.footer-bottom {
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--gray-500);
    font-size: 0.9375rem;
    position: relative;
    z-index: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    /* إبقاء التبويبات أفقية على الجوال */
    .tab {
        padding: 8px 12px;
        font-size: 0.75rem;
        min-width: fit-content;
    }

    .tab svg {
        width: 14px;
        height: 14px;
    }

    .tabs-arrow {
        width: 32px;
        height: 32px;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    font-size: 1.125rem;
}
}

/* Stagger animation for job cards */
.job-card:nth-child(1) {
    animation-delay: 0s;
}

.job-card:nth-child(2) {
    animation-delay: 0.05s;
}

.job-card:nth-child(3) {
    animation-delay: 0.1s;
}

.job-card:nth-child(4) {
    animation-delay: 0.15s;
}

.job-card:nth-child(5) {
    animation-delay: 0.2s;
}

.job-card:nth-child(6) {
    animation-delay: 0.25s;
}

.job-card:nth-child(7) {
    animation-delay: 0.3s;
}

.job-card:nth-child(8) {
    animation-delay: 0.35s;
}

.job-card:nth-child(9) {
    animation-delay: 0.4s;
}

.job-card:nth-child(10) {
    animation-delay: 0.45s;
}

/* New Job Card Design */
.job-card-content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.job-thumbnail {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
}

.job-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.job-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.job-details .job-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-company {
    font-size: 0.8125rem;
    color: var(--primary);
    margin: 0;
    font-weight: 600;
}

.job-details .job-date {
    font-size: 0.8125rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 6px;
}

.job-details .job-date svg {
    width: 14px;
    height: 14px;
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: white;
}

.menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 1.25rem 0;
    justify-content: center;
    align-items: center;
}

.nav-link {
    position: relative;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    color: var(--gray-800);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid rgba(99, 102, 241, 0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: var(--transition);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition);
    z-index: -1;
}

.nav-link:hover::before {
    left: 0;
}

.nav-link:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    border-color: var(--primary);
}

.nav-link-special {
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.25);
    animation: pulse 2s ease infinite;
}

.nav-link-special:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.4);
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 10px rgba(99, 102, 241, 0.25);
    }

    50% {
        box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
    }
}

/* Slider Section */

/* Slider Section */
.slider-section {
    padding: 4rem 0;
    background: linear-gradient(to bottom, #f9fafb 0%, #ffffff 100%);
    position: relative;
}

.slider-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.3) 50%, transparent 100%);
}

.section-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: var(--radius-md);
    border: 2px solid rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
}

.section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.section-title svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.3));
}

.slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.slider-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) var(--gray-200);
    padding: 16px 4px;
    flex: 1;
    scroll-snap-type: x mandatory;
}

.slider-wrapper::-webkit-scrollbar {
    height: 8px;
}

.slider-wrapper::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: 10px;
}

.slider-wrapper::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: var(--transition);
}

.slider-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.slider-card {
    min-width: 260px;
    max-width: 260px;
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: var(--transition);
}

.slider-card:hover {
    transform: translateY(-6px) scale(1.02);
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.slider-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.slider-btn:hover::before {
    opacity: 1;
}

.slider-btn:hover {
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.slider-btn svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
}

.slider-btn:active {
    transform: scale(1.05);
}

.slider-loading,
.slider-empty {
    flex: 1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-600);
    font-size: 1.125rem;
    font-weight: 500;
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
}

.footer-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(-4px);
}

.footer-link svg {
    color: var(--primary-light);
    flex-shrink: 0;
}

.footer-share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.footer-share-btn:hover {
    transform: translateX(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.footer-share-btn svg {
    width: 16px;
    height: 16px;
}

.footer-description {
    font-size: 1.125rem;
    color: var(--gray-300);
    line-height: 1.8;
}

/* Share Modal */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-modal.active {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

.share-modal-content {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.3s ease;
}

.share-modal-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-modal-close:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
}

.share-modal-close svg {
    width: 20px;
    height: 20px;
}

.share-modal h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    text-align: center;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 1.5rem 1rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.share-option:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.share-option svg {
    width: 40px;
    height: 40px;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .slider-card {
        min-width: 280px;
        max-width: 280px;
    }

    .slider-btn {
        width: 44px;
        height: 44px;
    }

    .slider-btn svg {
        width: 22px;
        height: 22px;
    }

    .section-title {
        font-size: 1.5rem;
        padding: 10px 20px;
        gap: 10px;
    }

    .section-title svg {
        width: 24px;
        height: 24px;
    }

    .nav-link {
        padding: 10px 18px;
        font-size: 0.875rem;
    }

    .share-options {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ==================== Search Modal Styles ==================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.search-toggle:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.search-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.search-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.search-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1;
}

.search-modal-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 700px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    margin-top: 80px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
}

.search-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    text-align: center;
    margin: 0;
}

.search-modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-modal-close:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
}

.search-modal-search {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.search-modal-search svg:first-child {
    color: var(--primary);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-clear {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-200);
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-clear:hover {
    background: var(--danger);
    color: white;
}

.search-results {
    max-height: 500px;
    overflow-y: auto;
    padding: 16px;
}

.search-result-card {
    padding: 16px;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    gap: 16px;
}

.search-result-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateX(-4px);
}

.search-result-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--gray-100);
    flex-shrink: 0;
}

.search-result-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
}

.search-result-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 8px;
}

.search-result-date {
    font-size: 0.875rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-loading,
.search-empty,
.search-initial {
    padding: 60px 24px;
    text-align: center;
}

.search-loading svg,
.search-empty svg,
.search-initial svg {
    margin: 0 auto 20px;
    color: var(--gray-300);
}