/*
Theme Name: GeneratePress Child
Template: generatepress
*/
.home-page-layout {
    font-family: Arial, sans-serif;
    color: #333;
    padding: 20px;
    margin: 0 auto;
    max-width: 1200px;
}

.home-header {
    text-align: center;
    margin-bottom: 40px;
}

.home-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.home-header p {
    font-size: 1.2em;
    color: #555;
}

.featured-articles {
    margin-bottom: 50px;
}

.featured-articles h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.article-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.article-item {
    width: 30%;
    box-sizing: border-box;
    border: 1px solid #ddd;
    padding: 20px;
    background-color: #fff;
    text-align: center;
}

.article-item img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.article-item h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.article-item p {
    font-size: 1em;
    color: #777;
}

.categories {
    margin-bottom: 50px;
}

.categories h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.category-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.category-item {
    width: 30%;
    padding: 20px;
    background-color: #f4f4f4;
    text-align: center;
}

.category-item a {
    font-size: 1.2em;
    color: #0073e6;
    text-decoration: none;
}

.category-item a:hover {
    text-decoration: underline;
}

.cta-section {
    background-color: #0073e6;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.cta-section form {
    display: inline-block;
    margin-top: 20px;
}

.cta-section input[type="email"] {
    padding: 10px;
    font-size: 1em;
    margin-right: 10px;
    width: 250px;
    border: none;
    border-radius: 5px;
}

.cta-section button {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #ff6700;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
}

.cta-section button:hover {
    background-color: #e55e00;
}

/* Ajuste para telas pequenas (como celulares) */
@media (max-width: 767px) {
    .article-grid {
        display: block;
        width: 100%;
        padding: 10px;
    }

    .article-item {
        width: 100%;
        margin-bottom: 20px;
    }

    .category-grid {
        display: block;
        width: 100%;
    }

    .category-item {
        width: 100%;
        padding: 10px 0;
        text-align: left;
    }

    .cta-section form {
        display: block;
        margin-top: 20px;
    }

    .cta-section input[type="email"] {
        width: 100%;
        padding: 10px;
        font-size: 1em;
        margin-bottom: 10px;
    }

    .cta-section button {
        width: 100%;
        padding: 10px;
        font-size: 1.2em;
    }
}

/* Ajuste para telas de médio porte (como tablets) */
@media (max-width: 1024px) {
    .article-grid {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
    }

    .article-item {
        width: 48%;
    }

    .category-item {
        width: 48%;
    }
}

/* Estilos gerais para garantir uma estrutura responsiva */
.home-page-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Ajustes de responsividade para dispositivos móveis (celulares) */
@media (max-width: 767px) {
    /* Artigos em Destaque */
    .article-grid {
        display: block;
        width: 100%;
    }

    .article-item {
        width: 100%;
        margin-bottom: 20px;
        padding: 15px;
        box-sizing: border-box;
    }

    /* Categorias */
    .category-grid {
        display: block;
        width: 100%;
        margin-top: 20px;
    }

    .category-item {
        width: 100%;
        padding: 15px 0;
        text-align: left;
    }

    /* Formulário CTA (Call to Action) */
    .cta-section form {
        width: 100%;
        text-align: center;
    }

    .cta-section input[type="email"],
    .cta-section button {
        width: 100%;
        padding: 12px;
        font-size: 1.1em;
        margin-bottom: 10px;
        box-sizing: border-box;
    }

    .cta-section button {
        background-color: #ff6700;
        color: white;
        border: none;
    }
}

/* Ajustes para tablets (largura de tela menor que 1024px) */
@media (max-width: 1024px) {
    .article-grid {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
    }

    .article-item {
        width: 48%; /* 2 colunas */
        margin-bottom: 20px;
    }

    .category-grid {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
    }

    .category-item {
        width: 48%; /* 2 colunas */
        padding: 15px;
    }

    .cta-section form {
        width: 50%;
        margin: 0 auto;
    }
}

/* Ajustes para desktop e telas maiores */
@media (min-width: 1025px) {
    .article-grid {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
    }

    .article-item {
        width: 30%; /* 3 colunas */
    }

    .category-grid {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
    }

    .category-item {
        width: 30%; /* 3 colunas */
    }
}
/* Ajustes para dispositivos móveis (menor que 767px, como celulares) */
@media (max-width: 767px) {
    /* Artigos em Destaque */
    .article-grid {
        display: block;
        width: 100%;
        margin: 0;
    }

    .article-item {
        width: 100%;  /* Cada post ocupará 100% da largura */
        margin-bottom: 20px;
        box-sizing: border-box;
        padding: 15px; /* Adiciona espaçamento interno */
    }

    .article-item img {
        width: 100%;  /* A imagem ocupa toda a largura disponível */
        height: auto;
    }

    .article-item h3 {
        font-size: 1.2em;  /* Ajusta o tamanho do título */
    }

    .article-item p {
        font-size: 1em;  /* Ajusta o tamanho do texto */
        color: #777;
    }
}

/* Ajustes para tablets (menor que 1024px) */
@media (max-width: 1024px) {
    .article-grid {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
    }

    .article-item {
        width: 48%;  /* 2 colunas */
        margin-bottom: 20px;
        padding: 15px;
    }

    .article-item img {
        width: 100%;
        height: auto;
    }

    .article-item h3 {
        font-size: 1.3em;
    }

    .article-item p {
        font-size: 1.1em;
    }
}

/* Ajustes para telas maiores (1025px e acima, desktops) */
@media (min-width: 1025px) {
    .article-grid {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
    }

    .article-item {
        width: 30%;  /* 3 colunas */
        margin-bottom: 20px;
        padding: 20px;
    }

    .article-item img {
        width: 100%;
        height: auto;
    }

    .article-item h3 {
        font-size: 1.5em;
    }

    .article-item p {
        font-size: 1.2em;
    }
}
