/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: #f1f5f9;
    color: #1e293b;
}

/* HEADER */
#header {
    position: sticky;
    top: 0;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 40px;

    background: #3d3e47;
    border-bottom: 1px solid #e2e8f0;
}

/* LOGO */
#logo h1 {
    font-size: 26px;
    font-weight: 600;
}

.white {
    color: #2563eb;
}

.black {
    color: #0f172a;
}

/* MENU CENTRAL */
#menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

#menu a {
    margin: 0 20px;
    text-decoration: none;
    color: #3d3e47;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    transition: 0.3s;
}

#menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: #2563eb;
    transition: 0.3s;
}

#menu a:hover {
    color: #2563eb;
}

#menu a:hover::after {
    width: 100%;
}

/* CONTAINER */
#content {
    max-width: 1100px;
    margin: 40px auto;
    display: flex;
    gap: 30px;
    padding: 0 15px;
}

/* POSTS */
#posts {
    flex: 2;
}

/* CARD POST */
.post {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    transition: all 0.25s ease;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* TITULO */
.post h2 {
    color: #2563eb;
    margin-bottom: 10px;
}

/* DATA */
.data-post {
    font-size: 12px;
    color: #94a3b8;
    display: block;
    margin-bottom: 15px;
}

/* IMAGEM */
.img-post {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* TEXTO */
.post p {
    line-height: 1.6;
    margin-bottom: 10px;
}

/* LINK */
.post a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.post a:hover {
    text-decoration: underline;
}

/* SIDEBAR */
#right-side {
    flex: 1;
}

/* CAIXAS LATERAIS */
.content-right {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* TITULO SIDEBAR */
.content-right h3 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #2563eb;
}

/* POSTS LATERAIS */
.post-right {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.post-right p {
    font-size: 14px;
    margin-bottom: 5px;
}

.post-right a {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
}

.post-right a:hover {
    text-decoration: underline;
}

/* LINKS SIDEBAR */
.content-right a {
    display: block;
    color: #64748b;
    text-decoration: none;
    margin-bottom: 6px;
}

.content-right a:hover {
    color: #2563eb;
}

/* FOOTER */
#footer {
    text-align: center;
    padding: 25px;
    margin-top: 40px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    color: #94a3b8;
    font-size: 14px;
}

/* =========================
   RESPONSIVO
========================= */

/* tablet */
@media (max-width: 1024px) {
    #content {
        flex-direction: column;
    }
}

/* celular */
@media (max-width: 768px) {

    #header {
        flex-direction: column;
        gap: 10px;
    }

    #menu {
        position: static;
        transform: none;
    }

    #menu a {
        margin: 0 10px;
    }

    #content {
        flex-direction: column;
        margin-top: 20px;
    }

    #posts,
    #right-side {
        width: 100%;
    }

}

/* celular pequeno */
@media (max-width: 480px) {

    #menu a {
        display: block;
        margin: 8px 0;
        text-align: center;
    }

    #logo h1 {
        font-size: 22px;
    }

    .post {
        padding: 18px;
    }

    .post h2 {
        font-size: 18px;
    }

}
