/* refined orgaos.css - inherited from servicos.css */
:root {
    --primary-action: #1A82C4;
    --highlight-yellow: #fdd835;
    --bg-highlights: #f2f5f7;
    --text-muted: #888;
}

.orgaos-hero {
    background-image: url(/eficiente/sites/blumenau/images/servicos-hero.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 227px;
    color: white;
    font-size: calc(42px * var(--var-fontscale));
    font-weight: 700;
    font-family: "Montserrat", sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.orgaos-hero .container {
    text-align: left;
    width: 100%;
}

.services-container {
    display: flex;
    gap: 40px;
    padding: 27px 0;
    text-align: left;
}

/* Sidebar */
.services-sidebar {
    width: 350px;
    flex-shrink: 0;
}

.search-box {
    background-color: white;
    padding: 27px 21px;
    border-radius: 20px;
    border: 1px solid #E5E7EB;
    margin-bottom: 16px;
}

.search-box label {
    display: block;
    margin-bottom: 16px;
    font-weight: 500;
    color: #2c3e50;
    font-size: calc(20px * var(--var-fontscale));
    font-family: "Montserrat", sans-serif;
}

.search-input-group {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    width: 100%;
    height: 38px;
}

.search-input-group input {
    flex: 1;
    border: none;
    padding: 10.5px 16px;
    outline: none;
    font-size: calc(14px * var(--var-fontscale));
    font-weight: 400;
    font-family: "Montserrat", sans-serif;
    color: #333;
    min-width: 0;
    border: 1px solid #c8d2db;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.search-input-group input::placeholder {
    color: #94a3b8;
    font-weight: 300;
}

.search-input-group button {
    background-color: #1A82C4;
    color: white;
    border: none;
    padding: 9px 12.5px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.2s;
    font-size: calc(14px * var(--var-fontscale));
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    width: 97px;
    line-height: 0px;
    font-family: "Montserrat", sans-serif;
}

.search-input-group button:hover {
    background-color: #1A82C4;
}

.filter-group {
    background-color: white;
    padding: 33px 21px;
    border-radius: 20px;
    border: 1px solid #E5E7EB;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: #333;
    margin-bottom: 20px;
    font-size: calc(20px * var(--var-fontscale));
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
}

.filter-list {
    list-style: none;
    padding: 0;
}

.filter-list input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><rect width="16" height="16" rx="2" fill="%23E5E7EB"/></svg>');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}

.filter-list input[type="checkbox"]:checked {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><rect width="16" height="16" rx="2" transform="matrix(1 0 -4.37114e-08 -1 6.99382e-07 16)" fill="%23016CB0"/><path d="M4 6.36364L7.55556 10L12 5" stroke="white" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.filter-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: calc(0.9rem * var(--var-fontscale));
    color: #4a5568;
}

.filter-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: calc(16px * var(--var-fontscale));
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    color: #293B49;
}

.filter-group hr {
    margin-top: 16px;
    margin-bottom: 28px;
    border-color: #e5e7eb29;
}

.filter-count {
    color: #a0aec0;
    font-size: calc(0.8rem * var(--var-fontscale));
}

.show-more {
    color: #1A82C4;
    font-size: calc(14px * var(--var-fontscale));
    text-decoration: none;
    font-weight: 400;
    display: inline-block;
    margin-top: 10px;
}

.tags-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 15px;
}

.tag-pill {
    padding: 11.3px 14.8px;
    border: 1px solid #016CB0;
    color: #016CB0;
    border-radius: 100px;
    font-size: calc(12px * var(--var-fontscale));
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    background: #F8F9FA;
}

.tag-pill:hover,
.tag-pill.active {
    background-color: #016CB0;
    color: white;
}

/* Main Content */
.services-content {
    flex: 1;
}

.section-title {
    font-size: calc(32px * var(--var-fontscale));
    font-weight: 700;
    font-family: "Montserrat", sans-serif;
    color: #293B49;
    margin-bottom: 24px;
    position: relative;
    text-align: left;
}

.section-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #016CB0, #016CB0), linear-gradient(to right, #E1EDF6, #E1EDF6);
    background-size: 188px 100%, 100% 100%;
    background-repeat: no-repeat;
    margin-top: 8px;
}

.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    font-size: calc(14px * var(--var-fontscale));
    color: #293B49;
    padding-top: 8px;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    border-top: 1px solid #E5E7EB;
}

.orgaos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Category Sections */
.category-section {
    margin-bottom: 60px;
}

.category-title {
    font-size: calc(24px * var(--var-fontscale));
    font-weight: 600;
    color: #293B49;
    margin-bottom: 24px;
    font-family: "Montserrat", sans-serif;
    text-align: left;
}

/* Service Card (Organ Card) */
.service-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    min-height: 200px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    text-align: left;
    text-decoration: none;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-header-area {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: calc(11px * var(--var-fontscale));
    color: #1A82C4;
    font-weight: 600;
    text-transform: uppercase;
    padding: 9.14px 12.73px;
    padding-bottom: 5.92px;
    border-bottom: 1px solid #E1EAF2;
}

.card-header-area .icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #E1EAF2;
}

.card-header-area .icon img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    filter: hue-rotate(294deg) brightness(1.2);
}

.card-body {
    padding: 15.52px 12.37px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: calc(18.06px * var(--var-fontscale));
    font-weight: 600;
    color: #293B49;
    margin-bottom: 12px;
    flex-grow: 1;
    font-family: "Montserrat", sans-serif;
}

.btn-access {
    display: block;
    width: 100%;
    background-color: #1A82C4;
    color: white;
    text-align: center;
    padding: 8px;
    text-decoration: none;
    font-weight: 400;
    font-size: calc(14px * var(--var-fontscale));
    position: relative;
    border-radius: 0;
    margin-top: auto;
    height: 52px;
    line-height: 24px;
    font-family: "Montserrat", sans-serif;
}

.btn-access:hover {
    background-color: #156da5;
}

.line-gray {
    margin-top: 80px;
    margin-bottom: 34px;
    color: #e5e7eb26;
    border-color: #00000012;
}

.footer-report {
    margin-top: 40px;
    display: flex;
}

.footer-report a {
    color: var(--primary-action);
    text-decoration: none;
    font-size: calc(18px * var(--var-fontscale));
    font-weight: 400;
    font-family: "Montserrat", sans-serif;
}

.footer-report a:hover {
    text-decoration: underline;
}

@media (max-width: 991px) {
    .services-container {
        flex-direction: column;
    }

    .services-sidebar {
        width: 100%;
    }

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

@media (max-width: 767px) {
    .orgaos-grid {
        grid-template-columns: 1fr;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
}

.page-num,
.page-link {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    color: #293B49;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: calc(14px * var(--var-fontscale));
    background-color: white;
    border: 1px solid #D1D5DC;
}

.page-link {
    border-radius: 200px;
    padding: 0px 35px;
}

.page-link.disabled {
    cursor: default;
    background-color: #F8F9FA;
    border: none;
}

.page-num:hover:not(.active) {
    background-color: #edf2f7;
}

.page-num.active {
    background-color: #FFE156;
}

.filter-list input[type="radio"] {
    appearance: none;
    min-width: 20px;
    height: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><rect width="16" height="16" rx="2" fill="%23E5E7EB"/></svg>');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}

.filter-list input[type="radio"]:checked {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><rect width="16" height="16" rx="2" transform="matrix(1 0 -4.37114e-08 -1 6.99382e-07 16)" fill="%23016CB0"/><path d="M4 6.36364L7.55556 10L12 5" stroke="white" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}