/* ------------------------------------------SERVICES PAGE SPECIFIC STYLES------------------------------------------ */

/* General Section Styling */
.service-section {
    padding: 40px 0;
    margin-bottom: 20px;
    /* border-bottom: 1px solid #eee; */
}

.service-section:last-child {
    border-bottom: none;
}

.section-heading {
    text-align: center;
    font-size: var(--font-size-h2);
    color: var(--color-secondary-light);
    margin-bottom: 40px;
    position: relative;
    font-weight: 600;
}

.section-heading::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--color-accent);
    margin: 10px auto 0;
}

.section-description {
    font-size: var(--font-size-lg);
    line-height: 1.6;
    color: #555;
}

/* Banner Styling */
.services-banner {
    /* Uses placeholder image pathing for consistency */
    background-image: url('../images/emergency-photo.webp'); 
    background-size: cover;
    background-position: center;
    height: 40vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--color-text-light);
}

.services-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 1;
}

.services-banner h1 {
    font-size: var(--font-size-h1);
    font-weight: 700;
    z-index: 2;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
}


/* Mission & Experience Layout */
.section-row {
    display: flex;
    gap: 40px;
    align-items: center;
}

.section-row .mission-text,
.section-row .experiences-text {
    flex: 1;
    padding-right: 20px;
}

.section-row .mission-image,
.section-row .experience-image {
    flex: 1;
    max-width: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.section-row img {
    width: 100%;
    height: auto;
    display: block;
}

/* Specific styling to reverse the image/text order in the second section */
.reverse-order {
    flex-direction: row-reverse;
}

.reverse-order .experiences-text {
    padding-left: 20px;
    padding-right: 0;
}

/* Core Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    background-color: #fef5f7; /* Light pink/white background */
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #ffedf1;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.value-card h4 {
    font-size: var(--font-size-xl);
    color: var(--color-primary-dark);
    margin: 10px 0;
    font-weight: 700;
}

.card-icon {
    font-size: 36px;
    color: var(--color-accent); /* Highlight color */
    margin-bottom: 10px;
}

.card-icon-inline {
    color: var(--color-secondary-light);
    margin-right: 8px;
}

/* Responsive Overrides */
@media (max-width: 900px) {
    .section-row {
        flex-direction: column;
        gap: 30px;
    }

    .section-row .mission-image,
    .section-row .experience-image {
        max-width: 100%;
        order: 1; /* Move image to top on mobile */
    }

    .section-row .mission-text,
    .section-row .experiences-text {
        padding-right: 0;
        padding-left: 0;
        order: 2; /* Move text below image on mobile */
    }

    .reverse-order {
        flex-direction: column; /* Overrides row-reverse for column flow */
    }
}

@media (max-width: 600px) {
    .services-banner {
        height: 30vh;
    }
    .services-banner h1 {
        font-size: 2em;
    }
    .values-grid {
        grid-template-columns: 1fr;
    }
}