/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

/* css/custom.css */

/* General Styles */
body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.section-title {
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #007bff; /* Bootstrap primary color */
}

.section-title::after {
    content: "";
    position: absolute;
    width: 50px;
    height: 4px;
    background-color: #0d6efd; /* Bootstrap primary color */
    left: 50%;
    bottom: 0;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    border-radius: 2px;
}


/* Footer Styles */
footer {
    background-color: #343a40;
    color: #fff;
    padding: 2rem 0;
}

footer h5 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

footer ul {
    padding-left: 0;
    list-style: none;
}

footer ul li {
    margin-bottom: 10px;
}

footer ul li a {
    -webkit-transition: color 0.3s ease;
    -o-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: #0d6efd;
}

footer form input[type="email"] {
    border-radius: 10px;
}

footer form button {
    border-radius: 25px;
}

footer form .form-control {
    border-radius: 10px;
}

footer form button {
    border-radius: 25px;
}

/* Utility Classes */
.mt-5 {
    margin-top: 3rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.d-flex {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
}

.align-items-center {
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
}

.justify-content-center {
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
}

.text-center {
    text-align: center !important;
}

.text-white {
    color: #fff !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.bg-dark {
    background-color: #343a40 !important;
}

.bg-primary {
    background-color: #007bff !important;
}

.bg-secondary {
    background-color: #6c757d !important;
}

.bg-success {
    background-color: #28a745 !important;
}

/* Responsive Images */
img.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Table Styles */
.table-dark th {
    background-color: #343a40;
    color: #fff;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Form Styles */
.form-control {
    border-radius: 0.25rem;
}

.form-control:focus {
    -webkit-box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Fleet Image Container */
.fleet-image-container {
    width: 100%;
    height: 200px; /* Fixed height for uniformity */
    overflow: hidden;
    position: relative;
}

.fleet-image {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover; /* Ensures the image covers the container without distortion */
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease; /* Smooth transition for hover effects */
}

/* Fleet Card Hover Animation */
.fleet-card:hover .fleet-image {
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05); /* Slightly enlarges the image on hover */
}

.fleet-card:hover {
    -webkit-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Adds a deeper shadow on hover */
    -webkit-transform: translateY(-5px);
    -ms-transform: translateY(-5px);
    transform: translateY(-5px); /* Slightly lifts the card */
}

/* Ensure smooth transitions */
.fleet-card {
    -webkit-transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
    transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
    -o-transition: transform 0.3s ease, box-shadow 0.3s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease, -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
}

/* Optional: Add a dark overlay with fade-in effect on hover */
.fleet-card a {
    position: relative;
    display: block;
    overflow: hidden;
}

.fleet-card a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    -webkit-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}

.fleet-card:hover a::after {
    opacity: 1;
}

/* Ensure text remains readable above the overlay */
.fleet-card a .card-body {
    position: relative;
    z-index: 2;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .btn {
        width: auto; /* Allow buttons to adjust width */
    }
}

@media (max-width: 576px) {
    .btn-lg {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .btn {
        width: 100%; /* Ensure buttons take full width when stacked */
    }
}

/* Additional Responsive Adjustments */
@media (max-width: 992px) {
    /* Add any additional responsive styles here if needed */
}
