:root {
    --dark-blue: #0A192F;
    --highlight-blue: #112240;
    --white: #FFFFFF;
    --text-color: #555;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body { 
    font-family: 'Montserrat', sans-serif; 
    color: var(--white); 
    background-color: var(--dark-blue); 
}

/* Navbar */
.navbar {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 20px 4%; 
    background-color: var(--white);
    border-bottom: 3px solid var(--dark-blue);
    position: sticky; 
    top: 0; 
    z-index: 1000;
}

.logo { 
    font-family: 'Playfair Display', serif; 
    font-size: 1.6rem; 
    font-weight: bold; 
    color: var(--dark-blue); 
    display: flex;
    white-space: nowrap;
    align-items: center;
}

.logo span { 
    color: var(--highlight-blue); 
    margin-left: 8px; 
}

/* Nav Links */
.nav-links { 
    display: flex; 
    list-style: none; 
    align-items: center;
}

.nav-links li { 
    padding: 0 10px; 
}

.nav-links a { 
    text-decoration: none; 
    color: var(--dark-blue); 
    font-weight: 600; 
    font-size: 0.85rem; 
    transition: 0.3s; 
}

.nav-links a:hover { 
    color: var(--highlight-blue); 
}

/* Dropdown */
.dropdown { position: relative; }

.dropdown-content { 
    display: none; 
    position: absolute; 
    background-color: var(--white); 
    min-width: 220px; 
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1); 
    top: 100%; 
    left: 0; 
    z-index: 9999;
}

.dropdown:hover .dropdown-content { display: block; }

.dropdown-content a { 
    padding: 12px 20px; 
    display: block; 
    color: var(--dark-blue); 
    font-size: 0.9rem; 
    font-weight: 400;
}

.dropdown-content a:hover { background-color: #f2f2f2; }

/* AJUSTE DO FORMULÁRIO DE LOGIN NO DROPDOWN */
.dropdown-content form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
}

.dropdown-content input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: var(--dark-blue);
}

.dropdown-content input[type="submit"] {
    background-color: var(--dark-blue);
    color: var(--white);
    border: none;
    padding: 10px;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 4px;
}

.dropdown-content input[type="submit"]:hover {
    background-color: var(--highlight-blue);
}

.btn-contato { 
    background-color: var(--dark-blue); 
    color: var(--white) !important; 
    padding: 8px 15px; 
    border-radius: 4px; 
}

/* Botão Voltar */
.btn-voltar {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--dark-blue);
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
    margin-top: 20px;
    border: none;
}

.btn-voltar:hover {
    background-color: var(--highlight-blue);
    transform: translateY(-2px);
}

/* Hero */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex; 
    align-items: center; 
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(10, 25, 47, 0.6), rgba(10, 25, 47, 0.6)), 
                url('assets/black-horse.jpg') no-repeat center center / cover;
    background-attachment: fixed;
}

.hero-text h1 { 
    font-family: 'Playfair Display', serif; 
    font-size: 3.5rem; 
    margin-bottom: 20px; 
}

/* Tabela de Exames */
#tabela-exames {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    table-layout: auto;
}

#tabela-exames th {
    background-color: var(--highlight-blue);
    color: var(--white);
    padding: 15px;
    text-align: center;
}

#tabela-exames td {
    padding: 15px;
    border: 1px solid #ddd;
    color: var(--text-color);
}

/* Página Interna Base */
.pagina-interna { 
    padding: 80px 5%; 
    max-width: 1400px; 
    margin: 0 auto; 
    background-color: var(--white); 
    color: #333;
}

/* --- SEÇÃO DO BLOG --- */
.titulo-blog {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--dark-blue);
    text-align: center;
    margin-bottom: 10px;
}

.subtitulo-blog {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 50px;
    font-style: italic;
}

.container-grid-blog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.artigo-card {
    background-color: #fff;
    border: 1px solid #e1e1e1;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.artigo-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.artigo-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.artigo-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.artigo-card-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin-bottom: 15px;
    line-height: 1.3;
}

.artigo-card-content p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.ler-mais {
    margin-top: auto;
    color: var(--highlight-blue);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-bottom: 2px solid transparent;
    display: inline-block;
    width: fit-content;
    transition: 0.3s;
}

.ler-mais:hover {
    border-bottom: 2px solid var(--highlight-blue);
}

/* Footer */
.footer {
    padding: 60px 7% 20px;
    background-color: var(--dark-blue);
    border-top: 1px solid var(--highlight-blue);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-column { flex: 1; min-width: 220px; }

.footer-column h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--white);
    border-bottom: 1px solid #1a2a40;
    padding-bottom: 8px;
}

.footer-column p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #cbd5e0;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #718096;
    border-top: 1px solid #1a2a40;
}

/* WhatsApp */
.whatsapp-btn { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    z-index: 9999; 
    background-color: #25d366; 
    padding: 15px; 
    border-radius: 50%; 
    transition: 0.3s; 
}

.whatsapp-btn img { width: 35px; height: 35px; }

/* Responsivo */
@media (max-width: 768px) {
    .hero-text h1 { font-size: 2.2rem; }
    .footer-container { flex-direction: column; }
    
    .pagina-interna { padding: 60px 5%; }
    .titulo-blog { font-size: 2rem; }
    
    .container-grid-blog {
        grid-template-columns: 1fr;
    }
}

/* Redes Sociais */
.redes-sociais-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.redes-sociais-footer a {
    color: #cbd5e0; 
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.redes-sociais-footer a i {
    font-size: 1.2rem;
    margin-right: 10px;
    width: 20px; 
    text-align: center;
}

.redes-sociais-footer a:hover {
    color: var(--white);
    transform: translateX(5px); 
}