/* =========================================
   SERVICE AREA DIRECTORY CUSTOM STYLES
   ========================================= */

:root {
    --primary: #059EFF;
    --secondary: #DEF3FF;
    --text-dark: #000000;
    --text-body: #4a4a4a;
    --bg-light: #F4F9FD;
    --bg-page: #F8F9FA; 
    --border-color: #E5E9F0;
}

.service-area-page {
    background-color: var(--bg-page);
    min-height: 100vh;
}

.section-padding { padding: 40px 0; }
.text-center { text-align: center; }
.mt-4 { margin-top: 40px; }
.container-1200 { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* Base Typography */
.sd-heading {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
}
.sd-heading span { color: var(--primary); }
.sp-subtitle {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 14px;
    display: block;
}
.sa-intro p {
    color: var(--text-body);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Base Primary Button */
.btn-primary {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background-color: #0482d6;
    box-shadow: 0 4px 12px rgba(5, 158, 255, 0.3);
}

/* --- Header Banner --- */
.sa-header-banner {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 35px 0;
}
.sa-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sa-page-title {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
}
.sa-breadcrumb {
    font-size: 13px;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sa-breadcrumb a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}
.sa-breadcrumb a:hover { color: var(--primary); }
.sa-breadcrumb span { color: var(--primary); }

/* --- Accordion Styles --- */
.accordion-container {
    max-width: 1200px;
    margin: 0 auto;
}
/* New Grid Wrapper */
.accordion-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Force two columns */
    gap: 20px; /* Space between the two columns */
}
.accordion-item {
    border: 1px solid var(--border-color);
    margin-bottom: 0; /* Margin is now handled by the grid gap */
    border-radius: 6px;
    background-color: #ffffff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    align-self: start; /* Prevents items from stretching to match height */
}
.accordion-header {
    width: 100%;
    text-align: left;
    padding: 22px 30px;
    background-color: #ffffff; 
    color: var(--text-dark);
    border: none;
    font-size: 18px; /* Slightly smaller to fit side-by-side */
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}
.accordion-header:hover {
    background-color: var(--bg-light);
}
.accordion-header.active {
    background-color: var(--primary);
    color: #ffffff;
}
.acc-icon {
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.3s ease;
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
    background-color: #ffffff;
}
.sub-area-list {
    padding: 20px 30px;
    margin: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr; /* Single column inside the half-width accordion */
    gap: 10px;
}
.sub-area-list a {
    text-decoration: none;
    color: var(--text-body);
    font-size: 16px;
    display: block;
    padding: 8px 0;
    border-bottom: 1px dashed #eaeaea;
    transition: all 0.2s ease;
}
.sub-area-list a:hover {
    color: var(--primary);
    padding-left: 8px;
    background-color: #fcfcfc;
}

/* --- Bottom CTA Section --- */
.sd-cta-section {
    background-color: var(--secondary);
}

/* --- Responsive Queries --- */
@media (max-width: 991px) {
    .sa-header-flex {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
        gap: 15px;
    }
}
/* --- Responsive Queries Update --- */
@media (max-width: 850px) {
    .accordion-grid {
        grid-template-columns: 1fr; /* Stack back to one column on mobile/small tablets */
    }
}
@media (max-width: 767px) {
    .sa-page-title { font-size: 26px; }
    .sa-header-flex {
        align-items: center;
        text-align: center;
    }
    .section-padding { padding: 50px 0; }
    .accordion-header {
        font-size: 18px;
        padding: 18px 20px;
    }
    .sub-area-list {
        padding: 20px;
        grid-template-columns: 1fr;
    }
}
/* --- Responsive Queries Update --- */

/* Tablet & Desktop: Show 2 columns down to 600px wide */
@media (min-width: 601px) {
    .accordion-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px;
    }
}

/* Mobile Only: Stack 1 column on screens 600px and smaller */
@media (max-width: 600px) {
    .accordion-grid {
        grid-template-columns: 1fr;
    }
    
    /* Optional: Reduce padding on mobile to save space */
    .accordion-header {
        padding: 16px 20px;
        font-size: 16px;
    }
}