/* PALETA DE CORES CUPOMSAÚDE */
:root {
    --brand-blue: #3b7dbd;   /* Azul extraído da sua logo */
    --brand-green: #76b840;  /* Verde extraído da sua logo */
    --bg-light: #fdfdfd;
    --text-dark: #333;
    --card-bg: #f0f4f8;      /* Azul clarinho para os blocos */
}

* { box-sizing: border-box; }
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    margin: 0; 
    background: var(--bg-light); 
    color: var(--text-dark); 
}

/* NAVBAR */
.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 50px; 
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.main-logo { height: 55px; }
.login-btn { 
    background: var(--brand-blue); 
    color: white; 
    border: none; 
    padding: 10px 25px; 
    border-radius: 25px; 
    font-weight: bold; 
    cursor: pointer;
    transition: 0.3s;
}
.login-btn:hover { background: #2a5a8a; }

/* CONTAINER PRINCIPAL */
.container { 
    max-width: 1200px; 
    margin: 20px auto; 
    padding: 20px; 
}

/* HERO / BUSCA */
.hero-section { text-align: center; padding: 40px 0; }
.hero-section h1 { color: var(--brand-blue); font-size: 2.5rem; margin-bottom: 10px; }
.search-box { display: flex; gap: 10px; justify-content: center; margin-top: 25px; }
.search-box input { 
    width: 50%; 
    padding: 15px 25px; 
    border-radius: 30px; 
    border: 2px solid #eee; 
    outline: none;
    font-size: 16px;
}
.search-box input:focus { border-color: var(--brand-blue); }
.btn-busca { 
    background: var(--brand-green); 
    color: white; 
    border: none; 
    padding: 15px 35px; 
    border-radius: 30px; 
    cursor: pointer; 
    font-weight: bold;
    font-size: 16px;
}

/* GRID DE CATEGORIAS - AJUSTE PARA LINKS */
.category-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
    margin-top: 40px;
}
.cat-card { 
    text-decoration: none; /* Remove o sublinhado de link */
    background: white; 
    border-radius: 12px; 
    height: 110px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--brand-blue); 
    font-weight: bold; 
    font-size: 18px; 
    text-align: center; 
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    padding: 10px;
}
.cat-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: var(--brand-green);
    color: var(--brand-green);
}

/* RESULTADOS DA BUSCA / CATEGORIA */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.doctor-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    border-left: 5px solid var(--brand-blue);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.coupon-btn {
    background: var(--brand-green);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

/* BLOCO INFORMATIVO */
.info-row { 
    display: flex; 
    gap: 30px; 
    margin: 60px 0; 
    background: white; 
    padding: 40px; 
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.info-item { flex: 1; text-align: center; }
.info-item img { height: 50px; margin-bottom: 15px; }
.info-item h3 { color: var(--brand-blue); margin-bottom: 10px; }
.info-item p { font-size: 14px; color: #666; line-height: 1.6; }

/* ESPAÇO DO BANNER NO RODAPÉ */
.footer-banner {
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}
.ad-space {
    max-width: 1200px;
    margin: 0 auto;
    background: #f0f0f0; /* Fundo cinza enquanto não tem foto */
    border: 2px dashed #ccc; /* Borda tracejada indicando "Anuncie Aqui" */
    border-radius: 15px;
    min-height: 200px; /* Garante que o espaço apareça */
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-signature { 
    text-align: center; 
    padding: 30px; 
    color: #aaa; 
    font-size: 13px; 
    letter-spacing: 1px;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .search-box { flex-direction: column; align-items: center; }
    .search-box input { width: 90%; }
    .info-row { flex-direction: column; }
    .navbar { padding: 10px 20px; }
}