/* --- Variables --- */
:root {
    --primary-blue: #0066cc;
    --text-black: #1a1a1a;
    --text-gray: #555555;
    --bg-white: #ffffff;
    --bg-light: #f4f8fb; /* The light blueish-gray from the screenshot */
    --checkmark-color: #ffa500;
}

/* --- Container Wrappers --- */
.services-main-wrapper {
    width: 100%;
    overflow-x: hidden; /* Important for side animations */
    box-sizing: border-box;
}

/* Full Width Blocks */
.service-block {
    width: 100%;
    padding: 80px 20px; /* Vertical spacing */
    display: flex;
    justify-content: center;
}

/* Background Colors */
.bg-white {
    background-color: var(--bg-white);
}

.bg-light {
    background-color: var(--bg-light);
}

/* Inner Container to center content */
.inner-container {
    max-width: 1200px;
    width: 100%;
}

/* --- Row Layout --- */
.service-row {
    display: flex;
    align-items: center;
    gap: 60px;
    width: 100%; /* Ensure row takes full width */
    position: relative; /* Contain children */
}

/* --- Columns (The Fix) --- */
.service-col {
    /* flex: 1 means "grow", 1 means "shrink", 0 means "start at 0 width" */
    /* This forces the browser to calculate 50% width regardless of content */
    flex: 1 1 0; 
    width: 50%; 
    min-width: 0; /* Prevents flex items from overflowing */
    
    /* Animation Setup */
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* --- Image Styling --- */
/* We add a container style to ensure the column has height even if img breaks */
.service-col img.img-responsive {
    width: 100%;
    height: auto;
    min-height: 300px; /* RESERVES SPACE if image fails to load */
    object-fit: cover; /* Keeps image aspect ratio correct */
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    display: block;
    background-color: #e0e0e0; /* Gray placeholder color if image missing */
}

/* --- Typography & Icons --- */
.service-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon img {
    width: 24px;
    height: auto;
    filter: brightness(0) invert(1);
}

h2 {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-black);
    margin: 0 0 15px 0;
    letter-spacing: 0.5px;
    font-family: 'Segoe UI', sans-serif;
}

h3.blue-subtext {
    font-size: 1.1rem;
    color: var(--primary-blue);
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 15px;
    font-family: 'Segoe UI', sans-serif;
}

p.description {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 25px;
    font-family: sans-serif;
}

.list-header {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 15px;
    font-family: sans-serif;
}

/* --- List Styling --- */
ul.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: sans-serif;
}

ul.service-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

ul.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffa500' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'%3E%3C/path%3E%3Cpolyline points='22 4 12 14.01 9 11.01'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

/* --- Animation Definitions --- */

/* Initial States - REDUCED MOVEMENT to prevent layout jumps */
.animate-from-left {
    transform: translateX(-50px); /* Reduced from 100px */
}

.animate-from-right {
    transform: translateX(50px); /* Reduced from 100px */
}

/* Active State */
.service-col.is-visible {
    opacity: 1;
    transform: translateX(0);
}


/* --- Mobile Responsive --- */
@media (max-width: 900px) {
    .service-row {
        flex-direction: column;
        gap: 40px;
    }
    
    .service-col {
        width: 100%; /* Force full width on mobile */
        flex: none; /* Disable flex scaling on mobile */
    }

    .service-col img.img-responsive {
        min-height: 200px; /* Smaller placeholder on mobile */
    }

    /* Reset transforms for mobile to avoid side-scrolling issues */
    .animate-from-left, 
    .animate-from-right {
        transform: translateY(30px); 
    }
}