/* ============================================
   Government Page Styles
   ============================================ */

:root {
    --primary: #1a5f7a;
    --primary-dark: #134b61;
    --secondary: #57c5b6;
    --accent: #159895;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 8px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header h1 i {
    margin-right: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* Navigation Tabs */
.gov-tabs-section {
    background: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gov-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.gov-tabs::-webkit-scrollbar {
    display: none;
}

.gov-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--light);
    background: var(--white);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.gov-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.gov-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.gov-tab i {
    font-size: 1.1rem;
}

/* Sections */
.gov-section {
    padding: 3rem 0;
}

.gov-section:nth-child(even) {
    background: var(--light);
}

.gov-section .section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.gov-section .section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.gov-section .section-header h2 i {
    margin-right: 0.5rem;
    color: var(--accent);
}

.gov-section .section-header p {
    font-size: 1rem;
    color: var(--gray);
    margin: 0;
}

/* ============================================
   Executive Branch
   ============================================ */
.executive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.executive-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.executive-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.executive-photo {
    height: 180px;
    width: 180px;
    margin: 1.5rem auto 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 4px solid var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.executive-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.executive-card.mayor .executive-photo {
    border-color: #d4af37;
}

.executive-card.vice-mayor .executive-photo {
    border-color: #95a5a6;
}

.executive-badge {
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.executive-card.mayor .executive-badge {
    background: linear-gradient(135deg, #c9a227 0%, #d4af37 100%);
}

.executive-card.vice-mayor .executive-badge {
    background: linear-gradient(135deg, #7b8a8b 0%, #95a5a6 100%);
}

.executive-info {
    padding: 1.5rem;
}

.executive-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.executive-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.executive-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.executive-contact a:hover {
    color: var(--primary);
}

.executive-contact a i {
    color: var(--accent);
}

.executive-hours {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
}

/* ============================================
   Sangguniang Bayan
   ============================================ */
.sb-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.sb-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sb-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.sb-card.special {
    border: 2px solid var(--accent);
}

.sb-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    flex-shrink: 0;
}

.sb-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sb-info {
    flex: 1;
    min-width: 0;
}

.sb-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sb-position {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(21, 152, 149, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.sb-position.special-badge {
    background: var(--accent);
    color: var(--white);
}

.sb-committee {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.4;
}

/* ============================================
   Departments
   ============================================ */

/* Department Search */
.dept-search-wrapper {
    margin-bottom: 1.5rem;
}

.dept-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 50px;
    box-shadow: var(--shadow);
    padding: 0.75rem 1.25rem;
    max-width: 500px;
    margin: 0 auto;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.dept-search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(21, 152, 149, 0.2);
}

.dept-search-box > i.la-search {
    font-size: 1.25rem;
    color: var(--gray);
    margin-right: 0.75rem;
    transition: color 0.3s ease;
}

.dept-search-box:focus-within > i.la-search {
    color: var(--accent);
}

.dept-search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--dark);
    background: transparent;
}

.dept-search-box input::placeholder {
    color: var(--gray);
    opacity: 0.7;
}

.dept-search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: var(--light);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--gray);
}

.dept-search-clear:hover {
    background: var(--accent);
    color: var(--white);
}

.dept-search-results {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    display: none;
}

.dept-search-results .results-count {
    color: var(--accent);
    font-weight: 500;
}

.dept-search-results .results-count i {
    margin-right: 0.25rem;
}

.dept-search-results .no-results {
    color: #dc3545;
    font-weight: 500;
}

.dept-search-results .no-results i {
    margin-right: 0.25rem;
}

/* Search Match Highlight */
.dept-card.search-match {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(87, 197, 182, 0.05) 0%, rgba(21, 152, 149, 0.05) 100%);
}

.dept-card.search-match .dept-icon {
    animation: pulse-icon 0.5s ease;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.dept-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.dept-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.dept-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
    color: inherit;
}

.dept-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dept-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.dept-info {
    flex: 1;
    min-width: 0;
}

.dept-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.dept-info p {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.dept-info p.dept-head {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.dept-info p.dept-head i {
    color: var(--accent);
    margin-right: 0.25rem;
}

.dept-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.8rem;
    color: var(--gray);
}

.dept-contact span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dept-contact i {
    color: var(--accent);
}

.dept-arrow {
    color: var(--accent);
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.dept-card:hover .dept-arrow {
    transform: translateX(5px);
}

/* No departments empty state */
.no-departments {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--gray);
}

.no-departments i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-departments p {
    font-size: 1.1rem;
    margin: 0;
}

/* ============================================
   Barangays
   ============================================ */
.brgy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.brgy-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.brgy-card:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
}

.brgy-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent);
    transition: all 0.3s ease;
}

.brgy-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brgy-logo.no-logo {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
}

.brgy-logo.no-logo img {
    display: none;
}

.brgy-logo.no-logo::after {
    content: '\f3c5';
    font-family: 'Line Awesome Free';
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--white);
}

.brgy-card:hover .brgy-logo {
    border-color: var(--white);
}

/* Keep old icon style for fallback */
.brgy-icon {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brgy-icon i {
    color: var(--white);
    font-size: 1rem;
}

.brgy-info {
    flex: 1;
    min-width: 0;
}

.brgy-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.brgy-captain {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brgy-card:hover .brgy-captain {
    color: rgba(255,255,255,0.8);
}

.brgy-phone {
    font-size: 0.75rem;
    color: var(--accent);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.brgy-card:hover .brgy-phone {
    color: var(--white);
}

/* Barangay Card Actions */
.brgy-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brgy-view-btn {
    width: 32px;
    height: 32px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.brgy-card:hover .brgy-view-btn {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

/* ============================================
   Barangay Modal
   ============================================ */
.brgy-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.brgy-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.brgy-modal {
    background: var(--white);
    border-radius: var(--radius);
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    position: relative;
}

.brgy-modal-overlay.active .brgy-modal {
    transform: scale(1) translateY(0);
}

.brgy-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.brgy-modal-close:hover {
    background: rgba(0,0,0,0.2);
}

.brgy-modal-close i {
    font-size: 1.25rem;
    color: var(--dark);
}

.brgy-modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
}

.brgy-modal-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--white);
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brgy-modal-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brgy-modal-title h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.brgy-modal-title p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.brgy-modal-body {
    padding: 1.5rem;
}

.brgy-modal-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.brgy-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--light);
    border-radius: var(--radius-sm);
}

.brgy-info-item i {
    font-size: 1.5rem;
    color: var(--accent);
}

.brgy-info-item .info-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brgy-info-item .info-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
}

.brgy-info-item a.info-value:hover {
    color: var(--primary);
}

.brgy-modal-map {
    margin-bottom: 1.5rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--light);
}

.brgy-modal-map iframe {
    display: block;
}

.brgy-modal-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.brgy-action-btn {
    flex: 1;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.brgy-action-call {
    background: var(--accent);
    color: var(--white);
}

.brgy-action-call:hover {
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
}

.brgy-action-map {
    background: var(--primary);
    color: var(--white);
}

.brgy-action-map:hover {
    background: var(--primary-dark);
    color: var(--white);
    text-decoration: none;
}

.brgy-action-fb {
    background: #1877f2;
    color: var(--white);
}

.brgy-action-fb:hover {
    background: #0d65d9;
    color: var(--white);
    text-decoration: none;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 575px) {
    .sb-grid,
    .brgy-grid {
        grid-template-columns: 1fr;
    }

    .sb-card {
        flex-direction: column;
        text-align: center;
    }

    .brgy-phone {
        display: none;
    }

    /* Department Search responsive */
    .dept-search-box {
        padding: 0.6rem 1rem;
        border-radius: 30px;
    }

    .dept-search-box input {
        font-size: 0.9rem;
    }

    .dept-search-box input::placeholder {
        font-size: 0.85rem;
    }

    /* Modal responsive */
    .brgy-modal {
        max-height: 95vh;
        margin: 0.5rem;
    }

    .brgy-modal-header {
        padding: 1.5rem;
    }

    .brgy-modal-logo {
        width: 55px;
        height: 55px;
    }

    .brgy-modal-title h3 {
        font-size: 1.15rem;
    }

    .brgy-modal-body {
        padding: 1rem;
    }

    .brgy-modal-info {
        grid-template-columns: 1fr;
    }

    .brgy-action-btn {
        flex: 1 1 calc(50% - 0.375rem);
        min-width: auto;
        padding: 0.65rem 0.75rem;
        font-size: 0.85rem;
    }
}

@media (min-width: 576px) {
    .brgy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .page-header {
        padding: 4rem 0;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .executive-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sb-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dept-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brgy-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .gov-section {
        padding: 4rem 0;
    }

    .gov-section .section-header h2 {
        font-size: 2rem;
    }

    .sb-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .dept-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brgy-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .sb-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .dept-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   Department Modal
   ============================================ */
.dept-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dept-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.dept-modal {
    background: var(--white);
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    position: relative;
}

.dept-modal-overlay.active .dept-modal {
    transform: scale(1) translateY(0);
}

.dept-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.dept-modal-close:hover {
    background: rgba(255,255,255,0.3);
}

.dept-modal-close i {
    font-size: 1.25rem;
    color: var(--white);
}

.dept-modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
}

.dept-modal-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dept-modal-icon i {
    font-size: 1.75rem;
    color: var(--white);
}

.dept-modal-title h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.dept-modal-title p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.dept-modal-body {
    padding: 1.5rem;
}

.dept-modal-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dept-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--light);
    border-radius: var(--radius-sm);
}

.dept-info-item i {
    font-size: 1.5rem;
    color: var(--accent);
}

.dept-info-item .info-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dept-info-item .info-value {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    word-break: break-all;
}

.dept-info-item a.info-value:hover {
    color: var(--primary);
}

.dept-modal-section {
    margin-bottom: 1.5rem;
}

.dept-modal-section h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dept-modal-section h5 i {
    font-size: 1.1rem;
}

.dept-modal-section p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

.dept-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.dept-services-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: var(--light);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--dark);
    transition: all 0.2s ease;
}

.dept-services-list li:hover {
    background: var(--secondary);
    color: var(--white);
}

.dept-services-list li i {
    color: var(--accent);
    font-size: 1rem;
}

.dept-services-list li:hover i {
    color: var(--white);
}

.dept-modal-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light);
}

.dept-action-btn {
    flex: 1;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dept-action-call {
    background: var(--accent);
    color: var(--white);
}

.dept-action-call:hover {
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
}

.dept-action-email {
    background: var(--primary);
    color: var(--white);
}

.dept-action-email:hover {
    background: var(--primary-dark);
    color: var(--white);
    text-decoration: none;
}

.dept-action-services {
    background: var(--secondary);
    color: var(--white);
    border: none;
    cursor: pointer;
}

.dept-action-services:hover {
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
}

/* ============================================
   All Services Modal
   ============================================ */
.all-services-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.all-services-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.all-services-modal {
    background: var(--white);
    border-radius: var(--radius);
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.all-services-modal-overlay.active .all-services-modal {
    transform: scale(1) translateY(0);
}

.all-services-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.all-services-modal-close:hover {
    background: rgba(255,255,255,0.3);
}

.all-services-modal-close i {
    font-size: 1.25rem;
    color: var(--white);
}

.all-services-modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 1.5rem 2rem;
    color: var(--white);
}

.all-services-modal-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.all-services-modal-header p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.all-services-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.all-services-search {
    position: relative;
    margin-bottom: 1.5rem;
}

.all-services-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 1.1rem;
}

.all-services-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 2px solid var(--light);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.all-services-search input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(21, 152, 149, 0.1);
}

.all-services-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.all-services-dept {
    border: 1px solid var(--light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}

.all-services-dept:hover {
    border-color: var(--secondary);
}

.all-services-dept-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.all-services-dept-header:hover {
    background: rgba(87, 197, 182, 0.1);
}

.all-services-dept-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.all-services-dept-icon i {
    font-size: 1.25rem;
    color: var(--white);
}

.all-services-dept-info {
    flex: 1;
}

.all-services-dept-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.15rem;
}

.all-services-dept-info p {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}

.all-services-dept-toggle {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.all-services-dept-toggle i {
    font-size: 1rem;
    color: var(--gray);
}

.all-services-dept.expanded .all-services-dept-toggle {
    transform: rotate(180deg);
}

.all-services-dept-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.all-services-dept.expanded .all-services-dept-content {
    max-height: 500px;
}

.all-services-items {
    list-style: none;
    padding: 1rem;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    background: var(--white);
}

.all-services-items li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--dark);
    padding: 0.5rem 0.75rem;
    background: var(--light);
    border-radius: var(--radius-sm);
}

.all-services-items li i {
    color: var(--accent);
}

.all-services-dept-contact {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(21, 152, 149, 0.05);
    border-top: 1px solid var(--light);
    flex-wrap: wrap;
}

.all-services-dept-contact a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
}

.all-services-dept-contact a:hover {
    color: var(--accent);
}

/* All Services Modal Responsive */
@media (max-width: 575px) {
    .all-services-modal {
        max-height: 95vh;
        margin: 0.5rem;
    }

    .all-services-modal-header {
        padding: 1.25rem 1rem;
    }

    .all-services-modal-header h3 {
        font-size: 1.1rem;
    }

    .all-services-modal-body {
        padding: 1rem;
    }

    .all-services-dept-header {
        padding: 0.75rem;
    }

    .all-services-dept-icon {
        width: 38px;
        height: 38px;
    }

    .all-services-dept-icon i {
        font-size: 1rem;
    }

    .all-services-dept-info h4 {
        font-size: 0.9rem;
    }

    .all-services-items {
        grid-template-columns: 1fr;
        padding: 0.75rem;
    }

    .all-services-items li {
        font-size: 0.85rem;
    }

    .all-services-dept-contact {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Department Modal Responsive */
@media (max-width: 575px) {
    .dept-modal {
        max-height: 95vh;
        margin: 0.5rem;
    }

    .dept-modal-header {
        padding: 1.5rem;
    }

    .dept-modal-icon {
        width: 50px;
        height: 50px;
    }

    .dept-modal-icon i {
        font-size: 1.5rem;
    }

    .dept-modal-title h3 {
        font-size: 1.1rem;
    }

    .dept-modal-body {
        padding: 1rem;
    }

    .dept-modal-info {
        grid-template-columns: 1fr;
    }

    .dept-action-btn {
        flex: 1 1 calc(50% - 0.375rem);
        min-width: auto;
        padding: 0.65rem 0.75rem;
        font-size: 0.8rem;
    }

    .dept-services-list li {
        font-size: 0.85rem;
        padding: 0.5rem 0.6rem;
    }
}
