/* ============================================
   ARQUIBANCADABR - STYLE.CSS (Versão Otimizada)
   UX moderna • SEO-friendly • AdSense Ready
   ============================================ */

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f5;
    color: #222;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* LINKS */
a {
    text-decoration: none;
    color: inherit;
}

/* HEADER */
header {
    background: #111;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 999;
}

header .logo {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

header nav ul {
    display: flex;
    gap: 20px;
}

header nav ul li {
    list-style: none;
}

header nav ul li a {
    color: #fff;
    font-size: 15px;
    transition: 0.2s;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: #00c74d;
}

/* MENU MOBILE */
.menu-icon {
    display: none;
    color: #fff;
    font-size: 25px;
    cursor: pointer;
}

@media(max-width: 768px){
    nav ul {
        display: none;
        flex-direction: column;
        background: #111;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        padding: 15px;
        border-left: 2px solid #00c74d;
        border-bottom: 2px solid #00c74d;
    }

    nav ul.active {
        display: flex;
    }

    .menu-icon {
        display: block;
    }
}

/* HERO PRINCIPAL */
.hero {
    width: 100%;
    height: 260px;
    padding: 20px 5%;
    background-image: url('../img/hero.jpg');
    background-repeat: no-repeat;
    background-position: center top;  /* mostra melhor o topo da arte */
    background-size: contain;        /* mostra a imagem INTEIRA, sem corte */
    background-color: #0f3a1a;       /* fundo verde por trás, combinando com a arte */
    display: flex;
    align-items: flex-end;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

/* CONTAINER */
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

/* GRID DE POSTS */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.post-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transition: 0.2s ease;
}

.post-card:hover {
    transform: scale(1.02);
}

.post-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.post-card h3 {
    font-size: 18px;
    padding: 15px;
}

.post-card p {
    padding: 0 15px 15px;
    color: #444;
    font-size: 14px;
}

.post-card a {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background: #00c74d;
    text-align: center;
    color: #fff;
    font-weight: bold;
    transition: 0.2s;
}

.post-card a:hover {
    background: #02963b;
}

/* FOOTER */
footer {
    background: #111;
    color: #bbb;
    padding: 25px;
    text-align: center;
    margin-top: 40px;
}

footer a {
    color: #00c74d;
}

footer a:hover {
    text-decoration: underline;
}

/* ARTIGOS (POSTS INDIVIDUAIS) */
article img {
    max-width: 100%;
    border-radius: 10px;
}

article h2 {
    font-size: 22px;
    margin: 20px 0 10px;
}

article p {
    font-size: 15px;
    margin-bottom: 12px;
}

/* BREADCRUMB */
nav.breadcrumb a {
    color: #00c74d;
    font-size: 13px;
}

nav.breadcrumb span {
    color: #555;
}
