/* CSS for benefit lists used in services */
.benefit-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.benefit-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-light);
    text-align: left;
}

.benefit-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--accent-gold);
    font-size: 0.8rem;
}

.page-header {
    background: linear-gradient(rgba(0, 35, 102, 0.8), rgba(0, 35, 102, 0.8)), url('../images/Service.jpeg');
    background-size: cover;
    background-position: center;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

/* Fallback */
.page-header {
    background-color: var(--primary-blue);
}

/* --- Service Category (The "Card" Container) --- */
.service-category {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 60px;
    border: 1px solid #eee;
    transition: var(--transition);
}

.service-category:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(212, 175, 55, 0.3);
}

.service-category h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    border-left: 5px solid var(--accent-gold);
    padding-left: 15px;
    color: var(--primary-blue);
}

p.category-desc {
    margin-bottom: 30px;
    color: var(--text-light);
    font-size: 1.05rem;
    padding-left: 20px;
    /* Align with text in h3 */
}

/* --- Services List (Inside the Card) --- */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Remove gap, use padding/border for separation */
    margin-top: 20px;
    border-top: 1px solid #eee;
}

.services-grid .service-card {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 30px 20px;
    border-bottom: 1px solid #eee;
    background: transparent;
    box-shadow: none;
    border-radius: 8px;
    /* For hover effect */
    transition: all 0.3s ease;
    text-align: left;
}

.services-grid .service-card:last-child {
    border-bottom: none;
}

.services-grid .service-card:hover {
    background-color: var(--bg-light);
    transform: translateX(10px);
}

.services-grid .service-card .service-icon {
    font-size: 2rem;
    color: var(--primary-blue);
    min-width: 60px;
    display: flex;
    justify-content: center;
    margin-bottom: 0;
}

.services-grid .service-card h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.services-grid .service-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- Business Locations Grid (Keep as Grid) --- */
.business-locations-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.business-locations-grid .feature-card {
    flex: 1 1 250px;
    max-width: 350px;
}

.feature-card.has-bg {
    background-size: cover;
    background-position: center;
    color: white !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 20px;
    text-align: left;
}

.feature-card.has-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8));
    z-index: -1;
}

.feature-card.has-bg h3 {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.feature-card.has-bg p {
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0;
    font-size: 0.9rem;
}

/* --- Responsive Styles --- */
@media (max-width: 768px) {
    .page-header {
        height: auto;
        padding: 80px 0;
    }

    .service-category {
        padding: 24px 15px;
        /* Reduce padding on mobile */
    }

    .service-category h3 {
        font-size: 1.5rem;
    }

    .services-grid .service-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px 15px;
        gap: 15px;
    }

    .services-grid .service-card:hover {
        transform: none;
        /* Disable shift on mobile */
    }

    .services-grid .service-card .service-icon {
        margin-bottom: 10px;
    }

    .business-locations-grid .feature-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}