/* ============================================
   FOOTER – MENTE ACIMA (2025)
   OPÇÃO C — ALTURA DINÂMICA DO GLOBO
   ============================================ */

/* Reset */
#ma-footer, .ma-top, .ma-bottom {
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", Arial, sans-serif;
  color: #222;
}

/* TOP */
.ma-top {
  background: #fff;
  padding: 30px 16px;
}

.ma-top-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Blocks */
.ma-block {
  flex: 1 1 300px;
  min-width: 260px;
}

/* Titles */
.ma-title {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* LOJAS */
.ma-lojas-columns {
  display: flex;
  gap: 20px;
}

.ma-lojas-col a {
  display: block;
  text-decoration: none;
  color: #000;
  margin: 6px 0;
}

/* DICAS */
.ma-dicas-footer {
  margin-top: 12px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ma-heart {
  font-style: normal !important;
}

/* ============================
   GLOBO – ALTURA DINÂMICA
   ============================ */

.ma-globe-wrap {
  width: 100%;
  min-height: 140px;     /* suficiente para o loader */
  height: auto;          /* cresce com o globo */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
}

.ma-globe-wrap canvas {
  max-width: 100% !important;
  height: auto !important;
}

/* remove interferência de blocos como "dynamic-country-flags" */
#dynamic-country-flags,
.flags-column {
  display: none !important;
  visibility: hidden !important;
}

/* ============================
   BOTTOM
   ============================ */

.ma-bottom {
  background: #f4efe8;
  padding: 30px 16px 50px;
  text-align: center;
}

.ma-footer-logo {
  height: 96px;
  margin-bottom: 14px;
}

/* Social */
.ma-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ma-socials a {
  font-size: 18px;
  color: #666;
  text-decoration: none;
}

/* Links */
.ma-links {
  margin: 12px 0;
  color: #666;
  font-size: 14px;
}

.ma-links a {
  color: #666;
  text-decoration: none;
}

.ma-links a:hover {
  color: #1e6fd8;
}

/* Copyright */
.ma-copy {
  color: #000;
  font-size: 14px;
}

/* TOPO */
#ma-top-button {
  background: transparent;
  border: none;
  cursor: pointer;
  margin-top: 14px;
}

#ma-top-button .ma-top-icon {
  font-size: 18px;
}

/* MOBILE */
@media (max-width: 600px) {
  .ma-top-grid {
    flex-direction: column;
    gap: 24px;
  }
  .ma-title {
    font-size: 17px;
  }
  .ma-footer-logo {
    height: 84px;
  }
}
/* ============================================================
   AJUSTE DEFINITIVO DO BLOCO DO GLOBO — OPÇÃO C (FINAL)
   ============================================================ */

/* Garante que o bloco ocupe o mesmo espaço que os outros */
.ma-globe {
  flex: 1 1 300px;
  min-width: 260px;
  box-sizing: border-box;
  padding: 8px 10px;
}

/* Título igual ao pedido (600, uppercase, alinhado) */
.ma-globe .ma-title {
  font-weight: 600 !important;
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* O container do globo NÃO pode ter height fixa */
.ma-globe-wrap {
  width: 100%;
  background: transparent !important;
  overflow: visible !important;
  padding: 0;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* O canvas do ClustrMaps precisa ser livre */
#clstr_globe,
#clstr_globe canvas {
  width: 100% !important;
  height: auto !important;
  max-width: 260px; /* Mantém proporcional no desktop */
  display: block !important;
}

/* Mobile — ajusta proporção */
@media (max-width: 600px) {
  #clstr_globe,
  #clstr_globe canvas {
    max-width: 220px !important;
  }
}
/* =======================================
   BLOCO DO GLOBO – POSICIONAMENTO CORRETO
========================================== */

/* Contêiner geral */
.ma-globe-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
}

/* Título */
.ma-globe-container .globe-title {
    text-align: center;
    margin-bottom: 15px;
}

/* Área do globo */
.ma-globe-embed {
    width: 260px;         /* tamanho controlado */
    height: 260px;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ============================
   DESKTOP — GLOBO ALINHADO NA DIREITA
============================ */
@media (min-width: 900px) {
    .ma-top {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        gap: 60px;
        position: relative;
    }

    .ma-top-grid {
        width: 70%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }

    .ma-globe-container {
        position: absolute;
        right: 0;
        top: 0;
        width: 260px;
    }
}

/* ============================
   MOBILE — tudo empilhado
============================ */
@media (max-width: 900px) {
    .ma-top {
        flex-direction: column;
        align-items: center;
    }

    .ma-top-grid {
        width: 100%;
        display: block;
    }

    .ma-globe-container {
        position: static;
        margin-top: 40px;
    }

    .ma-globe-embed {
        width: 220px;
        height: 220px;
    }
}
/* ===========================================
   LAYOUT C — Mente Acima — 2025
   Simples, limpo, 3 blocos iguais
=========================================== */

/* ---- Geral ---- */
#ma-footer {
  width: 100%;
  font-family: "Open Sans", sans-serif;
  color: #222;
}

/* ---- Seção Superior ---- */
.ma-top {
  background: #fff;
  padding: 30px 20px;
}

.ma-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---- Blocos ---- */
.ma-block { min-height: 100px; }

.ma-title {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- Loja ---- */
.ma-loja-columns {
  display: flex;
  gap: 20px;
}
.ma-col a {
  display: block;
  margin: 6px 0;
  text-decoration: none;
  color: #000;
}

/* ---- Dicas de Leitura ---- */
.ma-books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.ma-books-grid img {
  width: 100%;
  border-radius: 4px;
}
.book-title {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}
.ma-dicas-footer {
  margin-top: 14px;
  font-size: 14px;
}

/* ---- Globo ---- */
.ma-globe-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 160px;
}

#clstr_globe,
#clstr_globe canvas {
  width: 100% !important;
  height: auto !important;
  max-width: 260px !important;
}

/* ---- Rodapé Inferior ---- */
.ma-bottom {
  text-align: center;
  padding: 35px 16px 55px;
  background: #f4efe8;
}
.ma-footer-logo {
  height: 96px;
  margin-bottom: 14px;
}

.ma-socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}

.ma-links {
  font-size: 14px;
  margin: 12px 0;
}
.ma-links a {
  color: #666;
  text-decoration: none;
}

.ma-copy {
  font-size: 14px;
  margin-bottom: 18px;
}

#ma-top-button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

/* ---- Mobile ---- */
@media (max-width: 900px) {
  .ma-grid-3 {
    grid-template-columns: 1fr;
  }
  .ma-books-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #clstr_globe canvas {
    max-width: 220px !important;
  }
}
