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

body{
    font-family:Arial,Helvetica,sans-serif;
    background:url("https://images.unsplash.com/photo-1511497584788-876760111969?auto=format&fit=crop&w=1920&q=80") center center/cover no-repeat fixed;
    min-height:100vh;
}

.overlay{
    position:fixed;
    inset:0;
    background:rgba(35,10,60,.55);
    backdrop-filter:blur(2px);
    z-index:0;
}

.wrapper{
    position:relative;
    z-index:1;
    width:1200px;
    max-width:95%;
    margin:50px auto;
    background:rgba(20,15,45,.96);
    border:1px solid rgba(255,255,255,.08);
    border-radius:6px;
    overflow:hidden;
    box-shadow:0 15px 40px rgba(0,0,0,.4);
}

/* CABEÇALHO */

.header{
    height:85px;
    background:#181133;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 30px;
    border-bottom:1px solid rgba(255,255,255,.05);
}

.logo img{
    width:56px;
    height:56px;
    border-radius:50%;
    border:3px solid #ffffff;
}

.menu{
    display:flex;
    gap:35px;
}

.menu a{
    color:#d9d6e8;
    text-decoration:none;
    font-size:16px;
    padding:6px 0;
    position:relative;
    transition:.3s;
}

.menu a:hover{
    color:#ffffff;
}

.menu a.active{
    color:#ff4fd8;
}

.menu a.active::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-8px;
    width:100%;
    height:3px;
    background:#ff4fd8;
    border-radius:3px;
}

.header-right{
    display:flex;
    align-items:center;
    gap:15px;
}

.search-box{
    width:260px;
    height:42px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    border-radius:30px;
    display:flex;
    align-items:center;
    padding:0 15px;
}

.search-box i{
    color:#999;
    margin-right:10px;
}

.search-box input{
    width:100%;
    background:none;
    border:none;
    outline:none;
    color:#fff;
    font-size:14px;
}

.search-box input::placeholder{
    color:#888;
}

.icon-btn{
    width:42px;
    height:42px;
    display:flex;
    justify-content:center;
    align-items:center;
    text-decoration:none;
    border-radius:50%;
    background:rgba(255,255,255,.05);
    color:#ddd;
    transition:.3s;
}

.icon-btn:hover{
    background:#7d43d7;
    color:#fff;
}

/* CONTEÚDO */

.content{
    padding:35px;
}

.title{
    margin-bottom:30px;
}

.title h1{
    color:#fff;
    font-size:34px;
    font-weight:300;
    display:inline-block;
    position:relative;
}

.title h1::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-8px;
    width:55px;
    height:3px;
    background:#ff4fd8;
}

/* GRID */

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.card{
    transition:.3s;
    cursor:pointer;
}

.card img{
    width:100%;
    height:150px;
    object-fit:cover;
    border-radius:3px;
    display:block;
}

.card h3{
    color:#ddd;
    font-size:15px;
    font-weight:normal;
    margin-top:12px;
}

.card:hover{
    transform:translateY(-6px);
}

.card:hover img{
    box-shadow:0 8px 20px rgba(255,79,216,.3);
}

/* BOTÃO PSD */

.badge{
    position:fixed;
    left:30px;
    bottom:25px;
    background:#7d43d7;
    color:#fff;
    padding:10px 22px;
    border-radius:25px;
    font-size:28px;
    font-weight:bold;
    z-index:2;
    box-shadow:0 10px 25px rgba(0,0,0,.3);
}

/* RESPONSIVO */

@media(max-width:900px){

    .header{
        flex-wrap:wrap;
        height:auto;
        padding:20px;
        gap:20px;
    }

    .menu{
        order:3;
        width:100%;
        justify-content:center;
        flex-wrap:wrap;
    }

    .header-right{
        width:100%;
        justify-content:center;
    }

    .search-box{
        width:100%;
        max-width:350px;
    }

    .content{
        padding:20px;
    }

}

/* CSS DAS MATÉRIAS */

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

body{
    font-family:Arial, Helvetica, sans-serif;
    background:url("https://images.unsplash.com/photo-1511497584788-876760111969?auto=format&fit=crop&w=1920&q=80") center center/cover no-repeat fixed;
    min-height:100vh;
}

.overlay{
    position:fixed;
    inset:0;
    background:rgba(35,10,60,.55);
    backdrop-filter:blur(2px);
    z-index:0;
}

.wrapper{
    position:relative;
    z-index:1;
    width:1200px;
    max-width:95%;
    margin:50px auto;
    background:rgba(20,15,45,.96);
    border:1px solid rgba(255,255,255,.08);
    border-radius:6px;
    overflow:hidden;
    box-shadow:0 15px 40px rgba(0,0,0,.4);
}

/* =======================
   CABEÇALHO
======================= */

.header{
    height:85px;
    background:#181133;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 30px;
    border-bottom:1px solid rgba(255,255,255,.05);
}

.logo img{
    width:56px;
    height:56px;
    border-radius:50%;
    border:3px solid #fff;
}

.menu{
    display:flex;
    gap:35px;
}

.menu a{
    color:#d9d6e8;
    text-decoration:none;
    font-size:16px;
    padding:6px 0;
    position:relative;
    transition:.3s;
}

.menu a:hover{
    color:#fff;
}

.menu a.active{
    color:#ff4fd8;
}

.menu a.active::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-8px;
    width:100%;
    height:3px;
    background:#ff4fd8;
}

.header-right{
    display:flex;
    align-items:center;
    gap:15px;
}

.search-box{
    width:260px;
    height:42px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    border-radius:30px;
    display:flex;
    align-items:center;
    padding:0 15px;
}

.search-box i{
    color:#999;
    margin-right:10px;
}

.search-box input{
    width:100%;
    background:none;
    border:none;
    outline:none;
    color:#fff;
}

.search-box input::placeholder{
    color:#888;
}

.icon-btn{
    width:42px;
    height:42px;
    display:flex;
    justify-content:center;
    align-items:center;
    border-radius:50%;
    background:rgba(255,255,255,.05);
    color:#ddd;
    text-decoration:none;
    transition:.3s;
}

.icon-btn:hover{
    background:#7d43d7;
    color:#fff;
}

/* =======================
   CONTEÚDO
======================= */

.content{
    padding:40px;
}

.post{
    max-width:1020px;
    margin:0 auto;
}

.titulo{
    color:#fff;
    font-size:40px;
    font-weight:300;
    line-height:1.2;
    margin-bottom:15px;
}

.meta{
    display:flex;
    gap:25px;
    color:#a9a1c6;
    font-size:14px;
    margin-bottom:30px;
    padding-bottom:15px;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.meta i{
    margin-right:6px;
}

.post p{
    color:#d7d3e7;
    line-height:1.9;
    font-size:17px;
    text-align:justify;
    margin-bottom:18px;
}

.post h2{
    color:#fff;
    font-weight:400;
    font-size:30px;
    margin:40px 0 20px;
}

.banner{
    margin:40px 0;
}

.banner img{
    width:100%;
    display:block;
    border-radius:8px;
    box-shadow:0 10px 25px rgba(0,0,0,.3);
}

.post::after{
    content:"";
    display:block;
    clear:both;
}

/* =======================
   RESPONSIVO
======================= */

@media(max-width:900px){

    .header{
        flex-wrap:wrap;
        height:auto;
        padding:20px;
        gap:20px;
    }

    .menu{
        width:100%;
        justify-content:center;
        flex-wrap:wrap;
    }

    .header-right{
        width:100%;
        justify-content:center;
    }

    .search-box{
        width:100%;
        max-width:350px;
    }

    .content{
        padding:20px;
    }

    .titulo{
        font-size:30px;
    }

    .meta{
        flex-direction:column;
        gap:8px;
    }

}

.poster-box{
    float:left;
    width:320px;
    margin:0 30px 20px 0;
}

.poster{
    width:100%;
    display:block;
    border-radius:6px;
    box-shadow:0 10px 25px rgba(0,0,0,.35);
    margin:0 0 15px 0;
}

.btn-acessar{
    display:block;
    width:100%;
    padding:14px 20px;
    background:#ff4fd8;
    color:#fff;
    text-decoration:none;
    text-align:center;
    font-size:18px;
    font-weight:bold;
    border-radius:6px;
    transition:.3s;
    box-shadow:0 6px 15px rgba(255,79,216,.25);
}

.btn-acessar:hover{
    background:#e53bc0;
}

@media (max-width:900px){
    .btn-acessar{
        float:none;
        display:block;
        width:100%;
        margin:0 0 25px;
    }

    .poster-box{
    float:none;
    width:100%;
    margin:0 0 25px;
}
}

/* FIM DO CSS DAS MATÉRIAS */

/*  INÍCIO DO FOOTER */
.footer{
    width:100%;
    padding:18px 20px;
    background:#181133;
    border-top:1px solid rgba(255,255,255,.06);
    text-align:center;
}

.footer p{
    margin:0;
    color:#9d94bc;
    font-size:14px;
    letter-spacing:.5px;
}

/* FIM DO FOOTER */

/* COMEÇO DA PARTE DA GALERIA DE IMAGENS */

.gallery{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
    justify-content:center;
    margin:40px 0;
}

.gallery-item{
    width:160px;   /* ajuste este valor */
}

.gallery-item img{
    width:100%;
    display:block;
    border-radius:8px;
    transition:.3s;
}

.gallery-item:hover{
    transform:translateY(-5px);
}

.gallery-item:hover img{
    transform:scale(1.04);
    box-shadow:0 10px 25px rgba(0,0,0,.35);
}

/* FIM DA PARTE DA GALERIA DE IMAGENS */

/* CÓDIGO GALERIA DE IMAGENS CENTRAL */
.gallery-title{
    color:#fff;
    font-size:30px;
    font-weight:300;
    text-align:center;
    margin:50px 0 25px;
    position:relative;
}

.gallery-title::after{
    content:"";
    display:block;
    width:70px;
    height:3px;
    background:#ff4fd8;
    margin:12px auto 0;
}

/*GALERIA DE BANNERS DA POSTAGEM */
/*.banner-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
} */

/* USAR O .BANNER-GALLERY DE CIMA OU OS DOIS DE BAIXO */

.banner-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
}
.banner-gallery .banner-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
}

.banner-item {
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #111;
}

.banner-item img {
  width: 100%;
  height: auto; /* formato banner */
 object-fit: contain;
  display: block;
  transition: 0.2s;
}

.banner-item img:hover {
  transform: scale(1.03);
}

@media (max-width: 600px) {
  .banner-gallery {
    grid-template-columns: 1fr;
  }

  .banner-item img {
    height: 200px;
  }
}
/* FIM DA GALERIA DE BANNERS DA POSTAGEM*/



/* CAMPO DE INFORMAÇÕES DO ARQUIVO */
.file-info {
  margin-top: 20px;
  color: #fff;
  text-align: center;
}

.info-line {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
  color: #aaa;
  line-height: 1.6;
}

.info-line strong {
  color: #fff;
}
/* FIM DO CAMPO DE INFORMAÇÕES DO ARQUIVO */



/* DETALHE DO ASSUNTO (MATÉRIA, DOWNLOAD, ETC...) ACIMA DO TÍTULO */

.categoria{
    display:inline-block;
    color:#ffffff;
    font-size:13px;
    font-weight:700;
    letter-spacing:2px;
    text-transform:uppercase;
    margin-bottom:20px;
    position:relative;
}

.categoria::after{
    content:"";
    display:block;
    width:32px;          /* comprimento do risquinho */
    height:2px;
    background:#ff4fd8;  /* cor do detalhe */
    margin-top:8px;
}



/* NOME DO SITE AO LADO DO LOGO */

.logo a{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
}

.logo img{
    width:42px;
    height:auto;
    display:block;
}

.site-name{
    display:flex;
    align-items:baseline;
    font-size:28px;
    letter-spacing:0.5px;
    line-height:1;
}

.site-name .labs{
    color:#ffffff;
    font-weight:300;   /* fino */
}

.site-name .graphics{
    color:#ff4fd8;     /* rosa */
    font-weight:500;   /* normal */
}

.logo a:hover .labs{
    color:#d8d8d8;
    transition:0.3s;
}

.logo a:hover .graphics{
    color:#ff79e3;
    transition:0.3s;
}

/* CAMPO DE BUSCAS */

.search-box {
    position: relative;
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
    display: none;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

.search-results a {
    display: block;
    padding: 12px 15px;
    color: #fff;
    text-decoration: none;
    transition: background .2s;
}

.search-results a:hover {
    background: #2d2d2d;
}

.search-results .no-result {
    padding: 12px 15px;
    color: #aaa;
}

/* FIM DO CAMPO DE BUSCAS */

/* CAMPO D COMENTÁRIOS */

/* ===== Comentários ===== */

.comments-section {
    margin-top: 60px;
    padding-top: 35px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.comments-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
}

.comments-section h2 i {
    color: #7c3aed; /* mesma cor roxa do tema */
}

/* Moldura do Giscus */
.giscus {
    padding: 20px;
    background: #1c1c24;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

/* FIM DO CAMPO DE COMETÁRIOS */