/* =========================================
   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: 80px 0;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 40px;
}

.mt-5 {
    margin-top: 50px;
}

/* Base Typography */
.sd-heading {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.sd-heading span {
    color: #2AB0DD;
}

.sp-subtitle {
    color: #2AB0DD;
    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: #206C86;
    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: #2AB0DD;
    box-shadow: 0 4px 12px rgba(5, 158, 255, 0.3);
    color: #000000;
}

/* --- 1. 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;
    white-space: nowrap;
}

.sa-breadcrumb a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s;
}

.sa-breadcrumb a:hover {
    color: var(--primary);
}

.sa-breadcrumb span {
    color: rgb(42, 176, 221);
}

/* --- 2. Category Title --- */
.sa-category-title {
    color: #07669C;
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* --- 3. Alphabetical Directory Grid --- */
.sa-alphabet-grid {
    display: block !important;
    column-count: 3;
    column-gap: 24px;
    margin-bottom: 20px;
}

.sa-letter-group {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: inline-block !important;
    width: 100% !important;
    margin-bottom: 24px;
    break-inside: avoid;
    box-sizing: border-box;
}

/* The Large Letter Header */
.sa-letter-header {
    background-color: var(--secondary);
    color: #2AB0DD;
    font-size: 28px;
    font-weight: 800;
    padding: 15px 25px;
    border-bottom: 2px solid #07669C;
}

/* The Tables */
.sa-table {
    width: 100%;
    border-collapse: collapse;
}

.sa-table td {
    padding: 0;
    border-bottom: 1px solid var(--border-color);
}

.sa-table tr:last-child td {
    border-bottom: none;
}

.sa-table a {
    display: block;
    padding: 14px 25px;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.sa-table a::after {
    content: '\2192';
    position: absolute;
    right: 25px;
    color: #2AB0DD;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

/* Hover Effects */
.sa-table a:hover {
    background-color: var(--bg-light);
    color: #2AB0DD;
    padding-left: 30px;
}

.sa-table a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

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

/* =========================================
   RESPONSIVE — TABLET & iPAD
   ========================================= */

/* iPad Pro landscape (1024px) */
@media (max-width: 1024px) {
    .sa-alphabet-grid {
        column-count: 3;
        column-gap: 20px;
    }

    .sa-letter-group {
        margin-bottom: 20px;
    }

    .sa-page-title {
        font-size: 28px;
    }
}

/* iPad Pro portrait / tablet landscape (991px) */
@media (max-width: 991px) {
    .sa-alphabet-grid {
        column-count: 2;
        column-gap: 18px;
    }

    .sa-category-title {
        padding-left: 20px;
        padding-right: 20px
    }

    .sa-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-left: 20px;
        padding-right: 20px
    }

    .sa-breadcrumb {
        white-space: normal;
        font-size: 12px;
    }

    .sa-header-banner {
        padding: 25px 0;
    }

    .section-padding {
        padding: 60px 0;
    }

    .sd-heading {
        font-size: 30px;
    }

    .sa-letter-header {
        font-size: 24px;
        padding: 12px 20px;
    }

    .sa-table a {
        padding: 12px 20px;
        font-size: 14px;
    }

    .sa-table a::after {
        right: 20px;
    }
}

/* iPad mini portrait (768px) */
@media (max-width: 768px) {
    .sa-alphabet-grid {
        column-count: 2;
        column-gap: 14px;
    }

    .sa-page-title {
        font-size: 24px;
    }

    .sa-header-banner {
        padding: 20px 0;
    }

    .section-padding {
        padding: 50px 0;
    }

    .sd-heading {
        font-size: 26px;
    }

    .sa-intro p {
        font-size: 15px;
    }

    .sa-letter-header {
        font-size: 22px;
        padding: 12px 18px;
    }

    .sa-table a {
        padding: 11px 18px;
        font-size: 14px;
    }

    .sa-letter-group {
        margin-bottom: 14px;
    }

    .container-1200 {
        padding-left: 20px;
        padding-right: 20px;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Small phones (480px and below) */
@media (max-width: 480px) {
    .sa-alphabet-grid {
        column-count: 1;
        column-gap: 0;
    }

    .sa-page-title {
        font-size: 22px;
    }

    .section-padding {
        padding: 40px 0;
    }

    .sd-heading {
        font-size: 24px;
    }

    .sa-letter-header {
        font-size: 20px;
        padding: 10px 16px;
    }

    .sa-table a {
        padding: 12px 16px;
        font-size: 14px;
    }

    .sa-header-flex {
        align-items: flex-start;
    }
}