/* Services Section */
.services {
    padding: 120px 0 80px;
    background-color: white;
}
  
.services-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #0D2450;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center; /* centraliza itens por linha */
}
  
.service-card {
    flex: 1 1 280px;   /* base 280px, cresce se houver espaço */
    max-width: 360px;  /* limita o quanto pode crescer */
    background-color: white;
    border-radius: 12px;
    box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    transition: transform 0.3s ease;
    cursor: pointer;
}
  
.service-card:hover {
    transform: translateY(-5px);
}
  
.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #BF2025;
}
  
.service-card ul {
    list-style: none;
    padding-left: 0;
}
  
.service-card li {
    position: relative;
    padding-left: 20px; /* espaço para o círculo */
    margin-bottom: 0.5rem;
    color: black;
    font-size: 1.1rem;
    line-height: 1.5;
}
  
.service-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background-color: #BF2025; /* cor do ponto */
    border-radius: 50%;
} 

dialog {
    width: 90%;
    max-width: 1100px;
    padding: 20px;
    border-radius: .5rem;
    box-shadow: 0 0 1em rgba(0, 0, 0, 0.3);
    background-color: white;
    margin: auto;
    animation: fadeIn 0.6s ease-in-out;
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
}


.close-button {
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
}
.close-button2 {
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
}
.close-button3 {
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
}
.close-button4 {
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
}
.close-button5 {
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
}
.close-button6 {
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
}
.close-button7 {
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
}
.close-button8 {
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
}

.close-button-procedimentos {
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
}

.close-button-procedimentos2 {
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
}
.close-button-procedimentos3 {
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
}
.close-button-procedimentos4 {
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
}

.close-button-procedimentos-endo {
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
}

.close-button-procedimentos-endo2 {
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
}

.close-button-procedimentos-endo3 {
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
}

.close-button-procedimentos-endo4 {
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
}

.close-button-exames{
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
}

.close-button-exames2{
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
}

.close-button-tratamentos {
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
}

.service-modal {
    color: #0f172a;
    line-height: 1.6;
    max-height: 70vh;            /* para modais longos */
    overflow: auto;              /* scroll interno */
    padding-right: 4px;          /* espaço para não colar na barra de rolagem */
}
.service-modal h2 {
    font-size: 1.6rem;
    margin: 0 0 1rem 0;
    color: #0D2450;
    text-align: center;
}
.service-modal .service-section + .service-section {
    margin-top: 1.25rem;
}
.service-modal h3 {
    font-size: 1.2rem;
    color: #BF2025;
    margin: 0 0 .5rem 0;
}
.service-modal p {
    margin: .5rem 0;
    font-size: 1rem;
}
.service-modal ul {
    margin: .5rem 0 .75rem 1.2rem;
    padding: 0;
}
.service-modal li {
    margin: .35rem 0;
}
.service-modal .divider {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 1rem 0;
}

/* mobile */
@media (max-width: 768px) {
    .service-modal {
      max-height: 65vh;
      font-size: 0.98rem;
    }
    .service-modal h2 {
      font-size: 1.4rem;
    }
    .service-modal h3 {
      font-size: 1.1rem;
    }
}