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

.servicos-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;
}

.servicos-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"],
.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="checkbox"]:checked,
.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;
}

.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;
}

.satisfaction-banner {
    background: linear-gradient(135deg, #2b4c7e 0%, #1a365d 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
}

.satisfaction-banner .star {
    font-size: calc(1.5rem * var(--var-fontscale));
    color: var(--highlight-yellow);
    display: block;
    margin-bottom: 10px;
}

.satisfaction-banner h4 {
    font-size: calc(1.1rem * var(--var-fontscale));
    margin-bottom: 12px;
}

.satisfaction-banner p {
    font-size: calc(0.85rem * var(--var-fontscale));
    line-height: 1.5;
    opacity: 0.9;
}

/* 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;
}

.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;
}

.highlights-section {
    background-color: var(--bg-highlights);
    border-radius: 12px;
    margin-bottom: 40px;
}

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

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.carousel-btn {
    padding: 10px 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    font-size: calc(16px * var(--var-fontscale));
    color: #293B49;
    cursor: pointer;
    transition: all 0.2s;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
}

.carousel-btn:hover {
    border-color: var(--primary-action);
    color: var(--primary-action);
}

.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;
}

.sort-select {
    padding: 9px 17px;
    border: 1px solid #D1D5DC;
    border-radius: 100px;
    outline: none;
    color: #4a5568;
    background: white;
}

.sort-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sort-select {
    appearance: none;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none"><path d="M9 4.5L6 7.5L3 4.5" stroke="%236A7282" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/></svg>'), white;
    background-size: 12px, 100%;
    background-position: right 12px center, center;
    background-repeat: no-repeat, repeat-x;
    padding-right: 30px;
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Service Card */
.service-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    /* padding removed to allow flush button */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    min-height: 270px;
    overflow: hidden;
    /* Ensures child elements respect border radius */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.services-grid:not(.home-services-grid) .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;
    border-radius: 50%;
    filter: hue-rotate(271deg) contrast(0.5);
}

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

.card-title {
    font-size: calc(18px * var(--var-fontscale));
    font-weight: 600;
    color: #5962BF;
    line-height: 24px;
    margin-bottom: 16px;
    flex-grow: 1;
    font-family: "Montserrat", sans-serif;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-info p {
    font-size: calc(16px * var(--var-fontscale));
    font-weight: 500;
    color: #293B49;
    line-height: 24px;
    font-family: "Montserrat", sans-serif;
}

.card-info p strong {
    font-weight: 600;
}

.card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.badge {
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    font-size: calc(10.73px * var(--var-fontscale));
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
}

.badge-icon {
    width: 10px;
    height: 10px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Badge variants */
.badge-digital {
    border: 1px solid #8b5cf6;
    color: #8b5cf6;
}

.badge-presencial {
    border: 1px solid #0ea5e9;
    color: #0ea5e9;
}

.badge-cidadao {
    border: 1px solid #10b981;
    color: #10b981;
}

.highlights-grid-layout .services-grid {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.highlights-grid-layout .services-grid.active {
    display: grid;
    /* Assuming it was grid or flex, but likely grid based on name */
    opacity: 1;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


.btn-access {
    display: block;
    width: 100%;
    font-family: "Montserrat", sans-serif;
    margin-top: 24px;
}

.card-orgao {
    color: #293B49;
    font-family: "Montserrat", sans-serif;
    font-size: calc(20px * var(--var-fontscale));
    font-weight: 500;
    line-height: 24px;
    width: 100%;
    padding-bottom: 8px;
    margin-bottom: 16px;
    text-transform: uppercase;
    border-bottom: 1px solid #016CB0;
}

/* 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;
}

.pagination-ellipsis {
    color: #6A7282;
    font-family: "Montserrat", sans-serif;
    font-size: calc(14px * var(--var-fontscale));
    padding: 0 4px;
}

.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;
}

.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;
}

/* --- Service Single Page Styles --- */

.single-hero-banner {
    background-color: #5c748c;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.hero-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 227px;
    color: #F8F9FA;
    font-family: "Montserrat", sans-serif;
    justify-content: center;
}

.hero-category {
    font-size: calc(18px * var(--var-fontscale));
    text-transform: uppercase;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-family: "Montserrat", sans-serif;
}

.hero-title-container {
    display: flex;
    gap: 75px;
}

.hero-category img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.hero-category .icon {
    width: 24px;
    height: 24px;
    background: #e1eaf233;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: calc(42px * var(--var-fontscale));
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 54px;
    text-align: left;
    font-family: "Montserrat", sans-serif;
}

.btn-hero-access {
    border: 1px solid white;
    border-radius: 200px;
    color: white;
    text-decoration: none;
    font-weight: 400;
    font-size: calc(18px * var(--var-fontscale));
    width: 195px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-hero-access:hover {
    background-color: white;
    color: #5c748c;
}

.hero-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.hero-aside-top {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero-aside-top .back-link {
    color: white;
    text-decoration: none;
    font-size: calc(1.2rem * var(--var-fontscale));
}

.hero-aside-icons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.icon-round-btn {
    width: 38px;
    height: 38px;
    background-color: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
}

.icon-round-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Meta Info Bar */
.meta-info-bar {
    padding: 12px 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: calc(0.85rem * var(--var-fontscale));
    color: #4a5568;
}

.meta-actions-group {
    display: flex;
    align-items: center;
    gap: 30px;
}

.meta-action,
.social-icons-group {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a5568;
    text-decoration: none;
    font-size: calc(12px * var(--var-fontscale));
    font-weight: 400;
    font-family: "Montserrat", sans-serif;
}

.meta-action svg {
    width: 18px;
    height: 18px;
    fill: var(--primary-action);
}

.social-icons-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icons-group a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons-group a svg {
    width: 20px;
    height: 20px;
    fill: var(--primary-action);
}

/* Single Layout */
.single-services-container {
    display: flex;
    gap: 40px;
    text-align: left;
    padding-top: 30px;
}

.container-bg-gray {
    background-color: #d1d5dc27;
}

.single-sidebar {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.single-main-content {
    flex: 1;
}

/* Sidebar Cards */
.info-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px 21px;
}

.info-card * {
    font-family: "Montserrat", sans-serif;
    color: #293B49;
}

.info-card h3 {
    font-size: calc(20px * var(--var-fontscale));
    color: #2d3748;
    margin-bottom: 14px;
    font-weight: 500;
    font-family: "Montserrat", sans-serif;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: calc(16px * var(--var-fontscale));
    color: #4a5568;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
}

.info-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: #718096;
}

.info-item-action {
    text-align: right;
}

.info-item-action a {
    color: var(--primary-action);
    text-decoration: none;
    font-weight: 500;
    font-size: calc(11px * var(--var-fontscale));
    border: 1px solid var(--primary-action);
    width: 98px;
    height: 28px;
    border-radius: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Montserrat", sans-serif;
}

.tag-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.tag-buttons+hr {
    margin-top: 28px;
    margin-bottom: 28px;
    border-color: #e2e8f02e;
}

.tag-btn {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: calc(14px * var(--var-fontscale));
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    flex: 1;
    font-family: "Montserrat", sans-serif;
    width: max-content;
}

.tag-btn.outline {
    border: 1px solid var(--primary-action);
    color: var(--primary-action);
    background: transparent;
}

.tag-btn.solid {
    border: 1px solid var(--primary-action);
    background: var(--primary-action);
    color: white;
}

/* Attendance Info */
.attendance-block {
    margin-bottom: 15px;
}

.attendance-label {
    font-size: calc(14px * var(--var-fontscale));
    margin-bottom: 4px;
}

.attendance-value {
    font-size: calc(16px * var(--var-fontscale));
    font-weight: 500;
}

.attendance-contact {
    font-size: calc(16px * var(--var-fontscale));
    margin-bottom: 15px;
    line-break: anywhere;
    line-height: 24px;
}

.attendance-contact p {
    color: #2d3748;
}

.attendance-contact span {
    color: #2d3748;
}

.attendance-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.attendance-links a {
    font-size: calc(0.9rem * var(--var-fontscale));
    color: var(--primary-action);
    text-decoration: underline;
}

.map-card {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.map-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* Rating Card */
.rating-card {
    background-color: #6d28d9;
    color: white;
    border-radius: 12px;
    padding: 25px;
}

.rating-card h3 {
    font-size: calc(1.2rem * var(--var-fontscale));
    margin-bottom: 15px;
    font-weight: 600;
    color: white;
}

.rating-score {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: calc(1rem * var(--var-fontscale));
}

.stars {
    color: var(--highlight-yellow);
    font-size: calc(1.1rem * var(--var-fontscale));
    letter-spacing: 2px;
}

.rating-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: calc(0.9rem * var(--var-fontscale));
}

.rating-links a {
    color: white;
    text-decoration: underline;
}

.views-count {
    margin-top: 20px;
    font-size: calc(0.85rem * var(--var-fontscale));
    opacity: 0.8;
}

/* Accordion */
.accordions-wrapper {
    margin-top: 25px;
}

.accordion-item {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
    font-family: "Montserrat", sans-serif;
}

.accordion-item:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.accordion-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
    font-size: calc(22px * var(--var-fontscale));
    color: #293B49;
    background: white;
    transition: background 0.2s;
}

.accordion-item.active .accordion-header {
    background: #F8F9FA;
    color: #1A82C4;
    font-weight: 500;
}

.accordion-icon {
    transition: transform 0.3s;
    color: var(--primary-action);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding: 15px 24px;
    color: #293B49;
    font-size: calc(16px * var(--var-fontscale));
    font-weight: 400;
}

.accordion-item.active .accordion-content {
    display: block;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}

.requirements-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    background-color: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(12px * var(--var-fontscale));
    font-weight: bold;
}

/* Single Tags */
.single-tags-section {
    margin-top: 45px;
}

.single-tags-section h4 {
    font-size: calc(1rem * var(--var-fontscale));
    color: #2d3748;
    margin-bottom: 15px;
}

.related-services-wrapper {
    margin-top: 100px;
}

.related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 31px;
    border-bottom: 4px solid #E1EDF6;
    padding-bottom: 14px;
}

.related-header h2 {
    font-size: calc(32px * var(--var-fontscale));
    color: #293B49;
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
}

.related-header a {
    color: var(--primary-action);
    text-decoration: none;
    font-weight: 600;
}

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

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

.related-grid .card-title {
    text-align: left;
}

.meta-date {
    font-size: calc(16px * var(--var-fontscale));
    font-weight: 400;
    font-family: "Montserrat", sans-serif;
}

footer {
    margin-top: 0px;
}

.search-results-info {
    font-size: calc(24px * var(--var-fontscale));
    font-weight: 500;
    font-family: "Montserrat", sans-serif;
    line-height: 57px;
}