@charset "utf-8";
/* CSS Document */
/* Basic Reset and Font Setup */
body {
    font-family: 'Open Sans', sans-serif; /* Fallback for content text */
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
}

/* --- Section Layout --- */
.services-section {
    max-width: 1600px; /* Adjust as needed */
    margin: 50px auto;
    padding: 20px;
}

/* --- Title Styling --- */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em; /* Adjust size */
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.section-title .highlight {
    color: #ff9900; /* The orange highlight color */
}

/* --- Grid Layout (The core of the structure) --- */
.services-grid {
    display: grid;
    /* Create three columns of equal size for large screens */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; /* Space between the cards */
}

/* --- Service Card Styling --- */
.service-card {
    background-color: #fff;
    border-radius: 4px; /* Slight rounding of corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); /* Soft shadow */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Ensures the image doesn't bleed */
}

/* Placeholder for the empty card to maintain grid alignment */
.empty-card {
    box-shadow: none; /* Remove shadow */
    background-color: transparent;
}


/* --- Image Styling --- */
.card-image {
    width: 100%;
    /* Sets a fixed aspect ratio for the image container, matching the source image */
    height: 0;
    padding-bottom: 60%; /* 100% width, 60% height for a wide image */
    position: relative;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area without distortion */
}

/* --- Content Styling --- */
.card-content {
    padding: 15px 20px 25px 20px;
    /* Adjust padding to match the source image's spacing */
    flex-grow: 1; /* Allows content area to fill remaining space */
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25em;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}

.card-description {
    font-size: 0.95em;
    color: #666;
    line-height: 1.4;
    margin: 0 0 20px 0;
}

.card-link {
    font-size: 0.95em;
    font-weight: 700;
    color: #ff9900; /* The orange link color */
    text-decoration: none;
    transition: color 0.2s;
    /* The arrow is added via the HTML entity `&rarr;` */
}

.card-link:hover {
    color: #cc7a00; /* Darker orange on hover */
}

/* --- Responsive Adjustments --- */

/* Tablet layout: 2 columns */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile layout: 1 column */
@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2em;
        text-align: center;
    }
}
