@font-face {
    font-family: 'Chalkduster';
    src: url('Chalkduster.woff2') format('woff2'),
        url('Chalkduster.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    font-family: 'Times New Roman', Times, serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Times New Roman', Times, serif;
    overflow: auto;
    padding-top: 0;
}

.container {
    display: flex;
    min-height: 100vh;
    position: relative;
}


.sidebar {
    width: 240px;
    background-color: #9fce98;
    padding: 20px;
    height: 100vh;
    /* Altura total da tela */
    position: fixed;
    /* Fixa na tela */
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10;
    gap: 40px;
}


figure {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 40px;
}

.menu {
    margin-bottom: 300px;
}

.menu ul {
    list-style-type: none;
}

.menu ul li {
    margin-bottom: 20px;
}

.menu ul li a {
    color: #393837;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s;
    font-family: 'Chalkduster', cursive;
}

.menu ul li a:hover {
    color: #9f1461;
}

.menu ul li a .subtitle {
    font-size: 14px;
    font-weight: normal;
    display: block;
    margin-top: 2px;
}
    
@media (max-height: 667px) {
    .menu ul li a .subtitle {
        font-size: 12px;
    }

    .menu ul li a {
        font-size: 14px;
    }

    .menu ul li {
        margin-bottom: 10px;
    }
}

.content {
    margin-left: 240px;
    /* Espaço para a sidebar */
    min-height: 100vh;
    height: auto;
    width: auto;
    max-width: 1800px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    overflow: auto;

    /* A imagem de fundo já está aplicada inline no HTML */
}

.bloco {
    position: relative;
    overflow: hidden;
    display: flex;
    max-width: 100%;
    width: 33.33%;
    margin: 0px;
    padding: 0px;
    transition: all 0.3s ease;

}

/* Menu Mobile */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background-color: #9fce98;
    padding: 15px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-button {
    display: none;
    background-color: transparent;
    color: #393837;
    border: none;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Chalkduster', cursive;
    flex-shrink: 0;
    padding: 5px 10px;
}




.overlay_int {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transition: all .5s ease;
    opacity: 0;
    visibility: hidden;
}


.overlay_int .icon {
    position: absolute;
    left: 50%;
    top: 50%;
    background: #fff;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: -20px;
    margin-top: -20px;
    border-radius: 50%;
    font-size: 29px;
    text-align: center;
    color: #393837;
    transition: all .5s ease;
}

.overlay_int .text {
    position: absolute;
    bottom: -150px;
    height: 100px;
    background: #9fce98;
    width: 100%;
    padding: 7px;
    font-family: 'Times New Roman', Times, serif;
    color: #494949;
    transition: all .5s ease;
    align-items: start;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.overlay_int .text strong {
    font-family: 'Chalkduster', cursive;
    font-size: 20px;
    color: #393837;
    padding-bottom: 7px;
    display: block;
}


.bloco:hover .overlay_int {
    opacity: 1;
    visibility: visible;
}

.bloco:hover .overlay_int .icon {
    transform: scale(1.2);
}

.bloco:hover .overlay_int .text {
    bottom: 0;
}



/* Estilos do Header */
header {
    position: relative;
    top: unset;
    left: unset;
    width: 100%;
    padding: 0;
    text-align: center;
    background-color: #ce5a3b;
    height: 400px;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    z-index: unset;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0 15px;
    position: relative;
    z-index: 5;
    text-align: center;
}

.nav-link {
    color: #393837;
    font-family: 'Chalkduster', cursive;
    font-size: 20px;
    text-decoration: underline;
    padding: 8px 16px;
    transition: all 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 5;
}

.nav-link:hover {
    color: #9fce98;
}

.nav-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.header-title {
    text-align: center;
    margin-top: 120px;
    position: relative;
    z-index: 5;
}

.header-title h1 {
    color: #393837;
    font-size: 40px;
    margin-bottom: 10px;
    font-family: 'Chalkduster', cursive;
}

.header-title h2 {
    color: #393837;
    font-size: 25px;
    font-family: 'Chalkduster', cursive;
}

.img_header {
    position: absolute;
    z-index: 3;
    max-width: 350px;
}

.img1 {
    left: 2%;
    bottom: 6px;
    max-width: 350px;
}

.img2 {
    right: 8%;
    bottom: 20px;
    max-width: 150px;
}

.voltar {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #393837;
    font-family: 'Chalkduster', cursive;
    font-size: 20px;
    text-decoration: underline;
}


.contBody {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    position: relative;
}

.centrar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    max-width: 1100px;
    text-align: center;
    padding-top: 30px;
    padding-bottom: 30px;
}

.centrar h1 {
    font-family: 'Chalkduster', cursive;
    color: #393837;
    font-size: 40px;
    margin-bottom: 20px;
    text-align: center;
}

@media (max-width: 1200px) {
    .img1 {
        left: 2%;
        bottom: 6px;
        max-width: 230px;
    }

    .img2 {
        right: 8%;
        bottom: 20px;
        max-width: 80px;
    }

    header {
        height: 270px !important;
    }

    .header-title {
        margin-top: 50px !important;
    }

  
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-link {
        font-size: 16px !important;
    }

    header {
        height: 180px !important;
    }
    .header-title h1 {
        font-size: 20px !important;
    }
    .header-title h2 {
        font-size: 16px !important;
    }

    .img1 {
        left: 2%;
        bottom: 6px;
        max-width: 120px;
    }
    
    .img2 {
        right: 8%;
        bottom: 20px;
        max-width: 40px;
    }

    .background-video {
        width: 100% !important;
        height: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }

    .video-container {
        width: 100% !important;
        padding: 0 !important;
        height: 70vh !important;
        min-height: 400px;
        top: 180px !important;
        position: relative !important;
    }

    /* Ajuste do título para telas médias */
    .video-title {
        font-size: 28px;
        padding: 18px;
    }

    .footer-logos {
        margin-left: 0 !important;
        max-width: 100% !important;
    }

    .container {
        flex-direction: column;
    }

    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
    }

    .mobile-menu-button {
        display: block;
    }

    .sidebar {
        width: 100%;
        height: 100vh;
        min-height: unset;
        position: fixed;
        top: 0;
        left: -100%;
        z-index: 999;
        transition: left 0.3s ease;
        padding-top: 80px;
        /* Espaço para o header mobile */
    }

    .sidebar.active {
        left: 0;
        top: 0;
        height: 100vh;
    }

    .content {
        width: 100% !important;
        margin-left: 0 !important;
        height: 100vh;
        grid-template-columns: repeat(2, 50%);
        grid-template-rows: repeat(2, 50%);
        padding-top: 50px;
        /* Espaço para o header mobile */
        max-width: none !important;
    }

    /* No mobile, as caixas de conteúdo sempre ficam visíveis */
    .box-content {
        opacity: 1;
        transform: scale(1);
        background-color: rgba(255, 255, 255, 0.8);
        max-width: 90%;
        font-size: 14px;
    }

    .box-content h3 {
        font-size: 16px;
    }

    .grid-item {
        opacity: 1;
        /* Sempre visível no mobile */
        background-color: rgba(0, 0, 0, 0.3);
        /* Um pouco mais escuro para melhor legibilidade */
        border: 2px solid #e94f2d;
    }

    /* Não aplicamos o overlay no mobile */
    .overlay {
        display: none;
    }
}

@media (max-width: 480px) {
    .content {
        grid-template-columns: 100%;
        grid-template-rows: repeat(4, 25%);
    }

    #box1 {
        grid-row: 1;
        grid-column: 1;
    }

    #box2 {
        grid-row: 2;
        grid-column: 1;
    }

    #box3 {
        grid-row: 3;
        grid-column: 1;
    }

    #box4 {
        grid-row: 4;
        grid-column: 1;
    }

    /* Ajustes para o header mobile em telas muito pequenas */
    .mobile-header {
        padding: 10px;
        height: 100px;
    }

    .titulo-principal {
        font-size: 18px;
        margin: 0 5px;
    }

    .logo-container img {
        max-height: 60px;
    }

    .volume-text {
        font-size: 8px;
        right: 30px;
        bottom: 2px;
    }

    /* Ajuste da altura do vídeo para telas muito pequenas */
    .video-container {
        height: 60vh !important;
        min-height: 350px;
        top: 180px !important;
        position: relative !important;
    }

    /* Ajuste do título para telas pequenas */
    .video-title {
        font-size: 24px;
        padding: 15px;
    }
}

.footer-logos {
    background-color: #9fce98;
    padding: 18px 0;
    box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.04);
}

.footer-logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-logos-container img {
    max-height: 85px;
    width: auto;
    display: block;
    padding: 4px 8px;
    object-fit: contain;
}

@media (max-width: 600px) {
    .footer-logos-container {
        gap: 18px;
    }

    .footer-logos-container img {
        max-height: 40px;
    }
}

/* Ajuste para o conteúdo principal */
main {
    position: relative;
    z-index: 1;
    padding: 20px;
}



#loader1 {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 9998;
    left: 0%;
    top: 0vh;
    width: 100%;
    height: 100vh;
    opacity: 1;
    background: rgba(255, 255, 255, 0.8);
    transition: opacity 3s ease-out, top 1s ease-out !important;

}

.swal2-over-loader {
    z-index: 9999 !important;
}

#loader1.hide {
    transition: opacity 3s ease-out, top 1s ease-out !important;
    opacity: 0;
    top: -100vh;
}


.loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    background: linear-gradient(0deg, #e36817 33%, #dd9d72 100%);
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}


.loader::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
}

@keyframes rotation {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

/* Estilo para o título principal */
.titulo-principal {
    font-family: 'Chalkduster', cursive;
    font-size: 24px;
    color: #393837;
    text-align: center;
    margin-bottom: 5px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    flex: 1;
    margin: 0 10px;
}

/* Container do logo com texto sobreposto */
.logo-container {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

/* Texto do volume sobreposto ao logo */
.volume-text {
    position: absolute;
    bottom: 3px;
    right: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #393837;
    font-size: 10px;
    font-weight: bold;
    padding: 1px 3px;
    border-radius: 3px;
    text-transform: lowercase;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Container do vídeo centralizado */
.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    padding: 20px;
    position: relative;
}

/* Card do vídeo */
.video-card {
    position: relative;
    width: 100%;
    max-width: 30%;
    max-height: 40%;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

@media (max-width: 1700px) {
    .video-card {
        max-height: 30%;
    }
}

.video-card:hover {
    transform: scale(1.02);
}

/* Vídeo dentro do card */
.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Vídeo de fundo */
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    display: block;
}

/* Overlay do vídeo */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Overlay de download que pisca */
.video-overlay-download {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    z-index: 5;
    transition: opacity 0.3s ease;
}

.video-overlay-download.active {
    animation: blink 5s infinite;
}

@keyframes blink {
    0%, 33.33% {
        opacity: 0.6;
    }
    33.34%, 100% {
        opacity: 0;
    }
}

.video-card:hover .video-overlay-download {
    opacity: 0;
    animation: none;
}

.video-card:hover .video-overlay {
    opacity: 1;
    z-index: 6;
}

/* Texto do overlay de download */
.overlay-download-text {
    color: #fff;
    font-family: 'Chalkduster', cursive;
    font-size: 24px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 2000px) {
    .overlay-download-text {
        font-size: 19px;
    }
}

@media (max-width: 1300px) {
    .overlay-download-text {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .overlay-download-text {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .overlay-download-text {
        font-size: 16px;
    }
}

/* Título do vídeo */
.video-title {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Chalkduster', cursive;
    font-size: 38px;
    color: #fff;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin: 0;
    z-index: 15;
}

@media (max-width: 2000px) {
    .video-title {
        font-size: 30px;
    }
}

@media (max-width: 1300px) {
    .video-title {
        font-size: 25px;
    }
    .video-card {
        max-height: 35%;
        max-width: 40%;
    }
}

@media (max-width: 1200px) {
    .video-card {
        max-width: 50%;
        max-height: 40%;
    }
}

@media (max-width: 1000px) {
    .video-card {
        max-width: 60%;
        max-height: 45%;
    }
}

@media (max-width: 769px) {
    .video-card {
        position: relative;
        top: -20vh;
    }
}

/* Seção de perfil com imagem centralizada */
.profile-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px 0;
    width: 100%;
}

.profile-image {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Estilos para o modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Estilos específicos para o modal do vídeo */
#video-modal {
    z-index: 10001 !important;
}

#video-modal.active {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.3);
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center center;
}

.modal.active .modal-content {
    transform: translate(-50%, -50%) scale(1) !important;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background-color: #f0f0f0;
    color: #333;
    transform: scale(1.1);
}

.modal-body {
    padding: 40px 30px 30px 30px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 16px;
    line-height: 1.7;
    color: #393837;
}

.modal-body p {
    margin-bottom: 20px;
    text-align: justify;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

/* Cursor pointer para a imagem que abre o modal */
.profile-modal-trigger {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.profile-modal-trigger:hover {
    transform: scale(1.05);
}

/* Modal lateral */
.side-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.side-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.side-modal-content {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    width: 35%;
    max-height: 400px;
    overflow-y: auto;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: right center;
    transform: translateX(100%);
}

.side-modal.active .side-modal-content {
    transform: translateX(0);
}

.side-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.side-modal-close:hover {
    background-color: #f0f0f0;
    color: #333;
    transform: scale(1.1);
}

.side-modal-body {
    padding: 40px 30px 30px 30px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 16px;
    line-height: 1.7;
    color: #393837;
}

.side-modal-body p {
    margin-bottom: 20px;
    text-align: justify;
}

.side-modal-body p:last-child {
    margin-bottom: 0;
}

/* Responsividade do modal lateral */
@media (max-width: 768px) {
    .side-modal-content {
        width: 300px;
        max-height: 70vh;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) translateX(100%) !important;
    }
    
    .side-modal.active .side-modal-content {
        transform: translate(-50%, -50%) translateX(0) !important;
    }
    
    .side-modal-body {
        padding: 30px 20px 20px 20px;
        font-size: 15px;
    }
    
    .side-modal-close {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }
}

/* Responsividade do modal */
@media (max-width: 768px) {
        .volume-text {
            bottom: 40px;
            right: 80px;
        }

    .modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .modal-body {
        padding: 30px 20px 20px 20px;
        font-size: 15px;
    }

    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }
}

/* Assinatura de Vilma */
.signature {
    font-family: 'Times New Roman', Times, serif;
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 5px;
    text-align: left;
}

/* Trigger do vídeo */
.video-trigger {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #9fce98;
    padding: 20px 30px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #393837;
    font-family: inherit;
    font-size: inherit;
}

.video-trigger:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background-color: #8bc085;
}

.video-icon {
    font-size: 32px;
    color: #393837;
    font-style: normal;
}

.video-trigger-text {
    font-family: 'Chalkduster', cursive;
    font-size: 18px;
    color: #393837;
    font-weight: bold;
}

/* Ajuste do modal para vídeo */
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.3);
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center center;
}

/* Modal específico para vídeo */
#video-modal .modal-content {
    max-width: 900px;
    max-height: 90vh;
}

#video-modal.active .modal-content {
    transform: translate(-50%, -50%) scale(1) !important;
}

/* Estilos específicos para o modal de imagens */
#imageModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

#imageModal .modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    margin-top: 5vh;
}

.modal-body .video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    height: auto;
}

/* Estilos para os títulos dos vídeos */
.video-item {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-item .video-title {
    font-family: 'Chalkduster', cursive;
    font-size: 20px;
    color: #393837;
    text-align: center;
    font-weight: bold;
    line-height: 1.3;
}

.video-item video {
    display: block;
    margin: 0 auto;
}

/* Link do título do cosmograma */
.cosmograma-modal-trigger {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cosmograma-modal-trigger:hover {
    color: #9f1461;
}

/* Modal específico para o cosmograma */
#cosmograma-modal .modal-content {
    max-width: 800px;
    max-height: 90vh;
}

#cosmograma-modal .modal-body {
    padding: 20px;
    text-align: center;
}

#cosmograma-modal .modal-body img {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Estilos para a página institucional */
.projeto-section
.equipe-section {
    margin-bottom: 50px;
    background-color: #9fce98;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.equipe-section {
    margin-top: 100px;
}

.section-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 32px;
    color: #393837;
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
    border-bottom: 3px solid #000000;
    padding-bottom: 15px;
}

.subsection-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 24px;
    color: #393837;
    margin: 30px 0 20px 0;
    font-weight: bold;
}

.projeto-text {
    font-family: 'Times New Roman', Times, serif;
    font-size: 20px;
    line-height: 1.8;
    color: #393837;
    margin-bottom: 20px;
    text-align: justify;
}

.objetivos-list {
    font-family: 'Times New Roman', Times, serif;
    font-size: 20px;
    line-height: 1.8;
    color: #393837;
    margin: 20px 0;
    padding-left: 30px;
}

.objetivos-list li {
    margin-bottom: 15px;
    text-align: justify;
}

.equipe-grid {
    display: grid;
    grid-template-columns: 1fr; /* força uma única coluna */
    gap: 30px;
    margin-top: 30px;
}

.equipe-categoria {
    border-radius: 10px;
    padding: 25px;
    border-left: 4px solid #9fce98;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.equipe-categoria:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.categoria-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 20px;
    color: #393837;
    margin-bottom: 15px;
    font-weight: bold;
    border-bottom: 2px solid #000000;
    padding-bottom: 8px;
}

.equipe-list {
    font-family: 'Times New Roman', Times, serif;
    font-size: 15px;
    line-height: 1.6;
    color: #393837;
    list-style: none;
    padding: 0;
    margin: 0;
}

.equipe-list li {
    padding: 8px 0;
    border-bottom: 1px solid #000000;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.equipe-list li:last-child {
    border-bottom: none;
}

.equipe-list li:hover {
    color: #000000;
    padding-left: 5px;
}

/* Fotos dos participantes na seção institucional */
.equipe-foto {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #9fce98;
}

/* Removido placeholder circular ::before dos itens de equipe */

/* Responsividade para página institucional */
@media (max-width: 768px) {

    .projeto-section,
    .equipe-section {
        padding: 25px;
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 28px;
    }

    .subsection-title {
        font-size: 22px;
    }

    .projeto-text,
    .objetivos-list {
        font-size: 15px;
    }

    .equipe-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .equipe-categoria {
        padding: 20px;
    }

    .categoria-title {
        font-size: 18px;
    }

    .equipe-list {
        font-size: 14px;
    }
}

/* Aumentos específicos para a seção de equipe */
.equipe-section {
    padding: 60px;
}

.equipe-section .section-title {
    font-size: 40px;
}

.equipe-section .equipe-grid {
    gap: 40px;
}

.equipe-section .equipe-categoria {
    padding: 32px;
}

.equipe-section .categoria-title {
    font-size: 24px;
}

.equipe-section .equipe-list {
    font-size: 18px;
}

.equipe-section .equipe-list li {
    padding: 10px 0;
    gap: 14px;
}

.equipe-section .equipe-foto {
    width: 64px;
    height: 64px;
}

@media (max-width: 768px) {
    .equipe-section {
        padding: 40px 25px;
    }
    .equipe-section .section-title {
        font-size: 32px;
    }
    .equipe-section .categoria-title {
        font-size: 22px;
    }
    .equipe-section .equipe-list {
        font-size: 17px;
    }
    .equipe-section .equipe-foto {
        width: 56px;
        height: 56px;
    }
}

/* Estilos para o acervo de livros */
.livros-acervo {
    max-width: 1400px;
    margin: 40px auto;
    padding: 20px 50px 40px 50px;
    background: #9fce98;
    border-radius: 0;
    box-shadow: none;
}

.livros-acervo h2 {
    color: #ce5a3b;
    font-size: 2em;
    text-align: center;
    margin-bottom: 65px;
    font-family: Chalkduster;
    font-weight: bold;
}

.livros-lista {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.livro-linha {
    width: 60%;
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.livro-linha:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.livro-container {
    display: flex;
    gap: 30px;
    align-items: center; /* centraliza verticalmente a capa em relação ao texto */
    min-height: 350px;
}

.livro-capa-link {
    flex-shrink: 0;
    display: flex; /* permite centralizar a imagem dentro do link */
    justify-content: center;
    transition: transform 0.3s ease;
}

.livro-capa-link:hover {
    transform: scale(1.05);
}

.livro-capa {
    width: 450px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.livro-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 300px;
}

.livro-titulo {
    font-family: 'Times New Roman', Times, serif;
    font-size: 24px;
    color: #393837;
    font-weight: bold;
    margin: 0;
    line-height: 1.3;
}

.livro-sinopse {
    font-family: 'Times New Roman', Times, serif;
    font-size: 16px;
    line-height: 1.6;
    color: #393837;
    text-align: justify;
    margin: 0;
    word-spacing: normal;
    letter-spacing: normal;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin-top: auto;
    margin-bottom: auto;
}

.livro-links {
    margin-top: auto;
    padding-top: 15px;
}

.livro-links a {
    display: inline-block;
    background-color: #9fce98;
    color: #393837;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #9fce98;
}

.livro-links a:hover {
    background-color: #8bc085;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.divisoria-livros {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #9fce98, transparent);
    margin: 40px 0;
}

/* Responsividade para acervo */
@media (max-width: 768px) {
    .livros-acervo {
        padding: 15px 20px 30px 20px;
        margin: 20px auto;
    }

    .livros-acervo h2 {
        font-size: 1.5em;
        margin-bottom: 40px;
    }

    .livro-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        min-height: auto;
    }

    .livro-info {
        min-height: auto;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .livro-capa {
        width: 150px;
        height: 210px;
        margin: 0 auto;
    }

    .livro-titulo {
        font-size: 20px;
    }

    .livro-sinopse {
        font-size: 15px;
        line-height: 1.5;
        word-spacing: normal;
        letter-spacing: normal;
    }

    .livro-linha {
        padding: 20px;
        margin-bottom: 30px;
    }
}

/*Botão Voltar ao topo */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    border: none;
    background: #ce5a3b;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    pointer-events: none;
    visibility: hidden;
    transition: opacity .4s ease, transform .4s ease, visibility 0s linear .4s;
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
    transition: opacity .4s ease, transform .4s ease, visibility 0s;
}
