/* Evitar scroll horizontal em todo o body */
html, body {
    overflow-x: hidden; /* Impede o scroll horizontal */
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Garantir que padding e margens não causem overflow */
}

/* Estilo geral do body */
body {
    background-color: #fdf7e7; /* Fundo escuro */
    color: #111d52; /* Cor do texto com contraste suave */
    font-family: 'Georgia', serif; /* Fonte elegante */
}

/* Estilo geral do header */
.header {
    position: relative;
    height: 90vh; /* Ocupa a altura total da tela */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Alinha o conteúdo no topo */
    align-items: flex-start; /* Alinha os itens à esquerda */
    padding: 20px;
    background: #65c3ff;
    color: #949292;
    overflow: hidden; /* Evita transbordamento */
    width: 100%; /* Garantir que o header ocupe 100% da largura da tela */
    box-sizing: border-box; /* Evita o excesso de largura devido ao padding */
}

/* Texto no header */
.text {
    width: 100%;
    text-align: left; /* Alinha o texto à esquerda */
    margin-top: 0;
}

.text h1 {
    font-size: 4rem;
    font-weight: bold;
    margin: 0;
}

.text p {
    font-size: 2.4rem;
    margin: 10px 0;
    line-height: 1.5;
}

/* Navbar centralizado */
#navbar {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

#navbar i {
    cursor: pointer;
    font-size: 1.5rem;
    color: #111d52;
}

/* Container do header */
.header-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px; /* Limita a largura do conteúdo do header */
    margin: auto;
}

/* Imagem à direita */
.header-image {
    max-width: 45%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px #fdf7e7(0, 0, 0, 0.2);
    object-fit: cover; /* Garante que a imagem não distorça */
}

/* Estilo de conteúdo geral */
.container {
    width: 80%;
    margin: auto;
    padding: 20px;
}

/* Estilo do segundo header */
.header2 {
    text-align: center;
    padding: 20px;
    background-color: #fdf7e7;
    color: #111d52;
    font-family: 'Georgia', serif;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Layout de conteúdo */
.content {
    display: flex;
    flex-wrap: wrap; /* Permite ajuste em telas menores */
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px; /* Espaço entre os elementos */
    overflow: hidden; /* Evita transbordamento */
}

/* Estilo do texto */
.text {
    flex: 1 1 40%; /* Textos ocupam até 40% do espaço */
    font-size: 16px;
    line-height: 1.6;
    color: #111d52;
    word-wrap: break-word; /* Garante quebra de texto, se necessário */
}

/* Estilo das imagens */
.image-left, .image-right {
    flex: 1 1 25%; /* Imagens ocupam até 25% do espaço */
    max-width: 100%; /* Garante que respeitam o contêiner */
    margin: 0 auto; /* Centraliza em espaços menores */
}

.image img {
    width: 100%;
    max-width: 60px; /* Ajuste aqui para reduzir o tamanho da imagem */
    height: auto;
    border: 2px solid #ffffff;
    border-radius: 8px;
    display: block;
}

/* Responsividade */
@media (max-width: 1024px) {
    .header {
        height: auto;
        padding: 15px;
    }

    .text h1 {
        font-size: 3rem;
    }

    .text p {
        font-size: 1.8rem;
    }

    .header-image {
        max-width: 120px;
    }
}

@media (max-width: 768px) {
    .content {
        flex-direction: column; /* Empilha os elementos em telas menores */
    }

    .text, .image-left, .image-right {
        flex: 1 1 100%; /* Cada elemento ocupa 100% da largura */
        margin: 0 auto; /* Centraliza os elementos */
    }

    .image-left img {
        max-width: 200px; 
        max-height: 120PX; 
    }

    .image-right img {
        max-width: 180px; /* Reduz ainda mais em telas menores */
    }

    .header {
        align-items: center;
        text-align: center;
    }

    .text h1 {
        font-size: 2.5rem;
    }

    .text p {
        font-size: 1.5rem;
    }

    /* Ajuste para botões de categorias */
    .categories button {
        font-size: 12px; /* Diminuir o tamanho da fonte dos botões */
        padding: 8px 12px; /* Diminuir o padding para um tamanho mais compacto */
    }
}

@media (max-width: 480px) {
    .text h1 {
        font-size: 2rem;
    }

    .text p {
        font-size: 1.2rem;
    }

    .categories button {
        font-size: 10px; /* Reduz o tamanho dos botões ainda mais em telas pequenas */
        padding: 6px 10px; /* Menor padding */
    }

    .header {
        padding: 10px;
    }

    .container {
        width: 95%;
    }
}
