.ads-page {
  background: #111;
  color: #f5f5f5;
  padding: 28px;
  border-radius: 18px;
}
.ads-page h2, .ads-page h3 {
  color: #fff;
}
.ads-page a {
  color: #ef4444;
}
.ads-page .ads-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.ads-page .ads-card {
  background: #202020;
  border: 1px solid #383838;
  border-radius: 16px;
  padding: 20px;
}
.ads-page img {
  max-width: 100%;
  height: auto;
}
.ads-page .ads-button {
  display: inline-block;
  background: #dc2626;
  color: white;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
}
@media (max-width: 650px) {
  .ads-page { padding: 18px; }
  .ads-page .ads-grid {
    grid-template-columns: 1fr;
  }
}

/* Modernizacao Amigos da Sogra - v2 */

.ads-page {
  max-width: 1200px;
  margin: 0 auto;
  line-height: 1.7;
}

.ads-page h1,
.ads-page h2,
.ads-page h3 {
  color: #ffffff;
  margin-bottom: 18px;
}

.ads-page a {
  transition: all .25s ease;
}

.ads-page .ads-card {
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}

.ads-page .ads-card:hover {
  transform: translateY(-5px);
  border-color: #ef4444;
}

.ads-page .ads-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.ads-page .ads-button:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Grelha automatica nas paginas de downloads */

.ads-page:has(> a.ads-card) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ads-page:has(> a.ads-card) > a.ads-card {
  display: block;
  background: #202020;
  padding: 16px;
  border: 1px solid #383838;
  border-radius: 16px;
}

.ads-page details.ads-card {
  margin-bottom: 14px;
}

.ads-page details summary {
  cursor: pointer;
  font-weight: 700;
  color: #ffffff;
}

.ads-page details[open] {
  border-color: #ef4444;
}

@media (max-width: 650px) {
  .ads-page:has(> a.ads-card) {
    grid-template-columns: 1fr;
  }
}

/* Amigos da Sogra - modernizacao v3 */

/* Textos e titulos */
.ads-page {
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.ads-page * {
  box-sizing: border-box;
}

.ads-page h1 {
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.2;
  font-weight: 800;
}

.ads-page h2 {
  font-size: clamp(22px, 4vw, 32px);
  line-height: 1.3;
}

.ads-page h3 {
  font-size: clamp(19px, 3vw, 25px);
}

.ads-page p,
.ads-page li {
  font-size: 16px;
  line-height: 1.8;
}

/* Imagens responsivas */
.ads-page img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Links e botoes */
.ads-page a {
  overflow-wrap: anywhere;
}

.ads-page a.ads-button,
.ads-page a.wp-block-button__link {
  background: #dc2626;
  color: #fff;
  border-radius: 12px;
  padding: 12px 20px;
  text-decoration: none;
}

/* FAQ */
.ads-page details.ads-card {
  padding: 18px;
  background: #202020;
  border: 1px solid #383838;
  border-radius: 14px;
}

.ads-page details summary {
  font-size: 17px;
  padding: 4px 0;
}

/* Melhorias para Android */
@media (max-width: 650px) {
  .ads-page {
    padding: 18px;
    border-radius: 14px;
  }

  .ads-page h1 {
    font-size: 28px;
  }

  .ads-page h2 {
    font-size: 23px;
  }

  .ads-page img {
    width: auto;
    max-width: 100%;
  }
}
