.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: flex-start;
    /* Alterado de center para flex-start */
    justify-content: center;
    overflow-y: auto;
    /* Alterado de scroll para auto */
    padding: 20px 0;
    /* Adiciona espaço no topo e base */
}

.modal-content {
    background: white;
    padding: 40px 20px 20px;
    /* Mais espaço no topo para o botão de fechar */
    width: 90%;
    max-width: 840px;
    border-radius: 8px;
    position: relative;
    margin: 20px 0;
    /* Espaço para rolagem */
    max-height: 90vh;
    /* Limita a altura máxima */
    overflow-y: auto;
    /* Habilita rolagem interna se necessário */
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    z-index: 1001;
    /* Garante que fique acima de tudo */
}

#modalImage {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    /* Alterado de cover para contain para evitar corte */
    margin-bottom: 15px;
    object-position: top;
    /* Alinha a imagem no topo */
}

#modalText {
    text-align: left;
    font-size: 18px;
    color: #333;
    padding: 0 10px;
}

#divText {
    max-height: calc(90vh - 400px);
    /* Ajusta a altura do texto */
    overflow-y: auto;
}


/* Modal Content Styling */
.modal-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
    color: #D89D55;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.modal-header .subtitle {
    color: #757575;
    font-style: italic;
    font-size: 16px;
}

.modal-body {
    padding: 0 10px;
}

.modal-section {
    margin-bottom: 25px;
}

.modal-section h4 {
    color: #95652A;
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px dashed #E5BA86;
}

.modal-section.highlight {
    background-color: #FFF9F0;
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid #D89D55;
}

.styled-list {
    list-style: none;
    padding-left: 5px;
}

.styled-list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
}

.styled-list li i {
    color: #D89D55;
    position: absolute;
    left: 0;
    top: 3px;
}

.challenge-box {
    background: #FFF;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.challenge-box h5 {
    color: #B76E22;
    font-size: 17px;
    margin-bottom: 10px;
}

.challenge-box h5 i {
    margin-right: 8px;
}

.note {
    font-size: 14px;
    color: #888;
    font-style: italic;
    margin-top: 10px;
}

/* Call to Action */
.cta {
    text-align: center;
    margin-top: 30px;
}

.cta-text {
    font-size: 17px;
    color: #95652A;
    font-weight: 500;
    margin-bottom: 20px;
}

.cta-button {
    background: #25D366;
    color: white !important;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cta-button i {
    margin-right: 8px;
    font-size: 18px;
}

/* Estilos para o modal de Emagrecimento/SOP */
.two-columns {
    display: flex;
    gap: 20px;
    margin: 15px 0;
}

.column {
    flex: 1;
}

.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.strategy-item {
    text-align: center;
    padding: 15px;
    background: rgba(216, 157, 85, 0.1);
    border-radius: 8px;
}

.strategy-item i {
    font-size: 30px;
    color: #D89D55;
    margin-bottom: 10px;
    display: block;
}

.strategy-item h5 {
    color: #95652A;
    margin: 10px 0;
    font-size: 16px;
}

.doctor-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.doctor-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #D89D55;
}

.doctor-info h5 {
    margin: 0;
    color: #95652A;
}

.doctor-info p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #777;
}

/* Estilo específico para citação */
.testimonial blockquote {
    border-left: 3px solid #D89D55;
    padding-left: 20px;
    font-style: italic;
    color: #666;
    margin: 25px 0;
}

/* Ajuste para blocos de estratégia */
.strategy-item h5 {
    font-size: 15px;
    /* Um pouco menor para caber textos mais longos */
}

.fas,
.fa {
    color: #D89D55;
    /* Dourado do tema */
    margin-right: 8px;
    /* Espaçamento opcional */
    font-size: 24px;
}

/* Foto de perfil no modal */
/* CSS */
.doctor-photo-link {
    display: inline-block;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.3s ease;
}

.doctor-photo-link:hover {
    transform: translateY(-5px);
}

.doctor-photo-link:hover .doctor-photo {
    filter: brightness(0.95);
}

.doctor-photo-link::after {
    content: "\f08c";
    font-family: 'Font Awesome 6 Brands';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    background-color: rgba(0, 119, 181, 0.8);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.doctor-photo-link:hover::after {
    opacity: 1;
}