/* --- Base Styles & Dropdown --- */
.tpg-directory-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    font-family: inherit;
}

.tpg-state-dropdown-container {
    margin-bottom: 40px;
    display: flex;
    justify-content: center; /* Centers the dropdown on the page */
}

.tpg-select {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px; /* Increased side padding for more breathing room on the left and near the arrow */
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
}

/* --- Layout Grid (Desktop) --- */
.tpg-directory-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    align-items: start;
}

/* --- Anchor Links (Desktop) --- */
.tpg-anchor-links {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tpg-anchor-btn {
    display: inline-block; /* Keeps the underline constrained to the text width */
    padding: 5px 0;
    background-color: transparent;
    color: #333;
    text-decoration: none;
    border: none;
    font-size: 16px;
    transition: all 0.2s ease;
}

.tpg-anchor-btn:hover, .tpg-anchor-btn:active {
    background-color: transparent;
    color: #335C8B; /* Highlighting in the requested brand blue */
    text-decoration: underline; /* Adding the underline on hover */
}

/* --- Staff Listings --- */
.tpg-category-section {
    margin-bottom: 50px;
}

.tpg-category-title {
    font-size: 1.5rem;
    font-weight: bold;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #335C8B; /* Updated Category Heading Color */
}

/* Updated Staff Card Styling */
.tpg-staff-card {
    background-color: #F4F8FC; /* New light blue background */
    border-radius: 10px; /* Rounded corners */
    padding: 20px; /* Breathing room inside the card */
    margin-bottom: 15px; /* White gap between staff members */
}

.tpg-staff-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
}

.tpg-staff-title {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 5px;
}

.tpg-staff-phone, .tpg-staff-email {
    color: #335C8B; /* Matches brand color */
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-block;
    padding: 2px 0;
}

.tpg-staff-phone:hover, .tpg-staff-email:hover {
    text-decoration: underline;
}

/* --- MOBILE LAYOUT (Swipeable Text List) --- */
@media (max-width: 768px) {
    .tpg-directory-layout {
        grid-template-columns: 1fr; /* Stacks to single column */
        gap: 20px;
    }

    .tpg-anchor-links {
        position: relative;
        top: 0;
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
        scroll-behavior: smooth;
        gap: 20px; /* Wider gap for mobile touch list */
        
        /* Hide scrollbars for cleaner look */
        -ms-overflow-style: none;
        scrollbar-width: none; 
    }

    .tpg-anchor-links::-webkit-scrollbar {
        display: none;
    }

    .tpg-anchor-btn {
        padding: 8px 0;
        font-size: 15px;
    }

    .tpg-staff-phone, .tpg-staff-email {
        padding: 8px 0; /* Increase tap target size for mobile */
    }
}