/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Inter', sans-serif;
}

html,
body{
    overflow-x:hidden;
    background:#0b0b0b;
    color:#fff;
    scroll-behavior:smooth;
}

/* CONTAINER */

.container{
    width:100%;
    max-width:1280px;
    margin:0 auto;
    padding:0 2%;
}

/* HEADER */

.header{
    width:100%;
    position:absolute;
    top:0;
    left:0;
    z-index:999;
    padding:25px 0;
}

.header .container{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

/* BOTÃO LOGIN */

.btn-login{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:9px 16px;

    background:#b30000;

    color:#fff !important;

    border-radius:8px;

    font-size:14px;
    font-weight:600;

    transition:.3s;

    margin-left:18px;
}

.btn-login:hover{
    background:#d10000;
    transform:translateY(-1px);
}

/* LOGO */

.logo a{
    color:#fff;
    text-decoration:none;
    font-size:28px;
    font-weight:800;
}

/* MENU DESKTOP */

.menu ul{
    display:flex;
    gap:30px;
    list-style:none;
}

.menu ul li a{
    color:#fff;
    text-decoration:none;
    font-weight:500;
    transition:.3s;
}

.menu ul li a:hover{
    color:#b30000;
}

/* MENU MOBILE */

.menu-toggle{
    width:46px;
    height:46px;
    border:none;
    background:#151515;
    border:1px solid #2a2a2a;
    border-radius:12px;
    display:none;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:5px;
    cursor:pointer;
    z-index:1002;
    transition:.3s;
}

.menu-toggle:hover{
    background:#1f1f1f;
}

.menu-toggle span{
    width:22px;
    height:2px;
    background:#fff;
    border-radius:10px;
    transition:.3s;
}

/* ANIMAÇÃO X */

.menu-toggle.active span:nth-child(1){
    transform:translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2){
    opacity:0;
}

.menu-toggle.active span:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
}

/* HERO */

/* HERO GLOBAL */
.hero {
    width: 100%;
    min-height: 100vh;
    padding-top: 140px;

    background-image: url('../img/banner/congresso.png'); /* imagem oficial */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
    display: flex;
    align-items: center;
}


.overlay{
    position:absolute;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.hero-content{
    position:relative;
    z-index:2;
    max-width:800px;
}

.hero-content h1{
    font-size:65px;
    line-height:1.1;
    margin-bottom:25px;
    font-weight:800;
}

.hero-content p{
    font-size:22px;
    color:#d1d1d1;
    margin-bottom:40px;
    line-height:1.6;
}

.hero-buttons{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

/* BOTÕES */

.btn{
    padding:16px 35px;
    border-radius:8px;
    text-decoration:none;
    font-weight:700;
    transition:.3s;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.btn-red{
    background:#b30000;
    color:#fff;
}

.btn-red:hover{
    background:#d10000;
}

.btn-dark{
    background:#1c1c1c;
    color:#fff;
    border:1px solid #333;
}

.btn-dark:hover{
    background:#2a2a2a;
}

/* TÍTULOS */

.section-title{
    margin-bottom:45px;
}

.section-title h2{
    font-size:42px;
    font-weight:800;
}

/* SEÇÕES */

section{
    padding:90px 0;
}

/* CARDS */

.cards{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
}

.card{
    background:#151515;
    padding:30px;
    border-radius:12px;
    border:1px solid #222;
    transition:.3s;
}

.card:hover{
    transform:translateY(-5px);
    border-color:#b30000;
}

.card .categoria{
    display:inline-block;
    margin-bottom:15px;
    color:#ff4d4d;
    font-size:14px;
    font-weight:700;
}

.card h3{
    font-size:24px;
    margin-bottom:15px;
    line-height:1.4;
}

.card p{
    color:#bdbdbd;
    line-height:1.6;
    margin-bottom:20px;
}

.card a{
    color:#ff4d4d;
    text-decoration:none;
    font-weight:700;
}

/* FORMULÁRIO */

.form-busca{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

.form-busca input,
.form-busca select{
    width:100%;
    padding:15px;
    background:#151515;
    border:1px solid #333;
    color:#fff;
    border-radius:8px;
    outline:none;
}

.form-busca input:focus,
.form-busca select:focus{
    border-color:#b30000;
}

.form-busca button{
    padding:15px;
    background:#b30000;
    border:none;
    border-radius:8px;
    color:#fff;
    font-weight:700;
    cursor:pointer;
    transition:.3s;
}

.form-busca button:hover{
    background:#d10000;
}

/* NOTÍCIAS */

.news-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:25px;
}

.news-card{
    background:#151515;
    border-radius:12px;
    overflow:hidden;
    border:1px solid #222;
}

.news-image{
    width:100%;
    height:250px;
    background:#222;
}

.news-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.news-content{
    padding:25px;
}

.news-content span{
    color:#ff4d4d;
    font-size:14px;
    font-weight:700;
}

.news-content h3{
    font-size:28px;
    margin:15px 0;
}

.news-content p{
    color:#bdbdbd;
    line-height:1.6;
    margin-bottom:20px;
}

.news-content a{
    color:#ff4d4d;
    text-decoration:none;
    font-weight:700;
}

/* ESTATÍSTICAS */

.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.stat-box{
    background:#151515;
    padding:40px 20px;
    border-radius:12px;
    border:1px solid #222;
    text-align:center;
}

.stat-box h3{
    font-size:48px;
    color:#ff4d4d;
    margin-bottom:10px;
}

.stat-box p{
    color:#bdbdbd;
    font-size:18px;
}

/* FOOTER */

.footer{
    padding:35px 0;
    background:#080808;
    border-top:1px solid #1d1d1d;
    text-align:center;
}

.footer p{
    color:#888;
}

/* SCROLLBAR */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#111;
}

::-webkit-scrollbar-thumb{
    background:#b30000;
    border-radius:10px;
}

::-webkit-scrollbar-thumb:hover{
    background:#d10000;
}

.btn-fonte {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    margin-top:18px;
    padding:12px 22px;

    background:#161616;
    border:1px solid #2a2a2a;
    border-radius:10px;

    color:#fff;
    text-decoration:none;
    font-size:14px;
    font-weight:600;

    transition:.3s;
}

.btn-fonte:hover {
    background:#b30000;
    border-color:#b30000;
    transform:translateY(-2px);
}

/* LINKS DOS CARDS DE VOTO */
.link-card-voto,
.link-card-voto:link,
.link-card-voto:visited,
.link-card-voto:active {
  color: #fff;              /* cor fixa */
  text-decoration: none;    /* remove sublinhado */
  display: block;           /* mantém o bloco clicável */
  transition: .3s;
}

.link-card-voto:hover {
  color: #b30000;           /* destaque no hover */
}



/* =========================
RESPONSIVIDADE GLOBAL
========================= */

/* NOTEBOOK */
@media screen and (max-width:1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

/* TABLET */
@media screen and (max-width:900px) {
  .hero { min-height:auto; padding:180px 0 100px; }
  .hero-content { max-width:100%; text-align:center; }
  .hero-content h1 { font-size:48px; }
  .hero-content p { font-size:18px; }
  .hero-buttons { justify-content:center; }
  .section-title h2 { font-size:34px; }
  .form-busca { grid-template-columns:1fr; }
  .cards { grid-template-columns:1fr; }


}

/* MOBILE */
@media screen and (max-width:768px) {
  .header .container { position:relative; }
  .menu-toggle { display:flex; position:absolute; top:0; left:0; }
  .menu { position:fixed; top:0; left:-100%; width:280px; height:100vh; background:#0d0d0d; padding:120px 35px; transition:.4s ease; border-right:1px solid #222; display:flex; align-items:flex-start; }
  .menu.active { left:0; }
  .menu ul { flex-direction:column; gap:28px; width:100%; }
  .menu ul li a { font-size:20px; font-weight:600; }
  .hero { padding-top:160px; }
  .hero-content h1 { font-size:40px; }
  .hero-content p { font-size:17px; }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 blocos por linha */
    }
  .btn-login{
    display:block;
    width:fit-content;
    margin-top:15px;
    margin-left:0;
        }

  .link-card-voto h3 {
    font-size: 20px;
  }
  .link-card-voto p {
    font-size: 14px;
  }
}

/* MOBILE PEQUENO */
@media screen and (max-width:600px) {
  section { padding:70px 0; }
  .container { padding:0 5%; }
  .logo a { font-size:22px; }
  .hero-content h1 { font-size:34px; }
  .hero-content p { font-size:16px; line-height:1.7; }
  .hero-buttons { flex-direction:column; }
  .btn { width:100%; text-align:center; }
  .section-title h2 { font-size:28px; }
  .card { padding:25px; }
  .card h3 { font-size:22px; }
  .link-card-voto h3 {
    font-size: 18px;
  }
  .link-card-voto p {
    font-size: 13px;
  }
