/* ==============================
        VARIÁVEIS E RESET
============================== */
:root {
  --rosa-principal: #db2777;
  --rosa-hover: #be185d;
  --rosa-suave: #fff1f2;
  --rosa-borda: #fecdd3;
  --cinza-texto: #374151;
  --cinza-titulo: #1f2937;
  --fundo-bloco: #fff5f7;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--cinza-texto) !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  overflow-x: hidden; /* Evita rolagem horizontal indesejada no mobile */
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ==============================
        CONTAINER
============================== */
.container {
  width: 90%;
  max-width: 1240px;
  margin: auto;
}

/* ==============================
        HEADER & MENU RESPONSIVO
============================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  z-index: 1000;
}

header .container {
  height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 55px;
  height: 55px;
  object-fit: cover;
  border-radius: 50%;
}

.logo-text h2 {
  color: var(--rosa-principal);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.1;
}

.logo-text span {
  color: #6b7280;
  font-size: 0.8rem;
}

nav ul {
  display: flex;
  gap: 30px;
}

nav a {
  color: var(--cinza-titulo);
  font-weight: 500;
  font-size: 0.95rem;
  transition: 0.2s;
}

nav a:hover {
  color: var(--rosa-principal);
}

.btn-ajuda {
  background: var(--rosa-principal);
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.btn-ajuda:hover {
  background: var(--rosa-hover);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--cinza-titulo);
  cursor: pointer;
}

/* ==============================
        HERO (BOTÕES REMOVIDOS)
============================== */
.hero {
  margin-top: 90px;
  position: relative;
  height: 75vh;
  min-height: 500px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.95) 40%,
    rgba(255, 255, 255, 0.2)
  );
  display: flex;
  align-items: center;
}

.hero-overlay .container {
  display: flex;
  align-items: center;
  width: 90%;
  max-width: 1240px;
  margin: auto;
}

.hero-content {
  max-width: 600px;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.2;
  color: var(--cinza-titulo);
  font-weight: 700;
}

.hero-content h1 span {
  color: var(--rosa-principal);
}

.hero-content p {
  margin-top: 20px;
  max-width: 540px;
  color: #4b5563;
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-buttons {
  display: none !important;
}

/* ==============================
        ÚLTIMAS NOTÍCIAS
============================== */
.noticias {
  padding: 80px 0;
  background: #fff;
  scroll-margin-top: 110px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.section-header div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-line {
  width: 4px;
  height: 28px;
  background: var(--rosa-principal);
  border-radius: 4px;
}

.section-header h2 {
  font-size: 1.8rem;
  color: var(--cinza-titulo);
}

.ver-todas {
  color: var(--rosa-principal);
  font-weight: 600;
  transition: 0.2s;
}

.ver-todas:hover {
  color: var(--rosa-hover);
}

.noticias-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.noticia-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.noticia-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.noticia-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.noticia-card .data {
  display: inline-block;
  margin: 15px 15px 5px;
  color: var(--rosa-principal);
  font-size: 0.8rem;
  font-weight: 600;
}

.noticia-card h3 {
  margin: 0 15px 10px;
  color: var(--cinza-titulo);
  font-size: 1.05rem;
  line-height: 1.4;
  font-weight: 600;
}

.noticia-card p {
  margin: 0 15px 15px;
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.6;
}

.noticia-card a {
  display: inline-block;
  margin: 0 15px 15px;
  color: var(--rosa-principal);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ==============================
        ACESSO RÁPIDO
============================== */
.acesso-rapido {
  padding: 40px 0 60px;
  background: #fff;
  scroll-margin-top: 110px;
}

.acesso-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.acesso-card {
  background: var(--fundo-bloco);
  border: 1px solid var(--rosa-borda);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  transition: 0.3s;
}

.acesso-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(219, 39, 119, 0.08);
  background: #fff;
}

.icon {
  width: 55px;
  height: 55px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: var(--rosa-principal);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.acesso-card h3 {
  font-size: 1rem;
  color: var(--cinza-titulo);
  margin-bottom: 4px;
}

.acesso-card p {
  font-size: 0.8rem;
  color: #6b7280;
}

/* ==============================
        BANCO + CANAIS DE AJUDA
============================== */
.ajuda-section {
  padding: 40px 0 80px;
  scroll-margin-top: 120px;
}

.ajuda-grid {
  display: flex;
  gap: 30px;
  align-items: stretch;
}

.banner {
  flex: 1.8;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.card-ajuda {
  flex: 1.2;
  background: var(--fundo-bloco);
  border: 1px solid var(--rosa-borda);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-ajuda h2 {
  color: var(--rosa-principal);
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.canal {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid #f3f4f6;
  color: inherit;
  transition: 0.2s;
}

.canal:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.canal:last-child {
  margin-bottom: 0;
}

.icone {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--rosa-suave);
  color: var(--rosa-principal);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.canal h3 {
  font-size: 1rem;
  color: var(--cinza-titulo);
  margin-bottom: 2px;
}

.canal p {
  font-size: 0.82rem;
  color: #4b5563;
  line-height: 1.4;
}

/* ==============================
        SOBRE A SECRETARIA
============================== */
.secretaria {
  padding: 60px 0;
  background: #fff;
  scroll-margin-top: 110px;
}

.secretaria-container-box {
  background: #fff5f6;
  border-radius: 16px;
  padding: 40px;
  display: flex;
  align-items: stretch;
  gap: 20px;
}

.secretaria-col-principal {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 15px;
}

.secretaria-col-principal h2 {
  font-size: 1.4rem;
  color: #1f2937;
  font-weight: 700;
  margin-bottom: 15px;
}

.secretaria-col-principal p {
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 25px;
}

.secretaria-col-item {
  flex: 1;
  padding: 0 10px 0 15px;
  border-left: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
}

.secretaria-col-item .card-icon {
  font-size: 1.8rem;
  color: var(--rosa-principal);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.secretaria-col-item h3 {
  color: #1f2937;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.secretaria-col-item p {
  color: #4b5563;
  font-size: 0.82rem;
  line-height: 1.5;
}

/* =========================================================
   REDE DE ACOLHAMENTO (4 CARDS LADO A LADO)
========================================================= */
.rede-acolhimento {
  padding: 60px 0;
  background: #ffffff;
}

.rede-subtitulo {
  color: #4b5563;
  font-size: 0.95rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.rede-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.rede-card {
  background: #fff5f6;
  border: 1px solid #fecdd3;
  border-radius: 16px;
  padding: 24px 20px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.rede-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(219, 39, 119, 0.08);
  background: #ffffff;
}

.rede-icon {
  font-size: 2rem;
  color: var(--rosa-principal);
  margin-bottom: 15px;
}

.rede-card h3 {
  font-size: 1.05rem;
  color: #1f2937;
  font-weight: 700;
  margin-bottom: 10px;
}

.rede-card p {
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.5;
}

/* ==============================
        RODAPÉ
============================== */
.footer {
  background: #fff5f6;
  color: #374151;
  border-top: 1px solid #fecdd3;
  font-size: 0.85rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.4fr 1.2fr;
  gap: 30px;
  padding: 60px 0 40px;
}

.col-identidade {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo h3 {
  font-size: 1rem;
  color: var(--cinza-titulo);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}

.footer-logo span {
  font-size: 0.75rem;
  color: #6b7280;
  display: block;
  line-height: 1.3;
}

.footer-col h4 {
  color: #1f2937;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 12px;
  line-height: 1.4;
}

.footer-col a {
  color: #4b5563;
  transition: 0.2s;
}

.footer-col a:hover {
  color: var(--rosa-principal);
}

.col-icones ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #4b5563;
}

.col-icones ul li i {
  color: var(--rosa-principal);
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.social {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.social a {
  width: 32px;
  height: 32px;
  border: 1px solid var(--rosa-principal);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--rosa-principal);
  font-size: 0.85rem;
  transition: 0.2s;
  background: #fff;
}

.social a:hover {
  background: var(--rosa-principal);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #fecdd3;
  padding: 15px 0;
  background: #fff5f6;
  font-size: 0.78rem;
  color: #6b7280;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* =========================================================
   PAINEL ADMINISTRATIVO (LOGIN & DASHBOARD)
========================================================= */
.admin-body {
  background: #fff5f7 !important;
  background-color: #fff5f7 !important;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: "Poppins", sans-serif;
}

.login-container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.login-card {
  background: #ffffff !important;
  border: 1px solid #ffd1dc;
  border-radius: 24px;
  padding: 45px 40px;
  box-shadow: 0 15px 35px rgba(219, 39, 119, 0.04);
  text-align: center;
}

.login-header {
  margin-bottom: 30px;
}

.login-logo {
  width: 75px;
  height: 75px;
  object-fit: contain;
  margin: 0 auto 15px;
  background: #fff0f3;
  padding: 6px;
  border-radius: 50%;
}

.login-header h2 {
  color: #1f2937;
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.login-header span {
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 500;
}

.login-form,
.modal-inner-form {
  text-align: left;
  max-width: 380px;
  margin: 0 auto;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 6px;
}

.input-group label i {
  color: #db2777;
  margin-right: 4px;
}

.input-group input {
  width: 100% !important;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px !important;
  font-family: inherit;
  font-size: 0.9rem;
  color: #1f2937;
  background: #fbfbfb;
  transition: 0.2s;
  display: block !important;
  box-sizing: border-box !important;
}

.input-group input:focus {
  outline: none;
  background: #ffffff;
  border-color: #db2777;
  box-shadow: 0 0 0 4px rgba(219, 39, 119, 0.08);
}

.input-icon-container {
  position: relative !important;
  width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
}

.input-icon-container input {
  padding-right: 44px !important;
}

.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #9ca3af;
  font-size: 1.1rem;
  transition: color 0.2s;
  z-index: 10;
}

.toggle-password:hover {
  color: #db2777;
}

.form-actions {
  margin-bottom: 25px;
  text-align: right;
}

.forget-password {
  font-size: 0.78rem;
  color: #db2777;
  font-weight: 600;
  text-decoration: none;
}

.forget-password:hover {
  color: #be185d;
  text-decoration: underline;
}

.btn-login {
  width: 100%;
  background: #db2777 !important;
  color: #ffffff !important;
  border: none;
  padding: 13px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(219, 39, 119, 0.15);
  display: block;
  text-align: center;
}

.btn-login:hover {
  background: #be185d !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(219, 39, 119, 0.2);
}

.login-footer {
  margin-top: 25px;
  border-top: 1px solid #f3f4f6;
  padding-top: 20px;
}

.login-footer a {
  font-size: 0.82rem;
  color: #6b7280;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: 0.2s;
}

.login-footer a:hover {
  color: #db2777;
}

/* MODAL DE RECUPERAÇÃO */
.modal-recovery {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(5px) !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  z-index: 999999 !important;
  padding: 20px;
}

.modal-recovery.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.modal-content {
  background: #ffffff !important;
  width: 100%;
  max-width: 460px;
  border: 1px solid #ffd1dc;
  border-radius: 24px;
  padding: 40px 20px;
  position: relative !important;
  z-index: 1000000 !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
  animation: fadeInModal 0.3s ease-in-out;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #9ca3af;
  cursor: pointer;
}

@keyframes fadeInModal {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ESTRUTURA DASHBOARD */
.dashboard-panel {
  display: flex;
  width: 100%;
  min-height: 100vh;
  background: #fff9fa !important;
  position: fixed;
  inset: 0;
  z-index: 3000;
}

.dashboard-panel ~ header,
body:has(.dashboard-panel[style*="flex"]) header,
body:has(#dashboard-panel:not([style*="display: none"])) header {
  display: none !important;
}

.sidebar {
  width: 280px;
  background: #ffffff;
  border-right: 1px solid #ffe3e8;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 15px rgba(219, 39, 119, 0.02);
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 35px;
  background: #fff0f3;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid #ffd1dc;
  flex-shrink: 0;
}

.sidebar-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
}

.sidebar-header h3 {
  font-size: 0.95rem;
  color: #1f2937;
  font-weight: 700;
  margin: 0;
}

.sidebar-header span {
  font-size: 0.75rem;
  color: #db2777;
  font-weight: 600;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sidebar-menu li {
  margin-bottom: 10px;
}

.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  color: #6b7280;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.sidebar-menu li a i {
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}

.sidebar-menu li.nav-tab:hover a,
.sidebar-menu li.nav-tab.active a {
  background: #fce7f3 !important;
  color: #db2777 !important;
}

.sidebar-menu li.nav-tab:hover a i,
.sidebar-menu li.nav-tab.active a i {
  transform: scale(1.15);
}

.logout-item {
  margin-top: auto !important;
  padding-top: 20px;
}

.sidebar-menu li.logout-item a {
  color: #f43f5e;
  background: #fff1f2;
}

.sidebar-menu li.logout-item:hover a {
  background: #ffe4e6 !important;
  color: #e11d48 !important;
}

.dashboard-content {
  flex: 1;
  padding: 20px 40px 60px 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px dashed #fce7f3;
  padding-bottom: 20px;
  margin-bottom: 35px;
  margin-top: 10px;
  width: 100%;
  flex-shrink: 0;
}

.content-header h2 {
  font-size: 1.6rem;
  color: #1f2937;
  font-weight: 700;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #4b5563;
  background: #ffffff;
  padding: 10px 18px;
  border-radius: 30px;
  border: 1px solid #fce7f3;
  font-weight: 500;
}

.user-profile i {
  color: #db2777;
  font-size: 1.1rem;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 35px;
  flex-shrink: 0;
}

.d-card {
  background: #ffffff;
  border: 1px solid #fce7f3;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 8px 20px rgba(219, 39, 119, 0.01);
  transition: transform 0.3s ease;
}

.d-card:hover {
  transform: translateY(-3px);
}

.d-card i {
  font-size: 2.2rem;
  background: #fff0f3;
  padding: 12px;
  border-radius: 14px;
  color: #db2777;
}

.d-card h4 {
  font-size: 1.5rem;
  color: #1f2937;
  font-weight: 700;
  margin: 0;
}

.d-card p {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 4px 0 0 0;
  font-weight: 500;
}

.management-section {
  background: #ffffff;
  border: 1px solid #fce7f3;
  border-radius: 24px;
  padding: 35px;
  box-shadow: 0 10px 30px rgba(219, 39, 119, 0.01);
  margin-bottom: 40px;
}

.management-section h3 {
  font-size: 1.25rem;
  color: #1f2937;
  margin-bottom: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.management-section h3 i {
  color: #db2777;
}

.simulated-form {
  max-width: 650px;
}

.simulated-form textarea {
  border-radius: 12px !important;
  background: #fbfbfb;
  transition: 0.2s;
}

.simulated-form textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: #db2777 !important;
  box-shadow: 0 0 0 4px rgba(219, 39, 119, 0.08);
}

.simulated-form input[type="file"] {
  width: 100%;
  padding: 12px;
  background: #fff0f3;
  border: 1px dashed #ffd1dc !important;
  border-radius: 12px !important;
  color: #db2777;
  cursor: pointer;
  font-size: 0.85rem;
}

.simulated-form input[type="file"]::file-selector-button {
  background: #db2777;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 600;
  margin-right: 12px;
  cursor: pointer;
  transition: 0.2s;
}

.simulated-form input[type="file"]::file-selector-button:hover {
  background: #be185d;
}

/* =========================================================
   REGRAS DE RESPONSIVIDADE GLOBAL (MINIMIZADO / MOBILE / TABLET)
========================================================= */

/* 1. TABLETS E JANELAS REORGANIZADAS NO PC (< 1024px) */
@media (max-width: 1024px) {
  .menu-toggle {
    display: block;
  }
  .nav-menu {
    position: absolute;
    top: 90px;
    left: -100%;
    width: 100%;
    background: #fff;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s ease-in-out;
    padding: 20px 0;
  }
  .nav-menu.active {
    left: 0;
  }
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .header-btn-ajuda {
    display: none;
  }
  .noticias-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .acesso-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .secretaria-container-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .secretaria-col-principal {
    grid-column: 1 / -1;
  }
  .secretaria-col-item {
    border-left: none;
    border-top: 1px solid #e5e7eb;
    padding: 15px 0 0 0;
  }
  .rede-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .dashboard-panel {
    flex-direction: column;
    position: absolute;
    min-height: auto;
  }
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #fce7f3;
    padding: 20px;
  }
  .sidebar-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
  .sidebar-menu li {
    margin-bottom: 0;
  }
  .logout-item {
    margin-top: 0 !important;
    padding-top: 0;
  }
  .dashboard-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-content {
    padding: 20px;
  }
}

/* 2. PÁGINA DE NOTÍCIAS INTERNA (LER MAIS) */
.noticia-detalhe img,
article img,
img[alt="Imagem Informativa"] {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: 12px;
  object-fit: cover;
}

@media (max-width: 992px) {
  .noticia-container,
  .noticia-layout,
  main.container {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 15px !important;
  }

  .noticia-principal,
  article {
    width: 100% !important;
    max-width: 100% !important;
  }

  .sidebar-noticias,
  .mais-recentes,
  aside {
    width: 100% !important;
    margin-top: 30px !important;
  }

  .noticia-detalhe h1,
  article h1 {
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
  }
}

/* 3. CELULARES E JANELAS ULTRA COMPACTAS (< 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }

  header .container {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .hero {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    margin-top: 90px !important;
    background: url("imagens/mulheres2.jfif") no-repeat center top !important;
    background-size: contain !important;
    aspect-ratio: 2 / 1 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .hero-content,
  .hero-image,
  .hero > img,
  .hero-overlay {
    display: none !important;
  }

  /* AJUSTE FIXO PARA A SEÇÃO PRECISA DE AJUDA NO CELULAR */
  .ajuda-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
  }

  .banner {
    width: 100% !important;
    order: 1 !important; /* Coloca a imagem NO TOPO (em cima da caixa de ajuda) */
  }

  .banner img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
  }

  .card-ajuda {
    width: 100% !important;
    order: 2 !important; /* Coloca a caixa de ajuda em baixo da imagem */
    padding: 20px 15px !important;
  }

  .noticias {
    padding: 15px 0 25px !important;
  }

  .noticias-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .noticia-card img {
    height: 110px !important;
  }

  .noticia-card p,
  .noticia-card a {
    display: none !important;
  }

  .acesso-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .secretaria-container-box {
    grid-template-columns: 1fr;
  }

  .rede-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-cards {
    grid-template-columns: 1fr;
  }

  .content-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .user-profile {
    width: 100%;
    justify-content: center;
  }

  .login-card {
    padding: 25px 20px;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }
}
