/* Vacancies Frontend Styles - Version 1.3.0 */

/* Styles for JSON output */
.vacancy-json-output {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.vacancy-json-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #721c24;
    font-weight: 500;
}

/* Styles for single vacancy page */
.single-vacancy-container {
    margin: 130px 0 40px;
    padding: 20px 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.vacancy-breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.vacancy-breadcrumbs a {
    color: #fff;
    text-decoration: none;
}

.vacancy-breadcrumbs a:hover {
    text-decoration: underline;
}

.vacancy-breadcrumbs span {
    color: #fff;
    font-weight: 500;
}

.single-vacancy-container .vacancy-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.vacancy-details {
    margin-bottom: 30px;
}

.vacancy-details > div {
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.vacancy-details > div:last-child {
    border-bottom: none;
}

.vacancy-salary-info,
.vacancy-city,
.vacancy-category {
    font-size: 16px;
    color: #333;
}

.vacancy-salary-info strong,
.vacancy-city strong,
.vacancy-category strong {
    color: #007cba;
    margin-right: 8px;
}

.vacancy-description {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.vacancy-description h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.vacancy-description-text {
    color: #555;
    line-height: 1.6;
    font-size: 15px;
}

.vacancy-notes {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #007cba;
}

.vacancy-notes h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.vacancy-notes ul {
    list-style: none;
    padding: 0;
}

.vacancy-notes li {
    padding: 5px 0;
    color: #555;
    position: relative;
    padding-left: 20px;
}

.vacancy-notes li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #007cba;
    font-weight: bold;
}

.vacancy-notes-text {
    color: #555;
    line-height: 1.6;
}

.vacancy-apply-section {
    text-align: center;
    margin: 40px 0 20px;
    padding: 20px;
    /* background: linear-gradient(135deg, #f4a261 0%, #e76f51 100%); */
    border-radius: 12px;
}

.vacancy-apply-btn-large {
    background: #fff;
    color: #e76f51;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 280px;
}

.vacancy-apply-btn-large:hover {
    background: #e76f51;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 111, 81, 0.4);
}

/* Responsive design */
@media (max-width: 768px) {
    .single-vacancy-container {
        padding: 16px;
        margin: 10px 0;
    }
    
    .single-vacancy-container .vacancy-title {
        font-size: 24px;
    }
    
    .vacancy-description,
    .vacancy-notes {
        padding: 15px;
    }
    
    .vacancy-apply-btn-large {
        padding: 12px 30px;
        font-size: 16px;
        min-width: 250px;
    }
}

/* Main container styles */

.vacancies-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

@media(max-width: 1252px) {
    .vacancies-container {
        padding: 0 16px;
    }
}

/* Layout with sidebar */
.vacancies-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding-bottom: 40px;
}

.vacancies-sidebar {
    flex: 0 0 280px;
    border-radius: 8px;
    padding: 0;
    position: sticky;
    top: 120px;
    max-height: 100svh;
    display: flex;
    flex-direction: column;
}

/* Container for filters with scrolling */
.filters-scrollable-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: 15px;
}

/* Custom scrolling for filters container */
.filters-scrollable-container::-webkit-scrollbar {
    width: 6px;
}

.filters-scrollable-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.filters-scrollable-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.filters-scrollable-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.filters-scrollable-container::-webkit-scrollbar-thumb:active {
    background: #787878;
}

/* For Firefox */
.filters-scrollable-container {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
    padding-right: 15px;
}

/* Filter reset button */
@media screen and (max-width: 600px) {
    .filter-reset-container {
        min-width: 100%;
    }
}

.filter-reset-container button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    background: rgb(247, 150, 109);
    border: 1px rgb(247, 150, 109) solid;
    color: #fff;
    border-radius: 0;
    font-size: 16px;
    line-height: 1;
    padding: 16px;
    width: 100%;
    min-width: 265px;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
}

.filter-reset-container button:hover {
    background: rgb(233, 142, 103);
    border-color: rgb(233, 142, 103);
    text-decoration: none;
    color: white;
}

.filter-reset-btn:active {
    transform: translateY(0);
}

.filter-reset-btn:disabled {
    background: #f5f5f5;
    border-color: #ccc;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Filter sections */
.filter-section {
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 18px;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
    user-select: none;
}

.filter-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.filter-arrow {
    font-size: 12px;
    color: #fff;
    transition: transform 0.2s ease;
}

.filter-header.active .filter-arrow {
    transform: rotate(180deg);
}

.filter-content {
    display: block;
    padding: 16px 0 0 5px;
}

.filter-content.collapsed {
    display: none;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    cursor: pointer;
    user-select: none;
}

.filter-checkbox .custom-checkbox {
    width: 18px;
    min-width: 18px;
    height: 18px;
    margin-right: 28px;
    accent-color: #F7966D;
    cursor: pointer;
    border: 1px #fff solid;
    border-radius: 2px;
    font-size: 0;
    position: relative;
}

.filter-checkbox input[type="checkbox"]:checked + .custom-checkbox {
    background-color: #F7966D;
	border-color: #F7966D;
}

.filter-checkbox input[type="checkbox"]:checked + .custom-checkbox:after {
    content: "";
	position: absolute;
	left: 4px;
	top: 0px;
	width: 5px;
	height: 10px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.filter-checkbox input[type="checkbox"] {
    opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}

.filter-checkbox span {
    font-size: 16px;
    color: #fff;
    line-height: 1.4;
}

.filter-checkbox:hover span {
    color: #F7966D;
}

.filter-checkbox[hidden-city="true"] {
    display: none;
}

.filter-checkbox[hidden-city="false"] {
    display: flex;
}

.filter-show-more {
    color: rgba(247, 150, 109, 1);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin: 28px 0 0 -5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    user-select: none;
}

.filter-show-more:hover {
    color: rgba(247, 150, 109, 1);
}

.filter-show-more[data-expanded="true"] {
    color: #666;
}

.filter-show-more[data-expanded="true"]:hover {
    color: rgba(247, 150, 109, 1);
}

.vacancies-main {
    flex: 1;
    min-width: 0;
}

/* Vacancies controls bar */
.vacancies-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    gap: 40px;
}

.filter-controls-container {
    flex-grow: 1;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 16px 40px;
}

@media (max-width: 992px) {
    .filter-controls-container {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .filter-controls-container {
        flex-direction: column;
        gap: 24px;
    }
}

.sort-controls-container {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .sort-controls-container {
        gap: 16px;
    }
}

@media (max-width: 512px) {
    .sort-controls-container {
        gap: 0;
    }
}

.display-filter-btn {
    width: 52px;
    min-width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 1);
    cursor: pointer;
    display: none;
}

.display-filter-btn:hover {
    background: rgba(255, 255, 255, 0.75);
}

@media screen and (max-width: 860px) {
    .display-filter-btn {
        display: inline-flex;
    }
}


/* Active filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    align-items: center;
}

.active-filter-tag {
    font-family: 'Montserrat', sans-serif;
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: white;
    padding: 4px 16px;
    border: 1px #fff solid;
    border-radius: 0;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
}

.active-filter-remove {
    position: absolute;
    top: -10px;
    right: -10px;
    background: rgba(247, 149, 109, 1);
    border: none;
    color: white;
    margin: 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.active-filter-remove:hover {
    background-color: rgba(255, 255, 255, 1);
    color: rgba(247, 149, 109, 1);
}

/* Sort controls */
.sort-controls {
    display: flex;
    align-items: center;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    min-width: 200px;
}

.sort-select:focus {
    outline: none;
    border-color: rgba(247, 150, 109, 1);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Vacancy list layout */
.vacancies-list {
    display: grid;
    gap: 20px;
    margin: 0;
}

#vacancy-data-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0 0;
}

/* Vacancy item styles - horizontal layout */
.vacancy-item {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    min-height: 180px;
}

/* Vacancy image styles - left part */
.vacancy-image-container {
    flex: 0 0 180px;
    position: relative;
    overflow: hidden;
    height: 100%;
    border-radius: 8px;
}

.vacancy-image-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 25, 33, 0) 63.89%, rgba(15, 25, 33, 0.5) 100%);
    z-index: 1;
}

.vacancy-image-container:after {
    content: '';
    position: absolute;
    background: url('/wp-content/plugins/vacancies-api/images/overlay_logo.svg') no-repeat bottom left;
    background-size: cover;
    bottom: 8px;
    left: 8px;
    width: 80px;
    height: 11px;
    z-index: 2;
}

.single-vacancy-container .vacancy-image-container:after {
    bottom: 16px;
    left: 16px;
    width: 220px;
    height: 30px;
}

.single-vacancy-container .vacancies-list .vacancy-image-container:after {
    bottom: 8px;
    left: 8px;
    width: 80px;
    height: 11px;
}

.vacancies-list .vacancy-image-container {
    border-radius: 8px 0 0 8px;
}
@media (max-width: 767px) {
    .vacancies-list .vacancy-image-container {
        border-radius: 8px 8px 0 0;
    }
    .single-vacancy-container .vacancy-image-container:after {
        bottom: 8px;
        left: 8px;
        width: 80px;
        height: 11px;
    }
}

@media (max-width: 860px) {
    .vacancies-list .vacancy-image-container {
        flex: 0 0 280px;
        height: auto;
    }
}

@media (max-width: 767px) {
    .vacancies-list .vacancy-image-container {
        flex: 0 0 340px;
    }
}

.vacancies-list .vacancy-image-container .vacancy-tags {
    display: none;
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    min-width: auto;
}

@media (max-width: 767px) {
    .vacancies-list .vacancy-image-container .vacancy-tags {
        display: flex;
    }
}

.vacancies-list .vacancy-image-container .vacancy-tags .vacancy-tag {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(247, 150, 109, 0.27);
    backdrop-filter: blur(100px);
    color: #fff;

}

/* @media (max-width: 767px) {
    .vacancies-list .vacancy-image-container {
        height: 340px !important;
    }
} */

.vacancy-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
    opacity: 0;
}

.vacancy-image:hover {
    transform: scale(1.05);
}

.vacancy-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.vacancy-image-placeholder-icon {
    font-size: 48px;
    margin-bottom: 8px;
    opacity: 0.7;
}

.vacancy-image-placeholder-text {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* Vacancy content styles - right part */
.vacancy-content {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.vacancy-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0;
}

@media (max-width: 1199px) {
    .vacancy-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.vacancy-item .vacancy-title {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
    margin-right: 0;
}

@media (max-width: 519px) {
    .vacancies-list .vacancy-item .vacancy-title {
        font-size: 20px;
    }
}

.vacancy-salary {
    color: rgba(247, 150, 109, 1);
    font-size: 20px;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.vacancies-list .vacancy-meta {
    flex-grow: 1;
}

.vacancies-list .vacancy-meta .vacancy-salary {
    display: none;
}

@media (max-width: 767px) {
    .vacancies-list .vacancy-salary {
        display: none;
    }
    .vacancies-list .vacancy-meta .vacancy-salary {
        display: block;
        padding: 8px 0 5px;
        white-space: nowrap;
    }
}

.vacancy-meta .vacancy-meta-items {
    margin-bottom: 16px;
    display: flex;
    gap: 40px;
    flex-grow: 1;
}

@media (max-width: 767px) {
    .vacancy-meta {
        display: flex;
        align-items: flex-end;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .vacancy-meta .vacancy-meta-items {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        flex-grow: unset;
        padding: 8px 8px 8px 0;
        margin: 0;
    }
}

.vacancy-location, 
.vacancy-target {
    margin: 8px 0;
    color: #fff;
    font-size: 14px;
    display: flex;
    gap: 8px;
    align-items: center;
    align-items: normal;
}

@media (max-width: 1023px) {
    .vacancy-location, 
    .vacancy-target {
        margin: 0;
    }
}

.vacancy-location::before {
    content: url('/wp-content/plugins/vacancies-api/images/marker.svg');
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.vacancy-target::before {
    content: url('/wp-content/plugins/vacancies-api/images/humans.svg');
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.vacancy-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
}

@media (max-width: 1199px) {
    .vacancy-bottom {
        padding-top: 16px;
        flex-direction: column;
        align-items: flex-start;
    }
}

.vacancy-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 1199px) {
    .vacancy-tags {
        min-width: 100%;
    }
}

.vacancy-tag {
    background: rgba(255, 255, 255, 0.1);
    border: 1px rgba(247, 150, 109, 0.27) solid;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
}

.vacancy-description {
    margin: 16px 0;
    line-height: 1.6;
    color: #444;
    font-size: 14px;
    flex: 1;
}

.vacancy-notes {
    margin: 12px 0;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.vacancy-notes strong {
    color: #333;
    font-size: 14px;
}

.vacancy-notes-list {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.vacancy-notes-list li {
    margin: 4px 0;
    color: #666;
    font-size: 13px;
}

.vacancy-actions {
    display: flex;
    gap: 8px;
}

.vacancy-apply-btn {
    font-family: 'Montserrat', sans-serif;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(247, 150, 109, 1);
    padding: 12px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
    flex: 1;
}

.vacancy-apply-btn:hover {
    background: #fff;
    color: #333;
}

.vacancy-details-btn {
    background: rgba(247, 150, 109, 1);
    color: white;
    border: 1px solid rgba(247, 150, 109, 1);
    padding: 7px 27px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
    flex: 1;
    position: relative;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vacancy-details-btn::after {
    /* content: "→"; */
    content: url('/wp-content/plugins/vacancies-api/images/arrow-right.svg');
    margin-left: 8px;
    font-size: 16px;
}

.vacancy-details-btn:hover {
    background: rgb(233, 142, 103);
    border-color: rgb(233, 142, 103);
    text-decoration: none;
    color: white;
}

/* Error styles */
.vacancies-error {
    color: rgb(233, 142, 103);
    background: #fcf2f3;
    border: 1px solid rgb(233, 142, 103);
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    text-align: center;
}

/* Loading styles */
.vacancy-loading-container {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.vacancy-loading-spinner {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.vacancy-loading-spinner::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: vacancy-spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes vacancy-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pagination styles */
.vacancy-pagination {
    margin: 30px 0 0;
}

.vacancy-pagination-info {
    margin: 0 0 20px 0;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.vacancy-pagination-info p {
    margin: 4px 0;
}

.vacancy-pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.vacancy-pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-family: 'Montserrat', sans-serif;
    border: 1px solid #ddd;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
}

.vacancy-pagination-btn:hover {
    background: #f8f9fa;
    border-color: #fff;
    color: rgba(247, 150, 109, 1);
    text-decoration: none;
}

.vacancy-pagination-btn.active {
    background: #fff;
    border-color: #fff;
    color: #192B39;
    text-decoration: none;
    cursor: default;
    transform: none;
}

.vacancy-pagination-btn.active:hover {
    box-shadow: 0 2px 4px rgba(255,255,255,0.3);
}

.vacancy-pagination-btn:disabled {
    background: #f8f9fa;
    border-color: #e0e0e0;
    color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.vacancy-pagination-prev,
.vacancy-pagination-next {
    font-weight: 600;
    padding: 10px 20px;
}

.vacancy-pagination-prev:hover,
.vacancy-pagination-next:hover {
    background: linear-gradient(135deg, #007cba, #0056b3);
    color: white;
    border-color: #007cba;
}

.vacancy-page-dots {
    color: #999;
    padding: 8px 4px;
    font-size: 14px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .vacancies-layout {
        flex-direction: column;
        gap: 20px;
    }

    .vacancies-sidebar {
        flex: none;
        position: static;
        order: 2;
        max-height: 400px;
    }

    .filters-scrollable-container {
        max-height: 320px;
        margin-top: 10px;
    }

    .vacancies-main {
        order: 1;
    }

    .vacancy-item {
        flex-direction: column;
        min-height: auto;
    }
    
    .vacancy-image-container {
        flex: none;
        height: 100%;
    }
    
    .vacancy-content {
        padding: 16px;
    }
    
    .vacancy-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vacancy-title {
        font-size: 1.2em;
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .vacancy-salary {
        font-size: 1.1em;
        text-align: left;
    }
    
    .vacancy-actions {
        flex-direction: column;
        gap: 8px;
    }

    .vacancies-list .vacancy-actions {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        min-width: 100%;
    }
    
    .vacancy-apply-btn,
    .vacancy-details-btn {
        flex: none;
        width: 100%;
    }

    .vacancies-list .vacancy-apply-btn,
    .vacancies-list .vacancy-details-btn {
        max-width: 200px;
    }
    
    .vacancy-pagination-nav {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .vacancy-pagination-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 36px;
    }
    
    .vacancy-pagination-prev,
    .vacancy-pagination-next {
        padding: 8px 16px;
        font-size: 13px;
    }

    .vacancies-controls {
        flex-direction: column-reverse;
        gap: 16px;
        align-items: stretch;
        /* padding: 0 15px; */
    }

    .active-filters {
        justify-content: flex-start;
    }

    .sort-controls {
        justify-content: flex-end;
        flex-grow: 1;
    }

    .sort-select {
        min-width: auto;
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 519px) {

    .vacancies-list .vacancy-apply-btn,
    .vacancies-list .vacancy-details-btn {
        max-width: none;
        flex-grow: 1;
        width: auto;
        padding: 7px 27px;
        min-height: 39px;
    }
}

@media (max-width: 480px) {
    .vacancies-sidebar {
        padding: 15px;
    }

    .filters-scrollable-container {
        margin-top: 10px;
    }

    .filter-title {
        font-size: 15px;
    }

    .filter-checkbox span {
        font-size: 13px;
    }

    .filter-reset-btn {
        font-size: 13px;
        padding: 8px 12px;
    }

    /* .vacancies-container {
        padding: 0 16px;
    } */
    
    .vacancy-item {
        margin: 0;
        border-radius: 4px;
        border-left: none;
        border-right: none;
    }
    
    .vacancy-title {
        font-size: 1.1em;
    }
    
    .vacancy-location, 
    .vacancy-target {
        font-size: 13px;
    }
    
    .vacancy-description {
        font-size: 13px;
    }
    
    .vacancy-apply-btn,
    .vacancy-details-btn {
        padding: 14px;
        font-size: 13px;
    }
}

/* Modal styles */
.vacancy-modal {
    display: flex;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.vacancy-modal-content {
    background-color: #fff;
    margin: 0;
    padding: 0;
    border-radius: 4px;
    width: 90%;
    max-width: 580px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    max-height: 90vh;
    overflow-y: auto;
}

.vacancy-modal-header {
    text-align: center;
    padding: 40px;
    position: relative;
}

.vacancy-modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.vacancy-modal-header h3 {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.6px;
}

.vacancy-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.vacancy-modal-close:hover {
    background-color: #f8f9fa;
    color: #333;
}

.vacancy-modal-body {
    padding: 0 40px 40px;
}

.vacancy-modal-body .form-group {
    margin-bottom: 24px;
}

.vacancy-modal-body .form-group label {
    font-family: 'Montserrat', sans-serif !important;
    display: none;
    font-weight: 400;
    margin-bottom: -5px;
    color: rgba(25, 43, 57, 0.7);
}

.vacancy-modal-body .form-group input {
    font-family: 'Montserrat', sans-serif !important;
    width: 100%;
    height: 45px;
    padding: 5px 0 10px;
    border: 1px rgba(25, 43, 57, 0.5) solid;
    border-width: 0 0 1px;
    border-radius: 0;
    font-size: 16px;
    box-sizing: border-box;
    background-color: #fff;
    color: #000;
    font-family: inherit;
}

.vacancy-modal-body .form-group input::placeholder {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 400;
    color: rgba(25, 43, 57, 0.7);
    font-size: 16px;
}

.vacancy-modal-body .form-group input:focus {
    outline: none;
    background-color: #fff;
}

.phone-input-wrapper {
    position: relative;
}

.phone-prefix {
    font-family: 'Montserrat', sans-serif;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(25, 43, 57, 0.7);
    font-size: 16px;
    pointer-events: none;
    display: none;
}

/* .phone-input {
    padding-left: 60px !important;
} */

.form-actions {
    margin-top: 40px;
}

.vacancy-btn-primary {
    font-family: 'Montserrat', sans-serif;
    background: #f4a261;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    transition: background-color 0.3s ease;
}

.vacancy-btn-primary:hover {
    background: rgb(233, 142, 103);
}

.vacancy-btn-secondary {
    display: none;
}

.vacancy-loading {
    opacity: 0.6;
    pointer-events: none;
}

.vacancy-success {
    color: #00a32a;
    background: #f0f6fc;
    border: 1px solid #00a32a;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.vacancy-error {
    color: rgb(233, 142, 103);
    background: #fcf2f3;
    border: 1px solid rgb(233, 142, 103);
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
} 


/* General styles for vacancy page */
.single-vacancy-container {
    background: transparent;
    color: white;
    padding: 30px 16px;
    font-family: 'Montserrat', sans-serif;
    box-shadow: none !important;
}

/* Breadcrumbs */
.vacancy-breadcrumbs {
    font-size: 14px;
    color: #bdc3c7;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.vacancy-breadcrumbs .current {
    color: rgba(247, 150, 109, 1);
}

/* Main content - two-column structure */
.vacancy-main-content {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.vacancy-left-column {
    flex: 1;
    width: 100%;
    min-width: 480px;
    max-width: 480px;
}

@media (max-width: 919px) {
    .vacancy-left-column {
        width: 50%;
        min-width: 50%;
        max-width: 50%;
    }
}

@media (max-width: 619px) {
    .vacancy-left-column {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
}

.vacancy-right-column {
    flex: 2;
}


.vacancy-tags {
    display: flex;
    /* flex-direction: column; */
    gap: 10px;
}

@media (max-width: 767px) {
    .vacancies-list .vacancy-tags {
        display: none;
    }
}

.tag {
    background: #f39c12;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    text-align: center;
    font-weight: bold;
}

/* Title */
.vacancy-main-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 40px !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
    color: white !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

@media (max-width: 1023px) {
    .vacancy-main-title {
        font-size: 32px !important;
    }
}

@media (max-width: 919px) {
    .vacancy-main-title {
        font-size: 24px !important;
    }
}

/* Information icons */
.vacancy-info-icons {
    margin-bottom: 20px;
}

.info-icon-item {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 16px;
    font-size: 20px;
    padding-left: 36px;
    position: relative;
    line-height: 1.2;
}

@media (max-width: 919px) {
    .info-icon-item {
        font-size: 14px !important;
        margin-bottom: 8px;
    }
}

.info-icon-item svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
}

@media (max-width: 919px) {
    .info-icon-item svg {
        width: 16px;
        height: 16px;
        min-width: 16px;
    }
}

.icon-location:before { content: "📍"; }
.icon-gender:before { content: "👤"; }
.icon-type:before { content: "⚙️"; }
.icon-category:before { content: "📍"; }

/* Work schedule */
.vacancy-schedule {
    margin-bottom: 14px;
}

.schedule-item {
    font-family: 'Montserrat', sans-serif !important;
    display: inline-block;
    background: rgba(247, 150, 109, 0.1);
    color: rgba(247, 150, 109, 1);
    padding: 8px 16px;
    margin-right: 24px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 16px;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 919px) {
    .schedule-item {
        font-size: 14px !important;
    }
}

@media (max-width: 767px) {
    .schedule-item {
        font-size: 12px !important;
    }
}

.vacancy-page-pseudo-btn {
    background: rgb(233, 142, 103) !important;
    width: 100%;
    border-radius: 4px !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
    padding: 16px !important;
    cursor: default !important;
    text-align: center !important;
}

@media (max-width: 919px) {
    .vacancy-page-pseudo-btn {
        font-size: 14px !important;
    }
}

/* Vacancy description */
.vacancy-description-section {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 24px;
}

@media (max-width: 767px) {
    .vacancy-description-section {
        padding: 16px !important;
    }
}

.vacancy-description-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 24px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    color: white !important;
}

.vacancy-description-header .description-arrow {
    display: none;
}

.vacancy-description-text {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    color: #ecf0f1 !important;
    margin: 24px 0 !important;
}

@media (max-width: 919px) {
    .vacancy-description-header {
        font-size: 18px !important;
    }
}

@media (max-width: 768px) {
    .vacancy-description-header {
        cursor: pointer;
        font-size: 16px !important;
    }

    .vacancy-description-section .vacancy-description-text {
        display: none;
        font-size: 13px !important;
    }
    
    .vacancy-description-section .vacancy-description-text.show-description {
        display: block;
    }

    .vacancy-description-header .description-arrow {
        display: inline-block;
        transform: rotate(180deg);
        transition: transform 0.2s ease;
    }

    .vacancy-description-header.active .description-arrow {
        transform: rotate(0deg);
    }
}

/* Requirements */
.vacancy-requirements-section {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.requirements-left,
.requirements-right {
    flex: 1;
}

.vacancy-requirements-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: white;
}

.vacancy-modal-header h3 {
    font-family: 'Montserrat', sans-serif !important;
    margin: 0 !important;
    color: rgba(25, 43, 57, 1) !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: -0.6px !important;
}

.vacancy-requirements-section ul {
    list-style: none;
    padding: 0;
}

.vacancy-requirements-section li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    color: #ecf0f1;
    line-height: 1.5;
}

.vacancy-requirements-section li:before {
    content: "•";
    color: #f39c12;
    position: absolute;
    left: 0;
    font-size: 20px;
}

/* Application form */
.vacancy-apply-section {
    background-color: #fff;
    margin: 0;
    padding: 0;
    border-radius: 4px;
    width: 90%;
    max-width: 580px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    max-height: 90vh;
    overflow-y: auto;
}

.vacancy-apply-section h3 {
    font-size: 22px;
    margin-bottom: 30px;
    color: #2c3e50;
}

.vacancy-apply-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #f39c12;
}

.apply-submit-btn {
    background: #f39c12;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.apply-submit-btn:hover {
    background: #e67e22;
}

/* Map */
.vacancy-map-section {
    margin-bottom: 40px;
}

.vacancy-map-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: white;
}

.vacancy-map-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 24px;
    text-align: left;
    border-radius: 8px;
    color: #bdc3c7;
}

.vacancy-map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 8px;
}

.vacancy-map-container h3 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 24px !important;
    margin: 0 0 20px !important;
    color: white !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
}

.vacancy-map-container p {
    margin: 0;
    padding: 20px;
}

@media (max-width: 619px) {
    .vacancy-main-content {
        flex-direction: column;
        gap: 20px;
    }
}

/* Responsiveness */
@media (max-width: 800px) {
    
    .vacancy-requirements-section {
        flex-direction: column;
        gap: 20px;
    }
    
    .single-vacancy-container {
        padding: 20px 16px;
        margin: 10px 0 0;
    }
}

.requirements-right .vacancy-apply-section {
    width: 100%;
    max-width: none;
    margin-bottom: 40px;    
}

/* Styles for messages in application form */
.vacancy-application-message {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.3s ease-in-out;
}

.vacancy-application-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.vacancy-application-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.vacancy-application-message.success::before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    font-size: 16px;
}

.vacancy-application-message.error::before {
    content: "✗";
    color: #dc3545;
    font-weight: bold;
    font-size: 16px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-select {
  position: relative;
  width: 240px;
  font-family: inherit;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
}

@media (max-width: 768px) {
    .custom-select {
        width: 100%;
    }
}

.custom-select__selected {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-select__selected .filter-arrow {
  display: inline-flex;
  align-items: center;
  margin-left: 12px;
  transform: rotate(180deg);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}

.custom-select__selected .filter-arrow.open {
  transform: rotate(0);
}

.custom-select__selected {
  border: 1px solid #fff;
  border-width: 0 0 1px;
  padding: 12px 16px;
  border-radius: 0;
  color: #fff;
  transition: border 0.2s;
  min-height: 20px;
  user-select: none;
}

.custom-select__selected.active,
.custom-select__selected:focus {
  border-color: #fff;
}

.custom-select__dropdown {
  display: none;
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: #30414D;
  border: 1px solid #f7956d;
  border-width: 0 0 2px;
  border-radius: 0;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  max-height: 220px;
  overflow-y: auto;
}

.custom-select__option {
  color: #fff;
  padding: 12px 16px;
  transition: background 0.2s;
  cursor: pointer;
}

.custom-select__option:hover,
.custom-select__option.selected {
  background: #f7956d;
  color: #fff;
}

.custom-select.open .custom-select__dropdown {
  display: block;
}

.custom-select__option:not(:last-child) {
  border-bottom: 1px solid #f3e3d8;
}

.custom-select__text {
    white-space: nowrap;
}

/* .vacancy-page-content-wrapper {
    padding: 0 16px;
} */

@media (max-width: 860px) {
    .vacancies-container .vacancies-sidebar {
        display: none;
    }
}

.vacancies-sidebar-footer {
    display: none;
    position: fixed;
    background: #192b39;
    top: 0;
    left: 0;
    width: 100svw;
    flex-direction: column;
    z-index: 99999;
    height: 100svh;
}
@media (min-width: 860px) {
    .vacancies-sidebar-footer {
        display: none !important;
    }
}
.vacancies-sidebar-footer.active {
    display: flex;
    flex-direction: column;
}
.vacancies-sidebar-footer .filter-button-wrapper {
    padding: 16px;
    max-width: 482px;
    margin: 0 auto;
    width: 100%;
}
.vacancies-sidebar-footer .vacancies-sidebar {
    max-height: 80svh;
    flex-grow: 1;
    order: 0;
    max-width: 450px;
    margin: 0 auto;
}
.vacancies-sidebar-footer .filters-scrollable-container {
    max-height: 100%;
}
.close-filtration.top-close {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #fff;
    gap: 24px;
    text-transform: uppercase;
    cursor: pointer;
}
.close-filtration.botton-close {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    background: rgb(247, 150, 109);
    border: 1px rgb(247, 150, 109) solid;
    color: #fff;
    border-radius: 0;
    font-size: 16px;
    line-height: 1;
    padding: 16px;
    width: 100%;
    min-width: 265px;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
}
.close-filtration.botton-close:hover {
    background: rgb(233, 142, 103);
    border-color: rgb(233, 142, 103);
    text-decoration: none;
    color: white;
}

.vacancy-recommendations-section h3 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 26px !important;
    margin-bottom: 40px !important;
    color: white !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
}

@media screen and (max-width: 768px) {
    .vacancy-recommendations-section h3 {
        font-size: 16px !important;
        margin-bottom: 24px !important;
    }
}