/* 1. Reset e Estilos Globais */
* {
      box-sizing: border-box;
}
body {
      background: #f8f9fa;
      margin: 0;
      padding: 0;
      font-family: 'Open Sans', sans-serif;
      color: #333;
}
a {
      text-decoration: none;
      color: inherit;
      transition: 0.3s;
}
a:hover {
      opacity: 0.8;
}
ul {
      list-style: none;
      padding: 0;
      margin: 0;
}
.clear {
      clear: both;
}

#container {
      width: 96%;
      max-width: 1200px;
      margin: 40px auto;
      display: flex;
      gap: 30px;
      flex-wrap: wrap; /* Para o responsivo */
}

/* Coluna da Esquerda (Notícias) */
#container > section {
      flex: 1;
      min-width: 300px;
}

/* Coluna da Direita (Mais Lidas) */
#container > nav {
      width: 405px;
}

/* 3. Cabeçalhos (titleDois) */
.titleDois {
      border-bottom: 2px solid #ddd;
      margin-bottom: 20px;
      position: relative;
      height: 40px;
}
.titleDois h1 {
      display: inline-block;
      color: #333;
      font-size: 1.4rem;
      padding: 10px 15px;
      margin: 0;
      text-transform: uppercase;
      font-weight: 700;
}

/* 4. Notícias Destaque (Uma embaixo da outra - Estilo Lista) */
#noticiasDestaque li {
      display: grid; /* Alinha imagem e texto lado a lado */
      grid-template-columns: 350px 1fr;
      background: #fff;
      margin-bottom: 15px;
      border-radius: 4px;
      overflow: hidden;
      padding: 10px 0;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#noticiasDestaque li a section {
      width: 100%;
      height: 0px;
      padding-bottom: 70%;
      background-size: cover !important;
      background-position: center !important;
}

#noticiasDestaque li h1 {
      font-size: 1.3rem;
      font-weight: bold;
      margin: 0 0 0 15px;
      line-height: 1.3;
      color: #222;
}
#noticiasDestaque li h1 a:hover {
      color: #011586;
}

/* 5. Mais Lidas (Lateral Estilo Widget) */
#maisLidas li {
      border-bottom: 1px solid #eee;
      display: grid;
      grid-template-columns: 163px 1fr;
      gap: 15px;
}
#maisLidas li a section {
      width: 163px;
      height: 140px;
      background-size: cover !important;
      border-radius: 4px;
      margin-bottom: 8px;
      background-position: center !important;
}
#maisLidas li h1 {
      font-size: 0.95rem;
      margin: 5px 0;
      font-weight: 600;
}

/* 6. Mais Notícias (Embaixo - Grid de 3 colunas) */
#maisNoticias {
      background: #fff;
      padding: 40px 0;
      border-top: 1px solid #eee;
}
#maisNoticias ul {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 20px;
}
#maisNoticias li {
      padding: 15px;
      border: 1px solid #f0f0f0;
      border-radius: 4px;
}
#maisNoticias li section {
      width: 100%;
      height: 0px;
      padding-bottom: 70%;
      background-size: cover !important;
      margin-bottom: 5px;
}
#maisNoticias li h3 {
      font-size: 1rem;
      text-transform: uppercase;
      margin: 0px 0 5px 0;
      font-weight: bold;
      padding: 0 0 5px 0;
}
#maisNoticias li h1 {
      font-size: 1.1rem;
      margin: 0 0 10px;
}
#maisNoticias li h2 {
      font-size: 0.9rem;
      color: #666;
      font-weight: 400;
}

@media screen and (max-width: 1200px) {
      #noticiasDestaque li {
            grid-template-columns: 240px 1fr;
      }

      #maisLidas li {
            grid-template-columns: 110px 1fr;
      }
      #maisLidas li a section {
            width: 110px;
            height: 85px;
      }
}

@media screen and (max-width: 1100px) {
      #container > section {
            flex: 1;
            min-width: 400px;
      }

      /* Coluna da Direita (Mais Lidas) */
      #container > nav {
            width: 305px;
      }
      #noticiasDestaque li h1 {
            font-size: 1rem;
      }
}

/* --- RESPONSIVO --- */
@media (max-width: 850px) {
      #container > nav {
            width: 100%;
            min-width: 100%;
      }
      #noticiasDestaque li {
            height: auto;
            flex-direction: column;
      }
      #noticiasDestaque li a:first-child {
            flex: 0 0 200px;
      }
      #noticiasDestaque li h1 {
            padding-bottom: 15px;
      }
}

@media (max-width: 500px) {
      #container > section {
            width: 100%;
            min-width: 100%;
      }
      #noticiasDestaque li {
            grid-template-columns: 1fr;
      }
      #noticiasDestaque li h1 {
            padding: 10px 0 0 0;
      }
      #maisLidas li {
            margin-bottom: 20px;
      }
}
