:root {
    --primary-color: #0284c7;
    --primary-dark: #0369a1;
    --accent-color: #0d9488;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

body { background-color: var(--light-bg); color: var(--text-color); display: flex; flex-direction: column; min-height: 100vh; }

/* Header & Menu Centralizado */
.header-container { background-color: var(--card-bg); box-shadow: 0 2px 10px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 100; }
.header-top { display: flex; justify-content: center; align-items: center; padding: 1rem; position: relative; border-bottom: 1px solid var(--border-color); }
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-img { width: 55px; height: 55px; border-radius: 50%; object-fit: cover; }
.logo-text h1 { font-size: 1.6rem; color: var(--primary-color); line-height: 1.1; }
.logo-text span { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }

.nav-bar { display: flex; justify-content: center; background-color: #ffffff; padding: 0.75rem 0; }
.nav-links { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-color); font-weight: 600; font-size: 0.95rem; }
.nav-links a.active, .nav-links a:hover { color: var(--primary-color); }
.btn-admin { background-color: var(--primary-color); color: white !important; padding: 0.4rem 0.9rem; border-radius: 20px; font-size: 0.85rem !important; }

.menu-toggle { display: none; position: absolute; right: 1.5rem; background: none; border: none; font-size: 1.5rem; color: var(--text-color); cursor: pointer; }

/* Hero com Imagem de Pôr do Sol */
.hero-sunset {
    background: url('https://images.unsplash.com/photo-1495616811223-4d98c6e9c869?auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
    position: relative;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.45); /* Escurecimento para leitura perfeita do texto */
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    color: #ffffff;
}

.hero-overlay h1 { font-size: 2.2rem; margin-bottom: 0.5rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.6); }
.hero-overlay p { font-size: 1.1rem; text-shadow: 1px 1px 3px rgba(0,0,0,0.6); }

/* Slider / Carrossel */
.slider-section { margin-top: 2rem; }
.section-title { margin-bottom: 1rem; color: var(--primary-dark); font-size: 1.3rem; display: flex; align-items: center; gap: 0.5rem; }

.carousel-container { position: relative; max-width: 1000px; margin: 0 auto; overflow: hidden; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.carousel-track { list-style: none; position: relative; height: 320px; width: 100%; }
.carousel-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s ease-in-out; }
.carousel-slide.active { opacity: 1; z-index: 1; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: white;
    padding: 1.5rem 1rem 1rem 1rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    font-size: 1rem;
    color: var(--text-color);
}
.prev-btn { left: 15px; }
.next-btn { right: 15px; }
.carousel-btn:hover { background: white; }

.carousel-nav { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.indicator { width: 12px; height: 12px; border-radius: 50%; border: none; background: #cbd5e1; cursor: pointer; }
.indicator.active { background: var(--primary-color); }

/* Posts Grid */
.container { max-width: 1000px; margin: 2rem auto; padding: 0 1rem; flex: 1; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.post-card { background-color: var(--card-bg); border-radius: 10px; border: 1px solid var(--border-color); padding: 1.25rem; display: flex; flex-direction: column; position: relative; }
.post-badge { position: absolute; top: 12px; right: 12px; background: #e0f2fe; color: #0369a1; padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: bold; }
.post-header { margin-bottom: 0.75rem; }
.post-date { display: block; font-size: 0.8rem; color: var(--text-muted); }
.post-title { font-size: 1.2rem; margin-bottom: 0.5rem; color: #0f172a; }
.post-content { font-size: 0.95rem; line-height: 1.5; margin-bottom: 1rem; color: #334155; }
.post-image { width: 100%; max-height: 220px; object-fit: cover; border-radius: 8px; margin-bottom: 1rem; }
.post-footer { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--border-color); }
.post-link { color: var(--primary-color); text-decoration: none; font-weight: 600; font-size: 0.85rem; }

footer { text-align: center; padding: 2rem 1rem; background-color: var(--card-bg); border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-bar { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--card-bg); padding: 1rem; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
    .nav-bar.open { display: flex; }
    .nav-links { flex-direction: column; gap: 1rem; width: 100%; text-align: center; }
    .btn-admin { display: inline-block; width: 100%; }
    .hero-overlay h1 { font-size: 1.5rem; }
    .carousel-track { height: 220px; }
}