/* 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: 'Segoe UI', Tahoma, Geneva, Verdana, 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);
}

/* Show as Row */
.location-row {
    font-size: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.location-row a {
    color: var(--primary-color);
    border-radius: 20px;
    border: 2px solid var(--primary-color);
    padding: 2px 14px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s ease-in-out;
}

.location-row a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}


.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: 150px;
    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;
}

/* Counter Container */
.counter-container {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 40px 20px;
    background-color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Job Counter */
.job-counter,
.vacancy-counter,
.company-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--bg-color);
    font-size: 3rem;
    font-weight: bold;
}

/* Job counter */
.job-counter span {
    font-size: 1.5rem;
    color: #ffffff;
    margin-left: 10px;
}

/* Company Counter */
.company-counter span {
    font-size: 1.5rem;
    color: #ffffff;
    margin-left: 10px;
}

/* vacancy counter */
.vacancy-counter span {
    font-size: 1.5rem;
    color: #ffffff;
    margin-left: 10px;
}

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

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

.search-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 1rem;
    /* Further reduced padding to make height smaller */
    background: linear-gradient(rgba(169, 158, 158, 0.5), rgba(209, 214, 169, 0.5)), url('https://img.freepik.com/free-vector/abstract-shiny-lines-white-gray-minimal-background-design_84443-2789.jpg');
    /* Image with dark overlay */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    /* Ensure text is readable on the gradient */
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.1);
    /* Inner shadow for depth */
}

.search-container {
    width: 85%;
    /* Slightly wider */
    max-width: 800px;
    /* Max width for larger screens */
    background: rgba(255, 255, 255, 0.08);
    /* More transparent white for glassmorphism */
    backdrop-filter: blur(10px);
    /* Frosted glass effect */
    -webkit-backdrop-filter: blur(10px);
    /* For Safari support */
    padding: 2.5rem;
    /* Increased padding */
    border-radius: 30px;
    /* More rounded corners */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    /* Glassmorphism shadow */
    border: 1px solid rgba(255, 255, 255, 0.18);
    /* Subtle border for glass effect */
    text-align: center;
    /* Center align text */
}

.search-container h1 {
    font-size: 2.2rem;
    /* Smaller font size */
    font-weight: 800;
    /* Bolder */
    color: var(--bg-color);
    /* Revert to primary color for contrast */
    margin-bottom: 0.8rem;
    /* More space below */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    /* Subtle text shadow */
}

.search-container p {
    font-size: 1rem;
    /* Slightly smaller font size */
    font-weight: 500;
    color: var(--dark-color);
    /* Revert to dark color for contrast */
    line-height: 1.6;
    /* Improved readability */
    margin-bottom: 2rem;
    /* More space below */
}

.search-bar {
    display: flex;
    align-items: center;
    background: white;
    /* White background for search bar */
    border-radius: 15px;
    /* More rounded */
    padding: 0.6rem;
    /* Slightly more padding */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    /* Subtle shadow */
}

.search-bar input {
    flex-grow: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    /* Reduced font size */
    padding: 0.5rem;
}

.search-bar button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    /* More rounded */
    padding: 0.9rem 1.8rem;
    /* Increased padding */
    font-size: 1rem;
    /* Reduced font size */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    /* Added transform and box-shadow transitions */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    /* Button shadow */
}

.search-bar button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    /* Lift effect on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    /* Enhanced shadow on hover */
}

.search-bar button:hover {
    background: var(--secondary-color);
}

.search-bar button i {
    font-size: 1.2rem;
}


.how-it-works-section {
    background-color: var(--lightGreen);
    padding: 3rem 1rem;
    margin-bottom: 3rem;
    text-align: center;
    border-radius: 14px;
    box-shadow: 0 0 25px var(--highlight-shadow-color);
}

.how-it-works-section h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--primary-color);
    margin-bottom: 2.5rem;
    font-weight: 700;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.work-step-card {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.work-step-card .step-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.work-step-card h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--dark-color);
    margin-bottom: 0.8rem;
}

.work-step-card p {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: var(--text-color);
    line-height: 1.6;
}

/* Trusted Companies Section */
.trusted-companies-section {
    background-color: var(--bg-color);
    padding: 3rem 1rem;
    margin-bottom: 3rem;
    text-align: center;
    border-radius: 14px;
    box-shadow: 0 0 25px var(--highlight-shadow-color);
}

.trusted-companies-section h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--primary-color);
    margin-bottom: 2.5rem;
    font-weight: 700;
}

.logout-btn {
    background: red;
    color: #fff;
    cursor: pointer;
    font-size: 0.95rem;
}


.company-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.company-logos img {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.company-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Why Choose Us Section */
.why-choose-us-section {
    background-color: var(--bg-color);
    padding: 3rem 1rem;
    margin-bottom: 3rem;
    text-align: center;
    border-radius: 14px;
    box-shadow: 0 0 25px var(--highlight-shadow-color);
}

.why-choose-us-section h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--primary-color);
    margin-bottom: 2.5rem;
    font-weight: 700;
}

.choose-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.choose-us-item {
    background-color: var(--card-background-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.choose-us-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.choose-us-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.choose-us-item h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--dark-color);
    margin-bottom: 0.8rem;
}

.choose-us-item p {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: var(--text-color);
    line-height: 1.6;
}

/* Our Motive Section */
.our-motive-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 3rem 1rem;
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    border-radius: 14px;
    margin-bottom: 3rem;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
}

.motive-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: left;
}

.our-motive-section h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--text-color-light);
}

.our-motive-section p {
    font-size: clamp(1rem, 1.8vw, 1.1rem);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.motive-image {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    text-align: center;
}

.motive-image img {
    max-width: 100%;
    height: auto;
    border-radius: 25px;
    /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); */
}

.our-motive-section .cta-button {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 0.8rem 1.8rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid white;
}

.our-motive-section .cta-button:hover {
    background-color: var(--lightGreen);
    color: var(--primary-color);
    transform: translateY(-3px);
}



/* Responsive Adjustments */
@media (max-width: 1024px) {
    .main-content {
        margin: 3rem auto 1.5rem;
        padding: 0 1.5rem;
    }

    .highlight-jobs-section,
    .location-jobs-section {
        padding: 1.5rem 1rem 2rem;
        margin-bottom: 2.5rem;
    }

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

    .counter-container {
        padding: 35px 15px;
        gap: 15px;
    }

    .job-counter,
    .vacancy-counter,
    .company-counter {
        font-size: 2.5rem;
    }

    .job-counter span,
    .vacancy-counter span,
    .company-counter span {
        font-size: 1.3rem;
    }

    .search-container {
        width: 90%;
    }

    .search-container h1 {
        font-size: 2rem;
    }

    .search-container p {
        font-size: 1rem;
    }

    .search-bar input {
        font-size: 1rem;
    }

    .search-bar button {
        padding: 0.7rem 1.2rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        margin: 2.5rem auto 1rem;
        padding: 0 1rem;
    }

    .category-filter {
        gap: 8px;
        margin-bottom: 1.5rem;
    }

    .our-motive-section {
        flex-direction: column;
        text-align: center;
    }

    .motive-content {
        text-align: center;
    }

    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .highlight-jobs-section h2,
    .location-jobs-section h2 {
        font-size: clamp(1.6rem, 3.5vw, 2rem);
    }

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

    .location-card {
        height: 130px;
    }

    .location-overlay h3 {
        font-size: 1.3rem;
    }

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

    .counter-container {
        padding: 30px 10px;
        gap: 20px;
    }

    .job-counter,
    .vacancy-counter,
    .company-counter {
        font-size: 2rem;
    }

    .job-counter span,
    .vacancy-counter span,
    .company-counter span {
        font-size: 1.2rem;
    }

    .search-banner {
        padding: 3rem 1rem;
    }

    .search-container {
        width: 95%;
        padding: 1.5rem;
    }

    .search-container h1 {
        font-size: 1.8rem;
    }

    .search-container p {
        font-size: 0.9rem;
    }

    .search-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .search-bar input {
        width: 100%;
        text-align: center;
    }

    .search-bar button {
        width: 100%;
        justify-content: center;
    }

    .slider-btn {
        width: 32px;
        height: 32px;
        font-size: 22px;
    }
}

@media (max-width: 600px) {
    .main-content {
        margin: 2rem auto 0.8rem;
    }

    .highlight-jobs-section,
    .location-jobs-section {
        padding: 1.2rem 0.8rem 1.8rem;
        margin-bottom: 2rem;
    }

    .location-row {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .location-row a {
        font-size: 14px;
        padding: 1px 12px;
    }

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

    .location-card {
        height: 120px;
    }

    .counter-container {
        flex-direction: column;
        gap: 25px;
        padding: 25px 10px;
    }

    .job-counter,
    .vacancy-counter,
    .company-counter {
        font-size: 1.8rem;
    }

    .job-counter span,
    .vacancy-counter span,
    .company-counter span {
        font-size: 1.1rem;
    }

    .job-list {
        grid-template-columns: 1fr;
        padding: 0;
    }

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

@media (max-width: 480px) {
    .category-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .motive-content {
        padding: 0 20px;
    }

    .motive-image {
        display: none;
    }

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

    .location-grid {
        grid-template-columns: 1fr;
    }

    .location-card {
        height: 140px;
    }

    .slider-btn {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    #prevSlideBtn {
        left: 5px;
    }

    #nextSlideBtn {
        right: 5px;
    }
}

@media (max-width: 360px) {
    .main-content {
        padding: 0 0.8rem;
    }

    .category-filter {
        gap: 6px;
    }

    .category-btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
    }

    .highlight-jobs-section,
    .location-jobs-section {
        padding: 1rem 0.5rem 1.5rem;
    }

    .location-row {
        font-size: 16px;
    }

    .location-row a {
        font-size: 13px;
        padding: 1px 10px;
    }

    .location-card {
        height: 120px;
    }

    .location-overlay h3 {
        font-size: 1.2rem;
    }

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

    .counter-container {
        padding: 20px 8px;
        gap: 20px;
    }

    .job-counter,
    .vacancy-counter,
    .company-counter {
        font-size: 1.5rem;
    }

    .job-counter span,
    .vacancy-counter span,
    .company-counter span {
        font-size: 1rem;
    }

    .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;
    }
}

/* For Job Seekers and Employers Section */
.for-section {
    background-color: var(--secondary-color);
    padding: 3rem 1rem;
    margin-bottom: 3rem;
    text-align: center;
    border-radius: 14px;
    box-shadow: 0 0 25px var(--highlight-shadow-color);
}

.for-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.for-item {
    flex: 1;
    min-width: 300px;
    /* background-color: var(--primary-color); */
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.for-item h2 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    color: white;
    margin-bottom: 1rem;
    font-weight: 700;
}

.for-item p {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: white;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.for-item .cta-button {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    /* To allow padding and margin to work correctly */
    border: 2px solid white;
}

.for-item .cta-button:hover {
    background-color: var(--lightGreen);
    color: var(--primary-color);

}

/* Responsive adjustments for the new section */
@media (max-width: 768px) {
    .for-container {
        flex-direction: column;
        align-items: center;
    }

    .for-item {
        min-width: unset;
        width: 70%;
        min-height: 150px;
    }
}

@media (max-width: 480px) {
    .for-item {
        min-width: unset;
        width: 80%;
        margin: 0 auto;
        min-height: 100px;
    }

    .for-item h2 {
        font-size: 1.6rem;
    }

    .for-item p {
        font-size: 0.9rem;
    }

    .for-item .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .our-motive-section .cta-button,
    .our-motive-section p,
    .our-motive-section h2 {
        margin-right: 20px;
    }
}

.for-icon {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}