/* ==========================================================================
   UI Components (Cards, Filter Pills, Modals, Badges)
   ========================================================================== */

/* Category Filter Pills */
.gov-filter-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 2rem;
  scrollbar-width: thin;
}

.gov-filter-pill {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.gov-filter-pill:hover {
  background-color: #f8fafc;
  border-color: #002147;
  color: #002147;
}

.gov-filter-pill.active {
  background-color: #002147;
  color: #ffffff;
  border-color: #002147;
  box-shadow: 0 2px 4px rgba(0, 33, 71, 0.15);
}

/* Redirect Cards Grid (4 cards lado a lado) */
.redirect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 1200px) {
  .redirect-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .redirect-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .redirect-grid {
    grid-template-columns: 1fr;
  }
}

.redirect-card {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), inset 0 2px 2px rgba(255, 255, 255, 0.8), inset 0 -2px 4px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  height: 205px;
}

/* Efeito Laminado: Película Especular de Brilho Vertical */
.redirect-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Efeito Laminado: Varredura Holográfica ao Passar o Mouse */
.redirect-card::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -70%;
  width: 50%;
  height: 220%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.65) 50%, rgba(255, 255, 255, 0) 100%);
  transform: rotate(25deg);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: left 0.75s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.redirect-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.15), inset 0 2px 3px rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.9);
}

.redirect-card:hover::after {
  left: 140%;
  opacity: 1;
}

/* Metade de Bolha com Degradê em Luz Branca (Half-Bubble Glow) */
.redirect-card-bubble {
  display: none !important;
}

/* Presets de Degradê com Contraste Rico (12 Opções) */
/* Presets de Degradê com Contraste Rico */
.redirect-card.bg-hero-blue {
  background: linear-gradient(to top, #001838 0%, #002b5b 50%, #1351b4 100%);
  border-color: #2563eb;
  box-shadow: 0 10px 25px -5px rgba(19, 81, 180, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.redirect-card.bg-hero-blue .redirect-title { color: #ffffff; }
.redirect-card.bg-hero-blue .redirect-description { color: #cbd5e1; }

.redirect-card.bg-hero-green {
  background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #10b981 100%);
  border-color: #10b981;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.redirect-card.bg-hero-green .redirect-title { color: #ffffff; }
.redirect-card.bg-hero-green .redirect-description { color: #d1fae5; }

.redirect-card.bg-hero-purple {
  background: linear-gradient(135deg, #3b0764 0%, #6b21a8 50%, #9333ea 100%);
  border-color: #a855f7;
  box-shadow: 0 10px 25px -5px rgba(147, 51, 234, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.redirect-card.bg-hero-purple .redirect-title { color: #ffffff; }
.redirect-card.bg-hero-purple .redirect-description { color: #f3e8ff; }

.redirect-card.bg-hero-orange {
  background: linear-gradient(135deg, #7c2d12 0%, #c2410c 50%, #ea580c 100%);
  border-color: #f97316;
  box-shadow: 0 10px 25px -5px rgba(234, 88, 12, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.redirect-card.bg-hero-orange .redirect-title { color: #ffffff; }
.redirect-card.bg-hero-orange .redirect-description { color: #ffedd5; }

.redirect-card.bg-hero-dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  border-color: #475569;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.redirect-card.bg-hero-dark .redirect-title { color: #ffffff; }
.redirect-card.bg-hero-dark .redirect-description { color: #cbd5e1; }

.redirect-card.bg-hero-red {
  background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 50%, #dc2626 100%);
  border-color: #ef4444;
  box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.redirect-card.bg-hero-red .redirect-title { color: #ffffff; }
.redirect-card.bg-hero-red .redirect-description { color: #fee2e2; }

.redirect-card.bg-hero-teal {
  background: linear-gradient(135deg, #134e4a 0%, #0f766e 50%, #14b8a6 100%);
  border-color: #2dd4bf;
  box-shadow: 0 10px 25px -5px rgba(20, 184, 166, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.redirect-card.bg-hero-teal .redirect-title { color: #ffffff; }
.redirect-card.bg-hero-teal .redirect-description { color: #ccfbf1; }

.redirect-card.bg-hero-gold {
  background: linear-gradient(135deg, #78350f 0%, #b45309 50%, #d97706 100%);
  border-color: #f59e0b;
  box-shadow: 0 10px 25px -5px rgba(217, 119, 6, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.redirect-card.bg-hero-gold .redirect-title { color: #ffffff; }
.redirect-card.bg-hero-gold .redirect-description { color: #fef3c7; }

.redirect-card.bg-hero-sunset {
  background: linear-gradient(135deg, #4c1d95 0%, #831843 50%, #c2410c 100%);
  border-color: #e11d48;
  box-shadow: 0 10px 25px -5px rgba(225, 29, 72, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.redirect-card.bg-hero-sunset .redirect-title { color: #ffffff; }
.redirect-card.bg-hero-sunset .redirect-description { color: #ffe4e6; }

.redirect-card.bg-hero-ocean {
  background: linear-gradient(135deg, #0369a1 0%, #0891b2 50%, #0d9488 100%);
  border-color: #38bdf8;
  box-shadow: 0 10px 25px -5px rgba(14, 165, 233, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.redirect-card.bg-hero-ocean .redirect-title { color: #ffffff; }
.redirect-card.bg-hero-ocean .redirect-description { color: #e0f2fe; }

.redirect-card.bg-ice {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 50%, #e0f2fe 100%);
  border-color: #cbd5e1;
  box-shadow: 0 10px 25px -5px rgba(56, 189, 248, 0.08), inset 0 2px 3px rgba(255, 255, 255, 0.95);
}
.redirect-card.bg-ice .redirect-description {
  color: #334155;
}

.redirect-card.bg-slate {
  background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
  border-color: #94a3b8;
}
.redirect-card.bg-blue {
  background: linear-gradient(135deg, #e0f2fe 0%, #7dd3fc 100%);
  border-color: #38bdf8;
}
.redirect-card.bg-indigo {
  background: linear-gradient(135deg, #e0e7ff 0%, #a5b4fc 100%);
  border-color: #818cf8;
}
.redirect-card.bg-cyan {
  background: linear-gradient(135deg, #cffafe 0%, #67e8f9 100%);
  border-color: #22d3ee;
}
.redirect-card.bg-teal {
  background: linear-gradient(135deg, #ccfbf1 0%, #5eead4 100%);
  border-color: #2dd4bf;
}
.redirect-card.bg-emerald {
  background: linear-gradient(135deg, #d1fae5 0%, #6ee7b7 100%);
  border-color: #34d399;
}
.redirect-card.bg-green {
  background: linear-gradient(135deg, #dcfce7 0%, #86efac 100%);
  border-color: #4ade80;
}
.redirect-card.bg-amber {
  background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%);
  border-color: #fbbf24;
}
.redirect-card.bg-orange {
  background: linear-gradient(135deg, #ffedd5 0%, #fdba74 100%);
  border-color: #fb923c;
}
.redirect-card.bg-magenta {
  background: linear-gradient(135deg, #fae8ff 0%, #e879f9 100%);
  border-color: #d946ef;
}
.redirect-card.bg-purple {
  background: linear-gradient(135deg, #f3e8ff 0%, #c084fc 100%);
  border-color: #a855f7;
}

/* Presets de Degradê Multi-Cores (Dual-Tone Vibrantes) */
.redirect-card.bg-blue-pink {
  background: linear-gradient(135deg, #7dd3fc 0%, #f472b6 100%);
  border-color: #ec4899;
}
.redirect-card.bg-purple-orange {
  background: linear-gradient(135deg, #c084fc 0%, #fb923c 100%);
  border-color: #f97316;
}
.redirect-card.bg-cyan-purple {
  background: linear-gradient(135deg, #67e8f9 0%, #c084fc 100%);
  border-color: #a855f7;
}
.redirect-card.bg-blue-indigo {
  background: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
  border-color: #4f46e5;
}
.redirect-card.bg-pink-yellow {
  background: linear-gradient(135deg, #f472b6 0%, #fde047 100%);
  border-color: #eab308;
}
.redirect-card.bg-emerald-yellow {
  background: linear-gradient(135deg, #34d399 0%, #facc15 100%);
  border-color: #10b981;
}
.redirect-card.bg-violet-rose {
  background: linear-gradient(135deg, #818cf8 0%, #fb7185 100%);
  border-color: #f43f5e;
}
.redirect-card.bg-teal-blue {
  background: linear-gradient(135deg, #2dd4bf 0%, #38bdf8 100%);
  border-color: #0284c7;
}

/* Preset Preto Desbotado Luminoso (Grafite Desbotado Suave) */
.redirect-card.bg-faded-black {
  background: linear-gradient(135deg, #52525b 0%, #27272a 100%);
  border-color: #71717a;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.redirect-card.bg-faded-black .redirect-title {
  color: #ffffff;
}
.redirect-card.bg-faded-black .redirect-description {
  color: #e4e4e7;
}
.redirect-card.bg-faded-black::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
}
.redirect-card.bg-faded-black::after {
  background: radial-gradient(circle, rgba(161, 161, 170, 0.35) 0%, rgba(161, 161, 170, 0) 70%);
}

.redirect-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.6rem;
  line-height: 1.35;
  text-align: center;
}

.redirect-description {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.55;
  margin-bottom: 0;
  text-align: center;
}

.redirect-card-bg-layer {
  position: absolute;
  top: -15%;
  left: -15%;
  width: 130%;
  height: 130%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  pointer-events: none;
  transition: transform 0.4s ease, filter 0.4s ease, opacity 0.4s ease;
}

.redirect-card:hover .redirect-card-bg-layer {
  transform: scale(1.08);
}

.redirect-card-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.redirect-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.85rem;
  width: 100%;
}

.redirect-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  background-color: #e2e8f0;
  color: var(--gov-gray-800);
}

.redirect-badge.oficial {
  background-color: #dcfce7;
  color: #166534;
}

.redirect-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gov-blue-dark);
  margin-bottom: 0.6rem;
  line-height: 1.35;
  text-align: center;
}

.redirect-description {
  font-size: 0.92rem;
  color: var(--gov-gray-700);
  line-height: 1.55;
  margin-bottom: 0;
  text-align: center;
}

.redirect-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.85rem;
  width: 100%;
  position: relative;
  z-index: 2;
}

.redirect-clicks {
  color: var(--gov-gray-500);
  display: flex;
  align-items: center;
  gap: 5px;
}

.redirect-btn {
  color: var(--gov-blue-main);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.redirect-card:hover .redirect-btn {
  color: var(--gov-green-main);
  transform: translateX(3px);
}

/* Post Cards Grid */
/* Post Cards Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

.post-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px -6px rgba(0, 33, 71, 0.12);
  border-color: #cbd5e1;
}

.post-card-img-wrapper {
  width: 100%;
  height: 210px;
  overflow: hidden;
  position: relative;
  background-color: #f1f5f9;
}

.post-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-card-thumb {
  transform: scale(1.06);
}

.post-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0.85rem;
}

.post-category-tag {
  background-color: #002147;
  color: #ffffff !important;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.post-card-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--gov-blue-dark);
  line-height: 1.4;
  margin-bottom: 0.75rem;
  text-align: center;
}

.post-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-card-title a:hover {
  color: #1351b4;
}

.post-card-excerpt {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

/* Modal Popup System */
.gov-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 33, 71, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.gov-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.gov-modal {
  background-color: var(--gov-white);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.gov-modal-overlay.active .gov-modal {
  transform: translateY(0);
}

.gov-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--gov-blue-dark);
  color: #ffffff;
}

.gov-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gov-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #ffffff;
  transition: opacity 0.2s ease;
}

.gov-modal-close:hover {
  opacity: 0.8;
}

.gov-modal-body {
  padding: 1.5rem;
}

.gov-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  background-color: var(--gov-gray-50);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gov-blue-dark);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gov-gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--gov-blue-main);
  box-shadow: 0 0 0 3px rgba(19, 81, 180, 0.15);
}

/* Standard Buttons */
.btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
  box-sizing: border-box;
}

.btn-primary {
  background-color: var(--gov-blue-main);
  color: var(--gov-white);
}

.btn-primary:hover {
  background-color: var(--gov-blue-dark);
}

.btn-success {
  background-color: var(--gov-green-main);
  color: var(--gov-white);
}

.btn-success:hover {
  background-color: var(--gov-green-hover);
}

.btn-secondary {
  background-color: #e2e8f0;
  color: var(--gov-gray-800);
}

.btn-secondary:hover {
  background-color: var(--gov-gray-300);
}

/* Dashboard KPI Cards & Stat Bars */
.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: #ffffff;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 33, 71, 0.04);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 33, 71, 0.08);
}

.kpi-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.kpi-blue { background: #eff6ff; color: #2563eb; }
.kpi-green { background: #f0fdf4; color: #16a34a; }
.kpi-amber { background: #fffbeb; color: #d97706; }
.kpi-purple { background: #faf5ff; color: #9333ea; }

.kpi-info-val {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gov-blue-dark);
  line-height: 1.1;
}

.kpi-info-lbl {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 2px;
}

.stat-bar-container {
  width: 100%;
  background: #f1f5f9;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 6px;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #1351b4, #067647);
  transition: width 0.5s ease;
}

/* Media Library Grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.media-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.media-thumb-box {
  width: 100%;
  height: 120px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.media-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-thumb-box i {
  font-size: 2.5rem;
  color: #94a3b8;
}

.media-card-body {
  padding: 0.85rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.media-card-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
  word-break: break-all;
  line-height: 1.3;
  margin-bottom: 6px;
}

.media-card-meta {
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.media-card-actions {
  display: flex;
  gap: 4px;
}

.media-card-actions button {
  flex: 1;
  padding: 5px 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ==========================================================================
   Banner e Modal de Preferências de Cookies LGPD
   ========================================================================== */
.gov-cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 980px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 33, 71, 0.2);
  border: 1px solid #cbd5e1;
  padding: 1.25rem 1.75rem;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transform: translateY(140%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gov-cookie-banner.active {
  transform: translateY(0);
}

.gov-cookie-banner-text h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gov-blue-dark);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gov-cookie-banner-text p {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

.gov-cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Custom Toggle Switch for Cookie Modal */
.cookie-toggle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.cookie-toggle-row:last-child {
  border-bottom: none;
}

.cookie-toggle-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gov-blue-dark);
  margin-bottom: 4px;
}

.cookie-toggle-desc {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* CSS Toggle Switch */
.switch-label {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 4px;
}

.switch-label input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 24px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

.switch-label input:checked + .switch-slider {
  background-color: var(--gov-green-main);
}

.switch-label input:disabled + .switch-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.switch-label input:checked + .switch-slider:before {
  transform: translateX(22px);
}

@media (max-width: 768px) {
  .gov-cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    padding: 1.25rem;
  }
  .gov-cookie-banner-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ==========================================================================
   Admin Panel Layout & Mobile Responsiveness Rules (Desktop Protected)
   ========================================================================== */
.dash-analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.admin-editor-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }
.config-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.config-grid-4col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.modal-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }

@media (max-width: 991px) {
  .admin-tab-content {
    padding: 1.25rem !important;
    margin-bottom: 1.5rem !important;
  }

  .dash-analytics-grid,
  .admin-editor-grid,
  .config-grid-2col,
  .modal-grid-2col {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .config-grid-4col {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  .table-custom {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .admin-card-box {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .color-swatch-picker {
    flex-wrap: wrap;
  }

  .post-cover-preview-wrapper {
    height: 140px !important;
  }
}

@media (max-width: 480px) {
  .config-grid-4col {
    grid-template-columns: 1fr !important;
  }
}
