body {
    font-family: 'Montserrat', sans-serif;
    background-color: #FFFFFF;
    margin: 0;
    padding: 0;
    color: #333;
    font-size: 10pt;
}

/* ---------- Cabeçalho (barra) ---------- */
header {
    background-color: #F4FDFF;
    border-bottom: 1px solid #e4eef1;
    box-shadow: 0 2px 8px rgba(12,85,100,0.05);
    padding: 0;
    text-align: left;
    color: #1AA3BB;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-divider { width: 1px; height: 22px; background-color: #cfe6ec; }
.brand-sim {
    font-size: 13px; font-weight: 600; letter-spacing: 0.18em;
    text-transform: uppercase; color: #1AA3BB; white-space: nowrap;
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px; border-radius: 999px;
    background: #1AA3BB; border: 1.5px solid #1AA3BB; color: #fff;
    font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 700;
    text-decoration: none; cursor: pointer; width: auto;
    box-shadow: 0 8px 18px -8px rgba(26,163,187,0.7);
    transition: background .15s, border-color .15s;
}
.header-actions .btn-primary:hover { background: #147f92; border-color: #147f92; }

@media (max-width: 720px) {
    .header-inner { justify-content: center; }
    .header-actions { width: 100%; justify-content: center; }
}

/* ---------- Introdução / Hero ---------- */
.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
    padding: 24px 0 44px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e4eef1;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 8px 16px; border: 1px solid #cfe6ec; border-radius: 999px;
    background: #fff; color: #1AA3BB;
    font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(12,85,100,0.05);
}
.hero-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1AA3BB; }
.hero-title {
    margin: 22px 0 18px;
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 700; line-height: 1.06; letter-spacing: -0.02em; color: #0c5564;
}
.hero-title .hl { color: #1AA3BB; box-shadow: inset 0 -0.18em 0 #DFFAFF; }
.hero-text {
    margin: 0 0 28px; max-width: 540px;
    font-size: 17px; font-weight: 500; line-height: 1.6; color: #3D3D3D;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 15px 28px; border-radius: 999px;
    background: #1AA3BB; color: #fff; border: 1.5px solid #1AA3BB;
    font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 700;
    text-decoration: none; cursor: pointer; width: auto;
    box-shadow: 0 12px 26px -10px rgba(26,163,187,0.75);
    transition: background .15s, border-color .15s, transform .05s;
}
.hero-btn-primary:hover { background: #147f92; border-color: #147f92; }
.hero-btn-primary:active { transform: translateY(1px); }
.hero-features { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.hero-features li { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: #6f7174; }
.hero-features svg {
    width: 18px; height: 18px; fill: none; stroke: #1AA3BB;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}

.hero-card {
    background: #fff; border: 1px solid #e4eef1; border-radius: 22px;
    padding: 26px 26px 22px;
    box-shadow: 0 30px 60px -28px rgba(12,85,100,0.35), 0 2px 8px rgba(12,85,100,0.05);
}
.hero-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.hero-card-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #6f7174; }
.hero-card-tag { font-size: 13px; font-weight: 700; color: #1AA3BB; background: #DFFAFF; border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.hero-card-big { margin: 0 0 4px; font-size: 40px; font-weight: 700; color: #1AA3BB; line-height: 1; }
.hero-card-big span { font-size: 18px; font-weight: 600; color: #0c5564; }
.hero-card-sub { margin: 0 0 22px; font-size: 14px; font-weight: 500; color: #6f7174; }
.hero-row { margin-bottom: 16px; }
.hero-row-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 7px; font-size: 14.5px; font-weight: 500; color: #3D3D3D; }
.hero-row-top b { color: #0c5564; font-weight: 700; white-space: nowrap; }
.hero-bar { height: 7px; border-radius: 999px; background: #DFFAFF; }

@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; gap: 30px; padding: 12px 0 32px; }
    .hero-title { font-size: clamp(30px, 8vw, 40px); }
}

main {
    margin: 40px auto;
    padding: 20px;
    max-width: 1200px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.district-header {
    font-size: 22px;
    font-weight: bold;
    color: #19A4BB;
    margin-top: 40px;
    margin-bottom: 20px;
}

#top-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.left-half, .right-half {
    width: 48%;
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px; /* Reduzi ainda mais o padding vertical entre os filtros */
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #19A4BB;
}

input[type="number"], select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    padding: 12px 20px;
    background-color: #19A4BB;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: block;
    width: 100%;
    font-weight: bold;
}

.specialty-card h3 {
    font-size: 25px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.specialty-card h3 img {
    width: 54px;
    height: 54px;
    margin-right: 10px; /* Espaçamento entre o ícone e o texto */
}

.specialty-card .divider {
    height: 1px;
    background-color: #ddd;
    margin: 10px 0;
}

.specialty-card p {
    margin: 5px 0;
    font-size: 16px;
}

.specialty-card p strong {
    color: #19A4BB; /* Cor do texto */
}

.specialty-card .hospital-info {
    margin-left: 15px;
    font-size: 16px;
}

.specialty-card .hospital-info::before {
    content: '• ';
    color: #19A4BB; /* Cor do ponto */
}

button:hover {
    background-color: #128491;
}

#select-all-specialties, #remove-all-specialties {
    width: 160px; /* Largura dos botões */
    height: 29px;
    font-size: 11px; /* Reduzi 1pt do tamanho da fonte */
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    border-radius: 15px;
    margin-left: 10px;
    display: inline-block; /* Coloca os botões lado a lado */
    text-align: center;
    vertical-align: middle; /* Centraliza verticalmente */
    line-height: 0px; /* Alinha o texto verticalmente */
}

#button-container {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center; /* Alinha os botões ao centro verticalmente */
    justify-content: flex-end;
}

.specialty-filters {
    position: relative;
}

.specialty-filters h3 {
    color: #19A4BB;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
}

#results-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: bold;
    color: #19A4BB;
    margin-bottom: 40px;
}


/* Título dos distritos */
.specialty-filters h4 {
    color: #19A4BB;
    font-size: 12px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Lista de distritos */
#district-list {
    list-style-type: none;
    padding-left: 0;
    column-count: 2;
    margin-top: 10px;
}

#district-list li {
    margin-bottom: 5px;
    font-size: 9pt;
    font-weight: bold;
    color: #19A4BB;
}




#select-all-districts, #remove-all-districts {
    width: 160px; /* Largura dos botões */
    height: 29px;
    font-size: 11px; /* Reduzi 1pt do tamanho da fonte */
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    border-radius: 15px;
    margin-left: 10px;
    display: inline-block; /* Coloca os botões lado a lado */
    text-align: center;
    vertical-align: middle; /* Centraliza verticalmente */
    line-height: 0px; /* Alinha o texto verticalmente */
}

#specialty-list {
    list-style-type: none;
    padding-left: 0;
    column-count: 2;
    margin-top: 10px;
}

#specialty-list li {
    margin-bottom: 1px;
    font-size: 8pt;
    font-weight: bold;
    color: #19A4BB;
}

#results {
    margin-top: 30px;
    /* Remova ou comente a linha abaixo */
    /* background-color: #f4f4f4; */
    /* padding: 20px; */
    /* border-radius: 8px; */
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}

#result-list h3 {
    margin-top: 20px;
    color: #19A4BB;
    font-size: 18px;
}

#result-list .specialty-card {
    background-color: #fff; /* Quadrados brancos */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 32px; /* Espaçamento de 32px entre os quadrados */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra leve */
}

#result-list .specialty-card h3 {
    margin-bottom: 15px;
}

#result-list .specialty-card p {
    margin: 0;
}

#result-list h4 {
    margin-top: 10px;
    color: #333;
}

#result-list ul {
    list-style-type: none;
    padding-left: 0;
}

#result-list ul li {
    margin-bottom: 8px;
    padding: 8px;
    background-color: #f9f9f9;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#button-container {
    position: absolute;
    top: 0;
    right: 0;
}

/* Adicionando o título para a seção de pesquisa por ranking */
#ranking-title {
    font-size: 16px;
    font-weight: bold;
    color: #19A4BB;
    margin-bottom: 20px;
}