/* Canindé Concursos – style.css */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700;800&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --primary: #1a3c5e;
  --primary-light: #2563a8;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #2563eb;
  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-hover: 0 8px 30px rgba(0,0,0,.12);
  --transition: 0.2s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Sora', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

a { color: var(--primary-light); text-decoration: none; }
a:hover { color: var(--primary); }

img { max-width: 100%; }

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  background: var(--primary);
  color: white;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 64px;
}

.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
  color: white;
}
.site-logo .logo-main {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.site-logo .logo-sub {
  font-size: 0.65rem;
  font-weight: 300;
  opacity: .7;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav a {
  color: rgba(255,255,255,.85);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.site-nav a:hover, .site-nav a.active {
  color: white;
  background: rgba(255,255,255,.15);
}

.btn-nav-cta {
  background: var(--accent) !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
}
.btn-nav-cta:hover {
  background: var(--accent-dark) !important;
}

/* ── HERO / SEARCH ───────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1e4d8c 60%, #2563a8 100%);
  padding: 4rem 0 3rem;
  color: white;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
}
.hero-content { position: relative; }
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.hero p {
  font-size: 1.05rem;
  opacity: .8;
  margin-bottom: 2rem;
}

.search-bar {
  display: flex;
  gap: 0.5rem;
  background: white;
  border-radius: var(--radius);
  padding: 0.4rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: transparent;
}
.search-bar button {
  background: var(--accent);
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  transition: var(--transition);
}
.search-bar button:hover { background: var(--accent-dark); }

/* ── FILTERS ─────────────────────────────────────────────── */
.filters-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  position: sticky;
  top: 64px;
  z-index: 900;
}
.filters-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.filter-label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-right: 0.25rem; }
.filter-btn {
  border: 1.5px solid var(--border);
  background: white;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--primary-light);
  color: var(--primary);
  background: #eff6ff;
}
.filter-select {
  border: 1.5px solid var(--border);
  background: white;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  color: var(--text-muted);
  outline: none;
}

/* ── CONTAINER ───────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── SECTION TITLES ──────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}
.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.section-title span { color: var(--primary-light); }
.section-link { font-size: 0.82rem; color: var(--primary-light); }

/* ── CONCURSO CARD ───────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: #bfdbfe;
}

.card-top {
  padding: 1.25rem 1.25rem 0.75rem;
  flex: 1;
}
.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.badge-nivel { background: #dbeafe; color: #1d4ed8; }
.badge-destaque { background: #fef3c7; color: #92400e; }
.badge-orgao { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

.card-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}
.card-orgao { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.75rem; }

.card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  font-size: 0.8rem;
}
.meta-item { color: var(--text-muted); }
.meta-item strong { color: var(--text); font-weight: 600; }

.card-bottom {
  padding: 0.75rem 1.25rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* ── STATUS BADGES ───────────────────────────────────────── */
.status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
}
.status-open { background: #dcfce7; color: #15803d; }
.status-open::before { background: #16a34a; }
.status-soon { background: #fef9c3; color: #a16207; }
.status-soon::before { background: #ca8a04; }
.status-closed { background: #fee2e2; color: #b91c1c; }
.status-closed::before { background: #dc2626; }
.status-unknown { background: #f1f5f9; color: #64748b; }

.countdown { font-size: 0.72rem; color: var(--text-muted); }

.btn-ver {
  background: var(--primary);
  color: white;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-ver:hover { background: var(--primary-light); color: white; }

/* ── CONCURSO DETAIL ─────────────────────────────────────── */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; }
}

.detail-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.detail-card-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 1.75rem;
}
.detail-card-header .status-wrapper { margin-bottom: 0.75rem; }
.detail-card-header h1 { font-size: 1.4rem; font-weight: 800; line-height: 1.25; margin-bottom: 0.4rem; }
.detail-card-header .orgao-banca { font-size: 0.88rem; opacity: .8; }

.detail-section {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.detail-section:last-child { border-bottom: none; }
.detail-section h3 { font-size: 0.88rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 1rem; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.info-item { }
.info-item dt { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.2rem; text-transform: uppercase; letter-spacing: 0.4px; }
.info-item dd { font-size: 0.95rem; font-weight: 600; color: var(--text); }

/* ── CRONOGRAMA ──────────────────────────────────────────── */
.cronograma-list { list-style: none; position: relative; padding-left: 1.5rem; }
.cronograma-list::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.cronograma-item {
  position: relative;
  padding: 0.6rem 0 0.6rem 1rem;
}
.cronograma-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.9rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 2px solid white;
  box-shadow: 0 0 0 2px var(--primary-light);
  margin-left: 3px;
}
.cronograma-nome { font-weight: 600; font-size: 0.92rem; }
.cronograma-datas { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; }
.cronograma-obs { font-size: 0.8rem; color: var(--text-light); font-style: italic; margin-top: 0.15rem; }

/* ── SIDEBAR ─────────────────────────────────────────────── */
.sidebar-box {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}
.sidebar-box h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 1rem; }

.share-buttons { display: flex; flex-direction: column; gap: 0.5rem; }
.btn-share {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.btn-whatsapp { background: #dcfce7; color: #15803d; }
.btn-whatsapp:hover { background: #16a34a; color: white; }
.btn-telegram { background: #dbeafe; color: #1d4ed8; }
.btn-telegram:hover { background: #2563eb; color: white; }
.btn-copy { background: #f1f5f9; color: var(--text-muted); border: none; cursor: pointer; font-family: inherit; width: 100%; }
.btn-copy:hover { background: #e2e8f0; color: var(--text); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-light); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #047857; color: white; }
.btn-warning { background: var(--warning); color: white; }
.btn-warning:hover { background: #b45309; color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #b91c1c; color: white; }
.btn-secondary { background: #f1f5f9; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: #e2e8f0; color: var(--text); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.78rem; }
.btn-lg { padding: 0.8rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── FORMS ───────────────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--text); }
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: white;
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(37,99,168,.12); }
.form-control:disabled { background: #f8fafc; color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-hint { font-size: 0.77rem; color: var(--text-muted); margin-top: 0.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-check { display: flex; align-items: center; gap: 0.5rem; }
.form-check input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--primary); }
.form-check label { font-size: 0.88rem; cursor: pointer; }

/* ── ALERTS ──────────────────────────────────────────────── */
.alert {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.alert-success { background: #dcfce7; color: #166534; border-left: 3px solid var(--success); }
.alert-danger   { background: #fee2e2; color: #991b1b; border-left: 3px solid var(--danger); }
.alert-warning  { background: #fef9c3; color: #92400e; border-left: 3px solid var(--warning); }
.alert-info     { background: #dbeafe; color: #1e40af; border-left: 3px solid var(--info); }

/* ── TABLES ──────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
  background: white;
}
.table th {
  background: #f8fafc;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: #f8fafc; }

/* ── ADMIN LAYOUT ────────────────────────────────────────── */
.admin-body { background: #f1f5f9; min-height: 100vh; }

.admin-header {
  background: var(--primary);
  color: white;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.admin-header .logo { font-weight: 800; font-size: 1rem; }
.admin-header .logo span { color: var(--accent); }
.admin-user { display: flex; align-items: center; gap: 1rem; font-size: 0.83rem; }
.admin-user a { color: rgba(255,255,255,.75); }
.admin-user a:hover { color: white; }

.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 60px);
}

.admin-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}
.admin-nav-section { margin-bottom: 1.5rem; }
.admin-nav-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-light);
  padding: 0 1.25rem;
  margin-bottom: 0.35rem;
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.25rem;
  font-size: 0.87rem;
  color: var(--text-muted);
  transition: var(--transition);
  border-right: 3px solid transparent;
}
.admin-nav a:hover, .admin-nav a.active {
  color: var(--primary);
  background: #eff6ff;
  border-right-color: var(--primary-light);
}

.admin-main { padding: 2rem; }

.admin-page-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.admin-page-subtitle { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1.75rem; }

/* ── STATS CARDS ─────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.stat-card .stat-value { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-card .stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.35rem; }
.stat-card.accent .stat-value { color: var(--success); }
.stat-card.warning .stat-value { color: var(--warning); }

/* ── PAGINATION ──────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 2rem;
}
.page-btn {
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.page-btn:hover, .page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.page-btn.active { font-weight: 700; }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.83rem;
  margin-top: 4rem;
}
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer strong { color: white; }

/* ── UTILITIES ───────────────────────────────────────────── */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.py-3 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-4 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.fw-bold { font-weight: 700; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: .4; }
.empty-state h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .site-nav .nav-extra { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 0 2rem; }
}

.hamburger { display: none; background: none; border: none; color: white; font-size: 1.4rem; cursor: pointer; }
@media (max-width: 768px) {
  .hamburger { display: block; }
  .site-nav { display: none; }
}

/* ── LOGIN PAGE ──────────────────────────────────────────── */
.login-wrap {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, #1e4d8c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.login-card {
  background: white;
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.login-card .login-logo {
  text-align: center;
  margin-bottom: 2rem;
}
.login-card .login-logo h1 { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.login-card .login-logo p { font-size: 0.82rem; color: var(--text-muted); }

/* ── NOTÍCIAS ────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.news-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .news-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .news-grid, .news-grid-3 { grid-template-columns: 1fr; }
}

.news-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: #bfdbfe;
}

.news-card-img-wrap {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #f1f5f9;
}
.news-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
  display: block;
}
.news-card:hover .news-card-img-wrap img {
  transform: scale(1.04);
}

.news-card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  font-size: 2.5rem;
  text-decoration: none;
}

.news-card-body {
  padding: 1.1rem 1.1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: .4rem;
  flex: 1;
}
.news-card-title a {
  color: var(--text);
  text-decoration: none;
}
.news-card-title a:hover { color: var(--primary-light); }

.news-card-meta {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: .5rem;
}

.news-card-excerpt {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

/* ── NOTÍCIA INDIVIDUAL ──────────────────────────────────── */
.noticia-texto {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text);
}
.noticia-texto br + br {
  display: block;
  content: '';
  margin: .5rem 0;
}
