:root {
    --bg: #0b0f19;
    --panel: rgba(255, 255, 255, 0.04);
    --text: #e5e7eb;
    --muted: #94a3b8;
    --accent: #60a5fa;
    --accent2: #8b5cf6;
    --border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

.container {
    width: min(1100px, 92%);
    margin: auto;
}

.bg-glow {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(96, 165, 250, .15), transparent 30%), radial-gradient(circle at 80% 30%, rgba(139, 92, 246, .15), transparent 30%);
    pointer-events: none;
}

.header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(16px);
    background: rgba(11, 15, 25, .8);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav-wrapper {
    display: flex;
    justify-content: center;
    padding: 1.25rem 0;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.nav-menu a {
    color: var(--muted);
    text-decoration: none;
    transition: .3s;
}

.nav-menu a:hover {
    color: white;
}

.hero {
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 0 2rem;
}

.hero-tag {
    color: var(--accent);
    letter-spacing: 3px;
    font-size: .8rem;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--muted);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.hero-description {
    max-width: 700px;
    margin: 0 auto 2rem;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    text-decoration: none;
    color: white;
    font-weight: 600;
    border-radius: 14px;
    transition: .3s;
}

.btn-primary {
    padding: 0.70rem 3.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.btn-secondary {
    margin-top: 1.5rem;
    padding: .75rem 1.2rem;
    background: rgba(255, 255, 255, .08);
    border: 1px solid var(--border);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-3px);
}

.section {
    padding: 5rem 0;
}

.section h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.section p {
    max-width: 800px;
    margin: auto;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    transition: .3s;
    text-align: center;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text);
    text-decoration: none;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(96, 165, 250, .4);
    color: var(--text);
}

.card:visited {
    color: var(--text);
}

.card h4 {
    margin-bottom: 1rem;
}

.articles-box,
.contact-card {
    text-align: center;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.4rem 2.2rem;
    backdrop-filter: blur(12px);
    max-width: 720px;
    margin: auto;
}

.articles-box h3,
.contact-card h3 {
    margin-bottom: 0.9rem;
}

.articles-box p,
.contact-card p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}


.contact-card p {
    margin: .8rem 0;
    color: var(--muted);
}

.contact-card .btn-primary {
  margin-top: 0.6rem;
}

.contact-section {
  padding-top: 2rem;
}

.footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--muted);
    margin-top: 2rem;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all .8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width:768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .section {
        padding: 4rem 0;
    }
}

/*Página de artigos: */
.filters-grid{
  display:flex;
  gap:1rem;
  margin-top:1.5rem;
  flex-wrap: wrap;
  align-items:center;
}

.filters-grid input{
  flex: 2;
}

.filters-grid select{
  flex: 1;
}

.filters-grid input,
.filters-grid select {
  background: var(--panel);
  border:1px solid var(--border);
  color: var(--text);
  padding: .9rem 1rem;
  border-radius: 14px;
}

.tag {
  display:inline-block;
  padding:.3rem .7rem;
  border-radius:999px;
  background:rgba(255,255,255,0.06);
  margin:.2rem;
  font-size:.85rem;
  color:var(--muted);
}

.tags {
  margin:1rem 0 1.25rem;
}

.artigos-hero{
  min-height: 38vh;
}

.artigos-hero h1{
  font-size: 2.6rem;
}

.artigos-hero p{
  font-size: 1rem;
  margin-top: .6rem;
}

.articles-list{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.articles-list .card{
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 1.8rem 2rem;
}

.article-btn{
  padding: 0.7rem 1.5rem;
  display: inline-flex;
}

.article-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
}

.articles-list .card{
  padding: 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  height: auto;
}

.articles-list .card h4{
  margin-bottom: 0.3rem;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
}

.articles-list .card p{
  margin: 0;
}

.tags{
  margin-top: 0.2rem;
}

.article-page .articles-box{
  max-width: 1000px;
}

.filters-wrapper .articles-box{
  max-width: 1100px;
}

#loadMoreBtn{
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0.8rem 3.1rem;
}

#articlesList{
  margin-top: 0.5rem;
  margin-bottom: 5rem;
}

#filtros{
  padding-bottom: 0.5rem;
}

.filters-grid select{
  background: transparent;
  color: var(--text-primary, #f5f5f5);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  outline: none;
  cursor: pointer;
}

.filters-grid select option{
  background: #ffffff;
  color: #000000;
}


@media (max-width: 900px){
  .articles-list{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px){
  .filters-grid{
    flex-direction: column;
    align-items: stretch;
  }

  .filters-grid input,
  .filters-grid select{
    width: 100%;
  }
}

@media (max-width: 768px){

  /* Só páginas de artigo */
  .article-page .articles-box{
    max-width: 100%;
    padding: 1.5rem;
    border-radius: 16px;
  }

  .article-page h1{
    font-size: 1.8rem;
    line-height: 1.25;
  }

  .article-page .article-meta{
    font-size: 0.9rem;
  }

  .article-page .article-content{
    font-size: 1rem;
    line-height: 1.7;
  }

  .article-page .article-content h2{
    font-size: 1.3rem;
  }

  .article-page .nav-menu{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1rem;
  }

  .article-page .nav-menu a{
    font-size: 0.95rem;
  }

}