/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    margin-top: 10px;
}

/* Make the navbar sticky and apply a gradient background */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(120deg, #0062cc, #01254c);  /* Gradient background */
    box-shadow: 0 4px 6px rgba(23, 18, 101, 0.726);  /* Floating effect with shadow */
}


/* Optional: Styling for the navbar brand */
.navbar .navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: white !important;
}

/* Optional: Styling for the buttons */
.navbar .btn {
    border-radius: 25px;
    font-size: 1rem;
}

/* Hover effect on buttons */
.navbar .btn:hover {
    background-color: #005bb5;
}

/* Hero Section */
.container.text-center.mt-4 {
    max-width: 100%;
    margin-top: 0px;
    padding: 70px 0;
    background: linear-gradient(120deg, #0063cca2, #004085c9), url('banner.jpg'); /* Adding background image with gradient */
    background-size: cover; /* Ensures the image covers the entire section */
    background-position: center; /* Centers the image */
    color: white;
    border-radius: 0px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.container.text-center.mt-4 h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 30px;
}

.container.text-center.mt-4 p {
    font-size: 1.3rem;
    margin-top: 15px;
    font-weight: 300;
}

/* Filter Form */
.container.mt-4 form {
    background-color: #ffffff;
    max-width: 100%;  /* Ensures the form doesn't exceed the container's width */
    width: 100%; /* Takes up full available width */
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Reduced shadow for a softer effect */
    margin-bottom: 40px;
    box-sizing: border-box; /* Ensures padding is included in the width calculation */
}

.container.mt-4 form .form-control {
    border-radius: 12px;
    border: 1px solid #ccc;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.container.mt-4 form .form-control:focus {
    border-color: #1f89e000;
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.2);
}

.container.mt-4 form .btn {
    border-radius: 30px;
    padding: 12px 30px;
    font-size: 1.1rem;
    background: linear-gradient(120deg, #ff7f50, #ff6347);  /* Brighter orange gradient */
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
}

.container.mt-4 form .btn:hover {
    background: linear-gradient(120deg, #ff6347, #ff4500);  /* Darker orange gradient */
}

/* Job Listings */
.container.mt-4 h3.mb-3 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
}

/* Card Layout for Jobs */
.card {
    border: none;
    border-radius: 5px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

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

.card-body {
    padding: 25px;
    position: relative;
}

.card-title {
    font-size: 1.7rem;
    font-weight: bold;
    color: #1f8ae0;
    margin-bottom: 15px;
}

.card-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    font-weight: 400;
}

.card-text {
    font-size: 1rem;
    margin-bottom: 15px;
}

.card-text strong {
    font-weight: bold;
    color: #333;
}

.card a.btn {
    border-radius: 18px;
    padding: 7px 10px;
    font-size: 0.7rem;
    background: linear-gradient(120deg, #d28367, #eb2c0a);  /* Brighter orange gradient */
    color: white;
    border:0px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgb(0, 0, 0); 
}

.card a.btn:hover {
    background: linear-gradient(120deg, #db6c58, #ff4500);  /* Darker orange gradient */
}

.card-footer {
    padding: 10px 0;
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
}

/* Footer */
footer {
    background-color: #f8f9fa;
    padding: 25px 0;
    font-size: 0.95rem;
    color: #6c757d;
    border-top: 2px solid #ccc;
}

footer p {
    margin: 0;
}

/* Carousel Style */
.carousel {
    margin-top: 62px; /* Adds spacing between carousel and other content */
}

.carousel-inner img {
    height: 500px; /* Adjusts the image height */
    object-fit: cover; /* Ensures images cover the whole area without distortion */
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5); /* Adds a semi-transparent dark background */
    color: white;
}

.carousel-caption h5 {
    font-size: 2rem;
    font-weight: bold;
}

.carousel-caption p {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container.text-center.mt-4 h1 {
        font-size: 3rem;
        max-width: 100%;
    }
    .container.text-center.mt-4 p {
        font-size: 1.2rem;
    }
    .card-title {
        font-size: 1.5rem;
    }
    .card-subtitle {
        font-size: 1rem;
    }
    .card-body {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .navbar .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar .btn {
        font-size: 0.9rem;
    }

    .carousel {
        margin-top: 0px; /* Adds spacing between carousel and other content */
    }
    .carousel-inner img {
        height: 300px;
    }

    .container.text-center.mt-4 h1 {
        font-size: 2.5rem;
    }

    .container.text-center.mt-4 p {
        font-size: 1.1rem;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-body {
        padding: 10px;
    }

    .container.mt-4 form {
        padding: 25px;
    }

    .card a.btn {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar .navbar-brand {
        font-size: 1rem;
    }

    .navbar .btn {
        font-size: 0.85rem;
    }

    .carousel {
        margin-top: 0px; /* Adds spacing between carousel and other content */
    }
    .carousel-inner img {
        height: 200px;
    }

    .container.text-center.mt-4 h1 {
        font-size: 2rem;
    }

    .container.text-center.mt-4 p {
        font-size: 1rem;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .card-body {
        padding: 8px;
    }

    .container.mt-4 form {
        padding: 20px;
    }

    .card a.btn {
        font-size: 0.9rem;
    }
}
