﻿.submit-button {
    display: inline-block;
    background-color: #2b659f;
    color: white;
    padding: 8px 15px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
    white-space: nowrap;
}

.submit-button:hover {
    background-color: #1f589d;
}

.description-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination li {
    display: inline-block;
    margin: 0 5px;
}

.pagination a, .pagination span {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #2b659f;
    transition: background 0.3s ease;
}

.pagination a:hover, .pagination .active span {
    background: #2b659f;
    color: white;
}

.career-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    height: auto;
}

.career-card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.career-card .post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.career-card .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.career-card .post-text {
    text-align: center;
    color: #ffffff;
    margin-top: 10px;
    font-size: 14px;
}

.career-card .post-text h4 {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.badge-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 15px;
    gap: 8px;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: bold;
    color: white;
    border-radius: 7px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.badge-category {
    background-color: #eee814;
}

.badge-experience {
    background-color: #1f589d;
}

.button-group {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.apply-button {
    background-color: #2b659f;
    color: white;
    padding: 7px 12px;
    border-radius: 10px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apply-button:hover {
    background-color: #1f589d;
    transform: scale(1.05);
}

.badge-strong {
    background-color: #2b659f;
}

.badge-still {
    background-color: #9b3f3f;
}

.badge-light {
    background-color: #2d7f2d;
}

.badge-default {
    background-color: #555;
}

/*SEARCH FILTER*/

.search-form {
    margin: 18px 0 8px;
    padding: 10px;
    border-radius: 16px;
    backdrop-filter: blur(6px);
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    padding: 10px 12px 10px 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.search-icon {
    position: absolute;
    left: 12px;
    opacity: .8;
    display: inline-flex;
}

.search-input {
    flex: 1 1 auto;
    background: transparent;
    border: 0;
    outline: none;
    color: #fff;
    font-size: 16px;
    min-width: 120px;
}

.search-btn {
    border: 0;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(90deg,#7a5cff,#7f52ff,#9747ff);
    color: #fff;
    transition: transform .05s ease-in-out, opacity .2s;
}

.search-btn:active {
    transform: translateY(1px);
}

.clear-btn {
    display: none;
    border: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 20px;
    line-height: 32px;
    text-align: center;
}

.clear-btn:hover {
    background: rgba(255,255,255,0.25);
}

.reset-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    font-size: 14px;
    text-decoration: none;
}

.reset-chip .chip-x {
    opacity: .8;
}

.reset-chip:hover {
    background: rgba(255,255,255,0.18);
}

/* Search Bar */

.search-results {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    z-index: 2000;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 6px;
    padding: 8px;
    animation: fadeIn 0.2s ease-in-out;
}

.search-results .result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
}

.search-results .result-item:hover {
    background: rgba(255, 255, 255, 0.25);
}

.search-results .result-item img {
    width: 50px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 12px;
}

.search-results {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    z-index: 2000;
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
    animation: fadeIn 0.2s ease-in-out;
}

.search-results .result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
}

.search-results .result-item:hover {
    background: rgba(255, 255, 255, 0.25);
}

.search-results .result-item img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 12px;
}

@media (max-width: 768px) {
    .search-results {
        left: 10px !important;
        right: 10px;
        width: calc(100% - 20px) !important;
        max-height: 60vh;
        padding: 4px;
    }

    .search-results .result-item {
        font-size: 13px;
        padding: 10px;
        margin-bottom: 8px;
        border-radius: 10px;
        background: rgba(255,255,255,0.08);
    }

    .search-results .result-item:last-child {
        margin-bottom: 0;
    }

    .search-results .result-item img {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

    .search-results .result-item strong {
        display: block;
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 1px;
        line-height: 1.3;
    }

    .search-results .result-item small {
        font-size: 12px;
        opacity: 0.85;
    }
}

@media (max-width: 768px) {
    .search-results .result-item img {
        display: none !important;
    }

    .search-results .result-item {
        padding: 10px 12px;
        font-size: 14px;
    }

    .search-results .result-item strong {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .search-results .result-item small {
        font-size: 12px;
        opacity: 0.85;
    }
}
