/* Reset e Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;

}

.imagem {
    max-width: 100%;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
#popular-content-grid {
  margin-top: -80px;
}
a {
    color: inherit;
    text-decoration: none;
}

body {
    background-color: #f5f5f5;
    color: #ffffff;
    line-height: 1.6;
    font-family: 'Minecrafter', sans-serif;
}

/* Navbar */
.navbar {
    background-color: #262423;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 4px solid #3e3e3e8c;
    font-family: 'Minecrafter', sans-serif;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.logo {
    color: #7b7b7b;
    font-size: 24px;
    text-decoration: none;
    font-weight: bold;
    height: 50px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 1001;
    position: relative;
    order: 2;
    margin-left: 15px;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.bar {
    height: 3px;
    width: 100%;
    background-color: #6cc349;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    order: 3;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: #6cc349;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #eaeaea;
}

/* Container do formulário */
.search-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 400px;
    margin: 0 20px;
    order: 1;
}

/* Formulário em si */
#searchForm {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Campo de input */
#searchForm input[type="text"] {
    flex-grow: 1;
    padding: 8px 15px;
    border: 2px solid #6cc349;
    border-right: none;
    background-color: #f0f0f0;
    outline: none;
    height: 40px;
    box-sizing: border-box;
}

/* Botão de submit */
#searchForm button[type="submit"] {
    padding: 0 15px;
    background-color: #6cc349;
    color: white;
    border: 2px solid #6cc349;
    border-left: none;
    cursor: pointer;
    transition: background-color 0.3s;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#searchForm button[type="submit"]:hover {
    background-color: #89cf58;
}

/* Ícone do botão */
#searchForm button[type="submit"] i {
    font-size: 16px;
}

/* Contact Section */
.contact-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    text-align: center;

}

.contact-section h2 {
    font-size: 2rem;
    color: #262423;
    margin-bottom: 20px;
}

.contact-section p {
    color: #262423;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.contact-container {
    background-color: #5ca83e;
    border: 3px solid #82d461;
    border-top: 5px solid #52a535;
    border-bottom: 5px solid #2a641c;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    margin: 0 auto;

}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: 'Minecrafter', sans-serif;
}

.form-group label {
    color: #262423;
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #262423;
    background-color: #f5f5f5;
    font-size: 0.7rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}


.submit-btn {
    background-color: #262423;
    color: #6cc349;
    border: none;
    padding: 15px 30px;
    font-family: 'Minecrafter', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid #6cc349;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #6cc349;
    color: #262423;
}

/* Hero Image */
.hero {
    margin-top: 70px;
}

.hero-image {
    height: 250px;
    background-color: #262423;
    background-image: url(https://i.imghippo.com/files/LJBP1692fIU.png);
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Popular Section */
.popular-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    text-align: center;
    margin-top: 40px;
}

.popular-section h3 {
    color: #9bdf81;
}

.popular-section h5 {
    text-align: end;
    font-weight: 200;
}

.popular-section h6 {
    text-align: start;
    font-size: 17px;
    font-weight: 200;
}

.popular-section a {
    font-size: 22px;
    color: #6cc349;
    font-weight: 600;
}

/* Estrutura de Conteúdo Padrão */
.content-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
}

h1 {
    margin-top: 100px;
}

/* Carrossel Styles - Minecraft Themed */
.carousel-container {
    position: relative;
    width: 100%;
    margin: 0 auto 20px;
    border: 3px solid #82d461;
    background-color: #5ca83e;
    border-top: 5px solid #52a535;
    border-bottom: 5px solid #2a641c;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border-radius: 4px;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    display: none;
}

.carousel-slide.active {
    display: block;
}

.carousel-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    background-color: #262423;
    border-bottom: 2px solid #2a641c;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
}

.carousel-button {
    background-color: rgba(38, 36, 35, 0.7);
    color: #6cc349;
    border: 2px solid #6cc349;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 16px;
}

.carousel-button:hover {
    background-color: #262423;
    transform: scale(1.1);
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 5px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #6cc349;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-dot.active {
    background-color: #6cc349;
    transform: scale(1.2);
}

.dot-icon {
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #262423;
}

/* Enhanced Content Styles */
.download-container {
    margin: 20px 0;
    text-align: center;

}

.download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #262423;
    color: #6cc349;
    padding: 12px 24px;
    border-radius: 4px;
    transition: all 0.3s;
    border: 2px solid #6cc349;
    font-weight: 100 !important;
}

.download:hover {
    background-color: #6cc349;
    color: #262423;
    transform: translateY(-2px);
}

.content-description {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 2px solid #82d461;
}

.description-title {
    color: #262423;
    margin-bottom: 15px;
    font-size: 20px;
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.pagination {
    display: flex;
    gap: 5px;
}

.pagination-button {
    background-color: #5ca83e;
    color: #262423;
    border: 2px solid #262423;
    padding: 8px 15px;
    cursor: pointer;
    font-family: 'Minecrafter', sans-serif;
    transition: all 0.3s;
    border-radius: 4px;
}

.pagination-button:hover {
    background-color: #6cc349;
    color: #262423;
    transform: translateY(-2px);
}

.pagination-button.active {
    background-color: #262423;
    color: #6cc349;
    border: 2px solid #6cc349;
    font-weight: bold;
}

.pagination-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    color: #262423;
    font-size: 18px;
}

.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    color: #ff3333;
    font-size: 18px;
}

/* Estilos para a página de pesquisa */
#resultado-titulo {
    color: #262423;
    font-size: 2rem;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #82d461;
    margin-top: 100px;
}

.no-results {
    color: #262423;
    font-size: 1.2rem;
    text-align: center;
    grid-column: 1 / -1;
    padding: 30px;
}

.page-title {
    margin-top: 100px;
}

.page-title3 {
    margin-top: 100px;
    font-size: 40px;
    color: #262423;
    text-align: center;
  position: relative;
  top: -80px;
}
.page-title4 {
    margin-top: 10px;
    font-size: 20px;
    color: #262423;
    text-align: center;
  position: relative;
  top: -80px;
}
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.page-title2 {
    margin-top: 100px;
    font-size: 40px;
    color: #262423;
    text-align: center;
  position: relative;
  top: -80px;
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    #resultado-titulo {
        margin-top: 170px;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .carousel-image {
        max-height: 300px;
    }

    .hero {
        margin-top: 140px;
    }

    .page-title {
        margin-top: 160px;
    }

    .page-title2 {
        color: #262423;
        text-align: center;
    }

    .carousel-button {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .contact-section {
        margin-top: 180px;
    }
}

@media (max-width: 480px) {
    .carousel-image {
        max-height: 200px;
    }

    .download {
        padding: 10px 18px;
        font-size: 14px;
    }

}

.page-title {
    font-size: 42px;
    color: #262423;
    font-family: 'Minecrafter', sans-serif;
    text-align: center;
    margin-bottom: 30px;
}

.content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Estilos para Cards - COM AJUSTES DE TEXTO */
.conteudo {
    border: 3px solid #82d461;
    background-color: #5ca83e;
    border-top: 5px solid #52a535;
    border-bottom: 5px solid #2a641c;
    margin: 20px 0;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-family: 'Minecrafter', sans-serif;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.conteudo a img {
    width: 100%;
    max-height: 200px;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
    border: 2px solid #4a752c;
}

.conteudo .titulo {
    color: #262423;
    font-size: 24px;
    margin: 10px 0;
    line-height: 1.2;
}

.conteudo .descricao-curta {
    color: #ffffff;
    font-size: 16px;
    margin: 10px 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    min-height: 60px;
    line-height: 1.4;
}

.conteudo .autor {
    color: #262423;
    font-size: 14px;
    margin: 5px 0;
}

.conteudo .tipo {
    display: inline-block;
    background-color: #262423;
    color: #6cc349;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
    transition: background-color 0.3s;
    font-size: 14px;
}

.conteudo:hover {
    background-color: rgb(82, 165, 61);
    transform: translateY(-5px);
}

/* Página de Conteúdo Individual */
.page {
    width: 62%;
    border: 3px solid #82d461;
    background-color: #5ca83e;
    border-top: 5px solid #52a535;
    border-bottom: 5px solid #2a641c;
    margin-right: 20px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-family: 'Minecrafter', sans-serif;
}

.page .imagem {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    margin: 10px 0;
    border: 2px solid #262423;
}

.page .titulo {
    color: #262423;
    font-size: 28px;
    margin-bottom: 15px;
}

.page .descricao {
    color: #ffffff;
    font-size: 16px;
    margin: 15px 0;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.page .autor {
    color: #262423;
    font-size: 16px;
    margin: 10px 0;
}

.download {
    display: inline-block;
    background-color: #262423;
    color: #6cc349;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 15px;
    transition: background-color 0.3s;
    font-size: 16px;
    font-weight: bold;
}

.download:hover {
    background-color: #3a3a3a;
}

/* Cards Laterais */
.side-cards {
    width: 35%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.side-card {
    height: auto;
    min-height: 280px;
    font-family: 'Minecrafter', sans-serif;
    border: 3px solid #82d461;
    background-color: #5ca83e;
    border-top: 5px solid #52a535;
    border-bottom: 5px solid #2a641c;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.side-card:hover {
    transform: translateY(-3px);
    background-color: #4a9e2d;
}

.side-card .imagem {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border: 2px solid #262423;
    margin-bottom: 10px;
}

.side-card .titulo {
    color: #262423;
    font-size: 18px;
    margin-bottom: 8px;
    line-height: 1.2;
}

.side-card .descricao {
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 10px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    flex-grow: 1;
}

.side-card .autor {
    color: #262423;
    font-size: 13px;
    margin-top: auto;
}

.view-more {
    text-align: center;
    margin-top: 10px;
    font-size: 17px;
    color: #262423;
    width: 100%;
    border: 3px solid #82d461;
    background-color: #5ca83e;
    border-top: 5px solid #52a535;
    border-bottom: 5px solid #2a641c;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-family: 'Minecrafter', sans-serif;
    transition: transform 0.3s;
}

.view-more:hover {
    transform: translateY(-3px);
    background-color: #4a9e2d;
}

/* Grid para múltiplos conteúdos */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}


/* Footer */
.footer {
    background-color: #262423;
    color: #6cc349;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-top: 4px solid #3e3e3e;
    font-family: Arial, Helvetica, sans-serif;
}

.footer-links {
    display: flex;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #6cc349;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.7rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.social-icons {
    margin-bottom: 20px;
}

.social-icon {
    color: #6cc349;
    font-size: 24px;
    margin: 0 10px;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #eaeaea;
}

.footer-info {
    text-align: center;
    font-size: 0.6rem;
    margin-bottom: 10px;
}

.footer-info p {
    margin-bottom: 5px;
    color: #6cc349;
}

.disclaimer {
    color: #eaeaea;
    font-size: 0.5rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .navbar-container {
        flex-wrap: wrap;
        padding: 10px 15px;
    }


    .logo {
        order: 0;
        width: 150px;
    }

    .search-container {
        order: 1;
        width: 100%;
        margin: 10px 0;
    }

    .hamburger {
        display: flex;
        order: 2;
        position: absolute;
        right: 15px;
        top: 15px;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        flex-direction: column;
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .conteudo {
        width: 100%;
    }

    .content {
        margin-top: 90px;
        flex-direction: column;
        padding: 10px;
    }

    .page,
    .side-cards {
        width: 100%;
        margin-right: 0;
    }

    .side-cards {
        margin-top: 20px;
    }
.page-title2 {
    margin-top: 100px;
}



    .content-grid {
        grid-template-columns: 1fr;
    }

    .hero-image {
        height: 200px;
    }

    .conteudo .descricao-curta {
        -webkit-line-clamp: 2;
        font-size: 14px;
    }

    .page .descricao {
        font-size: 14px;
    }

    .side-card {
        min-height: 250px;
    }

    .popular-section {
        margin-top: 90px;
    }
}

@media (max-width: 480px) {

    .page,
    .conteudo,
    .view-more,
    .side-card {
        padding: 15px;
    }

    .conteudo a img {
        max-height: 120px;
    }

    .side-card .imagem {
        height: 80px;
    }

    .titulo {
        font-size: 18px;
    }
.page-title2 {
    margin-top: 100px;
}
    .download,
    .tipo {
        padding: 6px 12px;
        font-size: 18px;
    }

    .hero-image {
        height: 200px;
    }


}

/* Estilo para os cards laterais */
.side-card {
    width: 100%;
    /* ou um valor fixo como 250px */
    overflow: hidden;
    /* esconde qualquer conteúdo que ultrapasse */
    margin-bottom: 20px;
    padding: 10px;
    box-sizing: border-box;
    /* inclui padding na largura total */
}

/* Estilo para as imagens dentro dos cards */
.side-image {
    width: 100%;
    /* faz a imagem ocupar toda a largura do card */
    height: auto;
    /* mantém a proporção */
    max-height: 150px;
    /* altura máxima (ajuste conforme necessário) */
    object-fit: cover;
    /* cobre a área sem distorcer */
    border-bottom: 2px solid #8B8B8B;
    /* borda inferior */
    margin-bottom: 10px;
}

/* Estilo para os títulos e descrições */
.side-title {
    font-size: 16px;
    margin: 5px 0;
}

.side-description {
    font-size: 12px;
    margin: 5px 0;
}

.side-author {
    font-size: 11px;
    margin: 5px 0;
}