/* NOVO */

/* Estilos Gerais da Seção */
#especialidades {
    background-color: #fff;
}

#especialidades .titulo {
    color: #0b983a;
    font-weight: 700;
    text-transform: uppercase;
}

/* Estrutura do Card */
.card-ooe-link {
    text-decoration: none !important;
    display: block;
}

/* --- ESTILO BASE DO CARD --- */
.card-ooe-link {
    text-decoration: none;
    display: block;
}

.card-ooe {
    position: relative;
    height: 220px;
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    background-color: #eee; /* Cor de fundo caso a imagem demore */
    
    /* Configuração da Imagem de Fundo (Versão NORMAL) */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    
    transition: transform 0.3s ease;
    z-index: 1;
}

/* Pseudo-elemento para a Imagem HOVER (Colorida) */
/* Ela já fica carregada por baixo do overlay branco */
.card-ooe::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    
    /* Estado inicial: invisível e levemente deslocada para o efeito */
    opacity: 0;
    transform: translateY(10px) scale(1.55);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s ease;
    z-index: 1;
}

/* Camada Branca Inicial (Overlay) */
.card-ooe .card-ooe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.75);
    transition: opacity 0.2s ease;
    z-index: 2; /* Fica acima da imagem colorida inicialmente */
}

/* --- EFEITO HOVER --- */

.card-ooe-link:hover .card-ooe {
    transform: translateY(-5px);
}

/* O segredo: a imagem colorida aparece e o overlay some ao mesmo tempo */
.card-ooe-link:hover .card-ooe::before {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.card-ooe-link:hover .card-ooe .card-ooe-overlay {
    opacity: 0;
}

/* Conteúdo sempre no topo */
.card-ooe-content {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- TEXTO E SETA --- */
.card-ooe .card-ooe-title {
    color: #00aa88;
    font-weight: 400;
    font-size: 1.7rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.card-ooe-link:hover .card-ooe .card-ooe-title {
    color: #ffffff;
}

.card-ooe .card-ooe-arrow {
    width: 38px;
    height: 38px;
    background-color: #00aa88;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.card-ooe-link:hover .card-ooe .card-ooe-arrow {
    background-color: #ffffff;
    color: #00aa88;
    transform: translateX(5px);
}

.bg-oftalmo { 
    background-image: url('../img/index/especialidades/oftalmo_normal.jpg'); 
}
 .bg-oftalmo::before { 
    background-image: url('../img/index/especialidades/oftalmo_hover.jpg');
}


.bg-otorrino { 
    background-image: url('../img/index/especialidades/otorrino_normal.jpg'); 
}
 .bg-otorrino::before { 
    background-image: url('../img/index/especialidades/otorrino_hover.jpg'); 
}


.bg-buco { 
    background-image: url('../img/index/especialidades/buco_normal.jpg'); 
}
 .bg-buco::before { 
    background-image: url('../img/index/especialidades/buco_hover.jpg'); 
}


.bg-plastica { 
    background-image: url('../img/index/especialidades/plastica_normal.jpg'); 
}
 .bg-plastica::before { 
    background-image: url('../img/index/especialidades/plastica_hover.jpg'); 
}


.bg-atm { background-image: url('../img/index/especialidades/atm_normal.jpg'); }
 .bg-atm::before { background-image: url('../img/index/especialidades/atm_hover.jpg'); }


.bg-fono { background-image: url('../img/index/especialidades/fono_normal.jpg'); }
 .bg-fono::before { background-image: url('../img/index/especialidades/fono_hover.jpg'); }


.bg-sono { background-image: url('../img/index/especialidades/sono_normal.jpg'); }
 .bg-sono::before { background-image: url('../img/index/especialidades/sono_hover.jpg'); }


.bg-vascular { background-image: url('../img/index/especialidades/vascular_normal.jpg'); }
 .bg-vascular::before { background-image: url('../img/index/especialidades/vascular_hover.jpg'); }


/* Ajustes Responsivos */
@media (max-width: 768px) {
    .card-ooe {
        height: 180px;
        padding: 20px;
    }
}

/* botão */
/* Container da seção para garantir espaçamento */
.ind-cont-ao {
    background-color: #fff; /* Ou a cor de fundo da sua página */
    padding: 20px 0;
}

/* O Botão Estilo Pílula */
.btn-agendar-full {
    display: block;
    width: 100%;
    background-color: #00a884; /* Verde da imagem */
    color: #ffffff !important;
    text-align: center;
    padding: 20px 30px;
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: 1px;
    
    /* Borda Arredondada (Pílula) */
    border-radius: 100px;
    
    /* Transição suave */
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Efeito Hover */
.btn-agendar-full:hover {
    background-color: #008f6f; /* Tom levemente mais escuro */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Ajuste para telas pequenas (Mobile) */
@media (max-width: 768px) {
    .btn-agendar-full {
        font-size: 1.1rem;
        padding: 15px 20px;
        border-radius: 50px;
    }
}

/* noticias blog */

#secao-dicas .titulo-dicas {
    font-size: 2.2rem;
    color: #444;
    font-weight: 400;
    text-transform: none;
}
#secao-dicas .titulo-dicas strong {
    color: #008f6f;
}

/* 1. Força o Slick a deixar todos os slides com a mesma altura */
.slider-dicas .slick-track {
    display: flex !important;
    align-items: stretch;
}

.slider-dicas .slick-slide {
    height: auto !important;
    display: flex !important; /* Faz o slide se comportar como flex container */
}

/* Container do item para dar o espaçamento lateral entre cards */
.item-dica {
    padding: 15px;
    outline: none;
    height: 100%;
}

.card-dica {
    background: #fff;
    border-radius: 35px; /* Bordas bem arredondadas conforme imagem */
    border: 1px solid #e0e0e0;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.card-dica:hover {
    transform: translateY(-5px);
}

.card-dica-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 35px;
}

.card-dica-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-dica-title {
    color: #008f6f;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.card-dica-text {
    color: #777;
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 20px;
}

/* Botão Saiba Mais */
.card-dica-footer {
    margin-top: auto; /* Empurra para o fundo */
    display: flex;
    justify-content: flex-end;
}

.btn-saiba-mais {
    text-decoration: none !important;
    color: #888;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: 0.3s;
}

.seta-circulo {
    width: 32px;
    height: 32px;
    background-color: #008f6f;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
}

.btn-saiba-mais:hover {
    color: #008f6f;
}

/* setas */

/* Container do Slider (ajuste de overflow para as setas aparecerem) */
#secao-dicas {
    position: relative;
    padding: 0 50px; /* Dá espaço para as setas nas laterais */
}

/* Estilo Base das Setas */
.slick-prev, .slick-next {
    font-size: 0;
    line-height: 0;
    position: absolute;
    top: 50%;
    display: block;
    width: 40px;
    height: 40px;
    padding: 0;
    transform: translateY(-50%);
    cursor: pointer;
    border: none;
    outline: none;
    background: transparent;
    z-index: 99;
}

/* Criando o desenho da seta (Cinza claro conforme imagem) */
.slick-prev:before, .slick-next:before {
    content: '';
    display: block;
    width: 25px;
    height: 25px;
    border-left: 4px solid #e0e0e0;
    border-bottom: 4px solid #e0e0e0;
    transition: border-color 0.3s;
}

/* Posicionamento e Rotação da Seta Esquerda */
.slick-prev {
    left: -10px;
}
.slick-prev:before {
    transform: rotate(45deg);
}

/* Posicionamento e Rotação da Seta Direita */
.slick-next {
    right: -10px;
}
.slick-next:before {
    transform: rotate(-135deg);
}

/* Efeito de Hover nas setas */
.slick-prev:hover:before, .slick-next:hover:before {
    border-color: #0b983a; /* Muda para verde ao passar o mouse */
}

/* Esconder setas padrão que o Slick as vezes tenta colocar */
.slick-prev:after, .slick-next:after {
    display: none;
}

/* trabalhe conosco */

/* Container da seção */
.ind-cont-pa {
    background-color: #fff; /* Altere para a cor de fundo desejada */
}

/* --- COLUNA ESQUERDA (IMAGEM) --- */
.img-pert {
    width: 100%;
    max-width: 380px; /* Ajuste para o tamanho real da sua imagem */
    height: auto;
    border-radius: 40px; /* Arredondamento da imagem conforme layout */
    object-fit: cover;
}

/* --- COLUNA DIREITA (TEXTO) --- */
.titulo-equipe {
    font-size: 2.2rem;
    font-weight: 500;
    color: #4a4a4a; /* Cinza escuro */
    line-height: 1.2;
    text-align: center;
}

.titulo-equipe strong {
    color: #00a884; /* Verde escuro do CEMA */
}

.txt-subtitulo {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.4;
    text-align: center;
}

/* --- ESTILIZAÇÃO DOS BOTÕES --- */
.container-botoes {
    max-width: 360px; /* Alinha os botões centralizados no mobile */
    margin: 0 auto;
}

.btn-ind-pa {
    display: block;
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    border-radius: 50px; /* Estilo pílula */
    transition: all 0.3s ease;
    text-transform: none; /* Mantém maiúsculas/minúsculas */
}

/* Botão Verde Escuro */
.btn-trabalho-escuro {
    background-color: #064d2d; /* Verde escuro */
    color: #fff !important;
}

.btn-trabalho-escuro:hover {
    background-color: #064d2d;
    transform: translateY(-3px);
}

/* Botão Verde Claro/Ciano */
.btn-trabalho-claro {
    background-color: #00a884; /* Verde Ciano */
    color: #fff !important;
}

.btn-trabalho-claro:hover {
    background-color: #008f6f;
    transform: translateY(-3px);
}

/* --- RESPONSIVIDADE (Bootstrap 4+) --- */
@media (max-width: 767px) {
    .titulo-equipe { font-size: 2rem; }
    .txt-subtitulo { font-size: 1rem; }
    .img-pert { max-width: 320px; }
    
    .ind-pa-txt-col {
        margin-top: 30px;
    }
}

/* Alinhamento de Texto Desktop vs Mobile */
@media (min-width: 768px) {
    .container-botoes { margin: 0 auto; }
}