/* Reset and base styles */
html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #f8f9fa;
}

/* Navigation Bar */
nav {
    background-color: #007bff;
    color: white;
    padding: 10px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap; /* To handle multiple lines */
}

nav .logo strong {
    font-size: 24px;
}

nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover,
nav ul li a:focus {
    background-color: #0056b3;
}

/* Slider */
.slider .slides-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider .slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider .slide img {
    width: 100%;
    height: auto;
    vertical-align: middle;
}

/* Search Form */
.search-container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 80%;
    max-width: 600px;
    margin: 20px auto; /* Center horizontally and space out vertically */
}

.search-container input, 
.search-container button {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.search-container button {
    color: white;
    background-color: #007bff;
    cursor: pointer;
}

.search-container button:hover {
    background-color: #0056b3;
}

/* Featured Jobs */
.featured-jobs {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    padding: 20px;
    margin: 20px auto;
    max-width: 1200px;
}

.featured-jobs .job {
    width: calc(33.333% - 20px);
    background-color: white;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.featured-jobs .job h3, 
.featured-jobs .job p {
    margin: 10px 0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .featured-jobs .job {
        width: calc(50% - 20px); /* Adjust to 2 per line on tablets */
    }
}

@media screen and (max-width: 480px) {
    nav {
        flex-direction: column;
        align-items: center;
    }

    nav .logo {
        margin-bottom: 10px; /* Space below the logo */
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%; /* Take the full width of the container */
    }

    nav ul li {
        margin: 10px 0;
    }

    .search-container {
        margin-top: 10px; /* Space after the navigation */
        width: 90%; /* Slightly wider for smaller devices */
    }

    .featured-jobs .job {
        width: 100%; /* Full width for single column on mobiles */
    }
}

/* Footer */
footer {
    background-color: #007bff;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}
