/* Truck & Trailer Services Page Styles */

.truck-trailer-services-page .hero {
    position: relative;
    background-image: url('../images/services-001\ \(1\).jpg');
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    font-family: Arial, sans-serif;
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.3);
}

.hero h1 {
    font-size: 48px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: 22px;
    margin-top: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Center all h2 and add styles */
.truck-trailer-services-page h2 {
    font-size: 36px;
    color: #333;
    text-align: center;
    margin: 0 auto 20px;
    border-bottom: 3px solid #D50505;
    display: inline-block;
    padding-bottom: 10px;
    transition: color 0.3s ease;
}

.truck-trailer-services-page h2:hover {
    color: #D50505;
}

/* Section Styling */
.service-overview, .services-offered, .customer-benefits {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
    transition: background-color 0.3s ease;
}

.service-overview:hover, .services-offered:hover, .customer-benefits:hover {
    background-color: #e9e9e9;
}

.service-overview p, .services-offered p, .customer-benefits p {
    font-size: 18px;
    color: #555;
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.6;
    transition: transform 0.3s ease, color 0.3s ease;
}

.service-overview p:hover, .services-offered p:hover, .customer-benefits p:hover {
    transform: scale(1.05);
    color: #333;
}

/* Service Item Styling */
.service-item {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.service-item h3 {
    font-size: 28px;
    color: #D50505;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: left;
}

/* Customer Benefits List */
.customer-benefits ul {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.customer-benefits li {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.customer-benefits li:before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #D50505;
    font-weight: bold;
    transition: color 0.3s ease;
}

.customer-benefits li:hover {
    color: #D50505;
    transform: translateX(10px);
}

.customer-benefits li:hover:before {
    color: #333;
}

/* Button Styling */
.navigate-btn {
    background-color: #D50505;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.navigate-btn:hover {
    background-color: #333;
    transform: scale(1.05);
}

/* Responsive Styling */
@media (max-width: 768px) {
    .hero {
        height: 50vh;
        padding: 20px;
    }

    .service-overview, .services-offered, .customer-benefits {
        padding: 40px 10px;
    }

    .service-item, .customer-benefits li {
        text-align: center;
    }

    .services-offered .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .services-offered .service-item {
        width: 100%;
        max-width: 90%;
        text-align: center;
    }
}



/* Enhanced Service Item Styling */
.service-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px 25px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1); /* Softer shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 80%; /* Limits width for better balance */
    margin: 20px auto; /* Centers each item */
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
}

.service-item h3 {
    font-size: 26px;
    color: #D50505;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.service-item p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    text-align: left;
    padding-bottom: 15px;
}

/* Enhanced Button Style */
.navigate-btn {
    background-color: #D50505;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
    align-self: center; /* Centers button */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Button shadow */
    margin-top: 20px;
}

.navigate-btn:hover {
    background-color: #333;
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .service-item {
        max-width: 90%;
        padding: 20px;
    }
}
