/* Main Content */
.main-content {
    max-width: 1100px;
    margin: 4rem auto 2rem;
    padding: 0 1rem;
    user-select: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Arial', sans-serif;
    visibility: hidden;
}

/* Category Filter Bar */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 2rem;
}

.category-btn {
    background-color: rgba(255, 255, 255, 0.15);
    border: none;
    color: #000000;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 2px 5px rgba(65, 65, 65, 0.3);
    user-select: none;
    font-weight: 600;
}

.category-btn:hover {
    background-color: #000000;
    color: #ffffff;
    box-shadow: 0 0 10px #7f7f7f;
}

.category-btn.active {
    background-color: #000000;
    color: #ffffff;
}

/* Highlighted Jobs Section */
.highlight-jobs-section {
    background: var(--bg-color);
    padding: 1.8rem 1rem 2.4rem;
    border-radius: 14px;
    box-shadow: 0 0 25px var(--highlight-shadow-color);
    margin-bottom: 3rem;
}

.highlight-jobs-section h2 {
    margin-bottom: 1.4rem;
    text-align: center;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: var(--dark-color);
}

/* Slider Container */
.slider-container {
    position: relative;
    overflow: hidden;
}

/* Slider (flex scroll) */
.slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 10px;
    user-select: none;
    scroll-snap-type: x mandatory;
}

.slider::-webkit-scrollbar {
    display: none;
}

/* Latest Job Card Styles */
.job-list-section h2 {
    box-shadow: none;
    color: var(--dark-color);
    text-shadow: none;
}

/* Slider buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #3f3636;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 26px;
    color: var(--text-color-light);
    cursor: pointer;
    opacity: 0.85;
    box-shadow: 0 3px 8px var(--shadow-color);
    user-select: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    opacity: 1;
}

#prevSlideBtn {
    left: 10px;
    background-color: transparent;
}

#nextSlideBtn {
    right: 10px;
    background-color: transparent;
}

/* Location wise */

.location-jobs-section {
    background: var(--bg-color);
    padding: 1.8rem 1.5rem 2.4rem;
    border-radius: 14px;
    box-shadow: 0 0 25px var(--highlight-shadow-color);
    margin-bottom: 3rem;
}

.location-jobs-section h2 {
    margin-bottom: 1.4rem;
    text-align: center;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: var(--dark-color);
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.location-card {
    position: relative;
    height: 150;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 10px var(--primary-color);
}

.location-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.location-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
}

.location-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.location-overlay p {
    font-size: 1rem;
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .job-card {
        flex: 0 0 80vw;
    }
}

.job-list .job-card .card-icon {
    width: 26px;
    height: 26px;
    color: #000000;
}

@media (max-width: 480px) {
    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .navbar-logo {
        font-size: 1.3rem;
    }

    .job-list .job-card .card-icon {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 600px) {
    .job-list {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .job-list .job-card {
        width: 90%;
        margin: 0 auto;
    }
}

@media (max-width: 360px) {
    .job-list .job-card {
        width: 95%;
        padding: 16px;
    }

    .job-list .job-card h3 {
        font-size: 1.05rem;
    }

    .job-list .job-card .card-icon {
        width: 22px;
        height: 22px;
    }

    .job-list .job-card p {
        font-size: 0.8rem;
    }
}