/* =========================================================
   BLOG QUALAR - STYLES.CSS
   Baseado no CSS original enviado
   Ajustado para o index.html
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #4d243f;
}

/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: 80%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 5px;
}

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

header {
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
}

header .container {
    padding-top: 20px;
    padding-bottom: 20px;
}

.logo {
    font-size: 35px;
    font-weight: bold;
    color: #4d243f;
    text-decoration: none;
    transition: color 0.3s;
}

.logo:hover {
    color: #a8518a;
}

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

main.container {
    padding-top: 20px;
    margin-bottom: 60px;
}

h1 {
    color: #000;
    font-size: 3.5em;
    font-weight: bold;
    line-height: 1.2;
    margin-top: 20px;
    margin-bottom: 20px;
}

h2 {
    color: #a8518a;
    font-size: 2.5em;
    font-weight: bold;
    line-height: 1.2;
    margin-top: 30px;
    margin-bottom: 20px;
}

p {
    color: #4d243f;
    font-size: 1.25em;
    line-height: 1.6;
    margin-top: 10px;
    margin-bottom: 15px;
}

/* =========================================================
   CAMPO DE PESQUISA
   ========================================================= */

#searchInput {
    display: block;
    width: 100%;
    max-width: 1100px;
    padding: 18px 20px;
    margin: 30px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.25em;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#searchInput:focus {
    border-color: #a8518a;
    box-shadow: 0 0 0 3px rgba(168, 81, 138, 0.12);
}

/* =========================================================
   LISTA DE ARTIGOS
   ========================================================= */

#itemsList {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#itemsList li {
    padding: 25px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: box-shadow 0.3s, transform 0.2s;
}

#itemsList li:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

#itemsList li strong {
    display: block;
    color: #4d243f;
    font-size: 1.4em;
    margin-bottom: 10px;
}

#itemsList li p {
    font-size: 1.1em;
    margin-top: 0;
    margin-bottom: 20px;
}

/* =========================================================
   BOTÕES
   ========================================================= */

.botao-link {
    display: inline-block;
    padding: 15px 30px;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 1.1em;
    font-weight: bold;
}

.botao-azul {
    background-color: #007bff;
}

.botao-verde {
    background-color: #28a745;
}

.btn-saiba {
    display: inline-block;
    background-color: #007bff;
    color: #ffffff;
    padding: 14px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s;
}

.btn-saiba:hover {
    background-color: #002b59;
}

/* =========================================================
   GALERIA
   ========================================================= */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-auto-rows: 200px;
    gap: 10px;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    border-radius: 5px;
}

/* =========================================================
   MODAL
   ========================================================= */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

.close {
    color: #fff;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.prev,
.next {
    color: #fff;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    font-size: 30px;
    cursor: pointer;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* =========================================================
   VÍDEOS
   ========================================================= */

.video-container {
    width: 100%;
    max-width: 1000px;
    margin: 30px auto;
}

.video-container iframe,
.video-container video {
    width: 100%;
    max-width: 100%;
}

/* =========================================================
   CONTATO
   ========================================================= */

.nome-contato {
    display: inline-block;
    margin-right: 10px;
}

/* =========================================================
   RODAPÉ
   ========================================================= */

footer {
    background-color: #f7f7f7;
    color: #4d243f;
    padding: 20px;
    text-align: left;
    width: 100%;
}

footer .container {
    padding-top: 0;
    padding-bottom: 0;
}

footer p {
    margin: 0;
    font-size: 1em;
}

/* =========================================================
   RESPONSIVIDADE
   ========================================================= */

@media only screen and (max-width: 600px) {

    .container {
        width: 95%;
        padding: 0;
    }

    main.container {
        margin-bottom: 40px;
    }

    header .container {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .logo {
        font-size: 28px;
    }

    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 1.8em;
    }

    p {
        font-size: 1.05em;
    }

    #searchInput {
        padding: 15px;
        font-size: 1em;
    }

    #itemsList li {
        padding: 18px;
    }

    #itemsList li strong {
        font-size: 1.2em;
    }

    #itemsList li p {
        font-size: 1em;
    }

    .btn-saiba {
        padding: 12px 18px;
        font-size: 0.95em;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }

    .modal-content {
        max-width: 95%;
        max-height: 80%;
    }

    .prev,
    .next {
        font-size: 24px;
        padding: 10px;
    }
}

@media only screen and (min-width: 601px) {

    .container {
        max-width: 1300px;
    }
}

#itemsList li strong a {
    color: #4d243f;
    text-decoration: none;
    transition: color 0.3s;
}

#itemsList li strong a:hover {
    color: #a8518a;
    text-decoration: underline;
}

/* =========================================================
   REDES SOCIAIS
   ========================================================= */

.redes-sociais {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 15px;
}

.redes-sociais a {
    color: #4d243f;
    text-decoration: none;
    font-size: 3em;
    font-weight: bold;
    transition: color 0.3s;
}

.redes-sociais a:hover {
    color: #a8518a;
}