/* Holo Custom Styles Extracted */

/* Custom Global Limits for Dropdowns */
.nice-select .list {
    max-height: 250px !important;
    overflow-y: auto !important;
}

/* --- From index.blade.php --- */
/* Современный воздушный стиль поисковика на главной */
    .hero-search-wrap {
        background: rgba(255, 255, 255, 0.1) !important;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 24px !important;
        padding: 30px !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
    }

    .hero-search h1 {
        color: #ffffff !important;
        font-weight: 800 !important;
        margin-bottom: 20px !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .hero-search-content {
        background: #ffffff !important;
        border-radius: 20px !important;
        padding: 25px !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
    }

    .hero-search-content .form-group label {
        font-weight: 600 !important;
        color: #475569 !important;
        margin-bottom: 8px !important;
        font-size: 14px !important;
    }

    .hero-search-content .form-control {
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        height: 54px !important;
        font-size: 15px !important;
        transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s, color 0.3s, border-color 0.3s !important;
        background: #f8fafc !important;
    }

    .hero-search-content .form-control:focus {
        border-color: #016551 !important;
        background: #ffffff !important;
        box-shadow: 0 0 0 4px rgba(1, 101, 81, 0.1) !important;
    }

    .hero-search-content .input-with-icon img {
        left: 15px !important;
        width: 20px !important;
    }

    .hero-search-content .input-with-icon .form-control {
        padding-left: 45px !important;
    }

    /* Mobile-only native select instead of NiceSelect */
    .hero-search-content .btn-main {
        height: 55px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 18px !important;
        font-weight: 700 !important;
        font-size: 16px !important;
        text-transform: none !important;
        letter-spacing: 0.5px !important;
        background: #016551 !important;
        box-shadow: 0 8px 20px rgba(1, 101, 81, 0.3) !important;
        margin-top: 0 !important;
        transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s, color 0.3s, border-color 0.3s !important;
    }

    .hero-search-content .btn-main:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 25px rgba(1, 101, 81, 0.4) !important;
    }

    /* Оформление карточек для всего сайта */
    .job-instructor-layout, .category-box, .jbs-grid-layout {
        background: #ffffff !important;
        border: 1px solid #f1f5f9 !important;
        border-radius: 20px !important;
        padding: 22px !important;
        transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02) !important;
        position: relative;
        z-index: 1;
        overflow: hidden !important; /* Гарантируем, что контент не вылетает */
    }

    /* Исправление вылетания иконки закладки при длинных названиях */
    .jbs-grid-emp-head {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .jbs-grid-emp-content {
        flex: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: flex-start !important;
    }

    .jbs-grid-job-caption {
        flex: 1 !important;
        min-width: 0 !important;
    }

    .jbs-job-title-truncated {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        word-break: break-word !important;
    }

    .job-instructor-layout:hover, .category-box:hover, .jbs-grid-layout:hover {
        transform: translateY(-15px) !important;
        box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1) !important;
        z-index: 50 !important;
    }

    /* Плитки категорий */
    .category-box {
        padding: 25px !important;
        text-align: center !important;
    }

    .category-box:hover {
        box-shadow: 0 20px 30px rgba(1, 101, 81, 0.1) !important;
        border-color: rgba(1, 101, 81, 0.1) !important;
    }

    .category-icon {
        width: 50px !important;
        height: 50px !important;
        background: #e6f0ee !important;
        border-radius: 18px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 20px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        transition: transform 0.4s, box-shadow 0.4s, background-color 0.4s, color 0.4s !important;
    }

    .category-box:hover .category-icon {
        background: #016551 !important;
    }

    .category-icon i.text-main {
        font-size: 22px !important;
        transition: transform 0.4s, box-shadow 0.4s, background-color 0.4s, color 0.4s !important;
    }

    .category-box:hover .category-icon i.text-main {
        color: #ffffff !important;
    }

    .category-icon i.abs-icon {
        display: none !important;
    }

    .category-detail h4 a {
        font-weight: 700 !important;
        color: #1e293b !important;
        font-size: 17px !important;
    }

    /* Карточки вакансий */
    .job-instructor-thumb img {
        border-radius: 18px !important; /* Увеличено с 12px для более мягкого вида */
    }

    /* Логотипы компаний в сетке (Top Employers) */
    .jbs-grid-emp-thumb, .jbs-list-emp-thumb figure {
        border-radius: 20px !important; /* Мягкое скругление для контейнера */
    }

    .jbs-grid-emp-thumb img, .jbs-list-emp-thumb figure img {
        border-radius: 12px !important; /* Скругление для самого изображения внутри */
        object-fit: contain;
    }

    /* Аватарки и круглые элементы (убираем жесткий квадрат внутри) */
    .circle, .img-fluid.circle {
        border-radius: 50% !important;
    }

    /* Скругления для страницы вакансии (sidebar) */
    .side-jbs-info-thumbs img, .single-rtl-jbs-thumb img {
        border-radius: 15px !important;
    }

    .single-side-rtl-jbs {
        padding: 1.2rem 0 !important;
        border-bottom: 1px solid #f1f5f9 !important;
        transition: all 0.3s ease;
    }

    .single-side-rtl-jbs:last-child {
        border-bottom: none !important;
    }

    .single-side-rtl-jbs:hover {
        background: #fcfdfe;
    }

    .single-rtl-jbs-thumb {
        width: 60px !important;
        height: 60px !important;
        border-radius: 16px !important;
        overflow: hidden;
        border: 1px solid #f1f5f9 !important;
        background: #f8fafc;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        margin-right: 15px;
        transition: all 0.3s ease;
    }

    .single-rtl-jbs-thumb a {
        display: flex;
        width: 100%;
        height: 100%;
        align-items: center;
        justify-content: center;
    }

    .single-side-rtl-jbs:hover .single-rtl-jbs-thumb {
        border-color: #0b8260;
        transform: scale(1.02);
    }

    .related-job-logo {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        padding: 8px;
    }

    /* Универсальный фикс для иконок категорий в сайдбаре */
    .single-rtl-jbs-thumb .category-icon-logo {
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .rtls-title {
        font-size: 15px !important;
        font-weight: 700 !important;
        margin-bottom: 5px !important;
        line-height: 1.4 !important;
    }

    .rtls-title a {
        color: #1e293b !important;
        transition: color 0.2s;
    }

    .rtls-title a:hover {
        color: #0b8260 !important;
    }

    .jbs-locat-oiu {
        font-size: 13px !important;
        color: #64748b !important;
    }

    .jbs-types .label {
        font-size: 10px !important;
        padding: 3px 8px !important;
        border-radius: 6px !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Универсальный фикс для изображений логотипов, чтобы не были острыми */
    img.company-logo, .company-logo img, .company-logo-img {
        border-radius: 18px !important;
    }

    .instructor-title a {
        font-weight: 700 !important;
        color: #1e293b !important;
    }

    /* Кликабельные виджеты в дашборде */
    a.dash-wrap-bloud {
        display: block !important;
        text-decoration: none !important;
        color: inherit !important;
        transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    }
    a.dash-wrap-bloud:hover {
        transform: translateY(-5px) !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    }
    a.dash-wrap-bloud .dash-wrap-bloud-content h5,
    a.dash-wrap-bloud .dash-wrap-bloud-content p {
        color: inherit !important;
    }

    /* Анимации появления (SPA-style) */
    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    section {
        z-index: 1;
        position: relative;
        overflow: visible !important;
    }

    .container, .row, .col-xl-3, .col-lg-3, .col-md-4, .col-sm-6 {
        overflow: visible !important;
    }

    /* Адаптация для мобилок */
    /* Плитки категорий */
    .category-box {
        background: #ffffff !important;
        border: 1px solid #f1f5f9 !important;
        border-radius: 20px !important;
        padding: 25px !important;
        transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02) !important;
        height: 100%;
        overflow: hidden;
    }

    .category-box:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 30px rgba(1, 101, 81, 0.1) !important;
        border-color: rgba(1, 101, 81, 0.1) !important;
    }

    .category-icon {
        width: 50px !important;
        height: 50px !important;
        background: #e6f0ee !important;
        border-radius: 18px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 20px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        transition: transform 0.4s, box-shadow 0.4s, background-color 0.4s, color 0.4s !important;
    }

    .category-box:hover .category-icon {
        background: #016551 !important;
    }

    .category-icon i.text-main {
        font-size: 22px !important;
        transition: transform 0.4s, box-shadow 0.4s, background-color 0.4s, color 0.4s !important;
    }

    .category-box:hover .category-icon i.text-main {
        color: #ffffff !important;
    }

    .category-icon i.abs-icon {
        display: none !important;
    }

    .category-detail h4 a {
        font-weight: 700 !important;
        color: #1e293b !important;
        font-size: 17px !important;
    }

    /* Карточки вакансий на главной */
    .job-instructor-layout {
        background: #ffffff !important;
        border: 1px solid #f1f5f9 !important;
        border-radius: 20px !important;
        padding: 22px !important;
        transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02) !important;
    }

    .job-instructor-layout:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 30px rgba(0, 0, 0, 0.05) !important;
    }

    .job-instructor-thumb img {
        border-radius: 12px !important;
    }

    .instructor-title a {
        font-weight: 700 !important;
        color: #1e293b !important;
    }

    /* Анимации появления (SPA-style) */
    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    section {
    }

    /* Адаптация для мобилок */
    @media (max-width: 767px) {
        .hero-search-wrap {
            padding: 25px 20px !important;
            border-radius: 32px !important;
            background: rgba(255, 255, 255, 0.15) !important;
        }
        .hero-search h1 {
            font-size: 22px !important;
            margin-bottom: 15px !important;
        }
        .hero-search-content {
            padding: 20px 18px !important;
            border-radius: 24px !important;
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
        }
        .hero-search-content .form-group {
            margin-bottom: 12px !important;
        }
        .hero-search-content .form-control {
            border-radius: 18px !important;
            height: 50px !important;
        }
                .hero-search-content .btn-main {
            height: 45px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            border-radius: 16px !important;
            margin-top: 0 !important;
        }
    }

/* --- From grid-style-1.blade.php --- */
/* Современный воздушный стиль карточек вакансий */
    .jbs-grid-layout.style_2 {
        background: #ffffff !important;
        border: 1px solid #f1f5f9 !important;
        border-radius: 24px !important;
        padding: 22px !important;
        transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
        height: 100% !important;
        display: flex;
        flex-direction: column;
    }

    .jbs-grid-layout.style_2:hover {
        transform: translateY(-10px);
        box-shadow: 0 25px 40px rgba(1, 101, 81, 0.08) !important;
        border-color: rgba(1, 101, 81, 0.1) !important;
    }

    /* Премиум карточки - более мягкое выделение */
    .jbs-grid-layout.style_2.border-warning {
        border-left: 4px solid #ffc107 !important;
        background: linear-gradient(to right, #fffbf2, #ffffff) !important;
    }

    /* Улучшение заголовка карточки */
    .jbs-job-title-wrap {
        max-width: 100% !important;
        white-space: normal !important;
        overflow: visible !important;
    }

    .jbs-grid-emp-head {
        margin-bottom: 15px !important;
    }

    .jbs-grid-emp-thumb {
        width: 65px !important;
        height: 65px !important;
        border-radius: 20px !important; /* Было 18px */
        overflow: hidden;
        border: 1px solid #f0f2f5;
        background: #f8fafc;
        padding: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .jbs-grid-emp-thumb img {
        max-height: 100%;
        object-fit: contain;
    }

    .jbs-grid-job-caption {
        padding-left: 15px !important;
    }

    .jbs-job-employer-wrap span {
        font-size: 13px;
        color: #64748b;
        font-weight: 500;
    }

    .jbs-job-title {
        font-weight: 700 !important;
        color: #1e293b !important;
        font-size: 18px !important;
        line-height: 1.4 !important;
        transition: color 0.2s;
    }

    .jbs-job-title:hover {
        color: #016551 !important;
    }

    /* Иконки инфо-блока */
    .jbs-info-ico-style {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 10px;
        width: 100%;
    }

    .jbs-single-y1 {
        background: #f1f5f9 !important;
        padding: 6px 10px !important;
        border-radius: 10px !important;
        font-size: 12px !important;
        color: #475569 !important;
        font-weight: 500 !important;
        display: inline-flex !important;
        align-items: center;
        line-height: 1;
        border: 1px solid transparent;
        white-space: nowrap;
    }

    .jbs-single-y1 span {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        background: #ffffff;
        border-radius: 8px;
        margin-right: 10px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    .jbs-single-y1 i {
        margin-right: 0 !important;
        color: #016551;
        font-size: 12px;
    }

    /* Цена и дата */
    .jbs-grid-job-package-info {
        border-top: 1px solid #f1f5f9;
        padding-top: 10px !important;
        margin-top: 0 !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .jbs-grid-package-title h5 {
        font-weight: 700;
        color: #016551;
        margin: 0;
        font-size: 17px;
    }

    .jbs-grid-posted span {
        font-size: 12px;
        color: #94a3b8;
    }

    /* Кнопки отклика */
    .jbs-grid-job-apply-btns {
        margin-top: 12px !important;
    }

    .jbs-btn-groups {
        display: flex;
        gap: 10px;
    }

    .jbs-btn-groups .btn {
        flex: 1;
        border-radius: 18px !important;
        font-weight: 700 !important;
        font-size: 14px !important;
        padding: 12px 15px !important;
        transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s, color 0.3s !important;
    }

    .btn-light-main {
        background: #f1f5f9 !important;
        color: #475569 !important;
        border: none !important;
    }

    .btn-light-main:hover {
        background: #e2e8f0 !important;
        transform: translateY(-2px);
    }

    .btn-main {
        background: #016551 !important;
        box-shadow: 0 8px 20px rgba(1, 101, 81, 0.2) !important;
        color: #ffffff !important;
    }

    .btn-main:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 25px rgba(1, 101, 81, 0.3) !important;
    }

    .btn-success {
        background: #10b981 !important;
        border: none !important;
        box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2) !important;
    }

    .btn-success:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 25px rgba(16, 185, 129, 0.3) !important;
    }

    /* Закладка */
    .bkrs {
        background: #f8fafc !important;
        width: 36px;
        height: 36px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
        border: 1px solid #f1f5f9 !important;
    }

    .bkrs:hover {
        background: #e2e8f0 !important;
    }

    .jbs-grid-jbs-saved .saved {
        color: #dc3545; /* Bootstrap's danger color */
    }

    /* Мобильные фиксы для бейджей */
    @media (max-width: 767px) {
        .jbs-info-ico-style {
            justify-content: flex-start;
            gap: 5px;
        }
        .jbs-single-y1 {
            padding: 5px 8px !important;
            font-size: 11px !important;
        }
        .jbs-single-y1 span {
            width: 20px;
            height: 20px;
            margin-right: 6px;
            border-radius: 6px;
        }
        .jbs-single-y1 i {
            font-size: 10px;
        }
    }
	#jobs-container {
		position: relative;
		transition: opacity 0.3s ease;
	}
	#jobs-container.loading {
		opacity: 0.5;
		pointer-events: none;
	}
	/* Фикс для плавности анимации раскрытия блоков */
	.widget-boxed-body.collapsing {
		transition: height 0.35s ease;
	}
	   
	   /* Анимация иконки раскрытия категорий */
	   [data-bs-toggle="collapse"] i {
	       transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
	   }
	   /* --- FIX ICONS MESS --- */
	      
	      /* 1. Aggressively hide all default theme icons (::after/::before) to prevent duplicates and broken "Square X" icons */
	      .widget-boxed-header h4 a::after,
	      .widget-boxed-header h4 a::before,
	      .side-list a[data-bs-toggle="collapse"]::after,
	      .side-list a[data-bs-toggle="collapse"]::before {
	          display: none !important;
	          content: none !important;
	      }

          /* Принудительно устанавливаем шрифт FontAwesome для тегов <i> с классами fa-solid и fas, 
             чтобы старые стили темы (Themify/LineIcons) не ломали отображение иконок внутри списков */
          .side-list i.fa-solid, 
          .side-list i.fas,
          .widget-boxed-header i.fa-solid,
          .widget-boxed-header i.fas {
              font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
              font-weight: 900 !important;
          }

	      /* 2. Main Header Icons (Chevron Down) */
	      /* Default (Collapsed) -> Point Down */
	      .widget-boxed-header a i.fa-chevron-down {
	          transition: transform 0.3s ease;
	          transform: rotate(0deg);
	      }
	      /* Open -> Point Up */
	      .widget-boxed-header a:not(.collapsed) i.fa-chevron-down {
	          transform: rotate(180deg);
	      }

	      /* 3. Subcategory Icons (Chevron Right <-> Down) */
	      /* We swap classes via JS, so disable any automatic rotation */
	      .side-list a[data-bs-toggle="collapse"] i {
	          transform: none !important;
	          transition: none !important; /* Instant swap */
	      }
	   /* CSS content hack removed - handled by JS for better compatibility */
	.widget-boxed-body.collapse.show {
		visibility: visible;
		height: auto !important;
	}
	
	/* Sticky Sidebar Implementation */
	@media (min-width: 992px) {
		.sticky-sidebar {
			position: sticky;
			top: 100px; /* Отступ сверху (с учетом хидера) */
			max-height: calc(100vh - 120px); /* Ограничение по высоте экрана */
			overflow-y: auto; /* Прокрутка внутри сайдбара, если фильтров много */
			scrollbar-width: thin; /* Тонкий скроллбар для Firefox */
			transition: top 0.3s ease;
		}
		
		/* Стилизация скроллбара для Chrome/Safari */
		.sticky-sidebar::-webkit-scrollbar {
			width: 4px;
		}
		.sticky-sidebar::-webkit-scrollbar-thumb {
			background-color: #016551;
			border-radius: 10px;
		}

		/* Специфический фикс для страницы вакансии - убираем скроллбар, если это сайдбар вакансии */
		.job-detail-sidebar.sticky-sidebar {
			max-height: none !important;
			overflow: visible !important;
		}
	}
	
	/* Mobile Sticky Filter Header (JS Controlled) */
	@media (max-width: 991px) {
		.sidebar_header.mobile-sticky {
			position: fixed;
			top: 56px; /* Высота хидера + отступ */
			left: 0;
			width: 100%;
			z-index: 990;
			background: #ffffff;
			box-shadow: 0 2px 10px rgba(0,0,0,0.1);
			border-bottom: 1px solid #e0e0e0;
			padding: 15px 20px;
			animation: slideDown 0.2s ease-out;
		}
		
		/* Удалена логика оверлея, так как теперь используется модальное окно */

		@keyframes slideDown {
			from { transform: translateY(-100%); opacity: 0; }
			to { transform: translateY(0); opacity: 1; }
		}
	}

/* --- From single-layout-6.blade.php --- */
.expandable-content {
	position: relative;
	overflow: hidden;
	transition: max-height 0.5s ease;
}
.expandable-content::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 60px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
	pointer-events: none;
	transition: opacity 0.3s ease;
}
.expandable-content.expanded {
	max-height: none !important;
}
.expandable-content.expanded::after {
	opacity: 0;
}
.show-more-btn {
	color: #0b8260;
	cursor: pointer;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	margin-top: 10px;
	margin-bottom: 20px; /* Отступ снизу */
	border: none;
	background: none;
	padding: 0;
	transition: color 0.2s;
}
.show-more-btn:hover {
	color: #08694d;
	text-decoration: underline;
}
.show-more-btn i {
	transition: transform 0.3s ease;
}
.show-more-btn.expanded i {
	transform: rotate(180deg);
}


/* --- New styles for Single Job Page (Modern Airy Design) --- */
.job-detail-container {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    position: relative;
}

.job-detail-main,
.job-detail-sidebar .card-modern {
    background: #ffffff;
    border: 1px solid #f0f2f5;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.job-detail-sidebar .card-modern {
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.job-header-modern .job-title-modern {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
}

.job-header-modern .job-location-modern {
    font-size: 1.1rem;
    color: #64748b;
    display: flex;
    align-items: center;
    line-height: 1; /* Reset for better alignment */
}

.job-header-modern .job-location-modern i {
    font-size: 1.1rem; /* Match parent size */
    margin-right: 6px;
}

.job-key-features {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

.job-key-features .feature-box {
    flex: 1;
    max-width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px solid #f0f2f5;
    border-radius: 18px;
    background: #f8fafc;
    min-width: 200px;
}

/* On mobile, stack them vertically and center */
@media (max-width: 767px) {
    .job-key-features {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 15px 0 !important;
        margin: 15px 0 !important;
    }
    .job-key-features .feature-box {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: flex-start !important;
        padding: 12px 15px !important; 
        border-radius: 16px !important;
        min-width: 0 !important;
        height: auto !important;
        border: 1px solid #e2e8f0 !important;
    }
    .job-key-features .feature-box .icon-wrap {
        width: 36px !important;
        height: 36px !important;
        border-radius: 10px !important;
        flex-shrink: 0 !important;
    }
    .job-key-features .feature-box .icon-wrap i {
        font-size: 1rem !important;
    }
    .job-key-features .feature-box .feature-info .value {
        font-size: 0.95rem !important;
        font-weight: 600 !important;
    }
    .job-key-features .feature-box:nth-child(3) .value {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
    }
}

/* 2. Center alignment for company info grid in sidebar */
.company-card-sidebar .info-grid .info-item {
    text-align: center;
}

/* 3. Reduce font size for "Only candidates can apply" button */
.card-modern .btn[disabled] {
    font-size: 13px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* 4. Increase vertical spacing for better readability */
.job-detail-main .job-section {
    margin-top: 2.5rem; /* Increased from default */
}

/* 5. Center align the "Ready to apply?" card content */
.job-detail-sidebar .card-modern:first-child h5 {
    text-align: center;
    width: 100%;
}

/* 6. Add spacing on mobile between main content and sidebar */
@media (max-width: 991px) {
    .job-detail-sidebar {
        margin-top: 1.5rem;
    }
}

/* 7. Emphasize the salary block */
.job-key-features .feature-box:nth-child(3) .value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #016551;
}

/* 8. Center the company card header */
.company-card-sidebar .company-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* --- Breadcrumbs Modern Styling --- */
.breadcrumbs-wrap {
    border-bottom: 1px solid #f0f2f5;
}

.breadcrumb {
    padding: 0;
    margin: 0;
    background: transparent;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

.breadcrumb-item {
    font-size: 14px;
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    transition: color 0.2s ease;
    text-decoration: none !important;
}

.breadcrumb-item a:hover {
    color: #0b8260 !important;
}

.breadcrumb-item.active {
    color: #0b8260 !important;
}

/* Custom Separator */
.breadcrumb-item + .breadcrumb-item {
    padding-left: 10px;
}

.breadcrumb-item + .breadcrumb-item::before {
    display: inline-block;
    padding-right: 10px;
    color: #94a3b8;
    content: "/"; /* Using a simple slash for perfect text alignment */
    font-family: inherit;
    font-weight: 400;
}

@media (max-width: 767px) {
    .breadcrumbs-wrap {
        padding: 10px 0 !important;
    }
    .breadcrumb {
        /* No scroll on mobile, wrap with proper alignment */
        flex-wrap: wrap !important;
        overflow: visible !important;
        white-space: normal !important;
    }
    .breadcrumb-item {
        font-size: 13px;
        line-height: 1.8;
    }
    .breadcrumb-item + .breadcrumb-item::before {
        padding-right: 8px;
        padding-left: 0;
    }
}

/* --- Ultimate Job Header Meta Fix --- */
.job-meta-header-list {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important; /* Force one row */
    gap: 0 !important;
    margin: 10px 0 !important;
    overflow-x: auto; /* Allow scrolling if it overflows */
    scrollbar-width: none; /* For Firefox */
}

.job-meta-header-list::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.meta-item {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 15px !important;
    border-right: 1px solid #cbd5e1 !important;
    min-height: 20px !important; /* Changed from fixed height */
    line-height: 1 !important;
    color: #1e293b !important;
    font-size: 0.95rem !important;
    white-space: nowrap !important;
}

.meta-item:first-child {
    padding-left: 0 !important;
}

.meta-item:last-child {
    border-right: none !important;
}

.meta-item i {
    margin-right: 8px !important;
    color: #0b8260 !important;
}

.stat-item {
    color: #64748b !important;
}

.stat-item i {
    color: #94a3b8 !important;
}

.custom-job-type-badge {
    background: #f1f5f9 !important;
    color: #475569 !important;
    padding: 4px 12px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border: 1px solid #e2e8f0 !important;
}

/* Состояние кнопки "Вы откликнулись" (белый фон, зеленый текст) */
.btn-applied, .btn-applied[disabled] {
    background-color: #ffffff !important;
    color: #0b8260 !important;
    border: 1px solid #0b8260 !important;
    opacity: 1 !important;
}

@media (max-width: 767px) {
    .breadcrumbs-wrap {
        display: none !important;
    }
    .job-detail-container {
        padding-top: 1.25rem !important;
    }
    .job-detail-main {
        padding: 1.5rem !important;
        border-radius: 20px !important;
    }
    .job-header-modern .job-title-modern {
        font-size: 1.8rem !important;
        margin-bottom: 1rem !important;
    }
    .job-meta-header-list {
        gap: 0 !important; /* Keep 0 for separators to look good */
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        margin-bottom: 15px !important;
    }
    .meta-item {
        border-right: 1px solid #cbd5e1 !important; /* Keep border on mobile */
        padding: 0 10px !important;
        font-size: 0.85rem !important;
    }
    .meta-item:first-child {
        padding-left: 0 !important;
    }
    .meta-item:last-child {
        border-right: none !important;
    }
}

/* --- Mobile Sticky Apply Card --- */
@media (max-width: 991px) {
    .apply-card-mobile-sticky {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 15px 20px calc(15px + env(safe-area-inset-bottom)) !important;
        background: #ffffff !important;
        z-index: 9999999 !important;
        border-radius: 20px 20px 0 0 !important;
        box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.08) !important;
        transform: translateY(100%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s !important;
        border: none !important;
        pointer-events: none !important;
    }

    .apply-card-mobile-sticky.visible {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .apply-card-mobile-sticky h5 {
        display: none !important;
    }

    .apply-card-mobile-sticky p.text-center {
        margin-bottom: 8px !important;
        font-size: 0.85rem !important;
    }
    
    .apply-card-mobile-sticky .btn {
        margin: 0 !important;
        border-radius: 12px !important;
    }
    
    /* Отступ снизу страницы, чтобы контент не перекрывался плашкой */
    .job-detail-container {
        padding-bottom: 100px !important; 
    }
}

/* Fix mobile visual duplication / overlapping borders for Hero Search */
@media (max-width: 767px) {
    .full-search-2 .hero-search-content {
        padding: 16px !important;
        border: none !important;
        border-radius: 20px !important;
        background: #ffffff !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
        overflow: visible !important;
    }
    
    .hero-search-content form.classic-search-box {
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .hero-search-content form.classic-search-box > div[class*="col-"] {
        padding: 0 !important;
        width: 100% !important;
    }

    .hero-search-content .form-group {
        margin-bottom: 0 !important;
        border: 1px solid #eef2f6 !important;
        border-radius: 14px !important;
        background: #f8fafc !important;
        transition: all 0.3s ease;
    }
    
    .hero-search-content .form-group:focus-within {
        border-color: #0b8260 !important;
        background: #ffffff !important;
        box-shadow: 0 0 0 4px rgba(11, 130, 96, 0.1) !important;
    }

    .hero-search-content .form-control {
        border: none !important;
        border-radius: 14px !important;
        background: transparent !important;
        height: 52px !important;
        padding-left: 48px !important;
        font-size: 15px !important;
        box-shadow: none !important;
        color: #1e293b !important;
    }

    .hero-search-content select.no-nice-select {
        border: none !important;
        border-radius: 14px !important;
        background: transparent !important;
        height: 52px !important;
        padding-left: 48px !important;
        font-size: 15px !important;
        color: #475569 !important;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 16px center !important;
        background-size: 12px !important;
    }

    .hero-search-content .input-with-icon i {
        position: absolute;
        left: 16px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 18px !important;
        color: #0b8260 !important;
        z-index: 10;
    }
    .fliox-search-wiop {
        padding: 0 !important;
        background: transparent !important;
        display: flex !important;
        gap: 12px !important;
        margin-top: 4px !important;
        flex-direction: row !important;
    }
    
    .fliox-search-wiop .form-group {
        border: none !important;
        background: transparent !important;
        margin: 0 !important;
        width: 100% !important;
        border-radius: 0 !important;
        flex: 1;
    }

    .fliox-search-wiop .btn-filter-search {
        height: 52px !important;
        border-radius: 14px !important;
        border: 1px solid #eef2f6 !important;
        background: #ffffff !important;
        color: #475569 !important;
        font-weight: 600 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        width: 100% !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.02) !important;
    }

    .fliox-search-wiop .btn-main {
        height: 52px !important;
        border-radius: 14px !important;
        font-weight: 600 !important;
        font-size: 16px !important;
        width: 100% !important;
        box-shadow: 0 4px 12px rgba(11, 130, 96, 0.2) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .hero-search-content .nice-select {
        border: none !important;
        border-radius: 14px !important;
        background: transparent !important;
        height: 52px !important;
        line-height: 52px !important;
        padding-left: 48px !important;
        font-size: 15px !important;
        color: #475569 !important;
        width: 100% !important;
        float: none !important;
    }

    .hero-search-content .nice-select::after {
        right: 16px !important;
        border-bottom: 2px solid #64748b !important;
        border-right: 2px solid #64748b !important;
        width: 8px !important;
        height: 8px !important;
    }
    
    .hero-search-content .nice-select .list {
        width: 100% !important;
        border-radius: 14px !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
        border: 1px solid #eef2f6 !important;
        margin-top: 4px !important;
    }
}

/* Эффект затухания для длинных названий (только если не помещается) */
.text-fade-out {
    white-space: nowrap;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 20px), transparent 100%);
    mask-image: linear-gradient(to right, black calc(100% - 20px), transparent 100%);
    display: block;
    width: 100%;
}

/** 
 * Fix for home search dropdowns 
 * Ensures dropdown lists (NiceSelect/Select2) are not cut off by parent overflow
 * and stay on top of subsequent content blocks.
 */
.hero-header {
    overflow: visible !important;
    z-index: 10 !important;
    position: relative;
}
.full-search-2, .hero-search-wrap {
    z-index: 100 !important;
    position: relative;
    overflow: visible !important;
}

/* Ensure active search dropdown column is always on top */
.classic-search-box > div[class*="col-"]:focus-within {
    z-index: 105 !important;
}

/* Fix for NiceSelect specifically */
.nice-select.open {
    z-index: 110 !important;
}


/* Select2 Modern 2026 Global Unified Style */
.select2-container--default .select2-selection--single {
    height: 55px;
    background-color: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* Specific fix for classic search box on home page and others */
.classic-search-box .select2-container--default .select2-selection--single {
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    height: 55px !important;
    padding-left: 40px !important;
}

.classic-search-box .form-control {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    height: 55px !important;
    padding-left: 45px !important;
}


.classic-search-box .input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.classic-search-box .input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.classic-search-box .briod {
    border-right: 1px solid #e2e8f0 !important;
}

@media (max-width: 991px) {
    .classic-search-box .briod {
        border-right: none !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }
}



.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1e293b !important;
    line-height: 55px !important;
    padding-left: 5px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
}

/* Hide default arrow and add modern chevron */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 55px !important;
    right: 15px !important;
    width: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    display: none !important; /* Hide default triangle */
}

.select2-container--default .select2-selection--single .select2-selection__arrow::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: #94a3b8;
    transition: transform 0.3s ease;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow::after {
    transform: rotate(180deg);
    color: #0b8260;
}

.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #0b8260 !important;
    box-shadow: 0 0 0 4px rgba(11, 130, 96, 0.1) !important;
}

/* Dropdown Panel */
.select2-dropdown {
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1) !important;
    overflow: hidden !important;
    margin-top: 8px !important;
    background: #fff !important;
    z-index: 999999 !important;
    padding: 8px !important;
}

/* Search field inside dropdown */
.select2-search--dropdown {
    padding: 10px !important;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #f1f5f9 !important;
    border-radius: 12px !important;
    padding: 10px 15px !important;
    background-color: #f8fafc !important;
    outline: none !important;
    font-size: 14px !important;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: #0b8260 !important;
    background-color: #fff !important;
}

/* Results */
.select2-results__options {
    max-height: 300px !important;
}

.select2-container--default .select2-results__option {
    padding: 12px 15px !important;
    font-size: 14px !important;
    color: #475569 !important;
    border-radius: 10px !important;
    margin-bottom: 2px !important;
    transition: all 0.2s ease !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #f0fdf4 !important;
    color: #0b8260 !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #0b8260 !important;
    color: #ffffff !important;
}

.select2-container--default .select2-results__option--selected {
    background-color: #0b8260 !important;
    color: #ffffff !important;
}

/* Multiple Selection (Tags) */
.select2-container--default .select2-selection--multiple {
    min-height: 55px !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 16px !important;
    padding: 5px 15px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #eaf5f2 !important;
    border: 1px solid #d1e7e0 !important;
    border-radius: 8px !important;
    color: #0b8260 !important;
    padding: 2px 10px !important;
    margin-top: 7px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #0b8260 !important;
    margin-right: 5px !important;
    border: none !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    background: transparent !important;
    color: #ef4444 !important;
}


/* Fix Select2 z-index for modals */
.select2-container--open {
    z-index: 999999 !important;
}

/* Prevent Select2 from dropping UP visually by enforcing bottom positioning */
.select2-container--default.select2-container--open .select2-dropdown--above {
    top: 100% !important;
    bottom: auto !important;
    margin-top: 8px !important;
    border-radius: 20px !important;
    border: none !important;
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--multiple {
    border-radius: 16px !important;
}




/* Header Logo Vertical Alignment Fix (Desktop) */
@media (min-width: 992px) {
    .nav-brand {
        display: flex !important;
        align-items: center !important;
    }
    .nav-brand img.logo {
        transform: translateY(-6px) !important;
    }
}
