/*
Theme Name: Site FEMA
Theme URI: http://www.femasantarosa.com.br
Author: Vitor
Author URI: http://www.femasantarosa.com.br
Description: Um tema personalizado para FEMA - Setor de TI
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: Fundação Educacional Machado de Assis
Tags: one-column, custom-colors, custom-menu
*/

html {
    scroll-behavior: smooth;
}

/* Modal base */
.modal-body {
    max-height: 75vh;
    overflow-y: auto;
    padding-right: 10px;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #7011ce;
    border-radius: 10px;
}

.modal-animate .modal-dialog {
    transform: scale(0.85);
    transition: all .3s ease-in-out;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

/* Cards de ações */
.card-acoes {
    border: none;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.card-acoes:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7011ce, #9b4dff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box i {
    color: #fff;
    font-size: 28px;
}

.btn-roxo {
    background-color: #7011ce;
    color: #fff;
    border-radius: 25px;
    padding: 8px 20px;
    border: none;
    transition: 0.3s;
}

.btn-roxo:hover {
    background-color: #5a0ea8;
    transform: scale(1.05);
}

.centralizar-texto {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    text-align: center;
}

.video-grande {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.video-grande iframe {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    border: none;
}

.carousel-item img {
    object-fit: cover;
    max-height: 590px;
}

.h4estilo {
    font-family: 'Bungee', cursive;
    text-align: center;
    color: #fe330a;
}

.h2estilo {
    font-family: 'Bungee', cursive;
    text-align: center;
    color: rgb(19,54,94);
}

/* Menu Principal */
.menu-area {
    background: var(--wpdevs-gray2);
}

.main-menu {
    height: 55px;
    display: flex;
    justify-content: center;
}

.main-menu ul {
    margin: 0;
    padding-left: 0;
}

.main-menu ul li {
    display: inline-block;
    line-height: 55px;
    position: relative;
}

.main-menu ul li.current_page_item > a {
    font-weight: bold;
}

.main-menu ul li a {
    color: #000000;
    padding: 0 30px;
    text-decoration: none;
    display: block;
}

.main-menu ul li a:hover,
.main-menu ul li a:active {
    color: var(--wpdevs-gray1);
    transition: .5s all;
}

.main-menu ul li a:focus + ul {
    display: block;
}

.main-menu li.menu-item-has-children::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: calc(50% - 6px);
    width: 0px;
    height: 0px;
    border-top: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #000000;
    border-left: 6px solid transparent;
}

.main-menu ul.sub-menu {
    position: absolute;
    padding-left: 0;
    background-color: #000000;
    z-index: 1;
    text-align: left;
    display: none;
}

.main-menu ul .menu-item-has-children:hover>ul,
.main-menu ul .menu-item-has-children:focus+ul {
    display: block;
}

.main-menu ul.sub-menu li {
    width: max-content;
}

.main-menu ul.sub-menu a {
    color: #FFFFFF;
}

.menu-icon,
.check-button {
    cursor: pointer;
    display: none;
}

.menu-icon .bar1, 
.menu-icon .bar2, 
.menu-icon .bar3 {
    width: 28px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.4s;
}

@media (max-width: 767px) {
    .menu-icon,
    .check-button {
        display: block;
    }
    .check-button {
        border: none;
        background: transparent;
        height: 55px;
    }
    .main-menu ul {
        position: absolute;
        width: 100%;
        background: #000000;
        left: -999px;
        text-align: left;
        transition: all cubic-bezier(.79,.14,.15,.86) .5s;
        padding: 0;
        margin: 0;
        z-index: 1;
    }
    .main-menu ul:not(.sub-menu) {
        margin-top: 55px;
    }
    .main-menu ul li {
        display: block;
        margin: 15px 0;
        line-height: 30px;
    }
    .main-menu ul li a {
        color: #FFFFFF;
    }
    .main-menu ul.sub-menu {
        position: relative;
        top: 0;
        margin-left: 30px;
        display: block;
        width: auto;
    }
    .main-menu ul.sub-menu a {
        color: var(--wpdevs-gray1);
    }
    .show-dropdown {
        left: 0 !important;
    }
    .animate-button .bar1 {
        -webkit-transform: rotate(-45deg) translate(-4px, 4px);
        transform: rotate(-45deg) translate(-4px, 4px);
    }
    .animate-button .bar2 {
        opacity: 0;
    }
    .animate-button .bar3 {
        -webkit-transform: rotate(45deg) translate(-7px, -7px);
        transform: rotate(45deg) translate(-7px, -7px);
    }
}

/* Posts */
.text-laranja {
    color: #fe330a;
    font-weight: bold;
}

.text-tituloblog {
    color: rgb(19,54,94);
    font-weight: bold;
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
    background: linear-gradient(180deg, #ffffff, #f1f1f1);
    padding: 1px;
}

/* Botão Mais */
.btn-outline-primary.btn-more {
    color: #7011ce !important;
    border-color: #7011ce !important;
    background-color: transparent !important;
}

.btn-outline-primary.btn-more:hover {
    color: #ffffff !important;
    background-color: #7011ce !important;
    border-color: #7011ce !important;
}

.btn-outline-primary.btn-more:focus,
.btn-outline-primary.btn-more:active {
    color: #ffffff !important;
    background-color: #7011ce !important;
    border-color: #7011ce !important;
    box-shadow: 0 0 0 0.25rem rgba(112, 17, 206, 0.5) !important;
}

.btn-outline-primary.btn-more:active {
    background-color: #5a0ea8 !important;
    border-color: #5a0ea8 !important;
}

.btn-more {
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 20px;
}

/* Paginação */
ul.page-numbers {
    list-style: none;
    display: flex;
    gap: 8px;
    padding: 0;
}

ul.page-numbers li a,
ul.page-numbers li span {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
}

ul.page-numbers li .current {
    background-color: #7011ce;
    color: #fff;
}

/* Utilitários */
.no-margin-sides {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

.custom-spacing {
    margin-top: 30px;
    margin-bottom: 40px;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Rodapé */
footer a:hover {
    text-decoration: underline;
}

.custom-footer {
    background-color: #7011ce;
}

.card-custom {
    border: 2px solid #503459 !important;
    border-radius: 6px;
}

.btn-custom {
    background-color: #503459 !important;
    color: white !important;
    padding: 10px 20px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    display: inline-block;
}

.btn-custom:hover {
    background-color: #3f2a45 !important;
}

.text-custom {
    color: #fec550;
}

.text-custom1 {
    color: #d4b8f0;
}

/* Fundo carreiras */
.fundo-carreiras {
    background: linear-gradient(120deg, #fdf7ef, #fbf1e6, #fdf7ef);
    background-size: 200% 200%;
    animation: fundoGradiente 2s ease-in-out infinite;
}

@keyframes fundoGradiente {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Cards carreiras */
.card-img-top-carreiras {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin: 15px auto 0 auto;
    display: block;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card_carreiras:hover .card-img-top-carreiras {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.card_carreiras {
    border: none !important;
    border-radius: 20px;
    padding: 15px;
    margin: 0 auto;
    background: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card_carreiras:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-body-carreiras {
    text-align: center;
}

.h2carreiras {
    color: #fe6306;
}

/* =============================================
   ESTILOS DO MODAL DE POSTS (VERSÃO LIMPA)
   ============================================= */

/* Wrapper principal com barra de rolagem */
.post-modal-wrapper {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
}

.post-modal-wrapper::-webkit-scrollbar {
    width: 8px;
}

.post-modal-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.post-modal-wrapper::-webkit-scrollbar-thumb {
    background: #7011ce;
    border-radius: 10px;
}

.post-modal-wrapper::-webkit-scrollbar-thumb:hover {
    background: #5a0ea8;
}

/* Título do modal */
.modal-post-title {
    color: rgb(19, 54, 94);
    border-left: 4px solid #fe330a;
    padding-left: 15px;
    position: sticky;
    top: 0;
    background: white;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
    z-index: 10;
    font-family: 'Bungee', cursive;
    font-size: 1.25rem;
}

/* Container da imagem destacada */
.post-thumbnail-modal {
    margin-bottom: 20px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 10px;
}

/* Imagem destacada - SEM CORTE */
.post-thumbnail-modal img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    max-height: 500px !important;
    object-fit: contain !important;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Conteúdo do post */
.modal-post-content {
    line-height: 1.6;
    color: #333;
}

.modal-post-content img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.modal-post-content p {
    margin-bottom: 1rem;
}

.modal-post-content h1,
.modal-post-content h2,
.modal-post-content h3,
.modal-post-content h4,
.modal-post-content h5,
.modal-post-content h6 {
    color: rgb(19, 54, 94);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.modal-post-content ul,
.modal-post-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

/* Carrossel dentro do modal */
.modal-post-wrapper .carousel {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.modal-post-wrapper .carousel-item img {
    max-height: 400px;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
}

.modal-post-wrapper .carousel-control-prev-icon,
.modal-post-wrapper .carousel-control-next-icon {
    background-color: #7011ce;
    border-radius: 50%;
    padding: 20px;
    background-size: 60% 60%;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.modal-post-wrapper .carousel-control-prev-icon:hover,
.modal-post-wrapper .carousel-control-next-icon:hover {
    background-color: #5a0ea8;
    opacity: 1;
    transform: scale(1.1);
}

.modal-post-wrapper .carousel-indicators button {
    background-color: #7011ce;
}

/* Responsivo */
@media (max-width: 768px) {
    .post-thumbnail-modal img {
        max-height: 300px !important;
    }
    
    .post-modal-wrapper {
        max-height: 80vh;
        padding-right: 5px;
    }
    
    .modal-post-title {
        font-size: 1rem;
        position: relative;
    }
    
    .modal-post-wrapper .carousel-item img {
        max-height: 250px;
    }
    
    .modal-post-wrapper .carousel-control-prev-icon,
    .modal-post-wrapper .carousel-control-next-icon {
        padding: 15px;
        background-size: 50% 50%;
    }
}