/* Reset e Estilos Gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #2c8a8a;
}

.btn {
    display: inline-block;
    background-color: #2c8a8a;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #1f6b6b;
    transform: translateY(-2px);
}

/* Header */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    color: #2c8a8a;
}

.search-container {
    margin-bottom: 15px;
}

.search-container form {
    display: flex;
}

.search-container input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
}

.search-container button {
    background-color: #2c8a8a;
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-right: 20px;
}

.main-nav a {
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #2c8a8a;
}

.main-nav i {
    margin-right: 5px;
}


.hero {
    /* Fundo */
    background-color: #000;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; /* Mantém a imagem cobrindo, mas pode cortar laterais */
    transition: background-image 1.5s ease-in-out;

    /* Altura fixa mais equilibrada (menos vertical) */
    min-height: 40vh;   /* Era 100vh — agora é 80% da altura da tela */
    height: auto;
    padding: 80px 0;

    /* Cor do texto */
    color: white;
    text-align: center;
    margin-bottom: 40px;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Dicas */
.featured-dicas {
    margin-bottom: 40px;
}

.featured-dicas h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2c8a8a;
    display: flex;
    align-items: center;
}

.featured-dicas h2 i {
    margin-right: 10px;
}

.dica-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 25px;
}

.dica-card h3 {
    color: #2c8a8a;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.dica-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #777;
}

.tags a {
    background: #e0f2f2;
    padding: 3px 8px;
    border-radius: 3px;
    margin-right: 5px;
    font-size: 0.8rem;
}

.tags a:hover {
    background: #c4e6e6;
}

/* Categorias */
.categories {
    margin-bottom: 40px;
}

.categories h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2c8a8a;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.category-card i {
    font-size: 2.5rem;
    color: #2c8a8a;
    margin-bottom: 15px;
}

.category-card h3 {
    color: #333;
}

/* Resultados da Busca */
.search-results h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c8a8a;
}

.results-count {
    margin-bottom: 20px;
    color: #555;
}

.no-results, .no-search-term {
    text-align: center;
    padding: 50px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.no-results i, .no-search-term i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 15px;
}

.no-results p, .no-search-term p {
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background: #2c8a8a;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #c4e6e6;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #c4e6e6;
}

/* Responsivo */
@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav li {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }

    .dica-card p {
        margin-bottom: 10px;
        white-space: pre-line; /* Mantém as quebras de linha do conteúdo */
    }

    .dica-card ul, .dica-card ol {
        margin-left: 20px;
        margin-bottom: 10px;
    }

    .dica-card li {
        margin-bottom: 5px;
    }
    .btn-small {
    display: inline-block;
    background-color: #2c8a8a;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    margin-top: 10px;
    }

    .btn-small:hover {
        background-color: #1f6b6b;
    }
    .dica-single {
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    }

    .dica-single h1 {
        color: #2c8a8a;
        margin-bottom: 20px;
        font-size: 1.8rem;
    }

    .dica-content {
        line-height: 1.8;
        margin-bottom: 20px;
    }

    .dica-content p {
        margin-bottom: 15px;
    }

    .dica-content ul, .dica-content ol {
        margin-left: 25px;
        margin-bottom: 15px;
    }

    .dica-content li {
        margin-bottom: 8px;
    }

    .paginacao {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 5px;
    }

    .paginacao a {
        padding: 8px 15px;
        background: #2c8a8a;
        color: white;
        border-radius: 4px;
        text-decoration: none;
        transition: all 0.3s;
    }

    .paginacao a.ativa {
        background: #1a5f5f;
        font-weight: bold;
    }

    .paginacao a:hover:not(.ativa) {
        background: #3aa8a8;
        transform: translateY(-2px);
    }

    .pagina-set {
        background: #4db6ac !important;
    }

    .admin-container {
        max-width: 1200px;
        margin: 20px auto;
        padding: 20px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }

    .admin-container table {
        width: 100%;
        border-collapse: collapse;
        margin: 20px 0;
    }

    .admin-container th, .admin-container td {
        padding: 12px;
        text-align: left;
        border-bottom: 1px solid #ddd;
    }

    .admin-container th {
        background-color: #2c8a8a;
        color: white;
    }

    .admin-container tr:hover {
        background-color: #f5f5f5;
    }

    .alert {
        padding: 10px;
        margin-bottom: 20px;
        border-radius: 4px;
    }

    .sucesso {
        background-color: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }

 /* === Setas do Hero Slide === */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Posição nas extremidades */
.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Efeito hover */
.slide-arrow:hover {
    background: #2c8a8a;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* Ícone dentro da seta */
.slide-arrow i {
    margin: 0;
}

/* Esconder em telas pequenas (opcional) */
@media (max-width: 768px) {
    .slide-arrow {
        opacity: 0.8;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .prev { left: 10px; }
    .next { right: 10px; }
}

@media (max-width: 480px) {
    .slide-arrow {
        opacity: 0;
        visibility: hidden;
    }
    .slide-arrow:hover {
        opacity: 1;
        visibility: visible;
    }
}

}