/* --- Reset Básico & Estilos Globais --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Cabeçalho --- */
.main-header {
    background-color: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 150px;
    display: block;
}

.cta-button {
    background-color: #007BFF;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0056b3;
}

/* --- Seção de Busca Principal (index.html) --- */
.search-section {
    background-image: linear-gradient(to right, rgba(0, 123, 255, 0.8), rgba(40, 167, 69, 0.8)), url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.search-section h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.search-form {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    color: #555;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.search-button {
    grid-column: 4 / 5;
    align-self: end;
    background-color: #28a745;
    color: #ffffff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #218838;
}

/************************************************/
/* --- NOVO BANNER CARROSSEL --- */
/************************************************/

.banner-carousel-section {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.banner-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
}

.banner-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.banner-content h2 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.banner-btn {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.banner-btn:hover {
    background-color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: white;
}

.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.banner-nav:hover {
    background-color: white;
    transform: translateY(-50%) scale(1.1);
}

.banner-nav.prev {
    left: 20px;
}

.banner-nav.next {
    right: 20px;
}

/************************************************/
/* --- NOVO CARROSSEL DE ARTIGOS --- */
/************************************************/

.articles-carousel-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.articles-carousel-section .section-title {
    text-align: center;
    font-size: 2.5em;
    color: #333;
    margin-bottom: 50px;
}

.articles-carousel {
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.articles-container {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
}

.articles-container .article-card {
    flex: 0 0 calc(25% - 22.5px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.articles-container .article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.article-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.article-placeholder {
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.article-content {
    padding: 25px;
}

.article-content h3 {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-content p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-btn {
    display: inline-block;
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.article-btn:hover {
    background-color: #0056b3;
}

.articles-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.articles-nav:hover {
    background-color: white;
    transform: translateY(-50%) scale(1.1);
}

.articles-nav.prev {
    left: -22px;
}

.articles-nav.next {
    right: -22px;
}

/* --- Seções de Banners (index.html) --- */
.banners-section { padding: 60px 0; }
.banners-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.banner { background-color: #ffffff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); text-align: center; }
.banner h3 { color: #007BFF; margin-bottom: 15px; }
.banner p { margin-bottom: 20px; }
.banner .cta-button-secondary { background-color: transparent; color: #007BFF; border: 2px solid #007BFF; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: bold; transition: all 0.3s ease; }
.banner .cta-button-secondary:hover { background-color: #007BFF; color: #ffffff; }

.banners-full-width { padding: 30px 0; background-color: #ffffff; }
.banners-full-width .container { display: flex; flex-direction: column; gap: 30px; }
.banners-full-width .banner { padding: 40px; text-align: center; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.banners-full-width .banner h3 { margin-bottom: 10px; }
.banners-full-width .banner p { margin-bottom: 20px; }
.banner-clinicas { background-color: #e9f2ff; border: 1px solid #cce0ff; }
.banner-cursos { background-color: #fff2e6; border: 1px solid #ffd6b3; }

/* --- Área de Assinantes (index.html) --- */
.subscribers-section { background-color: #e9f2ff; padding: 60px 0; text-align: center; }
.subscribers-section h2 { font-size: 2em; margin-bottom: 15px; color: #0056b3; }
.subscribers-section p { max-width: 600px; margin: 0 auto 30px; }
.subscribe-form { display: flex; justify-content: center; gap: 10px; }
.subscribe-form input[type="email"] { width: 300px; padding: 12px; border: 1px solid #ccc; border-radius: 5px; font-size: 1em; }

/* --- Rodapé --- */
.main-footer { background-color: #343a40; color: #ffffff; padding: 40px 0; text-align: center; }
.footer-links { margin-bottom: 20px; }
.footer-links a { color: #ffffff; text-decoration: none; margin: 0 15px; transition: color 0.3s ease; }
.footer-links a:hover { color: #007BFF; }

/******************************************/
/* --- ESTILOS: PÁGINA DE PLANOS ---*/
/******************************************/

.planos-section { padding: 60px 0; background-color: #f9f9f9; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.2em; color: #333; margin-bottom: 10px; }
.section-title p { font-size: 1.1em; color: #666; }
.planos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; align-items: stretch; }
.plano-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); display: flex; flex-direction: column; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; }
.plano-card:hover { transform: translateY(-10px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.plano-header { padding: 20px; color: #fff; text-align: center; }
.plano-header h3 { font-size: 1.6em; }
.plano-verde { background-color: #28a745; }
.plano-dourado { background-color: #ffc107; color: #333; }
.plano-azul { background-color: #007BFF; }
.plano-roxo { background-color: #6f42c1; }
.plano-rosa { background-color: #e83e8c; }
.plano-body { padding: 25px; flex-grow: 1; }
.plano-body ul { list-style: none; }
.plano-body ul li { padding: 10px 0 10px 35px; position: relative; border-bottom: 1px solid #f0f0f0; }
.plano-body ul li:last-child { border-bottom: none; }
.plano-body ul li::before { content: '✓'; color: #28a745; font-weight: bold; font-size: 1.2em; position: absolute; left: 5px; top: 8px; }
.plano-body ul li.feature-plus { font-style: italic; color: #555; font-size: 0.95em; }
.plano-body ul li.feature-plus::before { content: '+'; color: #007BFF; }
.plano-footer { padding: 25px; text-align: center; }
.btn-assinar { display: block; width: 100%; padding: 12px; border-radius: 5px; text-decoration: none; color: #fff; font-weight: bold; transition: opacity 0.3s ease; }
.btn-assinar:hover { opacity: 0.9; }
.btn-verde { background-color: #28a745; }
.btn-dourado { background-color: #ffc107; color: #333; }
.btn-azul { background-color: #007BFF; }
.btn-roxo { background-color: #6f42c1; }
.btn-rosa { background-color: #e83e8c; }
.plano-card.popular { border: 2px solid #007BFF; }
.popular-badge { position: absolute; top: 15px; right: -35px; background-color: #007BFF; color: white; padding: 5px 40px; font-size: 0.9em; font-weight: bold; transform: rotate(45deg); z-index: 10; }

/************************************************/
/* --- NOVA BARRA DE BUSCA (buscar.html) --- */
/************************************************/

.search-bar-section {
    background-color: #fff;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}

.search-bar-form {
    margin-bottom: 20px;
}

.search-input-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #007BFF;
}

.search-btn {
    background-color: #28a745;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #218838;
}

.search-example {
    text-align: center;
}

.example-text {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 5px;
}

.example-subtitle {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

/************************************************/
/* --- ESTILOS PARA A PÁGINA DE RESULTADOS --- */
/************************************************/

.search-results-section { padding: 60px 0; background-color: #f9f9f9; }
.search-results-section h2 { text-align: center; font-size: 2.2em; color: #333; margin-bottom: 10px; }
.search-results-section p { text-align: center; font-size: 1.1em; color: #666; margin-bottom: 50px; }
.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.professional-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); display: flex; flex-direction: column; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; padding-top: 10px; }
.professional-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.card-header { display: flex; align-items: center; padding: 20px; border-bottom: 1px solid #f0f0f0; }

/* NOVA FOTO DE SILHUETA 80x80px */
.profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 20px;
    border: 3px solid #ccc;
    flex-shrink: 0;
}

.profile-pic-silhouette {
    background-color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.profile-pic-silhouette .material-icons {
    font-size: 40px;
}

.header-info { display: flex; flex-direction: column; }
.professional-name { font-size: 1.4em; color: #333; margin: 0 0 5px 0; }

/* NOVA LINHA PARA ESPECIALIDADE */
.professional-specialty {
    font-size: 1em;
    color: #007BFF;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.professional-registry { font-size: 0.9em; color: #777; background-color: #f0f0f0; padding: 2px 8px; border-radius: 4px; display: inline-block; }
.card-body { padding: 20px; flex-grow: 1; }
.card-body p { text-align: left; margin-bottom: 12px; color: #555; display: flex; align-items: center; font-size: 0.95em; }
.card-body p:last-child { margin-bottom: 0; }
.card-body p strong { color: #333; margin-right: 5px; }
.card-body .material-icons { font-size: 18px; margin-right: 10px; color: #007BFF; }
.card-footer { padding: 15px 20px; background-color: #f9f9f9; border-top: 1px solid #f0f0f0; display: flex; gap: 10px; flex-wrap: wrap; }
.atendimento-tag { background-color: #28a745; color: #fff; padding: 5px 12px; border-radius: 15px; font-size: 0.8em; font-weight: bold; }

/* NOVA TAG TELECONSULTA */
.atendimento-tag.teleconsulta { background-color: #ffc107; color: #333; }

/* NOVO BOTÃO AGENDA */
.agenda-tag {
    background-color: #007BFF;
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
}

.subscription-badge { position: absolute; top: 15px; right: -5px; color: white; padding: 4px 12px 4px 20px; font-size: 0.85em; font-weight: bold; border-top-left-radius: 15px; border-bottom-left-radius: 15px; box-shadow: -2px 2px 5px rgba(0,0,0,0.15); }
.card-verde { border-top: 4px solid #28a745; }
.card-dourado { border-top: 4px solid #ffc107; }
.card-azul { border-top: 4px solid #007BFF; }
.card-roxo { border-top: 4px solid #6f42c1; }
.card-rosa { border-top: 4px solid #e83e8c; }
.professional-card-link { text-decoration: none; color: inherit; }

/************************************************/
/* --- ESTILOS PARA A PÁGINA DE PERFIL --- */
/************************************************/

.profile-page { padding: 60px 0; }
.profile-main-section { position: relative; display: flex; gap: 40px; background: #fff; padding: 40px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.07); margin-bottom: 40px; overflow: hidden; }
.profile-plan-sticker { position: absolute; top: 0; right: 0; padding: 8px 15px 8px 20px; border-bottom-left-radius: 10px; color: white; font-weight: bold; font-size: 0.9em; display: flex; align-items: center; gap: 8px; box-shadow: -2px 2px 8px rgba(0,0,0,0.2); }
.profile-plan-sticker .material-icons { font-size: 16px; }
.profile-picture-container { flex-shrink: 0; }
.profile-main-pic { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; border: 5px solid #e83e8c; }
.profile-main-info { flex-grow: 1; }
.profile-name { font-size: 2.8em; color: #333; margin-bottom: 5px; }
.profile-registry { font-size: 1.1em; color: #777; display: block; margin-bottom: 20px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.info-item .info-label { font-size: 0.9em; color: #888; display: block; margin-bottom: 4px; }
.info-item p { font-size: 1.1em; color: #333; margin: 0; }
.profile-contact-icons { margin-top: 25px; display: flex; gap: 30px; border-top: 1px solid #f0f0f0; padding-top: 20px; }
.contact-item .info-label { font-size: 0.9em; color: #888; display: block; margin-bottom: 8px; }
.icons-row { display: flex; gap: 15px; }
.icon-link { font-size: 28px; color: #555; text-decoration: none; transition: transform 0.2s ease, color 0.2s ease; }
.icon-link:hover { transform: scale(1.2); }
.icon-link.whatsapp:hover { color: #25D366; }
.icon-link.email:hover { color: #ea4335; }
.icon-link.instagram:hover { color: #E1306C; }
.icon-link.facebook:hover { color: #1877F2; }
.profile-nav { background-color: #fff; border-radius: 10px; padding: 10px; margin-bottom: 30px; display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; box-shadow: 0 5px 20px rgba(0,0,0,0.07); position: sticky; top: 90px; z-index: 900; }
.profile-nav a { text-decoration: none; color: #007BFF; font-weight: bold; padding: 10px 20px; border-radius: 8px; transition: background-color 0.3s, color 0.3s; }
.profile-nav a:hover, .profile-nav a:focus { background-color: #007BFF; color: #fff; }
.profile-details-section { background: #fff; padding: 30px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.07); margin-bottom: 30px; scroll-margin-top: 100px; }
.profile-details-section h2 { font-size: 1.8em; color: #333; border-bottom: 2px solid #e83e8c; padding-bottom: 10px; margin-bottom: 20px; }
.landing-page-placeholder { text-align: center; background-color: #f9f9f9; padding: 50px 30px; border-radius: 10px; border: 2px dashed #ccc; }
.landing-page-placeholder .material-icons { font-size: 60px; color: #007BFF; margin-bottom: 20px; }
.landing-page-placeholder h3 { font-size: 1.8em; color: #333; margin-bottom: 15px; }
.landing-page-placeholder p { max-width: 600px; margin: 0 auto 25px auto; color: #666; }
.testimonials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.testimonial { background: #f9f9f9; padding: 20px; border-left: 4px solid #e83e8c; border-radius: 5px; }
.testimonial p { font-style: italic; margin-bottom: 10px; }
.testimonial span { font-weight: bold; color: #555; }
.videos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.video-item iframe { width: 100%; height: 315px; border-radius: 8px; }
.video-item p { text-align: center; font-weight: bold; margin-top: 10px; }
.articles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.article-card { background: #f9f9f9; padding: 20px; border-radius: 8px; text-decoration: none; color: #333; transition: box-shadow 0.3s, transform 0.3s; }
.article-card:hover { transform: translateY(-5px); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.article-card h3 { color: #e83e8c; margin-bottom: 10px; }
.article-card p { margin-bottom: 15px; }
.article-card span { font-weight: bold; color: #007BFF; }

/* --- Responsividade --- */
@media (max-width: 992px) {
    .search-form { grid-template-columns: 1fr 1fr; }
    .search-button { grid-column: 1 / 3; }
    .search-input-group { flex-direction: column; }
    .banner-content h2 { font-size: 2.2em; }
    .banner-content p { font-size: 1.1em; }
    .articles-container .article-card { flex: 0 0 calc(50% - 15px); }
    .profile-main-section { flex-direction: column; align-items: center; text-align: center; }
    .profile-main-info { text-align: center; }
    .info-grid { grid-template-columns: 1fr; text-align: left; }
    .profile-contact-icons { justify-content: center; }
    .testimonials-grid, .videos-grid, .articles-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .search-section h1 { font-size: 2em; }
    .banners-grid { grid-template-columns: 1fr; }
    .subscribe-form { flex-direction: column; align-items: center; }
    .subscribe-form input[type="email"] { width: 100%; max-width: 400px; }
    .planos-grid { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; }
    .card-header { flex-direction: column; text-align: center; }
    .profile-pic { margin-right: 0; margin-bottom: 15px; }
    .banner-content h2 { font-size: 1.8em; }
    .banner-content p { font-size: 1em; }
    .banner-nav { width: 40px; height: 40px; font-size: 18px; }
    .articles-container .article-card { flex: 0 0 calc(100% - 0px); }
    .articles-nav { display: none; }
}

@media (max-width: 576px) {
    .main-header .container { flex-direction: column; gap: 10px; }
    .search-form { grid-template-columns: 1fr; padding: 20px; }
    .search-button { grid-column: 1 / 2; }
    .banner-carousel-section { height: 300px; }
    .banner-content h2 { font-size: 1.5em; }
    .banner-content p { font-size: 0.9em; }