/* ========================================
   PARÓQUIA SANTO ANTÔNIO - STYLESHEET
   ======================================== */

/* ========================================
   1. RESET E ESTILOS GERAIS
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

img {
    max-width: 100%;
    height: auto;
}

.clear {
    clear: both;
}

/* ========================================
   2. UTILITÁRIOS
   ======================================== */

img[id^="ResponsiveImage"] {
    margin-top: 20px;
    margin-bottom: 20px;
}

.no-padding {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.margin-bottom-10 {
    margin-bottom: 10px;
    margin-top: 15px;
}

.margin-top-100 {
    margin-top: 100px;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.width-55 {
    width: 55%;
}

.width-70 {
    width: 70%;
}

.width-316 {
    width: 316px;
}

.width-700 {
    width: 700px;
}

.height-45 {
    height: 45px;
}

.height-47 {
    height: 47px;
}

.height-89 {
    height: 89px;
}

.font-size-8 {
    font-size: 8pt;
}

.font-size-14 {
    font-size: 14pt;
}

.font-size-18 {
    font-size: 18pt;
}

.padding-left-20 {
    padding-left: 20px;
}

.list-square {
    list-style-type: square;
}

/* ========================================
   3. ÍCONES SOCIAIS
   ======================================== */

.icon-social {
    height: 30px;
    width: 30px;
}

/* ========================================
   4. MENU LATERAL
   ======================================== */

.container-menu-lateral {
    padding: 0;
}

.fonte-menu-lateral {
    font-size: 22px;
    font-weight: bold;
    color: #000;
    background-color: #9B8B7E;
    padding: 8px 15px;
    margin: 0;
    margin-bottom: 0;
    font-family: 'Old English Text MT', 'Blackletter', serif;
    border-bottom: 2px solid #6B5D52;
}

.container-menu-lateral ul {
    background-color: #F0E5D8;
    padding: 10px 15px;
    margin: 0;
    margin-bottom: 0;
}

.menu-lateral {
    list-style: none;
    margin-bottom: 8px;
    border-bottom: 1px dotted #999;
    padding-bottom: 5px;
}

.menu-lateral a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.menu-lateral a:hover {
    color: #8B4513;
    text-decoration: underline;
}

.menu-lateral.active-menu a {
    color: #8B4513;
    font-weight: bold;
}

.container_body {
    background-color: #C4B5A0;
    padding: 10px;
    border-radius: 0;
}

/* ========================================
   5. NAVEGAÇÃO PRINCIPAL
   ======================================== */

.navbar {
    margin-bottom: 20px;
}

.navbar-default {
    background-color: #8B4513;
    border: none;
}

.navbar-default .navbar-nav > li > a {
    color: #fff;
}

.navbar-default .navbar-nav > li > a:hover {
    color: #f0f0f0;
}

.navbar-default .navbar-nav > .active > a {
    color: #fff;
    background-color: #654321;
}

.menu {
    padding: 0;
}

.nav-tabs {
    border-bottom: 0;
}

/* ========================================
   6. MODAIS MOBILE
   ======================================== */

.btn-primary {
    background-color: #8B4513 !important;
    border-color: #8B4513 !important;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.btn-primary:hover {
    background-color: #654321 !important;
    border-color: #654321 !important;
}

#blackwall-menu-principal,
#blackwall-a-paroquia,
#blackwall-orientacoes,
#blackwall-espaco-cristao {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

#modal-menu-principal,
#modal-a-paroquia,
#modal-orientacoes,
#modal-espaco-cristao {
    position: relative;
    background-color: #fff;
    margin: 50px auto;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 5px;
}

.modal-header {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
    position: relative;
}

.modal-header h1 {
    font-size: 24px;
    color: #333;
}

.modal-header .hider {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 24px;
    cursor: pointer;
    text-decoration: none;
    color: #333;
}

.modal-body ul {
    list-style: none;
    padding: 0;
}

.modal-body .menu-lateral {
    margin-bottom: 10px;
}

.modal-body .menu-lateral a {
    color: #333;
    text-decoration: none;
}

.modal-body .menu-lateral a:hover {
    color: #8B4513;
    text-decoration: underline;
}

/* ========================================
   7. CARROSSEL
   ======================================== */

#wowslider-container-esquerdo,
#wowslider-container-direito {
    position: relative;
    overflow: hidden;
    background-color: #fff;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 5px;
}

.ws_images {
    position: relative;
}

.ws_images ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ws_images li {
    display: none;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.ws_images li:first-child {
    display: block;
    opacity: 1;
}

.ws_images img {
    width: 100%;
    height: auto;
}

.ws_shadow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.3));
}

/* ========================================
   8. CONTEÚDO
   ======================================== */

.body-content {
    min-height: 400px;
    padding: 20px 0;
}

.col-md-8 [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.col-md-8 {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.page-header {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.page-header h1 {
    font-size: 32px;
    color: #8B4513;
}

.page-header h2 {
    font-size: 24px;
    color: #8B4513;
}

/* ========================================
   9. TABELAS
   ======================================== */

.tab-content p {
    margin-top: 30px;
}

.table-bordered {
    border: 1px solid #ddd;
    border-collapse: collapse;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #ddd;
    padding: 8px;
}

table {
    max-width: 100%;
    width: 100% !important;
    table-layout: fixed;
    font-size: 12px;
}

table td {
    word-wrap: break-word;
    padding: 5px;
    overflow: hidden;
}

@media (max-width: 768px) {
    table {
        font-size: 10px;
    }
    table td {
        padding: 3px;
    }
}

/* ========================================
   10. FOOTER
   ======================================== */

footer {
    margin-top: 40px;
    padding: 20px 0;
    background-color: #f5f5f5;
}

footer p {
    margin: 5px 0;
}

/* ========================================
   11. BOTÃO VOLTAR AO TOPO
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: url('../images/setas.png') no-repeat center center;
    background-size: contain;
    width: 40px;
    height: 40px;
    text-decoration: none;
    display: none;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.back-to-top.show {
    display: block;
    opacity: 0.7;
}

.back-to-top:hover {
    opacity: 1;
}

/* ========================================
   12. GALERIA DE FOTOS
   ======================================== */

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.links a {
    flex: 0 0 calc(25% - 10px);
    display: block;
}

.links img {
    width: 100%;
    height: auto;
    border: 2px solid #ddd;
    border-radius: 5px;
    transition: transform 0.3s;
}

.links img:hover {
    transform: scale(1.05);
    border-color: #8B4513;
}

/* ========================================
   13. BLUEIMP GALLERY
   ======================================== */

.blueimp-gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: none;
}

.blueimp-gallery .slides {
    position: relative;
    height: 100%;
}

.blueimp-gallery .title {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 20px;
}

.blueimp-gallery .prev,
.blueimp-gallery .next,
.blueimp-gallery .close,
.blueimp-gallery .play-pause {
    position: absolute;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    text-decoration: none;
    z-index: 100000;
}

.blueimp-gallery .prev {
    left: 20px;
    top: 50%;
}

.blueimp-gallery .next {
    right: 20px;
    top: 50%;
}

.blueimp-gallery .close {
    right: 20px;
    top: 20px;
}

.blueimp-gallery .play-pause {
    left: 20px;
    bottom: 20px;
}

.blueimp-gallery .indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    list-style: none;
    padding: 0;
    display: flex;
    gap: 10px;
}

.blueimp-gallery .indicator li {
    width: 10px;
    height: 10px;
    background-color: #fff;
    border-radius: 50%;
    cursor: pointer;
}

/* ========================================
   14. NOTÍCIAS
   ======================================== */

#noticias-container .noticia-card {
    margin-bottom: 50px;
}

#noticias-container .noticia-card .row {
    margin-left: 0;
    margin-right: 0;
}

#noticias-container .noticia-imagem {
    padding-right: 30px !important;
}

#noticias-container .noticia-conteudo {
    padding-left: 30px !important;
}

#noticias-container img {
    transition: transform 0.3s;
}

#noticias-container img:hover {
    transform: scale(1.05);
}

@media (max-width: 767px) {
    #noticias-container .noticia-imagem {
        padding-right: 15px !important;
        margin-bottom: 20px;
    }
    
    #noticias-container .noticia-conteudo {
        padding-left: 15px !important;
    }
}

/* ========================================
   15. RESPONSIVIDADE
   ======================================== */

@media (max-width: 768px) {
    .links a {
        flex: 0 0 calc(50% - 10px);
    }
    
    .width-55,
    .width-70 {
        width: 80%;
    }
    
    .font-size-14 {
        font-size: 12pt;
    }
    
    .font-size-18 {
        font-size: 16pt;
    }
}

@media (max-width: 480px) {
    .links a {
        flex: 0 0 100%;
    }
}
