/* --------------------------------------------------
           GLOBAL PAGE CONTROL
        -------------------------------------------------- */
        .section-page {
            display: none;
            width: 100%;
        }

        .active-page {
            display: block;
        }

        /* --------------------------------------------------
           DISTRICT CARDS (DYNAMICALLY ADMIN CREATED)
        -------------------------------------------------- */
        .card {
            width: 300px;
            max-width: 100%;
            box-sizing: border-box;
            cursor: pointer;
            border-radius: 10px;
            overflow: hidden;
            text-align: center;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            background: #fff;
            transition: all 0.3s ease;
            border: 1px solid #f0f0f0;
        }

        .card:hover {
            transform: translateY(-6px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
        }

        .card img {
            width: 100%;
            height: 220px;
            object-fit: cover;
        }

        .card h3 {
            margin: 0;
            padding: 15px 10px 5px 10px;
            font-size: 20px;
            color: #0a1a3a;
        }

        .card .branch-count-badge {
            display: inline-block;
            background: #eef6f9;
            color: #0095bb;
            font-size: 13px;
            font-weight: 600;
            padding: 3px 12px;
            border-radius: 12px;
            margin-bottom: 15px;
        }

        /* --------------------------------------------------
           DISTRICT ROW
        -------------------------------------------------- */
        .district-row {
            width: 100%;
            display: flex;
            justify-content: center;
            gap: 30px;
            padding: 30px 20px 50px 20px;
            flex-wrap: wrap;
        }

        /* --------------------------------------------------
           BRANCH CARDS UNDER DISTRICT
        -------------------------------------------------- */
        .container-branches {
            width: 100%;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            padding: 30px 40px 60px 40px;
            max-width: 1300px;
            margin: 0 auto;
        }

        .branch-card {
            background: #fff;
            border-radius: 10px;
            padding: 22px;
            box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.08);
            border-top: 4px solid #f4ab3b;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-width: 0;
            overflow-wrap: anywhere;
            word-wrap: break-word;
            word-break: break-word;
            box-sizing: border-box;
        }

        .branch-card:hover {
            transform: translateY(-4px);
            box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.12);
        }

        .branch-card h4 {
            color: #0095bb;
            font-weight: 700;
            font-size: 19px;
            margin-top: 0;
            margin-bottom: 12px;
            border-bottom: 1px dashed #eee;
            padding-bottom: 8px;
            overflow-wrap: anywhere;
            word-wrap: break-word;
            word-break: break-word;
        }

        .branch-card p {
            font-size: 14px;
            line-height: 1.6;
            margin-bottom: 8px;
            color: #444;
            overflow-wrap: anywhere;
            word-wrap: break-word;
            word-break: break-word;
        }

        .branch-card strong {
            color: #0a1a3a;
        }

        .branch-card a {
            overflow-wrap: anywhere;
            word-wrap: break-word;
            word-break: break-all;
        }

        .branch-card img {
            width: 18px;
            margin-right: 6px;
            vertical-align: middle;
        }

        .route-map-btn {
            display: inline-flex;
            align-items: center;
            background: #0095bb;
            color: #fff !important;
            padding: 6px 14px;
            border-radius: 4px;
            font-size: 13px;
            font-weight: 600;
            text-decoration: none;
            margin-top: 8px;
            transition: background 0.2s;
        }

        .route-map-btn:hover {
            background: #007a99;
            color: #fff !important;
            text-decoration: none;
        }

        /* --------------------------------------------------
           DISTRICT HEADER & FILTER
        -------------------------------------------------- */
        .district-header {
            text-align: center;
            padding: 25px 20px 10px 20px;
        }

        .district-header h2 {
            color: #0095bb;
            font-weight: 700;
            margin-bottom: 8px;
            text-align: center;
        }

        .district-header p {
            text-align: center !important;
            margin: 0 auto;
        }

        .quick-filter-box {
            max-width: 600px;
            margin: 0 auto 10px auto;
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
            padding: 0 15px;
        }

        .quick-filter-box input, .quick-filter-box select {
            padding: 10px 15px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 14px;
            outline: none;
        }

        .quick-filter-box select {
            background: #fff;
            min-width: 220px;
        }

        .quick-filter-box input {
            flex-grow: 1;
            min-width: 200px;
        }

        /* --------------------------------------------------
           RESPONSIVE (Mobile Fixes)
        -------------------------------------------------- */
        @media (max-width: 768px) {
            .card {
                width: 90%;
            }

            .district-row {
                padding: 20px 10px;
                gap: 20px;
            }

            .container-branches {
                grid-template-columns: 1fr;
                padding: 15px;
            }
        }
