/* ===== ConcursosBR - Main Styles ===== */
:root {
  --primary: #0d6efd;
  --card-radius: .75rem;
}

/* Navbar */
.navbar-brand-custom {
  background: #fff;
  border-bottom: 3px solid var(--primary);
}
[data-bs-theme="dark"] .navbar-brand-custom {
  background: #1a1d23;
}

/* Hero */
.hero-section {
  background: linear-gradient(135deg, #0d6efd15 0%, #6610f215 100%);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
[data-bs-theme="dark"] .hero-section {
  background: linear-gradient(135deg, #0d6efd20 0%, #6610f220 100%);
}

/* Cards concurso e noticia */
.concurso-card, .noticia-card {
  border-radius: var(--card-radius) !important;
  transition: transform .2s, box-shadow .2s;
}
.concurso-card:hover, .noticia-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.15) !important;
}

/* ===== ARTIGO / NOTÍCIA ===== */
.article-title {
  font-size: 1.9rem;
  line-height: 1.3;
}
@media (max-width: 576px) {
  .article-title { font-size: 1.45rem; }
}

.article-subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.article-meta {
  font-size: .85rem;
}

/* ===== CONTENT BODY (artigos e concursos) ===== */
.content-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--bs-body-color);
}

.content-body p {
  margin-bottom: 1.25rem;
}

.content-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: .75rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid #e9ecef;
}

.content-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: .6rem;
}

.content-body h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: .5rem;
}

.content-body ul,
.content-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.content-body li {
  margin-bottom: .4rem;
  line-height: 1.7;
}

.content-body strong {
  font-weight: 700;
}

.content-body blockquote {
  border-left: 4px solid var(--primary);
  padding: .75rem 1.25rem;
  margin: 1.5rem 0;
  color: #555;
  background: #f8f9ff;
  border-radius: 0 .5rem .5rem 0;
}

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .93rem;
}
.content-body table th,
.content-body table td {
  border: 1px solid #dee2e6;
  padding: .55rem .8rem;
}
.content-body table th {
  background: #f0f4ff;
  font-weight: 600;
}
.content-body table tr:nth-child(even) td {
  background: #f8f9fa;
}

.content-body img {
  max-width: 100%;
  border-radius: .5rem;
  margin: 1rem 0;
}

.content-body pre,
.content-body code {
  background: #f8f9fa;
  padding: .2rem .4rem;
  border-radius: .25rem;
  font-size: .9em;
}

/* Figcaption */
figure figcaption {
  font-size: .83rem;
  color: #6c757d;
  margin-top: .5rem;
}

/* ===== SIDEBAR ===== */
.sidebar-area {
  min-width: 0;
}
.sidebar-area .card {
  border-radius: .625rem !important;
}
.sidebar-area .card-header {
  padding: .6rem 1rem;
  font-size: .83rem;
  border-radius: .625rem .625rem 0 0 !important;
}
.sidebar-area .list-group-item {
  padding: .45rem .85rem;
}
.sidebar-area .card-footer {
  padding: .4rem .75rem;
}
.sidebar-area .btn-sm {
  font-size: .75rem;
  padding: .2rem .6rem;
}
.border-dashed {
  border: 2px dashed #dee2e6 !important;
}

/* Sticky sidebar em telas grandes */
@media (min-width: 1200px) {
  .sidebar-sticky {
    position: sticky;
    top: 80px;
  }
}

/* Lazy load placeholder */
img[loading="lazy"] { background: #f0f0f0; }

/* Badges */
.badge { font-weight: 500; }

/* Paginação */
.page-link { border-radius: .375rem !important; margin: 0 2px; }

/* Footer */
footer a:hover { color: #fff !important; }

/* Mobile */
@media (max-width: 576px) {
  .display-5 { font-size: 1.8rem; }
  .hero-section { padding: 2rem 0 !important; }
}

/* Print */
@media print {
  .navbar, footer, .sidebar-area, .btn { display: none !important; }
}

/* ===== FOOTER ===== */
.footer-dark {
  background: #0f1117 !important;
  color: #adb5bd !important;
}
.footer-heading {
  color: #ffffff;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .85rem;
}
.footer-links {
  margin: 0;
  padding: 0;
}
.footer-links li {
  margin-bottom: .5rem;
}
.footer-links a {
  color: #9aa3af;
  text-decoration: none;
  font-size: .875rem;
  transition: color .15s;
}
.footer-links a:hover {
  color: #ffffff;
}
.footer-text {
  color: #7a8290;
  line-height: 1.6;
}
.footer-social {
  color: #7a8290;
  text-decoration: none;
  transition: color .15s;
}
.footer-social:hover {
  color: #ffffff;
}
.footer-bottom {
  border-color: #2a2f3a !important;
  margin-top: .5rem;
}
.footer-bottom-links a {
  color: #6c757d;
  text-decoration: none;
  font-size: .8rem;
  transition: color .15s;
}
.footer-bottom-links a:hover {
  color: #adb5bd;
}
.footer-newsletter {
  background: #1a1d23;
  border-radius: .625rem;
  padding: 1.25rem;
}
