/* Services Page Styles */

/* Base Layout */
.services-page-container {
    background-color: #F8F8F8;
    /* Rectangle 23 in styles.txt implies generic bg? No, styles.txt line 7 says #F8F8F8 */
    min-height: 100vh;
    padding-bottom: 100px;
    position: relative;
    overflow-x: hidden;
}

/* Header Spacer - Hiding to remove whitespace as requested */
.services-header-spacer {
    display: none;
}

/* Services Hero / Title Area */
.services-hero {
    position: relative;
    height: 500px;
    /* Fixed height as requested */
    display: flex;
    align-items: center;
    /* Vertical Center */
    padding: 0;
    padding-top: 80px;
    /* Account for header overlap if needed, or just visual balance */
    background: linear-gradient(95.29deg, rgba(1, 21, 41, 0.6) 54.94%, rgba(253, 99, 21, 0.6) 101.42%), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    margin-bottom: 0px;
    /* Removed negative margin to fix overlap */
}

.services-page-title {
    font-family: var(--font-main);
    font-weight: 600;
    /* Bold as per typical hero headers */
    font-size: 62px;
    line-height: 78px;
    color: #FFFFFF;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Wrapper for the "Cards" list and Images */
.services-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    /* Add top padding to separate from hero */
    display: flex;
    flex-direction: column;
    gap: 100px;
    /* Gap between major sections */
}

/* 
   Pattern: Image Block + List Block 
   We will alternate or stack them.
   Design implies: 
   Section 1: Image (MEPEO Strat Plan) + List (Geological, Geochemical...)
   Section 2: Image (Causeway) + List (Geological Mapping of proneness...)
*/

.service-group-section {
    display: flex;
    flex-direction: column;
    /* Default stack */
    gap: 40px;
    position: relative;
    padding: 60px 0;
    /* Add vertical padding for the background to look like a band */
}


/* Even Section Background (White Band) */
.service-group-section.even-service::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    background-color: #FFFFFF;
    z-index: -1;
}

@media (min-width: 992px) {

    /* Ensure content is stacked: Image Full Width, List Left Aligned */
    .service-group-section {
        flex-direction: column;
        gap: 40px;
    }
}

/* Service Large Image (Swiper Container) */
.service-featured-image {
    width: 100%;
    height: 453px;
    border-radius: 17px;
    background-color: #D9D9D9;
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
}

.swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.service-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Gradient Overlay on the Slide */
.service-slide-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
    /* Dark gradient at bottom */
    pointer-events: none;
    z-index: 1;
}

/* Overlay Content (Title & Number) */
.service-carousel-overlay {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 2;
    color: #FFFFFF;
    font-family: var(--font-main);
}

.service-index {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    opacity: 0.9;
    color: #FFFFFF;
    /* Ensure white */
}

.service-title-overlay {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    color: #FFFFFF;
    /* Ensure white */
}

/* Navigation Arrows */
.service-swiper-nav {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 2;
    display: flex;
    gap: 16px;
}

.swiper-button-prev-custom,
.swiper-button-next-custom {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swiper-button-prev-custom:hover,
.swiper-button-next-custom:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #FFFFFF;
}

.swiper-button-prev-custom svg,
.swiper-button-next-custom svg {
    stroke: #FFFFFF;
}

/* The List of Sub-Services */
.service-items-list {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile default */
    width: 100%;
    max-width: 100%;
    /* Full width */
    column-gap: 60px;
    /* Space between columns */
    row-gap: 0;
    /* Gap handled by padding/border */
}

@media (min-width: 768px) {
    .service-items-list {
        grid-template-columns: 1fr 1fr;
        /* 2 Columns on larger screens */
    }
}

.service-item-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Align left */
    gap: 16px;
    /* Gap between icon and text */
    padding: 24px 0;
    border-bottom: 1px solid #E5E5E5;
    /* Light gray border */
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-item-row:hover {
    border-color: var(--primary-color);
}

.service-item-title {
    font-family: var(--font-main);
    font-weight: 400;
    /* Regular as requested */
    font-size: 16px;
    /* 16px as requested */
    line-height: 40px;
    /* 40px line-height as requested */
    color: #151617;
    /* Darker black/gray */
    flex-grow: 1;
    order: 2;
    /* Title second */
}

.service-item-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(0deg);
    /* Arrow pointing right */
    transition: transform 0.3s ease;
    order: 1;
    /* Icon first */
}

.service-item-icon svg {
    width: 100%;
    height: 100%;
    stroke: #151617;
    /* Update stroke color */
}

/* Active/Expanded State */
.service-item-row.active .service-item-icon {
    transform: rotate(90deg);
    /* Arrow pointing down when active */
}

.service-item-row.active .service-item-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* Details Panel (Hidden by default) */
.service-item-details {
    display: none;
    padding: 20px 0;
    color: #84919E;
    font-size: 14px;
    line-height: 1.6;
}

.service-item-row.active+.service-item-details {
    display: block;
}

/* Nested list inside accordion details */
.service-item-details ul,
.service-item-details ol {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.service-item-details ul li,
.service-item-details ol li {
    padding: 4px 0;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .services-page-title {
        font-size: 40px;
        line-height: 1.2;
    }

    .service-featured-image {
        height: 250px;
    }
}