/* Home Page Specific Ads Bar Style Expansion */
.home-ads-wrapper .ad-slider-container {
    height: 250px !important;
    /* Slightly expanded */
    margin: 15px 0 !important;
    width: 100% !important;
    border-radius: 20px !important;
    position: relative !important;
    top: 0 !important;
}

/* Force Primary Color Override */
.bg-primary {
    background-color: #00aeef !important;
}

.text-primary {
    color: #00aeef !important;
}

.badge.bg-primary {
    background-color: #00aeef !important;
}

.btn-primary {
    background-color: #00aeef !important;
    border-color: #00aeef !important;
}

.btn-outline-primary {
    color: #00aeef !important;
    border-color: #00aeef !important;
}

.btn-outline-primary:hover {
    background-color: #00aeef !important;
    color: white !important;
}

.home-ads-wrapper .ad-content-overlay {
    padding: 25px !important;
}

.home-ads-wrapper .ad-info h3 {
    font-size: 1.8rem !important;
    margin-bottom: 5px !important;
}

.home-ads-wrapper .ad-info p {
    font-size: 1.1rem !important;
}

@media (max-width: 768px) {
    .home-ads-wrapper .ad-slider-container {
        height: 320px !important;
        /* زيادة الارتفاع لاستيعاب المحتوى */
    }

    .home-ads-wrapper .ad-content-overlay {
        padding: 25px 20px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        align-items: flex-start !important;
        height: 100% !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%) !important;
    }

    .home-ads-wrapper .ad-info h3 {
        font-size: 1.4rem !important;
        white-space: normal !important;
        /* السماح بالتفاف العنوان */
        margin-bottom: 12px !important;
        line-height: 1.4 !important;
    }

    .home-ads-wrapper .ad-info p {
        font-size: 1rem !important;
        white-space: normal !important;
        /* السماح بالتفاف النص لقراءته بالكامل */
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 4 !important;
        line-clamp: 4 !important;
        /* إظهار حتى 4 أسطر */
        -webkit-box-orient: vertical !important;
        max-width: 100% !important;
        margin-bottom: 50px !important;
        /* مسافة أمان قبل الزر */
        text-overflow: ellipsis !important;
        line-height: 1.6 !important;
    }

    .home-ads-wrapper .ad-info .btn {
        margin-top: 5px !important;
        width: auto !important;
        /* حجم الزر مناسب */
    }
}

/* Enhanced Search Section */
.search-section {
    background: white;
    border-radius: 20px;
    padding: 35px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f7941e;
    /* Subtle Border */
    margin-bottom: 25px;
    position: relative;
}

/* Professional Glow Search Bar */
.professional-search-bar {
    display: flex;
    background: white;
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f7941e;
    /* Subtle Border */
    max-width: 800px;
    margin: 0 auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.professional-search-bar:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.15);
    border-color: #00aeef;
}

.professional-search-bar .search-icon {
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: #00aeef;
    font-size: 1.2rem;
}

.professional-search-bar input {
    flex: 1;
    border: none;
    padding: 15px 5px;
    font-size: 1.1rem;
    font-weight: 500;
    outline: none;
    background: transparent;
}

.btn-search-glow {
    background: #00aeef;
    /* Sky Blue */
    color: white;
    border: none;
    padding: 0 35px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.3);
    height: 55px;
    white-space: nowrap;
}

.btn-search-glow:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

/* Premium Live Search Results */
.search-results-container {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    z-index: 1002;
    display: none;
    overflow: hidden;
    animation: premiumFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 450px;
    overflow-y: auto;
}

@keyframes premiumFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.search-category-title {
    background: #f8fafc;
    padding: 10px 25px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-result-item {
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #414042;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 4px solid transparent;
}

.search-result-item:hover,
.search-result-item.selected {
    background: rgba(37, 99, 235, 0.04);
    border-right-color: #00aeef;
    padding-right: 32px;
    outline: none;
}

.result-icon {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.result-icon i {
    font-size: 1.1rem;
    color: #00aeef;
}

.result-info {
    flex: 1;
}

.result-title {
    font-weight: 700;
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 2px;
    display: block;
}

.result-title mark {
    background: rgba(37, 99, 235, 0.15);
    color: #00aeef;
    padding: 0 2px;
    border-radius: 3px;
}

.result-subtitle {
    font-size: 0.82rem;
    color: #64748b;
    display: block;
}

.no-results-state {
    padding: 40px 20px;
    text-align: center;
    color: #94a3b8;
}

.no-results-state i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Scrollbar Styling */
.search-results-container::-webkit-scrollbar {
    width: 6px;
}

.search-results-container::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.search-results-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* Loading Animation */
@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

.search-loading .spinner-border {
    animation: pulse 1s infinite ease-in-out;
}

/* Loading Spinner for search */
.search-loading {
    position: absolute;
    left: 120px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

.search-loading .spinner-border {
    width: 1.2rem;
    height: 1.2rem;
    border-width: 0.15em;
    color: #00aeef;
}

@media (max-width: 768px) {
    .professional-search-bar {
        flex-direction: column;
        border-radius: 20px;
        padding: 15px;
    }

    .professional-search-bar .search-icon {
        display: none;
    }

    .btn-search-glow {
        width: 100%;
        margin-top: 10px;
        height: 50px;
    }
}

.section-title {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 25px;
    font-weight: 800;
    color: #414042;
    font-size: 1.4rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 4px;
    background: #00aeef;
    border-radius: 10px;
}

.card {
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f7941e;
    /* Subtle Border */
    background-color: white;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: #fff;
    color: var(--success);
    font-weight: 700;
    border-bottom: 1px solid #f1f5f9;
    padding: 18px 20px;
    display: flex;
    align-items: center;
}

.card-header i {
    color: #00aeef;
    font-size: 1.2rem;
    margin-left: 10px;
}

.job-item {
    padding: 18px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s;
}

.job-item:last-child {
    border-bottom: none;
}

.job-item:hover {
    background-color: #f8fafc;
}

.company-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #10b981;
    font-weight: 800;
    font-size: 1.3rem;
    margin-left: 15px;
    border: 1px solid #e2e8f0;
}

.category-badge {
    background: #f1f5f9;
    color: #475569;
    border-radius: 10px;
    padding: 10px 15px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.category-badge:hover {
    background: #fff;
    color: var(--primary, #00aeef);
    border-color: var(--primary, #00aeef);
    transform: translateX(-5px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* تحسين روابط الإحصائيات */
.stat-item-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
}

.stat-item-link:hover {
    transform: scale(1.05);
}

/* جعل الشركات قابلة للنقر وتحسين شكلها */
.company-marquee-link {
    display: inline-block;
    padding: 0 25px;
    transition: opacity 0.3s;
}

.company-marquee-link:hover {
    opacity: 0.8;
}

.search-section {
    background: #00aeef;
    /* Sky Blue Background */
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border: 1px solid #f7941e;
    /* Subtle Border */
    position: relative;
    z-index: 10;
}

.form-control,
.form-select {
    border-radius: 12px;
    padding: 12px 18px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    transition: all 0.3s;
}

.form-control:focus,
.form-select:focus {
    background-color: #fff;
    border-color: #00aeef;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.stats-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 16px;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    border: 1px solid #f7941e;
    /* Subtle Border */
}

.stats-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: #198754;
    /* لون أخضر (Success) بدلاً من الأزرق */
    margin: 12px 0;
    letter-spacing: -1px;
}

.stats-label {
    color: #64748b;
    font-weight: 600;
    font-size: 1rem;
}

.trusted-company-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--success);
    font-weight: 800;
    font-size: 1.5rem;
    margin: 0 auto 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 2px solid #f1f5f9;
    transition: all 0.3s;
}

.trusted-company-logo:hover {
    transform: scale(1.1);
    border-color: #00aeef;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
}

/* Marquee Animation */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    padding: 20px 0;
    position: relative;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 30s linear infinite;
}

.marquee-item {
    flex: 0 0 auto;
    width: 150px;
    text-align: center;
    margin: 0 20px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
    }
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

/* Enhanced Search Section */
.search-section {
    background: linear-gradient(to bottom right, #ffffff, #f8fafc);
    border: 1px solid #f7941e;
}

.search-section .section-title {
    color: #00aeef;
    font-size: 1.6rem;
    margin-bottom: 35px;
}

.search-input-group {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    transition: all 0.3s;
}

.search-input-group:focus-within {
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.stats-card,
.search-section {
    animation: fadeIn 0.6s ease-out forwards;
}

.stats-card i {
    transition: all 0.3s ease;
}

.stats-card:hover i {
    transform: scale(1.2) rotate(5deg);
    color: #009bd5 !important;
}

.stats-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.1), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
    border-color: #00aeef;
}

.job-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.job-item:hover h6 {
    color: #00aeef !important;
}

.hover-shadow:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

@media (max-width: 991px) {

    .left-column,
    .right-column {
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .stats-card {
        margin-bottom: 15px;
    }
}

/* Skill Tags */
.skill-tag {
    display: inline-block;
    padding: 8px 15px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 20px;
    margin: 5px;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-decoration: none;
}

.skill-tag:hover {
    background: #00aeef;
    color: #fff;
    transform: translateY(-2px);
}

/* Mobile Stats Icons & Utilities */
.icon-box-small {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1rem;
}

.bg-light-success {
    background: rgba(16, 185, 129, 0.1);
}

.bg-light-primary {
    background: rgba(0, 174, 239, 0.1);
}

.bg-light-warning {
    background: rgba(247, 148, 30, 0.1);
}

.active-scale:active {
    transform: scale(0.95);
}

.transition-all {
    transition: all 0.2s ease;
}

/* Professional Mobile Stat Tiles */
.mobile-stat-tile {
    background: #ffffff;
    border: 1px solid #f7941e;
    /* Orange Border */
    border-radius: 18px;
    padding: 15px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.mobile-stat-tile::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    /* Blue/Theme accent line like desktop cards */
    height: 100%;
    opacity: 0.8;
}

/* Specific Colors matching Laptop Section */
.stat-jobs::before {
    background: var(--primary);
}

.stat-jobs i {
    color: var(--primary);
    background: rgba(0, 174, 239, 0.08);
}

.stat-jobs .mobile-stat-value {
    color: #198754;
}

/* Matching desktop Green numbers */

.stat-companies::before {
    background: var(--info);
}

.stat-companies i {
    color: var(--info);
    background: rgba(14, 165, 233, 0.08);
}

.stat-companies .mobile-stat-value {
    color: #198754;
}

.stat-seekers::before {
    background: var(--info);
}

/* Matching desktop Blue/Info icons */
.stat-seekers i {
    color: var(--info);
    background: rgba(14, 165, 233, 0.08);
}

.stat-seekers .mobile-stat-value {
    color: #198754;
}

.mobile-stat-tile:active {
    transform: translateY(-3px) scale(0.98);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    background: #fdfdfd;
}

.mobile-stat-tile i {
    font-size: 1.25rem;
    margin-bottom: 8px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s;
}

.mobile-stat-tile:active i {
    transform: rotate(10deg) scale(1.1);
}

.mobile-stat-value {
    font-weight: 900;
    font-size: 1.15rem;
    line-height: 1.1;
    margin-bottom: 2px;
}

.mobile-stat-label {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}