/* ========================================
   MINHA HISTÓRIA - ESTILO COMPLETO
   ======================================== */


.page-id-2488 {
    overflow: auto !important;
}

/* Container principal */
.mh-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #444;
}
.page-template-page-minha-historia {
    overflow-x: hidden;
}

.page-template-page-minha-historia .mh-container {
    width: 100%;
}

.ast-container {
    max-width: 1100px !important;
    width: 100%;
}

/* Título */
.mh-container h1 {
    text-align: center;
    font-size: 1.7rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1;
}

/* História */
.mh-historia-content {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
}

.foto-instituicao img {
    width: 100%;
    max-height: 400px;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    object-position: center;
}
.loading-message {
    font-size: 28px !important;
    display: flex;
    color:#000 !important;
    font-family: 'Poppins';
    flex-direction: column;
    padding: 30px 0;
    font-weight: 600;
}
.fa-spin {
    animation: fa-spin 1s infinite linear;
    color: #000000;
}

.texto-minha-historia p {
    font-size: 18px;
    margin-top: 20px;
    font-family: 'Poppins';
    text-align: justify;
    background: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
}

.texto-minha-historia h3 {
    font-size: 20px;
    color: #000;
    font-family: 'Poppins';
}


/* Hexágonos */
.hexagonos {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin: 15px 0 0;
}
.hexagonos img {
    width: auto;
    height: 90px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.hexagonos img:hover {
    transform: scale(1.1);
}

.tab button {
    min-width: 105px;
}

.tab {
    overflow: scroll;
}

.form-input:first-child {
    margin-top: 0;
}
.form-input {
    margin-top: 10px;
}


/* =======================
ALERTS
================================ */

#prayer-status {
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

#prayer-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#prayer-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#prayer-status.sending {
    background: #fff3cd;
    color: #856404;
}

.error-msg {
    color: #dc3545;
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

.required {
    color: #dc3545;
}

/* ========================================
   TABS
   ======================================== */
.tab {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.tab button {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.tab button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #f69f24;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.tab button:hover {
    color: #f69f24;
    background: #fdf8f0;
}
.tab button.active {
    color: #f69f24;
    background: #fff8f0;
}
.tab button.active::after {
    width: 70%;
}

/* Conteúdo das tabs */
.tabcontent {
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.4s ease;
    display: none;
}
.tabcontent[style*="block"] {
    display: block !important;
}

.tab button {
    padding: 10px;
}

.tab button img {
    width: 86px;
}



@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Títulos das seções */
.tabcontent h3 {
    margin-top: 0;
    color: #f69f24;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    font-family: 'Poppins';
}

/* ========================================
   PEDIDO DE ORAÇÃO
   ======================================== */
.content-tab form {
    display: grid;
    gap: 16px;
}
.form-input {
    display: flex;
    flex-direction: column;
}
.form-input label {
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}
.form-input input,
.form-input textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s;
}
.form-input input:focus,
.form-input textarea:focus {
    outline: none;
    border-color: #f69f24;
}
.content-button {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}
.content-button button {
    background: #f69f24;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
.content-button button:hover {
    background: #e08a1f;
}



/* ========================================
   AVISOS PAROQUIAIS & EVENTOS
   ======================================== */
.announcements-timeline,
.events-timeline {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 20px;
}
.announcement-item,
.event-item {
    display: flex;
    gap: 5px;
    padding: 18px;
    background: #fdf8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(246, 159, 36, 0.08);
}
.announcement-item:hover,
.event-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(246, 159, 36, 0.15);
}

/* Datas */
.announcement-date,
.event-date {
    min-width: 70px;
    text-align: center;
    font-weight: bold;
    color: #f69f24;
}
.announcement-date {
    font-size: 1.1rem;
    padding-top: 4px;
}
.event-date .day {
    display: block;
    font-size: 2rem;
    line-height: 1;
}
.event-date .month {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* Conteúdo */
.announcement-content,
.event-content {
    flex: 1;
}
.announcement-content h4,
.event-content h4 {
    text-align: left;
    margin: 0 0 8px;
    color: #333;
    font-size: 1.15rem;
    font-weight: 600;
}
.announcement-content p,
.event-content p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Botão Carregar Mais */
#load-more-announcements,
#load-more-events {
    display: block;
    margin: 30px auto 10px;
    padding: 12px 28px;
    background: #f69f24;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 8px rgba(246, 159, 36, 0.2);
}
#load-more-announcements:hover,
#load-more-events:hover {
    background: #e08a1f;
    transform: translateY(-1px);
}
#load-more-announcements:disabled,
#load-more-events:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   CALENDÁRIO MINIMIZADO
   ======================================== */
.custom-calendar {
    font-family: Arial, sans-serif;
    max-width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.calendar-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; background: #faab3c; color: white; font-weight: bold;
}

.calendar-header #month-title {
    color: #fff;
    font-size: 14px;
    font-family: 'Poppins';
    margin: 0;
    text-transform: uppercase;
}

.calendar-header button {
    background: rgba(255,255,255,0.2); color: white; border: none;
    padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 14px;
}

.calendar-header button:hover { background: rgba(255,255,255,0.3); }

.calendar-scroll {
    overflow-x: auto; 
    overflow-y: hidden; 
    white-space: nowrap;
    padding: 12px 5px; 
    background: #f9f9f9;
    cursor: grab;
    user-select: none;
}

.calendar-days { display: inline-flex; gap: 2px; min-width: max-content; }

.day-column {
    width: 50px;
    min-width: 70px;
    height: 100px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0;
    text-align: center;
    font-size: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 5px 2px;
}

.day-header { font-family: 'Poppins'; font-weight: bold; color: #555; margin-bottom: 4px; }
.day-number { font-family: 'Poppins'; font-size: 16px; font-weight: bold; color: #ffb300; }
.day-events { font-family: 'Poppins'; margin-top: 6px; display: flex; flex-direction: column; gap: 3px; }

.event {
    background: #e3f2fd; color: #1976d2; padding: 3px 6px; border-radius: 4px;
    font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    border-left: 3px solid #1976d2; cursor: pointer;
}

.event:hover { background: #bbdefb; }
.today { background: #fff8e1 !important; border: 2px solid #ffb300 !important; }

.calendar-scroll::-webkit-scrollbar { height: 10px; }
.calendar-scroll::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 5px; }
.calendar-scroll::-webkit-scrollbar-thumb { background: #999; border-radius: 5px; }
.calendar-scroll::-webkit-scrollbar-thumb:hover { background: #666; }

/* ========================================
   MODAIS
   ======================================== */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s;
}
.modal > div {
    background: white;
    padding: 25px;
    border-radius: 14px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.title-mh-historia {
    text-align: left !important;
    margin: 0 0 30px;
    padding: 0;
    font-size: 33px;
    font-family: 'Poppins';
    font-weight: 900;
}

.tablinks {
    font-family: 'Poppins';
    font-size: 15px;
    padding: 20px 0;
}

.servicos-paroquiais {
    margin-top: 15px;
    padding-top: 15px;
    border-top: dotted 3px #ccc;
}


.post-details .info-box:last-child {
    margin-bottom: 28px !important;
}


.post-details {
    padding: 5px 25px;
}

.content-modal-choose {
    padding: 15px;
}

.modal-header {
    padding: 20px 20px;
    background: #eee;
    border-bottom: solid 1px #ccc;
}

.modal-header h3 {
    font-family: 'Poppins';
    font-size: 20px;
    color: #222;
}

.inner-buttons-modal {
    margin-top: 15px;
    display: flex;
    gap: .5rem;
    justify-content: end;
}

.inner-buttons-modal button {
    padding: 5px;
    background: #ccc;
}

.inner-buttons-modal button:first-child {
    background: #f69f24;
}

.inner-buttons-modal button:last-child {
    background: #222;
}


.hexagonos.contato img {
    width: auto;
}

/* ========================================
   RESPONSIVO
   ======================================== */
@media (max-width: 600px) {
    .mh-container {
        margin: 20px auto;
        padding: 20px;
    }
    .tab {
        flex-direction: unset;
    }
    .tab button {
        padding: 10px 0;
        text-align: center;
        width: max-content;
        font-size: 13px;
        font-weight: 300;
    }
    .announcement-item,
    .event-item {
        flex-direction: row;
        text-align: justify;
    }
    .announcement-date,
    .event-date {
        margin-bottom: 10px;
    }
    .hexagonos img {
        width: 90px;
        height: 90px;
    }

    .hexagonos.servicos {
        display: flex;
        gap: 0.3rem;
        justify-content: center;
        
    }
}




/* Calendário Compacto e Bonito */
#calendar-container {
    position: relative;
    height: 300px; /* Altura fixa para compacto */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.calendar-view {
    height: 100%;
}

/* Modo Grid (Calendário Original Compacto) */
#calendar-grid .fc {
    font-size: 0.8rem; /* Fonte menor */
}

#calendar-grid .fc-daygrid-day-frame {
    padding: 2px; /* Células menores */
    min-height: 60px; /* Altura compacta */
}

#calendar-grid .fc-daygrid-day-number {
    font-size: 0.7rem; /* Dias menores */
    font-weight: bold;
    color: #f69f24;
}

#calendar-grid .fc-event {
    font-size: 0.65rem; /* Eventos compactos */
    padding: 1px 3px;
    border-radius: 4px;
    background: linear-gradient(135deg, #f69f24, #ffb957); /* Gradiente bonito */
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#calendar-grid .fc-day-today {
    background: #fff8e1 !important; /* Hoje destacado */
    border: 2px solid #f69f24 !important;
    border-radius: 6px;
}

#calendar-grid .fc-header-toolbar {
    background: #f8f9fa; /* Cabeçalho bonito */
    border-radius: 8px 8px 0 0;
    padding: 8px;
}

#calendar-grid .fc-button {
    background: #f69f24 !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 4px 8px !important;
    font-size: 0.75rem !important;
}

#calendar-grid .fc-button:hover {
    background: #e08a1f !important;
}

/* Modo Lista (Scroll Horizontal) */
#calendar-list .fc {
    font-size: 0.85rem;
}

#calendar-list .fc-list-event {
    background: #fdf8f0;
    border-left: 4px solid #f69f24;
    border-radius: 6px;
    margin-bottom: 8px;
    padding: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#calendar-list .fc-list-event-title {
    font-weight: bold;
    color: #f69f24;
}

#calendar-list .fc-list-event-time {
    color: #666;
    font-size: 0.8rem;
}

/* Botões de Alternância */
.calendar-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.toggle-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #f8f8f8;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.toggle-btn.active,
.toggle-btn:hover {
    background: #f69f24;
    color: white;
    border-color: #f69f24;
}

/* Responsivo */
@media (max-width: 600px) {
    #calendar-container {
        height: 250px;
    }
    #calendar-grid .fc-daygrid-day-frame {
        min-height: 50px;
    }
}

/* ESTILO UNIFICADO: AVISOS E EVENTOS */
.event-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    padding: 14px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
    border-left: 4px solid #f69f24;
}

.event-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    border-left-color: #e08a1f;
}

.event-date {
    text-align: center;
    margin-right: 16px;
    min-width: 58px;
    padding: 8px 4px;
    background: linear-gradient(135deg, #f69f24, #ffb957);
    color: white;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(246, 159, 36, 0.3);
}

.event-date .day {
    display: block;
    font-size: 2.1rem;
    line-height: 1;
    margin-bottom: 2px;
}

.event-date .month {
    display: block;
    font-size: 0.85rem;
    text-transform: capitalize;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.event-content h4 {
    margin: 0 0 8px 0;
    font-size: 1.15rem;
    color: #333;
    font-weight: 600;
}

.event-content p {
    margin: 0;
    color: #555;
    font-size: 0.8rem;
    line-height: 1.55;
    text-align: justify;
}

/* Botões "Carregar Mais" */
#load-more-announcements,
#load-more-events {
    display: block;
    margin: 25px auto 10px;
    padding: 11px 28px;
    background: #f69f24;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(246, 159, 36, 0.3);
}

#load-more-announcements:hover,
#load-more-events:hover {
    background: #e08a1f;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(246, 159, 36, 0.4);
}

#load-more-announcements:disabled,
#load-more-events:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #000;
}

.modal-header button {
    border-radius: 49px;
    width: 30px;
    height: 30px;
    padding: 0;
    background: #000;
}

.timeline-container h3 {
    margin: 10px 0;
    font-size: 15px;
    color: #000;
    font-weight: bold !important;
}

.hexagonos.contato {
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .2rem;
    justify-content: start;
    margin-bottom: 5px;
    border-bottom: dotted 3px #ccc;
    padding-bottom: 5px;
    margin: 0 !important;
    margin-top: 0;
    padding-top: 0;
}

span.terms-text {
    display: flex;
    font-size: 10px;
    align-items: center;
    gap: .1rem;
    flex-flow: wrap;
    margin-top: 5px;
}

span.terms-text {}

span.terms-text a {
    margin: 0 !important;
    display: inline-flex;
    text-wrap-mode: nowrap;
    padding: 0 !important;
}

span.terms-text p {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    text-wrap-mode: nowrap;
}

@media (max-width: 768px) {
    .foto-instituicao img {
        height: 155px !important;
    }

    .hexagonos.servicos {
        display: flex;
        gap: .5rem;
        justify-content: start;
        overflow-y: auto;
        margin-top: 10px;
    }
}

@media (min-width: 768px) {
    .hexagonos.contato {
        justify-content: center;
    }
    .hexagonos.contato {
    overflow: auto;
    display: flex;
    gap: .5rem;
    justify-content: center;
    margin-bottom: 5px;
    border-bottom: dotted 3px #ccc;
    padding-bottom: 5px;
    margin: 0 !important;
    margin-top: 0;
    padding-top: 0;
}
}