/* ================= RESET ================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Raleway', sans-serif;
    background-color: #f4f6f9;
    color: #333;
    line-height: 1.5;
}

/* ================= HEADER ================= */
header {
    background-color: #0d1113;
    padding: 10px 0;
    position: relative;
    z-index: 1000;
    margin-bottom: 20px;
}

header .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header .logo img {
    width: 100px;
    height: auto;
}

header .nav-links ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

header .nav-links ul li a {
    color: #e4e7e7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

header .nav-links ul li a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #e4e7e7;
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

header .nav-links ul li a:hover::after,
header .nav-links ul li a.active::after {
    transform: scaleX(1);
}

header .menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #e4e7e7;
    font-size: 24px;
    cursor: pointer;
}

/* ================= RESPONSIVIDADE (Menu móvel ajustado) ================= */
@media (max-width: 768px) {
    header .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
    }

    header .logo {
        justify-content: flex-start;
        width: auto;
    }

    header .menu-toggle {
        display: block;
    }

    header .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-end;
        background-color: #0d1113;
        position: absolute;
        top: 100%;
        right: 0;
        z-index: 999;
        padding: 10px 20px;
    }

    header .nav-links.active {
        display: flex;
    }

    header .nav-links ul {
        flex-direction: column;
        gap: 10px;
        width: auto;
        text-align: right;
    }

    header .nav-links ul li {
        position: relative;
    }

    header .nav-links ul li a {
        padding: 10px;
        display: block;
        position: relative;
    }

    header .nav-links ul li a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 3px;
        background-color: #e4e7e7;
        bottom: 0;
        right: 0;
        transition: width 0.3s ease;
    }

    header .nav-links ul li a:hover::after {
        width: 100%;
        left: 0;
    }
}

/* ================= CONTAINER ================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ================= POST CONTENT ================= */
h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.post-content {
    margin-top: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

/* ================= MESSAGE ================= */
.message {
    padding: 10px;
    background-color: #e4e7e7;
    color: #0d1113;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

/* ================= BACK TO TOP BUTTON ================= */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.back-to-top:hover {
    background-color: #2980b9;
}

/* ================= FOOTER ================= */
footer {
    background-color: #0d1113;
    padding: 30px 0;
    border-top: 1px solid #333;
    color: #e4e7e7;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

footer .footer-left {
    display: flex;
    flex: 1 1 60%;
    align-items: center;
}

footer .footer-logo {
    width: 100px;
    height: auto;
    margin-right: 20px;
}

footer .footer-description {
    font-size: 14px;
    line-height: 1.5;
    max-width: 450px;
}

footer .footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    flex: 1 1 30%;
}

footer .social-icons {
    margin-bottom: 10px;
    display: flex;
    gap: 20px;
}

footer .social-icon {
    color: #e4e7e7;
    font-size: 24px;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

footer .social-icon:hover {
    color: #ccc;
    transform: scale(1.1);
}

footer .rights-text {
    font-size: 12px;
    color: #b0b0b0;
    margin-top: 10px;
    font-weight: 300;
}

footer .rights-text strong {
    color: #e4e7e7;
}

footer .rights-text a {
    color: #b0b0b0;
    text-decoration: none;
}

footer .rights-text a:hover {
    color: #e4e7e7;
}