/* ==== HEADER ==== */
.header {
    background-color: #FF8000;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
}
.post-comments {
    margin-top: 50px;
    font-family: Arial, sans-serif;
}

.post-comments h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.comments-list {
    margin-bottom: 30px;
}

.comment-box {
    border-bottom: 1px solid #ddd;
    padding: 15px 10px;
    transition: background 0.2s;
}

.comment-box:hover {
    background: #f9f9f9;
}

.comment-box p {
    margin: 5px 0;
}

.comment-box p:first-child {
    font-weight: bold;
    color: #222;
}

.comment-box .comment-date {
    font-size: 12px;
    color: #777;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0,123,255,0.3);
    outline: none;
}

.comment-form .submit {
    background: #007bff;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.comment-form .submit:hover {
    background: #0056b3;
}

/* ==== FOOTER ==== */
.footer {
    background-color: #FF8000;
    color: #fff;
    padding: 20px 0;
    margin-top: 40px;
}

footer .widget_categories a {
    background: transparent !important;
    color: #fff !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

footer .widget_categories a:hover {
    color: #FF8000 !important;
    background: transparent !important;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.footer .links {
    display: flex;
    gap: 20px;
}

.footer .links a {
    color: #fff;
    text-decoration: none;
}

.footer .copy,
.footer .agency {
    text-align: center;
    width: 100%;
    font-size: 0.875rem;
    margin-top: 10px;
}

.footer .anel-logo {
    display: block;
    margin: 0 auto;
    max-width: 150px;
}

/* ==== LAYOUT PRINCIPAL ==== */
.main-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.content {
    flex: 1;
    max-width: 70%;
    margin-bottom: 40px;
}

/* ==== ITENS DE NOTÍCIA ==== */
.content .news-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.content .news-item img {
    width: 180px;
    height: 120px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.content .news-item h2,
.content .news-item h3 {
    margin: 0 0 5px;
    font-size: 1.1rem;
}

.content .news-item p {
    font-size: 0.95rem;
    color: #333;
}

/* ==== SIDEBAR ==== */
.sidebar {
    background-color: #F8F8F8;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    width: 370px;
}

.sidebar-box {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    text-align: left;
    line-height: 1.4em;
    margin-bottom: 20px;
}

.sidebar-box img {
    width: 100%;
    max-height: 180px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 10px;
}

.sidebar-box h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.sidebar-box p {
    font-size: 0.95rem;
    color: #333;
    text-align: justify;
}

/* ==== BOX DE NOTÍCIA COM FUNDO ==== */
.box {
    background-size: cover;
    background-position: center;
    height: 300px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.box:hover {
    transform: scale(1.05);
}

.box::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.box-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    width: calc(100% - 40px);
}

.box-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.box-description {
    font-size: 1rem;
}

.big-box {
    height: 600px;
}

/* ==== PUBLICIDADE ==== */
.advertisement-banner {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px auto;
}

.advertisement-banner img {
    width: 100%;
}

.advertisement {
    background-color: #f8f9fa;
    padding: 20px;
    margin-top: 20px;
    border-radius: 5px;
    text-align: center;
}

.advertisement img {
    max-width: 100%;
    height: auto;
}

/* ==== BUSCA ==== */
.search-form {
    background-color: #CCC;
    border-radius: 10px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 10px auto;
}

.search-input {
    flex: 1;
    border: none;
    background-color: #fff;
    color: #FF8000;
    padding: 10px;
    border-radius: 10px;
    margin-right: 10px;
}

/* ==== ÍCONES ==== */
.social-icons a {
    color: #fff;
    margin-left: 10px;
}

/* ==== RESULTADOS DE BUSCA ==== */
.search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.result {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
}

.result img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

/* ==== RESPONSIVIDADE ==== */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .content {
        max-width: 100%;
        padding: 0 15px;
    }

    .sidebar {
        width: 100%;
        margin-top: 10px;
    }

    .content .news-item {
        flex-direction: column;
    }

    .content .news-item img {
        width: 100%;
        height: auto;
    }
}
