body {
    font-family: 'Rawline', 'Raleway', system-ui, -apple-system, "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
    padding-bottom: 60px;
    background-color: #f4f4f4;
}
.br-skiplink {
    --skiplink-layer: var(--z-index-layer-4);
    --skiplink-margin: var(--spacing-scale-2x);
    --skiplink-min-width: 300px;
    --skiplink-shadow: var(--surface-shadow-lg);
    --skiplink-duration: 150ms;
    --skiplink-timing-function: ease-out;
    display: inline;
    flex-direction: column;
    left: var(--skiplink-margin);
    position: fixed;
    top: 0;
    z-index: var(--skiplink-layer);
    background-color: #ffffff;
}
.br-skiplink a {
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    display: inline-flex;
    min-width: 300px;
    position: absolute;
    top: -100vh;
    transition: top 150ms ease-out;
    white-space: nowrap;
}
.br-skiplink a:focus, .br-skiplink a:focus-visible {
    top: 0;
}
.br-skiplink .br-tag {
    background: var(--interactive);
}
.br-skiplink.full {
    box-shadow: var(--skiplink-shadow);
    flex-direction: row;
    top: -100vh;
    transition: top var(--skiplink-duration) var(--skiplink-timing-function);
}
.br-skiplink.full a {
    box-shadow: none;
    min-width: 0;
    position: relative;
    top: 0;
}
.br-skiplink.full:focus-within {
    top: 0;
}
.top-bar {
    background: #235aa7;
    color: #ffffff;
    text-align: right;
    padding: 8px;
    font-size: 16px;
    flex-wrap: wrap;
    row-gap: 8px;
}

.top-bar button:focus {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

.header {
    background: #fefefe;
    border-bottom: 2px solid #ddd;
}
.header-title {
    font-size: 26px;
    font-weight: bold;
    line-height: 1.2;
}
.header-title small {
    font-size: 20px;
    color: #555;
}   
.logo {
    max-width: 100px;
    height: auto;
}
h2 {
    font-size: 16px;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    padding: 40px;
    max-width: 80%;
    margin: auto;
    padding-bottom: 32px;
    margin-bottom: 40px;
}
.grid-item {
    background: white;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.grid-item:hover {
    background: #ddd;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
}
.grid-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.grid-item a:focus {
    outline: 3px solid #235aa7;
    outline-offset: 5px;
    text-decoration: underline;
}

.grid-item i {
    margin-bottom: 5px;
}
.grid-item h2 {
    margin-top: 5px;
}
footer {
    background: #373435;
    color: white;
    text-align: center;
    padding: 5px;
    position: fixed;
    width: 100%;
    bottom: 0;
    font-size: 14px;
    z-index: 100;
}
footer a {
    color: white;
}

button:focus, a:focus, [role="button"]:focus {
    outline: 3px solid #235aa7;
    outline-offset: 2px;
    text-decoration: underline;
}

#skip-link {
    position: absolute;
    top: 0;
    left: 0;
    padding: 8px;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    z-index: 100;
}
#skip-link:focus {
    background-color: #f00;
}
@media (min-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(6, 1fr);
    }
}
@media (max-width: 1199px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        max-width: 95%;
        padding: 20px;
    }

    .header-title {
        font-size: 22px;
    }

    .header-title small {
        font-size: 16px;
    }

    .logo {
        max-width: 80px;
    }

    .top-bar {
        font-size: 14px;
    }

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

    .header .me-3 {
        margin-right: 0 !important;
        margin-bottom: 8px;
    }

    .header-title {
        text-align: center;
    }
}
@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: repeat(1, 1fr);
        max-width: 95%;
        padding: 8px;
        gap: 8px;
        padding-bottom: 40px;
        margin-bottom: 32px;
    }

    .top-bar {
        flex-direction: column;
        align-items: center;
    }

    .top-bar ul {
        margin-bottom: 5px;
    }

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

    .header-title {
        text-align: center;
        margin-top: 8px;
    }
}
.high-contrast {
    background-color: #000 !important;
    color: #ff0 !important;
}
.high-contrast .top-bar {
    background: white;
    color: #121212;
}

.high-contrast .top-bar button:focus {
    outline: 3px solid #ff0;
    outline-offset: 2px;
}

.high-contrast .header {
    background: #121212;
}
.high-contrast .header-title small {
    color: #ff0 !important;
}
.high-contrast .grid-item {
    background: #121212 !important;
}
.high-contrast .grid-item:hover {
    background: #535353 !important;
    box-shadow: 0 0 10px #e5ff00;
}
.high-contrast button{
    color: #121212;
    border-color: #121212;
}
.high-contrast button:hover{
    box-shadow: 0 0 10px #000000;
}

.high-contrast a {
    color: #ff0 !important;
    text-decoration: underline;
}

.high-contrast .grid-item a {
    color: #ff0 !important;
}

.high-contrast .grid-item a:focus {
    outline: 3px solid #ff0;
    outline-offset: 5px;
}

.high-contrast .grid-item a i {
    color: #ff0 !important;
}

.high-contrast footer a {
    color: #ff0 !important;
    text-decoration: underline;
}

.high-contrast .header-title {
    color: #ff0 !important;
}

/* Melhorias para acessibilidade - foco via teclado */
*:focus {
    outline: 3px solid #235aa7;
    outline-offset: 2px;
}

.high-contrast *:focus {
    outline: 3px solid #ff0;
    outline-offset: 2px;
}

.high-contrast button:focus, 
.high-contrast a:focus, 
.high-contrast [role="button"]:focus {
    outline: 3px solid #ff0;
    outline-offset: 2px;
}

.br-skiplink a {
    position: absolute;
    top: -50px;
    background-color: #235aa7;
    color: #ffffff;
    padding: 8px 20px;
    text-decoration: none;
    transition: top 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 0 0 5px 5px;
    font-weight: bold;
}

.br-skiplink a:focus {
    top: 0;
    outline: 3px solid #ffff00;
}

.high-contrast .br-skiplink a {
    background-color: #000000;
    color: #ffff00;
}

.high-contrast .br-skiplink a:focus {
    outline: 3px solid #ffff00;
}

.high-contrast .modal-content {
    background-color: #121212 !important;
    border: 2px solid #ff0 !important;
}

.high-contrast .modal-header,
.high-contrast .modal-footer {
    background-color: #333 !important;
    border-color: #ff0 !important;
}

.high-contrast .modal-title,
.high-contrast .modal-body {
    color: #ff0 !important;
}

.high-contrast .modal-body h6 {
    color: #ff0 !important;
    border-bottom: 1px solid #ff0;
    padding-bottom: 5px;
}

.high-contrast .modal-body ul li {
    color: #ff0 !important;
}

.high-contrast .modal-body kbd {
    background-color: #333 !important;
    color: #ff0 !important;
    border: 1px solid #ff0 !important;
}

.high-contrast .btn-close {
    filter: invert(1) brightness(2);
}

.high-contrast .btn-secondary {
    background-color: #333 !important;
    color: #ff0 !important;
    border: 1px solid #ff0 !important;
}

.high-contrast .btn-secondary:hover,
.high-contrast .btn-secondary:focus {
    background-color: #555 !important;
}

.high-contrast #search-modal .modal-content {
    background-color: #121212 !important;
    border: 2px solid #ff0 !important;
}

.high-contrast #search-modal .modal-header,
.high-contrast #search-modal .modal-footer {
    background-color: #333 !important;
    border-color: #ff0 !important;
}

.high-contrast #search-modal .modal-title,
.high-contrast #search-modal .modal-body {
    color: #ff0 !important;
}

.high-contrast #search-modal .form-control {
    background-color: #333 !important;
    color: #ff0 !important;
    border: 1px solid #ff0 !important;
}

.high-contrast #search-modal .btn-primary {
    background-color: #555 !important;
    color: #ff0 !important;
    border: 1px solid #ff0 !important;
}

.high-contrast #search-modal .list-group-item {
    background-color: #222 !important;
    color: #ff0 !important;
    border-color: #ff0 !important;
}

.high-contrast #search-modal .list-group-item:hover {
    background-color: #444 !important;
}

.high-contrast #search-modal .text-muted {
    color: #ff9 !important;
}

#search-button {
    cursor: pointer;
}

#search-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.high-contrast #search-button {
    color: #121212;
    border-color: #121212;
}

.high-contrast #search-button:hover {
    box-shadow: 0 0 10px #000000;
}

.high-contrast #search-input::placeholder {
    color: #ff9 !important; /* Amarelo mais claro para melhor visibilidade */
    opacity: 1; /* Garantir que a opacidade seja total */
}

/* Estas regras são necessárias para diferentes navegadores */
.high-contrast #search-input::-webkit-input-placeholder {
    color: #ff9 !important;
    opacity: 1;
}

.high-contrast #search-input::-moz-placeholder {
    color: #ff9 !important;
    opacity: 1;
}

.high-contrast #search-input:-ms-input-placeholder {
    color: #ff9 !important;
    opacity: 1;
}

.high-contrast #search-input:-moz-placeholder {
    color: #ff9 !important;
    opacity: 1;
}

.high-contrast #search-input {
    background-color: #333 !important;
    color: #ff0 !important;
    border: 2px solid #ff0 !important; /* Borda mais espessa e mais visível */
    box-shadow: 0 0 5px #ff0 !important; /* Adicionar um brilho sutil */
}

/* Melhorar a visibilidade do botão de busca */
.high-contrast #search-submit {
    background-color: #333 !important;
    color: #ff0 !important;
    border: 2px solid #ff0 !important;
    font-weight: bold;
}

.high-contrast #search-submit:hover,
.high-contrast #search-submit:focus {
    background-color: #555 !important;
    box-shadow: 0 0 5px #ff0 !important;
}

#search-submit {
    background-color: #235aa7 !important;
    border-color: #235aa7 !important;
    color: #fff !important;
}

.list-group-item i {
    font-size: 2rem;
    line-height: 1;
    display: block;
}

.dark-mode {
    background-color: #1E1E1E;
    color: #e0e0e0;
}

.dark-mode .top-bar {
    background: #1a3b6d;
}

.dark-mode .header {
    background: #1e1e1e;
    border-bottom: 2px solid #333;
}

.dark-mode .header-title {
    color: #e0e0e0;
}

.dark-mode .header-title small {
    color: #b0b0b0;
}

.dark-mode .grid-item {
    background: #2D2D2D;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.dark-mode .grid-item:hover {
    background: #3d3d3d;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.dark-mode .grid-item a {
    color: #EEEEEE;
}

.dark-mode .grid-item a:focus {
    outline: 3px solid #4c8ed7;
}

.dark-mode footer {
    background: #1e1e1e;
    border-top: 1px solid #333;
}

.dark-mode .modal-content {
    background-color: #2c2c2c;
    border: 1px solid #444;
}

.dark-mode .modal-header,
.dark-mode .modal-footer {
    background-color: #222;
    border-color: #444;
}

.dark-mode .modal-title,
.dark-mode .modal-body {
    color: #e0e0e0;
}

.dark-mode .btn-close {
    filter: invert(1) brightness(0.8);
}

.dark-mode .btn-secondary {
    background-color: #444;
    color: #e0e0e0;
    border: 1px solid #666;
}

.dark-mode .btn-secondary:hover,
.dark-mode .btn-secondary:focus {
    background-color: #555;
}

.dark-mode #search-input {
    background-color: #333;
    color: #e0e0e0;
    border: 1px solid #555;
}

.dark-mode #search-input::placeholder {
    color: #aaa;
}

.dark-mode #search-submit {
    background-color: #1a3b6d !important;
    border-color: #1a3b6d !important;
}

.dark-mode .list-group-item {
    background-color: #2c2c2c;
    color: #e0e0e0;
    border-color: #444;
}

.dark-mode .list-group-item:hover {
    background-color: #3d3d3d;
}

.dark-mode .text-muted {
    color: #aaa !important;
}

/* Estilos para filtro de categorias */
.categories-filter {
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.dark-mode .categories-filter {
    background-color: #222;
    border-bottom: 1px solid #444;
}

.high-contrast .categories-filter {
    background-color: #000;
    border-bottom: 1px solid #ff0;
}

.filter-title {
    font-size: 1.2rem;
    color: #333;
}

.dark-mode .filter-title {
    color: #e0e0e0;
}

.high-contrast .filter-title {
    color: #ff0;
}

.filter-buttons .btn {
    margin: 0 5px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.filter-buttons .btn.active {
    background-color: #235aa7;
    color: white;
    border-color: #235aa7;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.dark-mode .filter-buttons .btn {
    background-color: #333;
    color: #e0e0e0;
    border-color: #555;
}

.dark-mode .filter-buttons .btn.active {
    background-color: #1a3b6d;
    color: white;
    border-color: #1a3b6d;
}

.high-contrast .filter-buttons .btn {
    background-color: #000;
    color: #ff0;
    border-color: #ff0;
}

.high-contrast .filter-buttons .btn.active {
    background-color: #ff0;
    color: #000;
    border-color: #ff0;
}

/* Animação para grid items */
.grid-item {
    transition: all 0.4s ease;
}

.grid-item.hidden-item {
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
    pointer-events: none;
}

/* ===== Macro Cards (categorias) ===== */
.macro-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding: 40px;
    max-width: 80%;
    margin: auto;
    align-items: stretch;
}
.macro-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}
.macro-card:hover,
.macro-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.macro-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 16px;
    text-align: center;
    flex: 0 0 auto;
}
.macro-card-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.macro-subcards {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 12px;
}
.service-subcard {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fafafa;
    border-radius: 8px;
    text-decoration: none;
    color: #222;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(0,0,0,0.06);
    transition: background-color 0.15s ease, transform 0.15s ease;
    flex: 0 0 auto;
    height: 48px;
}
.service-subcard:hover {
    background: #f0f4ff;
    transform: translateX(2px);
    color: #222;
}
.subcard-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.subcard-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 24px;
}
.service-subcard .subcard-fav-btn {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
}
.macro-card-footer {
    padding: 16px 16px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    border-top: 1px solid rgba(0,0,0,0.06);
    background: #fafafa;
}
.macro-card-footer i {
    margin-left: 8px;
    transition: transform 0.2s ease;
}
.macro-card:hover .macro-card-footer i {
    transform: translateX(4px);
}

/* ===== Resultados de busca agrupados por categoria ===== */
#search-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.search-result-group {
    border: 2px solid #235aa7;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.search-result-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.search-result-group-header i { font-size: 18px; }
.search-result-group-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 12px;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fafafa;
    border: 1px solid rgba(0,0,0,0.06);
    text-decoration: none;
    color: #222;
    transition: background-color 0.15s ease, transform 0.15s ease;
}
.search-result-item:hover {
    background: #f0f4ff;
    transform: translateX(2px);
    color: #222;
}
.search-result-icon { font-size: 20px; width: 28px; text-align: center; flex-shrink: 0; }
.search-result-text { display: flex; flex-direction: column; min-width: 0; }
.search-result-title { font-weight: 600; font-size: 14px; }
.search-result-desc { font-size: 12px; color: #666; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dark-mode .search-result-group { background: #2d2d2d; }
.dark-mode .search-result-item { background: #383838; border-color: #4a4a4a; color: #eee; }
.dark-mode .search-result-item:hover { background: #454545; color: #fff; }
.dark-mode .search-result-desc { color: #b0b0b0; }

.high-contrast .search-result-group { background: #121212 !important; border-color: #ff0 !important; }
.high-contrast .search-result-group-header { background: #121212 !important; color: #ff0 !important; border-bottom: 1px solid #ff0; }
.high-contrast .search-result-item,
.high-contrast .search-result-item * { background: #121212 !important; color: #ff0 !important; border-color: #ff0 !important; }
.high-contrast .search-result-item:hover { background: #535353 !important; }

/* ===== Modo noturno para macro cards e elementos novos ===== */
.dark-mode .macro-card {
    background: #2d2d2d;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.dark-mode .macro-card-footer {
    background: #252525;
    border-top-color: #3a3a3a;
}
.dark-mode .service-subcard {
    background: #383838;
    border-color: #4a4a4a;
    color: #eee;
}
.dark-mode .service-subcard:hover {
    background: #454545;
    color: #fff;
}
.dark-mode .subcard-title {
    color: #eee;
}
.dark-mode .macro-extra-btn {
    background: #2d2d2d;
    color: #eee;
    border-color: rgba(255,255,255,0.18);
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.dark-mode .macro-extra-btn:hover,
.dark-mode .macro-extra-btn:focus-visible {
    background: #3a3a3a;
    color: #fff;
    border-color: #4c8ed7;
}
.dark-mode #category-modal .modal-content {
    background-color: #2c2c2c;
    border: 1px solid #444;
    color: #eee;
}
.dark-mode .category-service-item {
    background: #383838;
    color: #eee;
}
.dark-mode .category-service-item:hover {
    background: #454545;
    color: #fff;
}

/* ===== Alto contraste para macro cards e elementos novos ===== */
.high-contrast .macro-card {
    background: #121212 !important;
    border-color: #ff0 !important;
}
.high-contrast .macro-card-header,
.high-contrast .macro-card-header h2,
.high-contrast .macro-card-header i {
    background: #121212 !important;
    color: #ff0 !important;
}
.high-contrast .macro-card-footer {
    background: #121212 !important;
    color: #ff0 !important;
    border-top-color: #ff0 !important;
}
.high-contrast .service-subcard {
    background: #121212 !important;
    border-color: #ff0 !important;
    color: #ff0 !important;
}
.high-contrast .service-subcard:hover {
    background: #535353 !important;
}
.high-contrast .subcard-icon,
.high-contrast .subcard-icon i,
.high-contrast .subcard-title {
    color: #ff0 !important;
}
.high-contrast .subcard-fav-btn,
.high-contrast .subcard-fav-btn i {
    color: #ff0 !important;
}
.high-contrast .macro-extra-btn,
.high-contrast .macro-extra-btn i,
.high-contrast .macro-extra-btn span {
    background: #121212 !important;
    color: #ff0 !important;
    border-color: #ff0 !important;
}
.high-contrast .macro-extra-btn:hover {
    background: #535353 !important;
}
.high-contrast #category-modal .modal-content {
    background: #121212 !important;
    color: #ff0 !important;
}
.high-contrast #category-modal .modal-title,
.high-contrast #category-modal .modal-title i {
    color: #ff0 !important;
}
.high-contrast .category-service-item,
.high-contrast .category-service-item i,
.high-contrast .category-service-item span {
    background: #121212 !important;
    color: #ff0 !important;
    border-color: #ff0 !important;
}
.high-contrast .category-service-item:hover {
    background: #535353 !important;
}

/* ===== Botões extras abaixo dos macro-cards ===== */
.macro-extra-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding: 0 40px 40px;
    max-width: 80%;
    margin: auto;
}
.macro-extra-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    text-decoration: none;
    color: #235aa7;
    font-weight: 700;
    font-size: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    border: 1px solid rgba(35, 90, 167, 0.25);
}
.macro-extra-btn:hover,
.macro-extra-btn:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.16);
    background: #f5f8ff;
    color: #235aa7;
    border-color: #235aa7;
}
.macro-extra-btn i {
    font-size: 22px;
}
@media (max-width: 600px) {
    .macro-extra-actions {
        max-width: 95%;
        padding: 0 20px 20px;
        gap: 16px;
    }
}

/* ===== Modal de categoria ===== */
#category-modal .modal-header {
    justify-content: center;
    position: relative;
}
#category-modal .modal-title {
    text-align: center;
    width: 100%;
}
#category-modal .btn-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}
.category-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 200px));
    justify-content: center;
    gap: 16px;
}
.category-service-item {
    position: relative;
    background: #fff;
    border: 2px solid var(--cat-color, #235aa7);
    border-radius: 10px;
    padding: 16px 12px;
    text-align: center;
    text-decoration: none;
    color: #222;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    gap: 8px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.category-service-item:hover {
    background: #f5f8ff;
    transform: translateY(-2px);
    color: #222;
}
.subcard-fav-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: transparent;
    border: none;
    color: #c29c03;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}
.subcard-fav-btn:hover { transform: scale(1.15); }

@media (max-width: 600px) {
    .macro-cards-grid {
        max-width: 95%;
        padding: 20px;
        gap: 16px;
    }
    .macro-card-header { padding: 24px 12px; }
    .macro-card-header h2 { font-size: 18px; }
}

/* Avoid CLS from VLibras popup */
img.vp-pop-up {
    width: 150px;
    height: 40px;
}
