*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}


.top-bar {
    display: flex;
    justify-content: space-between;
    padding: 6px 20px;
    font-size: 14px;
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.top-links a {
    margin-right: 12px;
    text-decoration: none;
    color: #555;
}

.top-links .active {
    color: #c4170c;
    font-weight: bold;
}

/* HEADER */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #c4170c;
    padding: 12px 20px;
    color: #fff;
}

.menu-btn {
    cursor: pointer;
    font-weight: bold;
}

/* LOGO */
.logo {
    font-size: 36px;
    font-weight: bold;
}

.logo small {
    font-size: 14px;
}


.search-bar {
  display: flex;
  align-items: center;
  background-color: #c40000; /* vermelho */
  padding: 8px 12px;
  width: 300px;
}

.search-bar .icon {
  color: white;
  margin-right: 8px;
  font-size: 16px;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 6px;
  font-size: 14px;
}

.search-bar button {
  background-color: #a00000;
  color: white;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: bold;
}

.search-bar button:hover {
  background-color: #800000;
}

.search input {
    padding: 6px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.search button {
    border: none;
    background: #a5120a;
    color: #fff;
    padding: 6px 10px;
    border-radius: 0 4px 4px 0;
}


.side-menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background: #fff;
    border-right: 1px solid #ddd;
    padding: 20px;
    transition: 0.3s;
}

.side-menu a {
    display: block;
    padding: 10px 0;
    color: #c4170c;
    text-decoration: none;
    font-weight: bold;
}

.side-menu.open {
    left: 0;
}


@media (max-width: 768px) {
    .top-links {
        display: none;
    }

    .logo {
        font-size: 28px;
    }

    .search input {
        display: none;
    }
}

.news-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}


.main-news {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.main-news .tag {
    display: inline-block;
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.main-news h1 {
    font-size: 36px;
    line-height: 1.2;
    color: #b00000;
    margin-bottom: 15px;
}

.main-news ul {
    margin-left: 20px;
}

.main-news li {
    font-size: 16px;
    color: #444;
    margin-bottom: 8px;
}


.side-news {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    filter: brightness(70%);
}

.news-card .location {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 6px;
}

.news-card h2 {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    color: #fff;
    font-size: 18px;
    line-height: 1.3;
}

/* RESPONSIVO */
@media (max-width: 900px) {
    .news-container {
        grid-template-columns: 1fr;
    }

    .main-news h1 {
        font-size: 28px;
    }
}


.content-scroll {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}


.news-list {
    max-height: 1000px;
    overflow-y: auto;
    padding-right: 10px;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.news-item img {
    width: 220px;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
}

.news-text h2 {
    font-size: 20px;
    color: #b00000;
    margin: 5px 0;
}

.news-text p,
.news-text li {
    font-size: 15px;
    color: #444;
}

.news-text ul {
    margin-left: 20px;
}

.category {
    font-size: 13px;
    color: #555;
}

small {
    display: block;
    margin-top: 8px;
    color: #888;
}

/* PREVISÃO DO TEMPO */
.weather-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
}

.weather-box h3 {
    margin-bottom: 10px;
}

.weather-icons {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    text-align: center;
}

.weather-icons span {
    display: block;
    font-size: 12px;
}

.temp {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin: 10px 0;
}

.weather-box a {
    color: #c4170c;
    text-decoration: none;
    font-weight: bold;
}

/* RESPONSIVO */
@media (max-width: 900px) {
    .content-scroll {
        grid-template-columns: 1fr;
    }

    .news-list {
        max-height: none;
    }

    .news-item {
        flex-direction: column;
    }

    .news-item img {
        width: 100%;
        height: auto;
    }
}

.content-scroll {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.viu-isso {
    margin-top: 400px; /
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
}

.viu-isso h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.viu-isso article {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.viu-isso .count {
    color: #c4170c;
    font-weight: bold;
    font-size: 14px;
}

.viu-isso p {
    font-size: 14px;
    color: #333;
    line-height: 1.3;
}

body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
}

.footer {
    margin-top: auto;
    width: 1000px;
}

/* BOTÃO */
.footer-top {
    display: flex;
    justify-content: center;
    margin-bottom: -20px;
    z-index: 2;
    position: relative;
}

.btn-more {
    background: #c4170c;
    color: #fff;
    border: none;
    padding: 12px 60px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

/* FAIXA */
.footer-main {
    background: #c4170c;
    color: #fff;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* ESQUERDA */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo .logo {
    font-size: 28px;
    font-weight: bold;
}

.footer-logo .subtitle {
    font-size: 14px;
}

.footer-left p {
    margin-top: 10px;
    font-size: 12px;
    opacity: 0.9;
}

/* DIREITA */
.footer-right a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
    font-size: 13px;
}

.footer-right a:hover {
    text-decoration: underline;
}

@media (max-width: 800px) {
    .footer-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .footer-right a {
        margin-left: 0;
        margin-right: 15px;
    }
}