/* CSS NOTICIA*/

:root {
  --bg: #e0e0e0;
  --fg: #212529;
  --primary: #eef2ff;
  --primary-dark: #dfd7fb;
  --primary-light: #e6f0ff;
  --primary-text: #000;
  --accent: #ff6b35;
  --gray-light: #e9ecef;
  --gray: #6c757d;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  text-align: justify;
  font-family: 'Times New Roman', Times, serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  transition: var(--transition);
  overflow-x: hidden;
}

.container {
  width: min(92%, 1280px);
  margin: 0 auto;
  padding: 0 15px;
}

/* Header */
header {
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 12px 0;
  position: relative;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  width: min(90%, 1200px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 0 15px;
}

.logo-header {
  display: flex;
  justify-content: center;
}

.logo-header .logo {
  width: clamp(120px, 20vw, 200px);
  position: relative;
  top: 13px;
  height: auto;
  border-radius: var(--border-radius);
  transition: transform 0.3s ease;
}

.logo-header .logo:hover {
  transform: scale(1.05);
}

/* Navigation */
nav {
  width: 100%;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: clamp(10px, 3vw, 25px);
  padding: 0;
  flex-wrap: wrap;
}

nav ul li {
  position: relative;
}

nav ul li::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff0000;
  transition: width 0.3s ease;
}

nav ul li:hover::after {
  width: 100%;
}

nav ul li a {
  color: #ff0000;
  font-weight: 500;
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  display: block;
  padding: 8px 12px;
  border-radius: 4px;
  transition: var(--transition);
}

nav ul li a:hover {
  background: rgba(255, 0, 0, 0.1);
}

/* Search */
        /* Estilos para o sistema de busca */
        .busca {
            position: relative;
            width: 300px;
            margin: 0 20px;
        }

        #buscaInput {
            width: 100%;
            padding: 12px 45px 12px 15px;
            border: 2px solid #e0e0e0;
            border-radius: 25px;
            font-size: 14px;
            outline: none;
            transition: all 0.3s ease;
            background-color: #fff;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        #buscaInput:focus {
            border-color: #007bff;
            box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
        }

        .search-icon {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #666;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .search-icon:hover {
            color: #007bff;
        }

        /* Container de sugest&#65533;es */
        .suggestions-container {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            color: #000000;
            background: white;
            border: 1px solid #e0e0e0;
            border-top: none;
            border-radius: 0 0 15px 15px;
            max-height: 400px;
            overflow-y: auto;
            z-index: 1000;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            display: none;
        }

        .suggestion-item {
            padding: 12px 15px;
            cursor: pointer;
            border-bottom: 1px solid #f0f0f0;
            transition: background-color 0.2s ease;
            display: flex;
            align-items: center;
        }

        .suggestion-item:last-child {
            border-bottom: none;
        }

        .suggestion-item:hover {
            background-color: #ffffff;
        }

        .suggestion-item.active {
            background-color: #f7f7f7;
        }

        .suggestion-icon {
            margin-right: 10px;
            color: #666;
            width: 16px;
        }

        .suggestion-text {
            flex: 1;
        }

        .suggestion-category {
            font-size: 11px;
            color: #888;
            background: #f0f0f0;
            padding: 2px 6px;
            border-radius: 10px;
            margin-left: 10px;
        }

        /* Resultados da busca */
        .search-results {
            display: none;
            margin: 20px 0;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 10px;
            border: 1px solid #e0e0e0;
        }

        .search-results h3 {
            margin: 0 0 15px 0;
            color: #333;
            font-size: 18px;
        }

        .result-item {
            padding: 15px;
            background: white;
            margin-bottom: 10px;
            border-radius: 8px;
            border: 1px solid #e0e0e0;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            cursor: pointer;
        }

        .result-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .result-title {
            font-weight: bold;
            color: #007bff;
            margin-bottom: 5px;
            font-size: 16px;
        }

        .result-description {
            color: #666;
            font-size: 14px;
            line-height: 1.4;
            margin-bottom: 8px;
        }

        .result-category {
            display: inline-block;
            background: #007bff;
            color: white;
            padding: 3px 8px;
            border-radius: 12px;
            font-size: 11px;
            text-transform: uppercase;
        }

        .no-results {
            text-align: center;
            padding: 40px;
            color: #666;
        }

        .no-results i {
            font-size: 48px;
            margin-bottom: 15px;
            color: #ccc;
        }

        /* Highlight do termo pesquisado */
        .highlight {
            background-color: #ffeb3b;
            padding: 1px 2px;
            border-radius: 2px;
            font-weight: bold;
        }

        /* Loading spinner */
        .loading {
            display: none;
            text-align: center;
            padding: 20px;
        }

        .spinner {
            border: 2px solid #f3f3f3;
            border-top: 2px solid #007bff;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            animation: spin 1s linear infinite;
            margin: 0 auto 10px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Responsividade */
        @media (max-width: 768px) {
            .busca {
                width: 250px;
                margin: 10px;
            }

            .suggestions-container {
                max-height: 300px;
            }

            .result-item {
                padding: 12px;
            }

            .result-title {
                font-size: 14px;
            }

            .result-description {
                font-size: 13px;
            }
        }

        @media (max-width: 480px) {
            .busca {
                width: 200px;
            }

            #buscaInput {
                padding: 10px 35px 10px 12px;
                font-size: 13px;
            }

            .suggestion-item {
                padding: 10px 12px;
            }
        }

        /* Anima&#65533;&#65533;es */
        .fade-in {
            animation: fadeIn 0.3s ease-in;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .slide-in {
            animation: slideIn 0.3s ease-out;
        }

        @keyframes slideIn {
            from { transform: translateX(-20px); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        /* Propaganda no topo */
        .propaganda-header-container {
            padding: 30px 15px;
            display: flex;
            justify-content: center;
        }

        .propaganda-header {
            border-radius: 10px;
            box-shadow: var(--shadow);
            height: clamp(150px, 25vw, 200px);
            width: 100%;
            max-width: 900px;
            position: relative;
            overflow: hidden;
            background: #f0f0f0;
        }

        /* Banner Slider */
        .banner-slider {
            position: relative;
            width: 100%;
            height: 100%;
        }

        .banner-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 0.5s ease-in-out;
        }

        .banner-slide.active {
            opacity: 1;
        }

        .banner-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .banner-slide:first-child img {
            width: 100%;
            height: 100%;
            object-fit: fill;
        }

        .banner-slide:last-child img {
            width: 100%;
            height: 100%;
            object-fit: fill;
        }

        /* Slide especial com texto */
        .second-banner {
            background-color: black;
            border-radius: 10px;
            box-shadow: var(--shadow);
            height: clamp(120px, 25vw, 200px);
            width: min(100%, 900px);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            overflow: hidden;
        }

        .second-banner::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: rgba(255, 255, 255, 0.1);
            transform: rotate(30deg);
          }

        .second-banner img {
            position: relative;
            top: 20px;
            object-fit: cover;
            width: 300px;
            height: auto;
            max-height: 90%;
        }

        .second-banner p {
            position: relative;
            top: -15px;
            color: white;
            font-size: clamp(0.9rem, 3vw, 1.3rem);
            position: relative;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            text-align: center;
            padding: 0 20px;
            margin-top: 0;
        }

        /* C&#65533;rculos indicadores */
        .banner-dots {
            position: absolute;
            bottom: 15px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            z-index: 10;
            opacity: 60%;
        }

        .dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }

        .dot.active {
            background: rgba(255, 255, 255, 1);
            border-color: rgba(0, 0, 0, 0.3);
            transform: scale(1.2);
        }

        .dot:hover {
            background: rgba(255, 255, 255, 0.8);
            transform: scale(1.1);
        }

        /* Setas de navega&#65533;&#65533;o */
        .banner-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            padding: 12px 16px;
            cursor: pointer;
            font-size: 18px;
            transition: all 0.3s ease;
            border-radius: 50%;
            width: 45px;
            height: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
            opacity: 0;
        }

        .propaganda-header:hover .banner-nav {
            opacity: 1;
        }

        .banner-nav:hover {
            background: rgba(0, 0, 0, 0.8);
            transform: translateY(-50%) scale(1.1);
        }

        .banner-nav:active {
            transform: translateY(-50%) scale(0.95);
        }

        .banner-nav.prev {
            left: 15px;
        }

        .banner-nav.next {
            right: 15px;
        }

        /* Indicador de progresso */
        .progress-bar {
            position: absolute;
            bottom: 0;
            left: 0;
            height: 3px;
            background: rgba(255, 255, 255, 0.8);
            transition: width linear;
            z-index: 10;
        }

        /* Responsivo */
        @media (max-width: 768px) {
            .propaganda-header-container {
                padding: 20px 10px;
            }

            .banner-nav {
                padding: 10px 14px;
                font-size: 16px;
                width: 40px;
                height: 40px;
            }

            .banner-nav.prev {
                left: 10px;
            }

            .banner-nav.next {
                right: 10px;
            }

            .dot {
                width: 10px;
                height: 10px;
            }

            .banner-dots {
                bottom: 10px;
                gap: 8px;
            }

            .second-banner{
              height: 100%;
            }
        }

        @media (max-width: 480px) {
            .banner-nav {
                opacity: 1; /* Sempre vis&#65533;vel em mobile */
            }

            .second-banner{
              height: 100%;
            }

            .propaganda-header {
                height: clamp(185px, 30vw, 150px);
            }
        }

        /* Anima&#65533;&#65533;es de entrada */
        @keyframes slideInRight {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        @keyframes slideInLeft {
            from {
                transform: translateX(-100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        .banner-slide.slide-in-right {
            animation: slideInRight 0.5s ease-out;
        }

        .banner-slide.slide-in-left {
            animation: slideInLeft 0.5s ease-out;
        }

/* Main Layout */
.layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  margin: 30px auto;
  align-items: start;
}

/* Article */
#noticia-artigo {
  background: white;
  padding: clamp(15px, 4vw, 30px);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  min-width: 0;
}

#noticia-artigo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary), var(--accent));
}

#noticia-artigo h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 4vw, 2.2rem);
  font-weight: 700;
  color: black;
  margin-bottom: 15px;
  line-height: 1.2;
  word-wrap: break-word;
}

#noticia-artigo .noticia-data {
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  color: rgb(39, 39, 39);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
}

#noticia-artigo .noticia-data::before {
  content: '';
  margin-right: 8px;
  font-size: 1.2rem;
  color: var(--accent);
}

#noticia-artigo img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin: 25px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

#noticia-artigo img:hover {
  transform: scale(1.01);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#noticia-artigo p {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  line-height: 1.8;
  margin-bottom: 20px;
  color: #333;
  word-wrap: break-word;
}

#noticia-artigo video {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: var(--border-radius);
  margin: 20px 0;
}

/* Sidebar */
.propaganda-lateral {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex-shrink: 0;
}

.propaganda-conteudo {
  background: rgb(84, 95, 148);
  border-radius: var(--border-radius);
  padding: 20px;
  height: 350px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.propaganda-conteudo:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.propaganda-conteudo h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: white;
  text-align: center;
}

 .share-bar {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 15px 20px;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      border-radius: 50px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      max-width: fit-content;
      margin: 20px auto;
  }

  .share-text {
      color: white;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      font-weight: 600;
      font-size: 14px;
      margin-right: 8px;
  }

  .share-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      text-decoration: none;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
      overflow: hidden;
  }

  .share-button::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 50%;
      opacity: 0;
      transition: opacity 0.3s ease;
  }

  .share-button:hover::before {
      opacity: 1;
  }

  .share-button:hover {
      transform: translateY(-2px) scale(1.1);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  }

  .facebook { background: #4267B2; }
  .twitter { background: #000000; }
  .whatsapp { background: #25D366; }
  .telegram { background: #0088cc; }
  .linkedin { background: #0077b5; }
  .email { background: #ea4335; }
  .copy-link { background: #6c757d; }

  .share-icon {
      width: 20px;
      height: 20px;
      fill: white;
  }

  @media (max-width: 768px) {
      .share-bar {
          flex-wrap: wrap;
          justify-content: center;
          padding: 12px 15px;
          gap: 8px;
      }
      
      .share-text {
          width: 100%;
          text-align: center;
          margin: 0 0 8px 0;
          font-size: 13px;
      }
      
      .share-button {
          width: 35px;
          height: 35px;
      }
      
      .share-icon {
          width: 18px;
          height: 18px;
      }
  }

  .toast {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background: #333;
      color: white;
      padding: 12px 20px;
      border-radius: 8px;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      font-size: 14px;
      opacity: 0;
      transform: translateY(50px);
      transition: all 0.3s ease;
      z-index: 1000;
  }

  .toast.show {
      opacity: 1;
      transform: translateY(0);
  }

/* News Section */
.news-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  margin: 40px 0;
  position: relative;
}

.news-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-dark));
}

.news-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: #2c3e50;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #ff8c69);
  border-radius: 2px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.grid article {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.grid article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.grid article:hover::before {
  opacity: 1;
}

.grid article:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.grid article img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.grid article:hover img {
  transform: scale(1.05);
}

.grid article h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  padding: 20px 20px 10px;
  color: #2c3e50;
  line-height: 1.4;
  font-weight: 600;
  transition: color 0.3s ease;
  min-height: 70px;
  display: flex;
  align-items: center;
}

.grid article p {
  padding: 0 20px 25px;
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: #6c757d;
  flex-grow: 1;
  line-height: 1.6;
}

.grid article p strong {
  color: var(--accent);
  font-weight: 600;
  transition: color 0.3s ease;
}

.grid article a {
  text-decoration: none;
  color: inherit;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.grid article a:hover h3 {
  color: var(--accent);
}

.grid article a:hover p strong {
  color: #e74c3c;
}

/* Anima&#65533;&#65533;o de entrada para os cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.grid article {
  animation: fadeInUp 0.6s ease forwards;
}

.grid article:nth-child(1) { animation-delay: 0.1s; }
.grid article:nth-child(2) { animation-delay: 0.2s; }
.grid article:nth-child(3) { animation-delay: 0.3s; }


/* Footer */
footer {
  background: linear-gradient(to right, #2259ff, #0f0046);
  color: white;
  padding: 40px 0;
}

.footer-conteudo {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  padding: 0 20px;
}

.logo img {
  width: clamp(120px, 20vw, 200px);
  height: auto;
  border-radius: var(--border-radius);
}

footer p {
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  opacity: 0.8;
  text-align: center;
  flex: 1;
}

.redes-sociais {
  display: flex;
  gap: 15px;
}

.redes-sociais a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(35px, 8vw, 40px);
  height: clamp(35px, 8vw, 40px);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.redes-sociais img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.redes-sociais a:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.2);
}

.img-responsiva {
  width: 400px !important; /* padrão para telas pequenas */
  border: 2px solid red; /* para testar se a classe está funcionando */
}
@media (min-width: 680px) {
  .img-responsiva {
    width: 180px !important; /* telas grandes */
    border: 2px solid blue; /* para testar o media query */
  }
}
@media (max-width: 1380px) {
  .img-responsiva {
    width: 400px !important; /* telas grandes */
    border: 2px solid blue; /* para testar o media query */
  }
}

/* Media Queries */
@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .propaganda-lateral {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 10px;
  }
  
  .propaganda-conteudo {
    min-width: 250px;
    flex-shrink: 0;
  }
}

@media (max-width: 764px) {
    #noticia-artigo img {
    max-width: 600px;
  }
}

@media (max-width: 615px) {
    #noticia-artigo img {
    max-width: 450px;
  }
}

@media (max-width: 500px) {
    #noticia-artigo img {
    max-width: 380px;
  }
}

@media (max-width: 515px) {
    #noticia-artigo img {
    max-width: 400px;
  }
}

@media (max-width: 768px) {

  .propaganda-header {
    height: clamp(200px, 25vw, 200px);
  }

  .propaganda-header img {
    width: 300px;
    height: auto;
  }

  .propaganda-header p {
    position: relative;
    top: -15px;
    
  }
  .propaganda-header::before {
    top: -50%;
    left: -50%;
    width: 170%;
    height: 150%;
    transform: rotate(40deg);
  }

  #noticia-artigo h1 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
  }

  #noticia-artigo .noticia-data {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
  }

  #noticia-artigo p {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  }


  .header-container {
    gap: 10px;
  }
  
  nav ul {
    gap: 15px;
  }
  
  .busca {
    max-width: 300px;
  }
  
  .layout {
    margin: 20px auto;
  }
  
  .propaganda-lateral {
    flex-direction: column;
  }
  
  .propaganda-conteudo {
    min-width: auto;
    height: 300px;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .footer-conteudo {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .propaganda-header::before {
    top: -50%;
    left: -75%;
    width: 200%;
    height: 130%;
    transform: rotate(40deg);
  }

  .container {
    width: 98%;
    padding: 0 10px;
  }
  
  nav ul {
    gap: 8px;
  }
  
  nav ul li a {
    padding: 6px 8px;
  }
  
  .busca {
    max-width: 250px;
    margin: 10px auto;
  }
  
  #buscaInput {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .propaganda-header-container {
    padding: 15px 0;
  }
  
  #noticia-artigo h1 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
  }

  #noticia-artigo .noticia-data {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
  }

  #noticia-artigo p {
    font-size: clamp(0.97rem, 2.5vw, 1.5rem);
  }

  #noticia-artigo img {
    max-width: 400px;
    left: 0;
  }
  
  .news-section {
    padding: 25px 0;
    margin: 20px 0;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .grid article img {
    height: 160px;
  }
  
  .footer-conteudo {
    padding: 0 15px;
  }
  
  .redes-sociais {
    gap: 10px;
  }
}

/* Content flexibility for images and text */
.content-flex {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.content-flex p {
  flex: 1;
  margin: 0;
  min-width: 250px;
}

.content-flex .image-container {
  flex-shrink: 0;
}

.content-flex .image-container img {
  width: 300px;
  height: auto;
  object-fit: cover;
  margin: 0;
}

@media (max-width: 768px) {

  #noticia-artigo img{
    left: 0px;
}

  .content-flex {
    flex-direction: column;
  }
  
  .content-flex .image-container img {
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 430px) {

  #noticia-artigo img{
    max-width: 350px;
    left: 40px;
  }
}

@media (max-width: 479px){

  #noticia-artigo img{
    left: 0;
  }
}

@media (min-width: 365px) {
  
}

@media (max-width: 395px) {

    #noticia-artigo img{
      max-width: 300px;
  }
}

@media (max-width: 364px) {

  #noticia-artigo img{
    left: 0px;
}

}

/* Utility classes */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mt-20 { margin-top: 20px; }
.font-small { font-size: 12px; }
.font-strong { font-weight: bold; }
.italic { font-style: italic; }