:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #1a1f24;
  --muted: #6b7480;
  --brand: #006b32;
  --brand-hover: #005228;
  --brand-soft: #d6f5e2;
  --danger: #b42318;
  --radius: 14px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1140px, 94vw);
  margin: 0 auto;
}

/* ── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e6ea;
}

.navbar-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.navbar-logo {
  height: 48px;
  width: auto;
  border-radius: 8px;
}

.navbar-nav {
  display: flex;
  gap: 24px;
  flex: 1;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.navbar-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #cfe0d2;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8f5 100%);
  cursor: pointer;
  padding: 10px 8px;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 6px 16px rgba(9, 45, 24, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.navbar-menu-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(9, 45, 24, 0.16);
}

.navbar-menu-btn:focus-visible {
  outline: 2px solid #7bc89a;
  outline-offset: 2px;
}

.navbar-menu-btn span {
  display: block;
  width: 100%;
  height: 2.5px;
  border-radius: 999px;
  background: #165936;
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.2s ease, background 0.2s ease;
}

.navbar-menu-btn span:nth-child(1),
.navbar-menu-btn span:nth-child(3) {
  width: 84%;
}

.navbar-menu-btn[aria-expanded="true"] {
  background: linear-gradient(180deg, #0b6f3a 0%, #07572d 100%);
  border-color: #0a6033;
}

.navbar-menu-btn[aria-expanded="true"] span {
  width: 100%;
  background: #fff;
}

.navbar-menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.navbar-menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.navbar-menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.site-drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.3s;
}

.site-drawer.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 32, 18, 0.6) 0%, rgba(6, 28, 30, 0.5) 100%);
  backdrop-filter: blur(8px) saturate(180%);
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-drawer.is-open .site-drawer-backdrop {
  opacity: 1;
}

.site-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(380px, 92vw);
  height: 100%;
  background: linear-gradient(180deg, #fcfdfc 0%, #f4f9f5 50%, #eef5ec 100%);
  box-shadow: 
    -24px 0 56px rgba(8, 32, 18, 0.18),
    inset 1px 0 0 rgba(255, 255, 255, 0.8),
    inset 0 1px 0 rgba(0, 0, 0, 0.04);
  padding: 0;
  transform: translateX(calc(100% + 8px));
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0.24, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.site-drawer.is-open .site-drawer-panel {
  transform: translateX(0);
}

.site-drawer-header {
  position: relative;
  padding: 18px 20px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcf9 100%);
  border-bottom: 1px solid rgba(180, 200, 190, 0.25);
  flex-shrink: 0;
}

.site-drawer-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
  pointer-events: none;
}

.site-drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
  flex-shrink: 0;
}

.site-drawer-logo {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  border-radius: 14px;
  object-fit: contain;
  background: #fff;
  flex-shrink: 0;
  box-shadow: 
    0 4px 12px rgba(0, 107, 50, 0.15),
    0 0 0 3px rgba(0, 107, 50, 0.08);
}

.site-drawer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-drawer-brand-name {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.4px;
  line-height: 1.15;
}

.site-drawer-brand-tagline {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.15px;
}

.site-drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(0, 107, 50, 0.12);
  background: linear-gradient(145deg, #ffffff 0%, #f5faf6 100%);
  color: #165936;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 4px 12px rgba(0, 45, 24, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.9);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-drawer-close:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(145deg, #f0f7f2 0%, #e5f0e8 100%);
  border-color: rgba(0, 107, 50, 0.25);
  box-shadow: 
    0 8px 20px rgba(0, 45, 24, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.site-drawer-close:active {
  transform: translateY(0) scale(0.98);
}

.site-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-drawer-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--muted);
  padding: 8px 6px 10px;
}

.site-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-drawer-nav .nav-link {
  position: relative;
  font-size: 1rem;
  font-weight: 600;
  color: #153122;
  padding: 14px 18px 15px 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fcf9 100%);
  border: 1px solid rgba(180, 200, 190, 0.2);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 2px 8px rgba(0, 32, 16, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.site-drawer-nav .nav-link::before {
  content: '';
  position: absolute;
  left: 16px;
  width: 24px;
  height: 24px;
  background: var(--brand-soft);
  border-radius: 8px;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-drawer-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 18px;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006b32' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px;
  opacity: 0;
  transform: scale(0.5) rotate(-10deg);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-drawer-nav .nav-link:nth-child(2)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006b32' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
}

.site-drawer-nav .nav-link:nth-child(3)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006b32' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10 9 9 9 8 9'/%3E%3C/svg%3E");
}

.site-drawer-nav .nav-link:nth-child(4)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006b32' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z'/%3E%3Cline x1='4' y1='22' x2='4' y2='15'/%3E%3C/svg%3E");
}

.site-drawer-nav .nav-link:nth-child(5)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006b32' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.site-drawer-nav .nav-link:hover,
.site-drawer-nav .nav-link.active {
  background: linear-gradient(145deg, #e8f4ed 0%, #dfefe4 100%);
  border-color: rgba(0, 107, 50, 0.28);
  transform: translateX(4px);
  box-shadow: 
    0 6px 16px rgba(0, 45, 24, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.site-drawer-nav .nav-link:hover::after,
.site-drawer-nav .nav-link.active::after {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.site-drawer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180, 200, 190, 0.3), transparent);
  margin: 14px 8px;
}

.site-drawer-cta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  border-radius: 16px;
  background: linear-gradient(145deg, #0d7a40 0%, #085c2c 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 
    0 8px 24px rgba(6, 55, 28, 0.32),
    0 0 0 1px rgba(0, 107, 50, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-drawer-cta::before {
  content: '';
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3Cpath d='M6 11h4'/%3E%3Cpath d='M6 15h4'/%3E%3Cpath d='M14 11h4a2 2 0 0 1 2 2v9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px;
}

.site-drawer-cta:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 
    0 16px 36px rgba(6, 55, 28, 0.4),
    0 0 0 1px rgba(0, 107, 50, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  filter: brightness(1.05);
}

.site-drawer-cta:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: 
    0 6px 16px rgba(6, 55, 28, 0.28),
    0 0 0 1px rgba(0, 107, 50, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.site-drawer-cta:focus-visible {
  outline: 2px solid #89d6a9;
  outline-offset: 3px;
}

.site-drawer-footer {
  padding: 16px 20px 24px;
  background: linear-gradient(0deg, #f4f9f5 0%, transparent 100%);
  text-align: center;
  flex-shrink: 0;
}

.site-drawer-footer-text {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

.site-drawer-footer-text a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 6px;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
}

.btn-icon:hover {
  background: #f0f0f0;
  color: var(--text);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 999px;
  transition: background 0.15s;
}

.btn-primary:hover {
  background: var(--brand-hover);
}

.btn-secondary {
  background: #e9f6ee;
  color: #0f5a2f;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #b8e4c8;
  transition: background 0.15s, border-color 0.15s;
}

.btn-secondary:hover {
  background: #dff2e7;
  border-color: #93d8ae;
}

/* ── PAGE LAYOUT ─────────────────────────────────────────── */
.page-main {
  padding: 28px 0 60px;
}

.no-content {
  color: var(--muted);
  text-align: center;
  padding: 60px 0;
}

/* ── CATEGORY BADGE ──────────────────────────────────────── */
.category-badge {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 10px;
  border-radius: 999px;
}

.category-badge--sm {
  font-size: 0.65rem;
  padding: 2px 8px;
}

/* ── HERO SECTION ────────────────────────────────────────── */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 18px;
  margin-bottom: 36px;
}

/* Large featured card */
.hero-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 10;
  background: #1a1f24;
  display: block;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hero-card:hover .hero-bg {
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
}

.hero-meta-sep {
  opacity: 0.5;
}

/* ── SIDE CARDS ──────────────────────────────────────────── */
.side-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  flex: 1;
  box-shadow: 0 2px 12px rgba(10,20,40,0.07);
  transition: box-shadow 0.2s;
}

.side-card:hover {
  box-shadow: 0 6px 22px rgba(10,20,40,0.13);
}

.side-card-thumb {
  height: 160px;
  overflow: hidden;
  background: #dde3ea;
  flex-shrink: 0;
}

.side-card-thumb img,
.side-card-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.side-card:hover .side-card-thumb img,
.side-card:hover .side-card-thumb video {
  transform: scale(1.04);
}

.side-card-body {
  padding: 14px 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.side-card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: auto;
}

/* ── ÚLTIMAS PUBLICAÇÕES ─────────────────────────────────── */
.posts-section {
  margin-top: 8px;
}

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

.posts-heading {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.posts-see-all {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  transition: color 0.15s;
}

.posts-see-all:hover {
  color: var(--brand-hover);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* ── POST CARD ───────────────────────────────────────────── */
.post-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(10,20,40,0.07);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: 0 6px 22px rgba(10,20,40,0.13);
  transform: translateY(-2px);
}

.post-card-thumb {
  height: 180px;
  overflow: hidden;
  background: #dde3ea;
  flex-shrink: 0;
}

.post-card-thumb img,
.post-card-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.post-card:hover .post-card-thumb img,
.post-card:hover .post-card-thumb video {
  transform: scale(1.04);
}

.post-card-body {
  padding: 14px 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.post-card-title {
  margin: 0;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 8px;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 7px;
}

.author-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}

.post-date {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ── STORY MODAL VIEWER ──────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(0, 0, 0, 0.78);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.story-viewer {
  width: min(420px, 96vw);
  height: min(760px, 92vh);
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  position: relative;
}

.story-progress {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  z-index: 2;
}

.story-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}

.story-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.95rem;
  z-index: 2;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  z-index: 3;
}

/* ── ADMIN PAGES ─────────────────────────────────────────── */
.admin-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px 0;
}

.panel {
  width: min(820px, 94vw);
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 12px 30px rgba(10, 30, 50, 0.1);
}

.form-grid {
  display: grid;
  gap: 12px;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid #d9e2ea;
  border-radius: 10px;
  padding: 10px 12px;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 10px 15px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

button.danger {
  background: var(--danger);
}

.alert {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f1f8f3;
  color: #0c5f2f;
}

.alert.error {
  background: #fff1f1;
  color: #8f2424;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 9px 6px;
  border-bottom: 1px solid #eef2f5;
  vertical-align: top;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .side-cards {
    flex-direction: row;
  }

  .side-card-thumb {
    height: 130px;
  }

  .navbar-nav,
  .navbar-actions .btn-secondary {
    display: none;
  }

  .navbar-inner {
    gap: 14px;
    justify-content: space-between;
  }

  .navbar-brand {
    font-size: 1.05rem;
  }

  .navbar-logo {
    height: 42px;
  }

  .navbar-menu-btn {
    display: flex;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .container {
    width: calc(100% - 28px);
  }

  .page-main {
    padding: 20px 0 48px;
  }

  .navbar-inner {
    min-height: 74px;
    padding: 10px 0;
  }

  .navbar-brand {
    gap: 10px;
    max-width: calc(100% - 68px);
  }

  .navbar-brand span {
    font-size: 1.2rem;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .navbar-logo {
    height: 44px;
    width: 44px;
    object-fit: cover;
  }

  .navbar-menu-btn {
    width: 44px;
    height: 44px;
  }

  .hero-card {
    aspect-ratio: 4 / 5;
    min-height: 320px;
  }

  .hero-content {
    padding: 18px 16px 16px;
    gap: 8px;
  }

  .hero-meta {
    font-size: 0.78rem;
    gap: 5px;
  }

  .side-cards {
    flex-direction: column;
  }

  .side-card {
    border-radius: 12px;
  }

  .side-card-thumb {
    height: 190px;
  }

  .posts-section {
    margin-top: 2px;
  }

  .posts-header {
    margin-bottom: 14px;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .post-card {
    border-radius: 12px;
  }

  .post-card-thumb {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .post-card-body {
    padding: 13px 14px 14px;
  }

  .site-footer {
    margin-top: 38px;
    padding: 26px 0 18px;
  }

  .footer-social {
    flex-wrap: wrap;
    justify-content: center;
  }

  .social-icon {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 1.2rem;
  }

  .category-badge {
    font-size: 0.68rem;
    letter-spacing: 0.4px;
    padding: 4px 10px;
  }

  .posts-heading {
    font-size: 1.16rem;
    line-height: 1.2;
    max-width: 75%;
  }

  .posts-see-all {
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .post-card-title {
    font-size: 1rem;
    line-height: 1.3;
  }
}

@media (max-width: 420px) {
  .container {
    width: calc(100% - 20px);
  }

  .navbar-brand span {
    font-size: 1.03rem;
  }

  .hero-card {
    min-height: 280px;
  }

  .hero-title {
    font-size: 1.08rem;
    line-height: 1.3;
  }

  .hero-meta {
    font-size: 0.74rem;
  }

  .posts-header {
    align-items: flex-end;
  }

  .posts-heading {
    font-size: 1.08rem;
  }

  .post-card-title {
    font-size: 1rem;
  }

  .post-card-meta {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .site-drawer-panel {
    width: min(320px, 100vw);
  }
}

/* ── FOOTER ────────────────────────────────────────────────── */
.site-footer {
  background: #1a1d23;
  color: #c9cdd4;
  padding: 32px 0 20px;
  margin-top: 48px;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-heading {
  color: #fff;
  font-size: 1.1rem;
  margin: 0 0 12px;
}

.footer-plantao {
  margin: 0 0 16px;
  font-size: 1rem;
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 14px;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.social-icon svg {
  width: 22px;
  height: 22px;
}

.social-icon:hover {
  transform: translateY(-3px);
}

.social-whatsapp {
  background: #25D366;
  color: #fff;
}

.social-facebook {
  background: #1877F2;
  color: #fff;
}

.social-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}

.social-tiktok {
  background: #000;
  color: #fff;
}

.social-youtube {
  background: #FF0000;
  color: #fff;
}

.footer-copy {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: #7a7f8a;
}

/* ── LGPD BANNER ──────────────────────────────────────────── */
.lgpd-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  padding: 16px 20px;
  z-index: 200;
  display: none;
}

.lgpd-banner.show {
  display: block;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.lgpd-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1140px;
  margin: 0 auto;
}

.lgpd-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

.lgpd-text a {
  color: var(--brand);
  text-decoration: underline;
}

.lgpd-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.lgpd-btn {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
}

.lgpd-btn-accept {
  background: var(--brand);
  color: #fff;
}

.lgpd-btn-accept:hover {
  background: var(--brand-hover);
}

.lgpd-btn-close {
  background: #e8eaed;
  color: var(--text);
}

.lgpd-btn-close:hover {
  background: #dce0e5;
}

@media (max-width: 640px) {
  .lgpd-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .lgpd-buttons {
    width: 100%;
  }

  .lgpd-btn {
    flex: 1;
  }
}
