body {
  background: #fff !important;
}
/* --- FRASE DE EFEITO DE VAZIO --- */
/* --- HERO MODERNO DA SEBENTA --- */
.sebenta-hero.papel-aventura {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  background: none;
  margin: 2.2rem auto 2.8rem auto;
  max-width: 900px;
  border-radius: 2.2rem;
  overflow: hidden;
}
.hero-bg-papel {
  position: absolute;
  inset: 0;
  background: url('https://www.transparenttextures.com/patterns/old-mathematics.png'), linear-gradient(120deg, #f8fafc 0%, #fbbf24 100%);
  opacity: 0.45;
  z-index: 0;
}
.hero-central-papel {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.2rem 1.2rem;
}
.hero-fogueira {
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 2px 16px #92400e22);
}
.hero-fogueira-emoji {
  display: inline-block;
  font-size: clamp(3.2rem, 6vw, 5rem);
  line-height: 1;
  text-shadow: 0 8px 22px rgba(234, 88, 12, 0.28);
}
.hero-titulo-papel {
  font-family: 'Merriweather', 'Caveat', cursive;
  font-size: 2.7rem;
  font-weight: 900;
  color: #92400e;
  margin-bottom: 0.7rem;
  letter-spacing: -1.2px;
  text-shadow: 0 2px 12px #fbbf2411;
}
.hero-frase-papel {
  font-size: 1.18rem;
  color: #0f172a;
  font-weight: 500;
  margin-bottom: 1.1rem;
  text-align: center;
}
.hero-quote-papel {
  display: block;
  font-size: 1.08rem;
  color: #b45309;
  font-style: italic;
  margin-top: 1.1rem;
  opacity: 0.82;
}
.hero-btn-explorar {
  margin-top: 1.2rem;
  background: linear-gradient(90deg, #fbbf24 0%, #f59e42 100%);
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.7rem 2.2rem;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px #fbbf2422;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.hero-btn-explorar:hover {
  background: linear-gradient(90deg, #92400e 0%, #fbbf24 100%);
  box-shadow: 0 6px 18px #92400e33;
}
@media (max-width: 700px) {
  .sebenta-hero.papel-aventura {
    min-height: 180px;
    margin: 1.2rem auto 1.2rem auto;
    max-width: 100vw;
    border-radius: 1.2rem;
  }
  .hero-central-papel {
    padding: 1.2rem 0.5rem;
  }
  .hero-titulo-papel {
    font-size: 1.7rem;
  }
}
.sebenta-hero.nova-animada {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  background: none;
  margin: 2.2rem auto 2.8rem auto;
  max-width: 900px;
  border-radius: 2.2rem;
  overflow: hidden;
}
.hero-bg-animada {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #38bdf8 0%, #f1f5f9 100%);
  animation: heroGradientMove 8s linear infinite alternate;
  z-index: 0;
}
@keyframes heroGradientMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.hero-central {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.2rem 1.2rem;
}
.hero-bussola {
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 2px 16px #2563eb22);
}
.hero-titulo-animada {
  font-family: 'Merriweather', serif;
  font-size: 2.7rem;
  font-weight: 900;
  color: #2563eb;
  margin-bottom: 0.7rem;
  letter-spacing: -1.2px;
  text-shadow: 0 2px 12px #2563eb11;
}
.hero-frase-animada {
  font-size: 1.18rem;
  color: #0f172a;
  font-weight: 500;
  margin-bottom: 1.1rem;
  text-align: center;
}
.hero-quote-animada {
  display: block;
  font-size: 1.08rem;
  color: #2563eb;
  font-style: italic;
  margin-top: 1.1rem;
  opacity: 0.82;
}
.hero-btn-scroll {
  margin-top: 1.2rem;
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.7rem 2.2rem;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px #2563eb22;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.hero-btn-scroll:hover {
  background: linear-gradient(90deg, #1e40af 0%, #0ea5e9 100%);
  box-shadow: 0 6px 18px #2563eb33;
}
@media (max-width: 700px) {
  .sebenta-hero.nova-animada {
    min-height: 180px;
    margin: 1.2rem auto 1.2rem auto;
    max-width: 100vw;
    border-radius: 1.2rem;
  }
  .hero-central {
    padding: 1.2rem 0.5rem;
  }
  .hero-titulo-animada {
    font-size: 1.7rem;
  }
}
.sebenta-hero.melhorada {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  background: linear-gradient(120deg, #e0f2fe 60%, #f1f5f9 100%);
  border-radius: 2.2rem;
  box-shadow: 0 6px 32px 0 #2563eb11;
  margin: 2.2rem auto 2.8rem auto;
  max-width: 1100px;
  overflow: hidden;
}
.hero-visual {
  position: relative;
  flex: 1 1 340px;
  min-width: 280px;
  max-width: 420px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2.2rem 0 0 2.2rem;
  box-shadow: 0 2px 16px #2563eb22;
  filter: brightness(0.98) contrast(1.08);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #2563eb22 0%, #fff0 100%);
  border-radius: 2.2rem 0 0 2.2rem;
  pointer-events: none;
}
.hero-badge {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 12px #2563eb22;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-badge img {
  width: 54px;
  height: 54px;
}
.hero-content {
  flex: 2 1 400px;
  padding: 2.2rem 2.8rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hero-title {
  font-family: 'Merriweather', serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 0.7rem;
  letter-spacing: -1.2px;
  text-shadow: 0 2px 12px #2563eb11;
}
.hero-desc {
  font-size: 1.25rem;
  color: #2563eb;
  font-weight: 500;
  margin-bottom: 0.7rem;
}
.hero-quote {
  display: block;
  font-size: 1.08rem;
  color: #0f172a;
  font-style: italic;
  margin-top: 1.2rem;
  opacity: 0.82;
}
@media (max-width: 900px) {
  .sebenta-hero.melhorada {
    flex-direction: column;
    min-height: 220px;
    padding: 0;
  }
  .hero-visual {
    max-width: 100%;
    min-width: 180px;
    border-radius: 2.2rem 2.2rem 0 0;
  }
  .hero-foto, .hero-overlay {
    border-radius: 2.2rem 2.2rem 0 0;
  }
  .hero-content {
    padding: 1.2rem 1.2rem 2rem 1.2rem;
    align-items: center;
    text-align: center;
  }
  .hero-title {
    font-size: 2.1rem;
  }
}
#sebentaEmpty {
  color: #2563eb;
  background: linear-gradient(90deg, #e1e9f1d4 60%, #dbeafe 100%);
  border-radius: 1.2rem;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin: auto;
  margin-top: 2rem;
  margin-bottom: -2rem;
  padding: 1rem 1.6rem;
  box-shadow: 0 2px 16px 0 #2563eb11;
  letter-spacing: -0.5px;
  max-width: 440px;
  transition: background 0.2s, color 0.2s;
  display: block;
}

/* --- CORES E VISUAL DOS BOTÕES E MODAL DA SEBENTA --- */
#noticiaModal .noticia-modal--modern {
  background: linear-gradient(120deg, #f1f5f9 70%, #dbeafe 100%);
  border: 2.5px solid #2563eb33;
  box-shadow: 0 24px 80px -18px #2563eb33, 0 1.5px 0 #2563eb22 inset;
  max-width: min(96vw, 1200px);
  width: min(96vw, 1200px);
  /* limitar a altura total do diálogo e usar flex para fixar header/footer */
  max-height: calc(96vh - 24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 2.2rem;
  margin: 0 auto;
  gap: 0;
  padding: 0;
}
#noticiaModal .modal__header {
  background: linear-gradient(90deg, #71f3ccb2 0%, #b0f57794 100%);
  color: #fff;
  border-radius: 30px 30px 0 0;
}
#noticiaModal .modal__title {
  color: #2563eb;
  text-shadow: 0 2px 8px #2563eb22;
}
#noticiaModal .btn--primary {
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px #2563eb22, 0 1.5px 0 #2563eb44 inset;
  transition: background 0.2s, box-shadow 0.2s;
}
#noticiaModal .btn--primary:hover {
  background: linear-gradient(90deg, #1e40af 0%, #0ea5e9 100%);
  box-shadow: 0 6px 18px #2563eb33;
}
#noticiaModal .btn--ghost {
  background: #e0e7ef;
  color: #2563eb;
  border: 1.5px solid #2563eb44;
  transition: background 0.2s, color 0.2s;
}
#noticiaModal .btn--ghost:hover {
  background: #dbeafe;
  color: #1e40af;
}
#noticiaModal .noticia-modal__body {
  background: #f9fafb;
  /* Permitir que o body cresça e role internamente dentro do diálogo */
  flex: 1 1 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

#noticiaModal .noticia-modal__body p {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  box-sizing: border-box;
  overflow-y: auto;
  min-height: 0; /* importante para permitir o overflow funcionar em flex */
}

/* Footer do modal: mais alto, espaçamento extra e sempre visível */
#noticiaModal .noticia-modal__footer {
  background: #f8fafc;
  border-top: 1.5px solid #e0e7ef;
  padding: 1.6rem 2.2rem;
  display: flex;
  justify-content: flex-end;
  gap: 1.2rem;
  flex-wrap: wrap;
}

@media (min-width: 900px) {
  #noticiaModal .noticia-modal__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.2rem;
    align-items: start;
  }

  #noticiaModal .noticia-modal__editor-group,
  #noticiaModal .noticia-modal__media-group {
    grid-column: span 2;
  }

  #noticiaModal .noticia-modal__col-group {
    margin-bottom: 0.4rem;
  }
}

/* --- MELHORIAS DE UX E ORGANIZAÇÃO DO MODAL DE NOVA NOTÍCIA --- */
#noticiaModal .noticia-modal--modern {
  transition: max-width 0.2s ease, max-height 0.2s ease;
}

#noticiaModal .modal__header {
  padding: 2rem 2rem 1.1rem 2rem;
  border-bottom: 1.5px solid #e0e7ef;
  text-align: left;
}
#noticiaModal .modal__title {
  font-size: 2.2rem;
  font-weight: 900;
  margin: 0 0 0.2rem 0;
  letter-spacing: -1.2px;
  color: #0d311a;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
#noticiaModal .modal__subtitle {
  color: #e0e7ef;
  font-size: 1.08rem;
  margin: 0 0 0.2rem 0;
}
#noticiaModal .modal__close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.7rem;
  font-weight: bold;
  cursor: pointer;
  margin-left: auto;
  margin-top: -0.7rem;
  margin-right: -0.7rem;
  transition: color 0.2s;
}
#noticiaModal .modal__close:hover {
  color: #f87171;
}

#noticiaModal .noticia-modal__col-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.5rem;
  margin-bottom: 0.2rem;
}
#noticiaModal .noticia-modal__col-group .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  width: 100%;
}
#noticiaModal .noticia-modal__col-group .form-field.span-2 {
  grid-column: span 2;
}

#noticiaModal .noticia-modal__editor-group {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}


/* Pré-visualização de imagens no modal */

/* --- PRÉ-VISUALIZAÇÃO DE IMAGENS NO MODAL (visual aprimorado) --- */
#noticiaModal .fotos-preview {
  margin-top: 0.6rem;
  display: grid;
  /* thumbnails um pouco maiores, compactos e responsivos */
  /* cards menores: permitir colunas mais estreitas para reduzir o tamanho dos cartões */
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.16rem; /* ainda mais compacto */
}
#noticiaModal .fotos-preview .foto-chip {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--sebenta-card-bg, #fff);
  box-shadow: 0 8px 20px -12px rgba(2,6,23,0.12);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--sebenta-border, rgba(148,163,184,0.18));
  padding: 0.12rem;
  max-width: none;
  align-items: stretch;
}
#noticiaModal .fotos-preview .foto-thumb {
  width: 100%;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  position: relative;
}
#noticiaModal .fotos-preview .foto-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#noticiaModal .fotos-preview .foto-chip textarea {
  border: none;
  border-top: 1px solid rgba(15,23,42,0.06);
  padding: 0.35rem 0.45rem 0.45rem;
  font-size: 0.9rem;
  background: transparent;
  color: #0f172a;
  resize: vertical;
  min-height: 30px;
  border-radius: 0 0 8px 8px;
}
#noticiaModal .fotos-preview .foto-chip textarea:focus {
  outline: none;
}
#noticiaModal .fotos-preview .foto-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,0.9);
  color: #c0262e;
  border: 1px solid rgba(0,0,0,0.06);
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.16s, background 0.16s;
}
#noticiaModal .fotos-preview .foto-remove:hover {
  transform: scale(1.05);
  background: #fff;
}

/* Empty state */
.fotos-preview-empty {
  color: var(--sebenta-muted, #6b7280);
  font-size: 0.95rem;
}

/* Lightbox simples para pré-visualizar a imagem em tamanho maior */
.image-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4,8,15,0.6);
  z-index: 1600;
}
.image-lightbox .lightbox-backdrop {
  max-width: 92vw;
  max-height: 92vh;
  padding: 14px;
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.image-lightbox .lightbox-img {
  max-width: 90vw;
  max-height: 86vh;
  border-radius: 6px;
  box-shadow: 0 18px 60px rgba(2,6,23,0.6);
  display: block;
}
.image-lightbox .lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,255,255,0.95);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
}


#noticiaModal input[type="text"],
#noticiaModal input[type="date"],
#noticiaModal input[type="url"],
#noticiaModal textarea {
  border-radius: 1.1rem;
  border: 1.5px solid #e0e7ef;
  padding: 1rem 1.2rem;
  font-size: 1.08rem;
  background: #fff;
  margin-bottom: 0.1rem;
  box-shadow: 0 1.5px 0 #2563eb11 inset;
  transition: border 0.2s, box-shadow 0.2s;
}
#noticiaModal input:focus, #noticiaModal textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px #2563eb22;
  outline: none;
}
#noticiaModal label {
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.1rem;
  display: block;
  font-size: 1.01rem;
  letter-spacing: -0.5px;
}
#noticiaModal .field-hint {
  color: #64748b;
  font-size: 0.89rem;
  margin-top: 0.1rem;
}
#noticiaModal .btn {
  padding: 1.1rem 2.2rem;
  border-radius: 1.1rem;
  font-weight: 800;
  font-size: 1.08rem;
}
#noticiaModal .btn--ghost {
  background: #f1f5f9;
  color: #1e293b;
  border: 1.5px solid #e0e7ef;
}
#noticiaModal .btn--ghost:hover {
  background: #e0e7ef;
}
#noticiaModal .btn--primary {
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.13), 0 1.5px 0 #2563eb44 inset;
}
#noticiaModal .btn--primary:hover {
  background: linear-gradient(90deg, #1e40af 0%, #60a5fa 100%);
}

@media (max-width: 700px) {
  #noticiaModal .noticia-modal--modern {
    max-width: 99vw;
    padding: 0;
  }
  #noticiaModal .noticia-modal__body {
    padding: 1.1rem 0.7rem 0.7rem 0.7rem;
  }
  #noticiaModal .noticia-modal__header, #noticiaModal .noticia-modal__footer {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
  #noticiaModal .noticia-modal__col-group {
    grid-template-columns: 1fr;
    gap: 1.1rem 0;
  }
}
/* Modal de notícia: oculto por padrão, visível só com .modal--visible */
#noticiaModal {
  display: none;
}
#noticiaModal.modal--visible {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(30,41,59,0.18);
  animation: fadeInBg 0.25s;
}
@keyframes fadeInBg {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* --- MODAL DE NOVA NOTÍCIA MODERNO --- */
.noticia-modal--modern {
  max-width: 670px;
  width: 98vw;
  border-radius: 2.2rem;
  box-shadow: 0 24px 80px -18px rgba(30,41,59,0.22), 0 1.5px 0 #2563eb22 inset;
  background: #fff;
  padding: 0;
  overflow: hidden;
  animation: noticiaModalPopIn 0.45s cubic-bezier(.6,-0.28,.74,.05);
  display: flex;
  flex-direction: column;
  max-height: calc(96vh - 24px);
}

@keyframes noticiaModalPopIn {
  from { transform: scale(0.93); opacity: 0.7; }
  to { transform: scale(1); opacity: 1; }
}

.noticia-modal__header {
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
  color: #fff;
  padding: 2.1rem 2.2rem 1.1rem 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid #e0e7ef;
}
.noticia-modal__header .modal__title {
  font-size: 2.1rem;
  font-weight: 900;
  margin: 0;
  letter-spacing: -1.2px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.noticia-modal__header .modal__subtitle {
  color: #e0e7ef;
  font-size: 1.08rem;
  margin-top: 0.2rem;
}
.noticia-modal__body {
  padding: 2.1rem 2.2rem 1.2rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 2.2rem 2.2rem;
  background: #f8fafc;
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
}
.noticia-modal__col-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 2.2rem;
  margin-bottom: 0.2rem;
}
.noticia-modal__editor-group {
  align-items: flex-start;
}
.noticia-modal__media-group {
  grid-template-columns: 1fr;
}
.noticia-modal__preview {
  background: #fff;
  border-radius: 1.2rem;
  border: 1.5px solid #e0e7ef;
  min-height: 120px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
  font-size: 1.01rem;
  color: #1e293b;
  overflow-y: auto;
  max-height: 220px;
}
.noticia-modal__footer {
  background: #f8fafc;
  border-top: 1.5px solid #e0e7ef;
  padding: 1.2rem 2.2rem 1.5rem 2.2rem;
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
}
.noticia-modal__footer-actions {
  display: flex;
  gap: 1.2rem;
}
.noticia-modal--modern input[type="text"],
.noticia-modal--modern input[type="date"],
.noticia-modal--modern input[type="url"],
.noticia-modal--modern textarea {
  border-radius: 1.1rem;
  border: 1.5px solid #e0e7ef;
  padding: 1.1rem 1.3rem;
  font-size: 1.08rem;
  background: #fff;
  margin-bottom: 0.1rem;
  box-shadow: 0 1.5px 0 #2563eb11 inset;
  transition: border 0.2s, box-shadow 0.2s;
}
.noticia-modal--modern input:focus, .noticia-modal--modern textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px #2563eb22;
  outline: none;
}
.noticia-modal--modern label {
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.3rem;
  display: block;
  font-size: 1.01rem;
  letter-spacing: -0.5px;
}
.noticia-modal--modern .field-hint {
  color: #64748b;
  font-size: 0.89rem;
  margin-top: 0.3rem;
}
.noticia-modal--modern .btn {
  padding: 1.1rem 2.2rem;
  border-radius: 1.1rem;
  font-weight: 800;
  font-size: 1.08rem;
}
.noticia-modal--modern .btn--ghost {
  background: #f1f5f9;
  color: #1e293b;
  border: 1.5px solid #e0e7ef;
}
.noticia-modal--modern .btn--ghost:hover {
  background: #e0e7ef;
}
.noticia-modal--modern .btn--primary {
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.13), 0 1.5px 0 #2563eb44 inset;
}
.noticia-modal--modern .btn--primary:hover {
  background: linear-gradient(90deg, #1e40af 0%, #60a5fa 100%);
}
@media (max-width: 700px) {
  .noticia-modal--modern {
    max-width: 99vw;
    padding: 0;
  }
  .noticia-modal__body {
    padding: 1.1rem 0.7rem 0.7rem 0.7rem;
  }
  .noticia-modal__header, .noticia-modal__footer {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
  .noticia-modal__col-group {
    grid-template-columns: 1fr;
    gap: 1.1rem 0;
  }
}
:root {
  --sebenta-hero-bg: linear-gradient(135deg, #1e3a8a 0%, #2563eb 45%, #60a5fa 100%);
  --sebenta-card-bg: rgba(255, 255, 255, 0.96);
  --sebenta-card-shadow: 0 24px 60px -28px rgba(15, 23, 42, 0.65);
  --sebenta-accent: #1d4ed8;
  --sebenta-accent-soft: rgba(37, 99, 235, 0.12);
  --sebenta-gold: #fbbf24;
  --sebenta-muted: #6b7280;
  --sebenta-border: rgba(148, 163, 184, 0.35);
  --sebenta-radius-xl: 26px;
}

body.modal-open {
  overflow: hidden;
}

.sebenta-hero {
  /* mais compacto */
  padding: clamp(0.9rem, 1.6vw, 1.2rem) clamp(0.8rem, 2vw, 1.2rem);
  text-align: center;
  /* gradiente mais sóbrio e menos saturado, combinando com simbologia do site */
  background: linear-gradient(180deg, #0b3b66 0%, #134e7a 40%, #1e5f88 100%);
  color: #f8fafc;
  border-radius: 0 0 20px 20px;
  /* sombras discretas para profundidade sem excessos */
  box-shadow: 0 6px 20px rgba(2,6,23,0.08) inset, 0 4px 18px rgba(2,6,23,0.04);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.sebenta-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* overlay sutil para textura sem brilho forte */
  background: radial-gradient(circle at top right, rgba(255,255,255,0.04) 0%, transparent 40%),
              radial-gradient(circle at bottom left, rgba(255,255,255,0.02) 0%, transparent 34%);
  pointer-events: none;
}

.sebenta-hero h1 {
  font-family: "Merriweather", "Times New Roman", serif;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0;
  color: rgba(255,255,255,0.98);
  transform-origin: left center;
  animation: heroTitlePop 520ms cubic-bezier(.2,.9,.18,1) both;
}

@keyframes heroTitlePop {
  from { transform: translateY(-6px) scale(0.99); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.sebenta-hero .sebenta-desc {
  font-size: clamp(0.95rem, 1.9vw, 1.05rem);
  max-width: 720px;
  margin: 0;
  line-height: 1.45;
  font-weight: 500;
  color: rgba(245,250,255,0.95);
  background: rgba(255,255,255,0.06);
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(2,6,23,0.08);
}

.sebenta-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  justify-content: center;
  background: linear-gradient(90deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
}

.sebenta-hero .hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
  display: inline-grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(2,6,23,0.12);
  transform: translateY(0);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.sebenta-hero .hero-icon svg { width: 40px; height: 40px; display:block }

.hero-icon:hover, .hero-icon:focus {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(2,6,23,0.18);
}

.hero-icon:focus {
  outline: 3px solid rgba(255,255,255,0.12);
  outline-offset: 6px;
}

@media (max-width: 780px) {
  .sebenta-hero { grid-template-columns: 1fr; padding: clamp(1.1rem, 2.8vw, 1.6rem); gap: 0.7rem; }
  .sebenta-hero .hero-icon { width: 54px; height: 54px; }
  .sebenta-hero h1 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
}

.sebenta-feed {
  padding: clamp(3rem, 5vw, 5rem) 0;
}

.sebenta-feed .container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
}

.feed-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-direction: column;
}

.btn-add-noticia {
  border: none;
  border-radius: 999px;
  background: linear-gradient(120deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.7rem;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  box-shadow: 0 18px 38px -22px rgba(37, 99, 235, 0.8);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-add-noticia:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 42px -18px rgba(37, 99, 235, 0.75);
  filter: brightness(1.04);
}

.btn-add-noticia:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
}
.btn-add-noticia[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.3);
}

.btn-add-noticia[disabled]:hover {
  transform: none;
  box-shadow: none;
  filter: grayscale(0.3);
}

.sebenta-editor-hint {
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.75);
  background: rgba(255, 255, 255, 0.6);
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  max-width: 420px;
  text-align: center;
  line-height: 1.4;
}

.sebenta-editor-hint kbd {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: rgba(241, 245, 249, 0.9);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
}

.sebenta-noticias {
  /* Centralizar grelha de notícias */
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.25rem;
  max-width: 1100px;
}
@media (max-width: 900px) {
  .sebenta-noticias {
    max-width: 700px;
  }
}
@media (max-width: 600px) {
  .sebenta-noticias {
    max-width: 400px;
  }
}

  /* Centralização dinâmica por quantidade de notícias */
  .sebenta-noticias:has(.noticia-card:nth-child(1):last-child),
  .sebenta-noticias:has(.noticia-card:nth-child(2):last-child) {
    place-items: center;
    justify-items: center;
  }

@media (min-width: 640px) {
  .sebenta-noticias {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 0.25rem;
  }
}

@media (min-width: 900px) {
  .sebenta-noticias {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 0.25rem;
  }
}

@media (min-width: 1200px) {
  .sebenta-noticias {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 0.25rem;
  }
}

.noticia-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.98) 55%);
  box-shadow: 0 8px 20px -12px rgba(15, 23, 42, 0.3);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
  backdrop-filter: blur(2px);
  padding: 0;
  max-width: 220px;
  min-width: 180px;
  width: 100%;
  margin: 0 auto;
}

.noticia-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(16, 185, 129, 0.08));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.noticia-card:hover::before,
.noticia-card:focus-within::before {
  opacity: 1;
}

.fade-in-card {
  opacity: 0;
  animation: fadeInCard 0.5s ease forwards;
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.noticia-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 40px 80px -38px rgba(15, 23, 42, 0.78);
}

.noticia-card:focus-within {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 4px;
}

.noticia-media {
  position: relative;
  overflow: hidden;
  background: #0f172a;
  min-height: 100px;
  max-height: 120px;
}

.noticia-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  max-height: 120px;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.is-active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
  font-size: 0.85rem;
  line-height: 1.3;
  box-shadow: 0 6px 18px -10px rgba(15, 23, 42, 0.7);
  font-style: italic;
  letter-spacing: 0.01em;
  opacity: 0.92;
  text-align: center;
  pointer-events: none;
}

.carousel-controls {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.carousel-btn {
  pointer-events: auto;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.5);
  color: #fff;
  font-size: 1.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.carousel-btn:hover,
.carousel-btn:focus {
  outline: none;
  background: rgba(15, 23, 42, 0.8);
  transform: scale(1.05);
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.carousel-indicators {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  pointer-events: auto;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-indicators button.is-active,
.carousel-indicators button:hover {
  background: var(--sebenta-gold);
  transform: scale(1.2);
}

.noticia-body {
  padding: 0.6rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-height: 0;
  flex: 1;
}

.noticia-body h2 {
  font-size: 0.95rem;
  line-height: 1.3;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.noticia-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--sebenta-muted);
  font-weight: 600;
  font-size: 0.75rem;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.12), rgba(16, 185, 129, 0.12));
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  width: fit-content;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.noticia-meta time::before {
  content: "📅";
  font-family: "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  margin-right: 0.25rem;
  color: var(--sebenta-accent);
  font-size: 0.85rem;
}

.noticia-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  align-items: center;
  justify-content: center;
  padding-top: 0.3rem;
}

  /* Quando houver Instagram, botões lado a lado e botão do Instagram menor */
  .noticia-actions.has-instagram {
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
  }
  .noticia-actions.has-instagram .instagram-link {
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
  }
  .noticia-actions.has-instagram .btn-ver-completa {
    margin-top: 0 !important;
  }

  /* Quando não houver Instagram, botão mais abaixo */
  .noticia-actions:not(.has-instagram) .btn-ver-completa {
    margin-top: 0.5rem;
  }


.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem; /* espaçamento maior entre ícone e texto */
  padding: 0.7rem 1.2rem; /* aumentar padding para botões mais destacados */
  border-radius: 999px;
  font-weight: 700; /* texto mais forte */
  text-decoration: none;
  color: #fff;
  background: linear-gradient(120deg, #f58529, #dd2a7b, #8134af, #515bd4);
  background-size: 200% 200%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* sombra mais pronunciada */
  transition: transform 0.2s ease, background-position 0.25s ease;
}

.instagram-link:hover {
  transform: translateY(-2px); /* efeito de elevação ao passar o mouse */
  background-position: 100% 50%;
}

.noticia-editor-actions {
  display: flex;
  gap: 0.65rem;
}

.noticia-editor-actions button {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #f8fafc;
  color: #0f172a;
  border-radius: 12px;
  padding: 0.45rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.noticia-editor-actions button:hover {
  background: rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.noticia-media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.25), rgba(15, 23, 42, 0.9));
  color: #e0f2fe;
  text-align: center;
}

.noticia-media--placeholder .placeholder-inner {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: center;
  max-width: 280px;
}

.noticia-media--placeholder .placeholder-icon {
  font-size: 2.4rem;
}

.noticia-media--placeholder .placeholder-copy {
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.35;
}

@media (min-width: 960px) {
  .noticia-card--featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }

  .noticia-card--featured .noticia-media,
  .noticia-card--featured .noticia-media--placeholder {
    height: 100%;
    min-height: 100%;
  }

  /* Quando o card é featured, o carousel deve preencher a coluna inteira
     removendo o aspect-ratio fixo e garantindo que as imagens ocupem 100% da altura */
  .noticia-card--featured .noticia-carousel {
    aspect-ratio: auto !important;
    height: 100% !important;
    display: block;
  }

  .noticia-card--featured .carousel-track,
  .noticia-card--featured .carousel-slide {
    height: 100% !important;
  }

  .noticia-card--featured .carousel-slide img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover;
  }

  .noticia-card--featured .noticia-body {
    padding: clamp(2.4rem, 3.5vw, 3rem);
  }
}

@media (max-width: 599px) {
  .noticia-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

.noticia-editor-actions .btn-delete {
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.18);
}

.noticia-editor-actions .btn-delete:hover {
  background: rgba(248, 113, 113, 0.15);
}

body:not(.editor-mode) .noticia-editor-actions {
  display: none;
}

/* Modal base */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(9px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 2100;
}

.modal--visible {
  opacity: 1;
  pointer-events: auto;
}

.modal__dialog {
  width: min(640px, 100%);
  max-height: min(90vh, 880px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 35px 90px -40px rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.28s ease;
}

.modal--visible .modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal__dialog--detail {
  width: min(860px, 100%);
}

.modal__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.75rem, 4vw, 2.4rem) clamp(1.1rem, 2vw, 1.6rem);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.modal__header-copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.modal__eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: rgba(37, 99, 235, 0.68);
  margin: 0;
}

.modal__title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: #0f172a;
  line-height: 1.15;
}

.modal__subtitle {
  font-size: 0.95rem;
  color: var(--sebenta-muted);
  font-weight: 600;
}

.modal__close {
  border: none;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  width: 44px;
  height: 44px;
  border-radius: 18px;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.modal__close:hover,
.modal__close:focus-visible {
  background: rgba(15, 23, 42, 0.16);
  transform: translateY(-2px);
  outline: none;
}

.modal__form {
  display: flex;
  flex-direction: column;
  /* permitir que o form ocupe o espaço disponível dentro do diálogo e encolha corretamente */
  flex: 1 1 auto;
  min-height: 0; /* essencial para permitir overflow dos filhos em navegadores modernos */
}

.modal__body {
  padding: clamp(1.4rem, 3vw, 2.1rem) clamp(1.75rem, 4vw, 2.35rem);
  overflow-y: auto;
  scrollbar-width: thin;
}

.modal__footer {
  padding: clamp(1.1rem, 2.8vw, 1.6rem) clamp(1.75rem, 4vw, 2.35rem) clamp(1.4rem, 3vw, 1.9rem);
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.88);
}

.modal-form__header {
  align-items: center;
  padding: clamp(1rem, 2.4vw, 1.5rem) clamp(1.3rem, 2.8vw, 1.9rem) clamp(0.8rem, 2vw, 1.2rem);
}

.modal-form__header-copy {
  gap: 0.3rem;
  max-width: 28rem;
}

.modal-form__subtitle {
  font-size: 0.88rem;
  color: rgba(71, 85, 105, 0.9);
  font-weight: 500;
}

.modal-form__body {
  padding: clamp(0.95rem, 2.4vw, 1.5rem) clamp(1.2rem, 2.5vw, 1.85rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem 1.15rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-field label {
  font-weight: 700;
  color: #1f2937;
  font-size: 0.95rem;
}

.form-field input,
.form-field textarea {
  border: 1.4px solid rgba(148, 163, 184, 0.48);
  border-radius: 14px;
  padding: 0.75rem 0.95rem;
  font-size: 0.98rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--sebenta-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  outline: none;
}

.form-field textarea {
  resize: vertical;
  min-height: 150px;
}

.ql-toolbar.ql-snow {
  border-radius: 14px 14px 0 0;
  border: 1.4px solid rgba(148, 163, 184, 0.48);
  background: rgba(248, 250, 252, 0.85);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ql-toolbar.ql-snow button:hover,
.ql-toolbar.ql-snow .ql-picker-label:hover,
.ql-toolbar.ql-snow .ql-picker-item:hover {
  color: #1d4ed8;
}

.ql-container.ql-snow {
  border-radius: 0 0 14px 14px;
  border: 1.4px solid rgba(148, 163, 184, 0.48);
  min-height: 220px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
}

.ql-editor {
  line-height: 1.65;
}

.rich-text-editor {
  margin-top: 0.4rem;
}

.field-hint {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.6);
}

.form-field.span-2 {
  grid-column: 1 / -1;
}

.modal-form__footer {
  padding: clamp(0.85rem, 2.2vw, 1.4rem) clamp(1.3rem, 2.5vw, 1.85rem) clamp(1rem, 2.3vw, 1.5rem);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: rgba(248, 250, 252, 0.88);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.modal-form__footer .btn {
  min-width: 120px;
}

.fotos-preview {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
}

.fotos-preview-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 1.1rem 1.25rem;
  background: rgba(248, 250, 252, 0.95);
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: 18px;
  color: rgba(15, 23, 42, 0.6);
  font-size: 0.95rem;
}

.foto-chip {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(160deg, #0f172a 0%, #111827 100%);
  box-shadow: 0 20px 48px -34px rgba(15, 23, 42, 0.95);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.foto-chip img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.foto-chip textarea {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.65rem 0.8rem 0.9rem;
  font-size: 0.9rem;
  background: rgba(15, 23, 42, 0.92);
  color: #e2e8f0;
  resize: vertical;
  min-height: 62px;
}

.foto-chip textarea:focus {
  outline: none;
}

.foto-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, background 0.18s ease;
}

.foto-remove:hover {
  transform: scale(1.1);
  background: rgba(220, 38, 38, 0.88);
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #1d4ed8 100%);
  box-shadow: 0 20px 38px -24px rgba(37, 99, 235, 0.75);
}

.btn--primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 26px 50px -28px rgba(37, 99, 235, 0.78);
}

.btn--ghost {
  background: rgba(15, 23, 42, 0.05);
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.btn--ghost:hover {
  background: rgba(15, 23, 42, 0.1);
}

.btn-view {
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
  font-weight: 600;
  font-size: 0.75rem;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.05);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn-view:hover {
  background: rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -20px rgba(37, 99, 235, 0.45);
}

.modal-detail__body {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.4rem);
  padding-bottom: clamp(1.2rem, 3vw, 1.8rem);
}

.modal-detail__media {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 26px 60px -38px rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.modal-detail__carousel {
  aspect-ratio: 16 / 9;
}

.modal-detail__content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.modal-detail__text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #1f2937;
  white-space: normal;
}

.modal-detail__instagram {
  align-self: flex-start;
}

.modal-detail__text p {
  margin-bottom: 1rem;
}

.modal-detail__text ul,
.modal-detail__text ol {
  margin: 0.75rem 0 1rem 1.25rem;
  padding: 0 0 0 0.5rem;
}

.modal-detail__text ul li {
  list-style: disc;
}

.modal-detail__text ol li {
  list-style: decimal;
}

.modal__subtitle--secondary {
  font-size: 1.05rem;
  margin-top: 0.25rem;
  color: rgba(15, 23, 42, 0.75);
}

.noticia-subtitle {
  font-size: 0.875rem;
  color: rgba(15, 23, 42, 0.7);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.loading-text {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.modal__dialog::-webkit-scrollbar,
.modal__body::-webkit-scrollbar {
  width: 8px;
}

.modal__dialog::-webkit-scrollbar-thumb,
.modal__body::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 720px) {
  .sebenta-hero {
    border-radius: 0 0 32px 32px;
  }

  .noticia-body {
    padding: 1.6rem 1.35rem 2rem;
  }

  .carousel-btn {
    width: 38px;
    height: 38px;
  }

  .carousel-caption {
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

#noticiaModal .noticia-media,
#noticiaModal .noticia-carousel {
  width: 100%;
  max-width: 540px;
  margin: 0 auto 1.2rem auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 32px -12px rgba(15,23,42,0.18);
  background: #0f172a;
  aspect-ratio: 16/9;
  min-height: 220px;
  max-height: 340px;
}

#noticiaModal .carousel-track {
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 340px;
  background: #020617;
}

#noticiaModal .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  background: #0f172a;
}

@media (max-width: 700px) {
  #noticiaModal .noticia-media,
  #noticiaModal .noticia-carousel {
    max-width: 98vw;
    min-width: 0;
    border-radius: 10px;
    aspect-ratio: 16/9;
    min-height: 120px;
    max-height: 200px;
  }
  #noticiaModal .carousel-track {
    min-height: 120px;
    max-height: 200px;
  }
}
