* {
    padding: 0;
    margin: 0;
}

body {
    /*background-color: #0d1117;*/
    background-color: #fff;
}
/*Header*/
.site-header {
    /*border-bottom: 1px solid #e8e8e8;*/
    min-height: 56px;
    position: relative;
    margin-bottom: 30px;
    background-color: #000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /*border: 1px solid #ccc;
    background: linear-gradient(to bottom, #507aa3, #c9d6e2);*/
}
/* Mantendo o estilo do site principal */
.site-title {
    font-size: 26px;
    line-height: 54px;
    letter-spacing: -1px;
    float: left;
    text-decoration: none;
    color: #fff;
    position: relative;
    font-family: "Share Tech Mono", monospace;
    font-weight: 550;
    font-style: normal;
    letter-spacing: -0.08em;
    filter: drop-shadow(0 1px 3px);
}

/* Camadas glitch */
.site-title.glitch::before,
.site-title.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.7;
    width: 100%;
}

/* Camada vermelha com distorção */
.site-title.glitch::before {
    color: rgba(255, 255, 255, 0.7);
    animation: glitch-red 1s infinite linear alternate-reverse;
}

/* Camada azul/ciano com distorção */
.site-title.glitch::after {
    color: rgb(223, 223, 223);
    animation: glitch-blue 1s infinite linear alternate-reverse;
}

/* Animações leves de glitch */
@keyframes glitch-red {
    0% { transform: translate(0px, 0px); clip: rect(0, 9999px, 5px, 0); }
    20% { transform: translate(-1px, -1px); clip: rect(5px, 9999px, 15px, 0); }
    40% { transform: translate(1px, -1px); clip: rect(15px, 9999px, 25px, 0); }
    60% { transform: translate(-1px, 1px); clip: rect(25px, 9999px, 35px, 0); }
    80% { transform: translate(1px, -1px); clip: rect(35px, 9999px, 45px, 0); }
    100% { transform: translate(0px, 0px); clip: rect(0, 9999px, 5px, 0); }
}

@keyframes glitch-blue {
    0% { transform: translate(0px, 0px); clip: rect(10px, 9999px, 20px, 0); }
    20% { transform: translate(1px, 1px); clip: rect(20px, 9999px, 30px, 0); }
    40% { transform: translate(-1px, 1px); clip: rect(30px, 9999px, 40px, 0); }
    60% { transform: translate(1px, -1px); clip: rect(40px, 9999px, 50px, 0); }
    80% { transform: translate(-1px, 1px); clip: rect(50px, 9999px, 60px, 0); }
    100% { transform: translate(0px, 0px); clip: rect(10px, 9999px, 20px, 0); }
}

/* Navegação */
.site-nav {
    float: right;
    line-height: 54px;
}

.site-nav .nav-trigger {
    display: none; /* Esconde o checkbox */
}

.site-nav .menu-icon {
    display: none; /* Esconde o ícone no desktop */
}

.site-nav .page-link {
    color: #fff;
    margin-right: 20px;
}
.wrapper {
    max-width: 1200px;
    margin: 0 auto;      
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;     
}
.categorias-header {
    max-width: 1200px;
    height: auto;
    margin: 0 auto;      
    display: flex;   
    display: none;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.categorias-header::-webkit-scrollbar {
    display: none;
  }
.categorias-header ul{
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.categorias-header ul li {
    margin-right: 10px;
    background-color: #F2F2F2;
    padding: 8px 16px;
    border-radius: 30px;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}
@media screen and (max-width: 600px) {
    .site-nav {
      position: absolute;
      top: 9px;
      right: 15px;
      background-color: #fdfdfd;
      border: 1px solid #e8e8e8;
      border-radius: 5px;
      text-align: right;
    }
  
    /* Ícone hamburguer aparece */
    .site-nav .menu-icon {
      display: block;
      float: right;
      width: 36px;
      height: 26px;
      padding-top: 10px;
      text-align: center;
    }
  
    /* Menu dropdown (quando checkbox ativado) */
    .site-nav input ~ .trigger {
      display: none;
    }
    .site-nav input:checked ~ .trigger {
      display: block;
      padding-bottom: 5px;
    }
  
    /* Links no mobile ficam em blocos */
    .site-nav .page-link {
      display: block;
      padding: 5px 10px;
    }
}

/*Container*/
.container {
    display: flex;
    max-width: 1200px;
    flex: 1;
    margin: 20px auto;
    gap: 30px;
}
/*Left*/
.left {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.title-post-home {
    font-family: "Work Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: 25px;
}
.categories-post-home, .data-post-home, .description-post-home {
    font-family: "Red Hat Text", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-size: 20px;
    line-height: 1.8;
}
.support-btn {
    line-height: 1.5;
    font-family: "PT Serif", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
}
/*Right*/
.right {
    flex: 1;
}
.articles-home {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: 22px;
}
.popular-item h1 {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-size: 16px;
    position: relative;
    display: inline-block;
    cursor: pointer;
    color: #000;
}
.popular-item h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: #242424;
    transition: width 0.3s ease;
}
.popular-item h1:hover::after {
    width: 100%;
}

/*Categorias*/
.popular {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
}

.popular h4 {
    margin-bottom: 15px;
    color: #000;

}

.popular-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}


.popular-item p {
    font-size: 0.85rem;
    margin: 0;
}

/*Card*/
.feed {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
    cursor: pointer;
    user-select: none;
}

.card-content {
    flex: 1;
}

.card-content .published {
    font-size: 14px;
    color: #757575;
    margin-bottom: 6px;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.card-content h2 {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
    line-height: 1.3;
    font-size: 25px;
    color: #000;
}

.card-content p {
    font-size: 15px;
    color: #555; /*#555*/
    margin: 0 0 12px 0;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    margin-top: 13px;
}

.card-footer {
    font-size: 14px;
    color: #757575;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.card-footer span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card img {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  margin-left: 20px;
}

.icon {
  font-size: 14px;
}

/*Footer*/
footer {
    padding: 15px;
    background: #000; /*#e9eef3*/
    /*border-top: 1px solid #ccc;*/
    text-align: center;
    font-size: 13px;
    color: #333;
}

footer p {
    margin: 5px 0;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 13px;
    color: #fff;
    font-family: "Share Tech Mono", monospace;
    font-weight: 550;
    font-style: normal;
}
  
footer .github-link {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    background: #4a6a8a;
    color: white;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.3),
    0 1px 2px rgba(0,0,0,0.2);
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}
  
footer .github-link:hover {
    background: #35526e;
}
  
footer .github-link img {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

/*Post*/
.container2 {
    max-width: 750px;
    margin: 20px auto;
}
@media (max-width: 1265px) {
    .right {
        display: none;
    }
    .categorias-header {
        display: block;
        max-width: 810px;
    }
    .wrapper {
        max-width: 810px;
        margin: 0 auto;      
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;     
    }
}
@media (max-width: 916px) {
    .feed {
        max-width: 700px;
        margin: 0 auto;
    }
    .categorias-header {
        max-width: 700px;
    }
    .wrapper {
        max-width: 700px;
    }
}
@media (max-width: 785px) {
    .feed {
        max-width: 650px;
        margin: 0 auto;
    }
    .categorias-header {
        max-width: 650px;
    }
    .wrapper {
        max-width: 650px;
    }
}
@media (max-width: 727px) {
    .feed {
        max-width: 600px;
        margin: 0 auto;
    }
    .categorias-header {
        max-width: 600px;
    }
    .wrapper {
        max-width: 600px;
    }
    .card-content h2 {
        font-family: "Inter", sans-serif;
        font-optical-sizing: auto;
        font-weight: 800;
        font-style: normal;
        line-height: 1.3;
        font-size: 23px;
    }
    .card-content p {
        font-size: 14px;
        color: #555;
        margin: 0 0 12px 0;
        font-family: "Inter", sans-serif;
        font-optical-sizing: auto;
        font-weight: 500;
        font-style: normal;
        margin-top: 13px;
    }
    .card-footer {
        font-size: 12px;
        color: #757575;
        display: flex;
        align-items: center;
        gap: 15px;
        font-family: "Inter", sans-serif;
        font-optical-sizing: auto;
        font-weight: 400;
        font-style: normal;
    }
    .card-content .published {
        font-size: 12px;
        color: #757575;
        margin-bottom: 6px;
        font-family: "Inter", sans-serif;
        font-optical-sizing: auto;
        font-weight: 400;
        font-style: normal;
    }
}
@media (max-width: 700px) {
    .site-title {
        font-size: 20px;
    }
    .feed {
        max-width: 580px;
        margin: 0 auto;
    }
    .categorias-header {
        max-width: 580px;
    }
    .wrapper {
        max-width: 580px;
    }
}
@media (max-width: 623px) {
    .feed {
        max-width: 530px;
        margin: 0 auto;
    }
    .categorias-header {
        max-width: 530px;
    }
    .wrapper {
        max-width: 530px;
    }
    .categorias-header ul li {
        font-size: 15px;
    }
    .card-content h2 {
        font-family: "Inter", sans-serif;
        font-optical-sizing: auto;
        font-weight: 800;
        font-style: normal;
        line-height: 1.3;
        font-size: 21px;
    }
}
@media (max-width: 570px) {
    .feed {
        max-width: 510px;
        margin: 0 auto;
    }
    .categorias-header {
        max-width: 510px;
    }
    .wrapper {
        max-width: 510px;
    }
}
@media (max-width: 550px) {
    .feed {
        max-width: 490px;
        margin: 0 auto;
    }
    .categorias-header {
        max-width: 490px;
    }
    .categorias-header ul li {
        font-size: 14px;
    }
    .wrapper {
        max-width: 490px;
    }
    .card-content h2 {
        font-family: "Inter", sans-serif;
        font-optical-sizing: auto;
        font-weight: 800;
        font-style: normal;
        line-height: 1.3;
        font-size: 19px;
    }
}
@media (max-width: 533px) {
    .feed {
        max-width: 470px;
        margin: 0 auto;
    }
    .categorias-header {
        max-width: 470px;
    }
    .wrapper {
        max-width: 470px;
    }
}
@media (max-width: 510px) {
    .feed {
        max-width: 450px;
        margin: 0 auto;
    }
    .categorias-header {
        max-width: 450px;
    }
    .wrapper {
        max-width: 450px;
    }
}
@media (max-width: 478px) {
    .feed {
        max-width: 420px;
        margin: 0 auto;
    }
    .categorias-header {
        max-width: 420px;
    }
    .wrapper {
        max-width: 420px;
    }
}
@media (max-width: 466px) {
    .feed {
        max-width: 430px;
        margin: 0 auto;
    }
    .categorias-header {
        max-width: 430px;
    }
    .wrapper {
        max-width: 430px;
    }
}
@media (max-width: 458px) {
    .feed {
        max-width: 420px;
        margin: 0 auto;
    }
    .categorias-header {
        max-width: 420px;
    }
    .wrapper {
        max-width: 420px;
    }
}
@media (max-width: 448px) {
    .feed {
        max-width: 410px;
        margin: 0 auto;
    }
    .categorias-header {
        max-width: 410px;
    }
    .wrapper {
        max-width: 410px;
    }
    .card-content h2 {
        font-family: "Inter", sans-serif;
        font-optical-sizing: auto;
        font-weight: 800;
        font-style: normal;
        line-height: 1.3;
        font-size: 19px;
    }
    .card-content p {
        font-size: 14px;
        color: #555;
        margin: 0 0 12px 0;
        font-family: "Inter", sans-serif;
        font-optical-sizing: auto;
        font-weight: 500;
        font-style: normal;
        margin-top: 13px;
    }
    .card-footer {
        font-size: 11px;
        color: #757575;
        display: flex;
        align-items: center;
        gap: 15px;
        font-family: "Inter", sans-serif;
        font-optical-sizing: auto;
        font-weight: 400;
        font-style: normal;
    }
    .card-content .published {
        font-size: 11px;
        color: #757575;
        margin-bottom: 6px;
        font-family: "Inter", sans-serif;
        font-optical-sizing: auto;
        font-weight: 400;
        font-style: normal;
    }
    .card img {
        width: 120px;
        height: 80px;
        object-fit: cover;
        border-radius: 6px;
        margin-left: 20px;
      }
}
@media (max-width: 434px) {
    .feed {
        max-width: 400px;
        margin: 0 auto;
    }
    .categorias-header {
        max-width: 400px;
    }
    .wrapper {
        max-width: 400px;
    }
}
@media (max-width: 417px) {
    .feed {
        max-width: 380px;
        margin: 0 auto;
    }
    .categorias-header {
        max-width: 380px;
    }
    .wrapper {
        max-width: 380px;
    }
}
@media (max-width: 400px) {
    .feed {
        max-width: 360px;
        margin: 0 auto;
    }
    .categorias-header {
        max-width: 360px;
    }
    .wrapper {
        max-width: 360px;
    }
}
@media (max-width: 386px) {
    .feed {
        max-width: 330px;
        margin: 0 auto;
    }
    .categorias-header {
        max-width: 330px;
    }
    .wrapper {
        max-width: 330px;
    }
    .card img {
        width: 100px;
        height: 60px;
        object-fit: cover;
        border-radius: 6px;
        margin-left: 20px;
      }
      .card-content p {
        font-size: 14px;
        color: #555;
        margin: 0 0 12px 0;
        font-family: "Inter", sans-serif;
        font-optical-sizing: auto;
        font-weight: 500;
        font-style: normal;
        margin-top: 13px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}