/* --- SERVICES PAGE HERO --- */
.services-hero {
    /* White on left (0%) to Soft Blue on right (100%) */
    background: linear-gradient(to right, #ffffff 40%, #e6f2ff 100%);
    padding: 80px 0;
    display: flex;
    align-items: center;
}

/* Reuse the container layout from Home Page, but ensure text size matches Services image */
.services-hero .hero-text h1 {
    color: #003366;
    font-size: 48px; /* Slightly larger headline */
    line-height: 1.2;
    margin-bottom: 20px;
}

.services-hero .hero-text p {
    font-size: 20px;
    color: #555;
    margin-bottom: 30px;
    max-width: 500px; /* Limits width so text doesn't stretch too far */
}

/* Specific button style for "Make a Referral" on this page */
.btn-outline-grey {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid #ccc; /* Grey border */
    color: #555; /* Grey text */
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s;
    background-color: transparent;
}

.btn-outline-grey:hover {
    border-color: #003366;
    color: #003366;
}

/* --- SERVICES PAGE CONTENT --- */
.services-list-section {
    padding: 60px 0 80px 0;
    background-color: #f9fcff; /* Very subtle blue tint */
}

/* Intro Text */
.services-intro {
    text-align: left;
    margin-bottom: 50px;
}

.services-intro p {
    font-size: 18px;
    color: #444;
    line-height: 1.6;
    max-width: 900px; /* Prevents line from getting too long to read */
}

/* --- The 8-Card Grid --- */
.services-page-grid {
    display: grid;
    /* Exactly 4 equal columns */
    grid-template-columns: repeat(4, 1fr); 
    gap: 25px;
}

/* Individual Card Styling */
.service-page-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-page-card:hover {
    transform: translateY(-5px);
}

/* Reuse the blue icon circle from previous sections, 
   but ensuring it's defined here if you missed it */
.icon-circle-blue {
    width: 60px;
    height: 60px;
    background-color: #e6f2ff; /* Light Blue bg */
    color: #003366; /* Dark Blue icon */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 22px;
}

.service-page-card h3 {
    color: #003366;
    font-size: 18px;
    margin-bottom: 10px;
    min-height: 44px; /* Keeps titles aligned if some are 2 lines */
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-page-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.service-page-card a {
    color: #003366;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .services-page-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
}

@media (max-width: 600px) {
    .services-page-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
    
    .services-intro p {
        font-size: 16px;
    }
}

/* --- HOW WE HELP YOU SECTION --- */
.how-we-help-section {
    padding-bottom: 80px;
    background-color: #fff;
    overflow: hidden; 
}

/* Top Horizontal Separator */
.separator-line {
    width: 100%;
    height: 1px;
    background-color: #e0e0e0;
    margin: 0 auto 50px auto;
    position: relative;
}

/* Little Gold dash in middle of line */
.separator-line::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #C5A059; /* Gold */
    position: absolute;
    left: 50%; /* Centers it */
    top: -1px;
    transform: translateX(-50%);
}

.help-header {
    text-align: center;
    margin-bottom: 40px;
}

/* --- Layout Wrapper --- */
.process-wrapper {
    display: flex;
    align-items: flex-end; /* Aligns content to bottom to match image */
    gap: 20px;
}

/* --- Left Side: Steps Grid --- */
.process-grid {
    flex: 3; /* Takes up about 75% of the width */
    display: flex; /* Makes them side-by-side */
}

.process-step {
    flex: 1; /* Equal width for each step */
    text-align: left;
    padding: 0 20px;
    /* The Visible Vertical Dividing Line */
    border-right: 1px solid #eee; 
    display: flex;
    flex-direction: column;
}

/* Remove border from last item in the grid so it doesn't touch the image weirdly */
.process-step:last-child {
    border-right: none;
}

/* Number Circles (Default Blue) */
.step-number {
    width: 60px;
    height: 60px;
    background-color: #f0f8ff; /* Light Blue */
    color: #003366; /* Dark Blue Text */
    font-size: 24px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* SPECIAL: Gold Circle for Step 3 */
.step-gold {
    background-color: #fff8e1; /* Light Gold BG */
    color: #C5A059; /* Gold Text */
}

.process-step h3 {
    color: #003366;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 700;
}

.process-step p {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 20px;
    min-height: 60px; /* Ensures alignment even if text varies */
}

.process-step a {
    color: #003366;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    margin-top: auto;
}

/* --- Right Side: Image --- */
.process-image-side {
    flex: 1.2; /* Takes up the remaining width (approx 25%) */
    position: relative;
    display: flex;
    align-items: flex-end; /* Aligns image to bottom */
}

.process-image-side img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    /* Optional: Fade mask if you want it to blend like the design */
    mask-image: linear-gradient(to right, transparent 0%, black 20%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .process-wrapper {
        flex-direction: column; /* Stack image below steps on tablet */
    }
    
    .process-grid {
        width: 100%;
        flex-wrap: wrap; /* Allow wrapping */
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
    }

    .process-step {
        flex: 1 1 45%; /* 2 per row on tablet */
        border-bottom: 1px solid #eee;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-right: none; /* Simplify borders on mobile */
    }

    .process-image-side {
        width: 100%; /* Full width image on mobile */
    }
    
    .process-image-side img {
        mask-image: none; /* Remove fade on mobile */
    }
}