/* Mian Colors */
:root {
    --header_footer: #1D2B4F;
    --header_footer_text: #fff;
    --header_footer_text_hover: #A53025;

    --home_text: #fff;
    --heading_color: #2c3e50;

    --p : #555;

    --light : #fff;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
}



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



/* Styling for tags */
body {
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    line-height: 1.6;
    color: var(--p);
}

a {
    text-align: none;
    color: var(--header_footer);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--header_footer_text_hover);
}



/* Headings */
h1 {
    text-align: center;
    padding: 1.5rem 0 1rem;/* top, right/left, bottom */
    font-size: 2.5rem;
    color: var(--heading_color);
    letter-spacing: -0.03em;
}

h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--heading_color);
}

h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--heading_color);
    display: flex;
    align-items: center;
    justify-content: center;
}

h3 i {
    margin-right: 10px;
    color: var(--header_footer_text_hover); 
}

p {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--p);
}



/* Line under heading */
.rectangle {
    width: 100px;
    height: 4px;
    background-color: var(--header_footer_text_hover);
    margin: 0 auto 2.5rem auto;
    border-radius: 4px;
}



/* Styles the 'box' of the items */
.box {
    width: 100%;
    max-width: 90%;
    min-height: auto; 
    padding: 2rem;

    background-color: #ffffff;
    box-shadow: 5px 10px 5px #888888;
    border-radius: 12px;
    margin-bottom: 2rem;

    color: #333; 

    transition: transform 0.4s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--header_footer_text_hover);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;    
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.box:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}




/* Nav bar */
nav {
    position: sticky;
    top: 0;
    z-index: 98;
    background-color: var(--header_footer);
    padding: 15px 20px; 
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

nav ul.first {
    flex-wrap: wrap;
    padding-left: 0;
}

nav ul.first li:first-child {
    margin-right: 0;
    padding: 1px;
}

nav ul.first li:nth-child(2) {
    margin-left: 0;
    margin-right: auto;
}

nav ul li a {
    text-decoration: none;
    color: var(--header_footer_text);
    font-weight: 500;
    padding: 1px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li i{
    margin-right: 8px;
    text-align: center;
}

nav ul li a img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--header_footer_text_hover);
}

.mobile {
    display: none; 
    font-size: 1.8em;
    color: var(--header_footer_text);
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease;
}

.mobile:hover {
    transform: scale(1.1);
}

/* Type writer */
#typewriter-text {
    padding: 0;
    border-right: 3px solid #fff;
    display: inline-block;
    animation: blink_line 0.5s step-end infinite;
}

@keyframes blink_line {
    50% {border-color: transparent;}

}

.nav-links {
    display: none;
    flex-direction: column;
    background-color: var(--header_footer);
    padding: 10px 0; 
    width: 100%;
    
}

.nav-links li a {
    color: var(--header_footer_text);
    padding: 12px 25px;
    display: block;
    text-align: center;
    width: 100%;
}

.nav-links li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--header_footer_text_hover);
}

.nav-links.active {
    display: flex; 
}

@media (max-width: 1350px) {
    .desktop {
        display: none; 
    }

    .mobile {
        display: block; 
        cursor: pointer;
        font-size: 1.5em; 
        color: var(--header_footer_text); 
    }
    nav ul.first {
        padding-right: 0px; 
        justify-content: space-between;
        width: 100%;
    }
}



/* Footer */
.footer {
    background-color: var(--header_footer);
    color: var(--header_footer_text);
    padding: 50px 30px;
    display: flex;
    justify-content: space-around; 
    flex-wrap: wrap; 
    gap: 40px; 
    border-bottom: 8px solid var(--header_footer_text_hover);
    text-align: center;
}

.footer .footer-section {
    flex: 1; 
    min-width: 300px;
    padding: 20px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.1);
}

.footer .footer-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.footer .contact-info p,
.footer .contact-info a {
    margin-bottom: 12px; 
    display: block; 
    color: var(--header_footer_text);
    font-size: 1.05em;
    transition: color 0.3s ease;
}

.footer .contact-info a:hover {
    color: var(--header_footer_text_hover);
    text-decoration: none;
}


.footer .social-links h4 {
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: bold;
    color: var(--header_footer_text_hover);
}

.footer .social-links p {
    margin-bottom: 25px;
    font-size: 0.95em;
    line-height: 1.5;
    color: #fff;
}

.footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer .social-icons i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--header_footer_text);
    font-size: 1.8rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.footer .social-icons i:hover {
    background-color: var(--header_footer_text_hover);
    transform: translateY(-8px) scale(1.1);
}



/* Bottom */
.bottom-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--header_footer);
    color: var(--header_footer_text);
    padding: 20px 30px;
    font-size: 0.95em;
    flex-wrap: wrap; 
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.bottom-footer .copyright,
.bottom-footer .credits {
    margin: 8px 0;
}

.bottom-footer .credits a {
    color:var(--header_footer_text_hover);
    text-decoration: none;
    font-weight: bold;
    transition: text-decoration 0.3s ease;
}

.bottom-footer .credits a:hover {
    text-decoration: underline; 
}

@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        align-items: center; 
        text-align: center;
    }

    .footer .footer-section {
        min-width: unset; 
        width: 100%; 
        margin-bottom: 20px;
    }

    .footer .contact-info {
        text-align: center; 
    }

    .bottom-footer {
        flex-direction: column;
        text-align: center;
    }

    .bottom-footer .copyright,
    .bottom-footer .credits {
        width: 100%;
        margin-bottom: 12px;
    }
}



/* Section Styling */
/* -------------------------------------------------------------------------------------------------------- */
/* --Home Styling-- */
#home {
    position: relative;
    overflow: hidden; 
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center; 
}

#home a{
    color: var(--home_text);
    text-decoration: underline;
    transition: color 0.3s ease;
}

#home a:hover {
    color: var(--header_footer_text_hover);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;

    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 0;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide h1 {
    color: var(--home_text);
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.slide p {
    color: var(--home_text);
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.slide h1, .slide p {
    text-align: center;
    z-index: 2;
    padding: 15px 30px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    backdrop-filter: blur(3px);
    max-width: 80%;

}

.slide img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    filter: brightness(0.9);
}


/* --Section Backgrounds-- */
.body {
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;   
    gap: 8px;
    margin-bottom: 3rem; 
    background-color: var(--light);
}

.body2 {
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;   
    gap: 8px;
    margin-bottom: 3rem; 
    background-color: var(--light-bg);
}



/* --- Public Notes Section --- */
.notes-container {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 1100px;
    margin-top: 30px; 
}

.note-item {
    background-color: var(--light-bg); 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.note-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.note-item p {
    text-align: center;
    font-weight: 500;
    font-size: 1.1em;
    margin-bottom: 15px; 
    color: var(--heading_color);
    line-height: 1.5;
}

.note-item small {
    display: block; 
    font-size: 0.85em;
    color: var(--p);
    margin-top: 5px;
}



/* --About Section-- */
#about .box h2 {
    font-size: 2rem;
    color: var(--header_footer);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.box h2 i{
    margin-right: 15px;
    color: var(--header_footer);
    transition: color 0.3s ease; 

}

.box h2 i:hover, #about .box h2:hover {
    color: var(--header_footer_text_hover);
    cursor: pointer;
}

.toggle-content {
    display: none;
    transition: all 0.3s ease;
}

.toggle-content.show {
    display: block; 
}

#about .flex {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center; 
    align-items: center;
    gap: 30px; 
    margin-top: 1rem;
}

/* #about .flex.show {
    display: flex;
    flex-direction: row;
} */

.toggle-icon {
    transition: transform 0.3s ease;
    margin-right: 8px;
}

.rotate {
    transform: rotate(90deg);
}

#about .flex > div {
    flex: 1; 
    min-width: 300px; 
    max-width: 45%;
    text-align: center; 
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--light-bg);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.03);
}

#about .flex h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--heading_color);
}

#about .flex h3 i {
    margin-right: 10px;
    color: var(--header_footer_text_hover); 
} 

.box iframe {
    border-radius: 10px;
    width: 100%;
    max-width: 560px;
    height: 315px;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.1);    
}

@media (max-width: 768px) {
    #about{
        padding: 40px 15px;
    }

    #about .box {
        width: 100%; 
        padding: 1rem; 
    }

    #about .flex {
        flex-direction: column; 
        gap: 20px; 
    }

    .toggle-content.show .flex {
        flex-direction: column !important;
        min-width: unset; 
        width: 100%;
    }

    .box iframe {
        height: 250px; 
    }

    h1 {
        font-size: 2.5rem;
    }

    .slide h1 {
        font-size: 2.5rem;
    }

    .slide p {
        font-size: 1.2rem;
    }
}




/* --Community-- */
.flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 15px; 
    width: 100%;
}

#community img {
    width: 250px;
    height: 250px;
    border-radius: 8px;
    object-fit: cover;
}

#community a{ 
    text-decoration: none;
    font-size: 1.1em;
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
    transition: color 0.3s ease;
}

 #community p {
    color: var(--header_footer);
 }

#community p:hover { 
    color: var(--header_footer_text_hover);
}
#community img:hover {
    cursor: pointer;
    filter: brightness(0.8) sepia(0.2) hue-rotate(-10deg);
    transition: filter 0.3s ease;
}
#community .box{
    max-width: 300px;
    background-color: var(--light-bg);
}



/* --Events-- */
#events img {
    width: 250px;
    height: 250px;
    border-radius: 8px;
    object-fit: cover;
}
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.events-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    padding: 0 1rem;
}

.event-card {
    background-color: var(--light);
    border-left: 6px solid var(--header_footer_text_hover);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 1.5rem;
    width: 300px;
    transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-card h2 {
    color: #0a3d62;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.event-description {
    font-size: 1rem;
    margin-bottom: 0.8rem;
}
p {
    word-wrap: break-word; /* For older browsers */
    overflow-wrap: break-word; /* Standard way */
}
.event-card p {
    font-size: 0.95rem;
    margin: 0.3rem 0;
    color: #333;
}

.event-card i {
    color: var(--header_footer_text_hover);
    margin-right: 0.5rem;
}

.no-events {
    grid-column: 1 / -1; 
    color: #777;
    font-style: italic;
    font-size: 1.1rem;
    text-align: center;
    padding: 30px;
    background-color: #fcfcfc;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: fit-content; 
    margin: 30px auto; 
}



/* --Parishioners-- */
#parishioners {
    padding: 40px 20px;
    text-align: center;
}

#parishioners h1 {
    margin-bottom: 0.5rem;
}

.parishioner-grid {
    max-width: 1200px; /* Allow wider layout for more columns */
    margin: 0 auto; /* Center the grid */
    padding: 0 15px; /* Inner horizontal padding */

    display: grid;
    /* This creates columns that are a minimum of 280px wide and flex to fit */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px; /* Space between grid items */
    justify-items: center; /* Centers items horizontally within their grid cells */
    align-items: start; /* Aligns items to the start of their cell vertically */
}

/* Styling for each individual parishioner card */
.parishioner-card {
    background-color: #ffffff;
    border-radius: 12px; 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); 
    overflow: hidden; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%; 
    display: flex; 
    flex-direction: column;
    height: 100%; 
    text-align: center; 
}

.parishioner-card:hover {
    transform: translateY(-10px); 
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.parishioner-image-wrapper {
    width: 100%;
    height: 250px; 
    overflow: hidden;
    background-color: #e0e7eb; 
}

.parishioner-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area without distortion */
    object-position: top;
    display: block;
    transition: transform 0.3s ease;
}

.parishioner-card:hover .parishioner-img {
    transform: scale(1.05); 
}

.parishioner-placeholder-img {
    width: 100%;
    height: 100%;
    background-color: #cccccc;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #888;
    font-size: 1.2em;
    font-weight: bold;
    text-transform: uppercase;
    content: "\f007"; font-family: "Font Awesome 5 Free"; font-weight: 900;
}

.parishioner-info {
    padding: 20px;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

.parishioner-info h2 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.parishioner-info p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 0;
}

/* Styling for "No parishioners" message */
.no-parishioners {
    grid-column: 1 / -1; 
    color: #777;
    font-style: italic;
    font-size: 1.1rem;
    text-align: center;
    padding: 30px;
    background-color: #fcfcfc;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: fit-content; 
    margin: 30px auto; 
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .parishioner-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    #parishioners {
        padding: 30px 10px;
    }

    .parishioner-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
    }

    .parishioner-card {
        max-width: 350px; 
        margin: 0 auto; 
    }

    .parishioner-image-wrapper {
        height: 200px;
    }

    .parishioner-info h2 {
        font-size: 1.4rem;
    }

    .parishioner-info p {
        font-size: 0.9rem;
    }
}



/* --MASS-- */
#mass {
    padding: 40px 20px;
    background-color: #f9f9f9; 
    text-align: center; 
}

#mass h1 {
    margin-bottom: 0.5rem; 
}

/* Flex container for the two columns (schedule and bulletin) */
.mass-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 30px; /* Space between the two columns */
    max-width: 1000px; 
    margin: 0 auto;
    padding: 0 15px;
}

/* Styling for the schedule box */
.mass-schedule-box,
.mass-bulletin-box {
    background-color: #ffffff;
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); 
    padding: 30px;
    flex: 1; 
    min-width: 300px; 
    text-align: left; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mass-schedule-box:hover,
.mass-bulletin-box:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.mass-schedule-box h3,
.mass-bulletin-box h3 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center; 
}

/* Styling for the mass schedule list */
.mass-schedule-list {
    list-style: none; 
    padding: 0;
    margin: 0; 
    background-color: #e6f7ff; 
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px; 
}

.mass-schedule-list li {
    font-size: 1.15rem;
    color: #333;
    margin-bottom: 12px;
    padding-left: 30px; 
    position: relative;
    line-height: 1.4;
}

.mass-schedule-list li:last-child {
    margin-bottom: 0;
}

.mass-schedule-list li::before {
    content: "\f017"; 
    font-family: "Font Awesome 5 Free"; 
    font-weight: 900;
    color: var(--header_footer_text_hover); 
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1em;
}

/* Styling for the 'check announcements' note */
.mass-note {
    font-size: 0.95rem;
    font-style: italic;
    color: #666;
    text-align: center; 
    margin-top: auto; 
}

/* Styling for the bulletin container */
.mass-bulletin-box {
    /* Shares general .box styles */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
}

.bulletin-embed-container {
    margin-top: 20px;
    margin-bottom: 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    height: 450px; 
    display: flex;
    flex-grow: 1; 
}

.bulletin-pdf {
    width: 100%;
    height: 100%;
    display: block;
}

/* Styling for "No bulletins" message */
.no-bulletin {
    color: #777;
    font-style: italic;
    text-align: center;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 5px;
    margin-top: 20px; 
}

/* Media Queries for Responsiveness */
@media (max-width: 850px) { 
    .mass-columns {
        flex-direction: column; 
        align-items: center; 
    }

    .mass-schedule-box,
    .mass-bulletin-box {
        min-width: unset; 
        width: 100%; 
        max-width: 500px; 
    }
}

@media (max-width: 480px) {
    .mass-schedule-box,
    .mass-bulletin-box {
        padding: 20px;
    }

    .mass-schedule-box h3,
    .mass-bulletin-box h3 {
        font-size: 1.4rem;
    }

    .mass-schedule-list li {
        font-size: 1rem;
        padding-left: 25px;
    }

    .bulletin-embed-container {
        height: 350px; 
    }
}




/* --Contact-- */

.office-hours {
  margin-bottom: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.office-hours h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--header_footer);
  text-align: center;
}

.hours-block {
  text-align: center;
  margin-bottom: 1rem;
}

.hours-block p {
  margin: 0.5rem 0;
  color: #555;
}

.hours-block .note {
  font-size: 0.9rem;
  color: #777;
  font-style: italic;
}

.live-status {
  background-color: #f4f6f8;
  padding: 1rem;
  border-left: 4px solid var(--header_footer);
  border-radius: 6px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  max-width: 350px;
  margin: 0 auto;
}
#cst-time {
  font-weight: bold;
  color: #333;
}

#status {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: var(--header_footer);
}

#status i {
  margin-right: 8px;
  color: inherit;
}

#status.open {
  color: #2ecc71; 
  font-weight: bold;
}

#status.closed {
  color: #e74c3c; 
  font-weight: bold;
}

#status.soon {
  color: #ef6c00; 
  font-weight: bold;
}


#contact {
  padding: 3rem 2rem;
  text-align: center;
}

#contact h1 {
  font-size: 2.5rem;
  color: var(--header_footer);
  margin-bottom: 0.5rem;
}

.office-hours {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.office-hours p{
    padding-bottom: 20px;
    text-align: center;
}

.contact-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-box {
  background-color: var(--light-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  flex: 1 1 400px;
  max-width: 600px;
  text-align: left;
}

.contact-box h3 {
  color: var(--header_footer);
  margin-bottom: 1rem;
}

.contact-box p,
.contact-box a {
  font-size: 1rem;
  margin: 0.3rem 0;
  color: #333;
}

.contact-box a {
  text-decoration: none;
  color: var(--header_footer_text_hover);
}

.contact-box i {
  margin-right: 8px;
  color: var(--header_footer_text_hover);
}

.contact-box iframe {
  width: 100%;
  height: 300px;
  margin-top: 1rem;
  border: none;
  border-radius: 8px;
}

.contact-box form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.contact-box form label {
  font-weight: bold;
  color: #4a3c3c;
}

.contact-box input,
.contact-box textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

.contact-box textarea {
  min-height: 100px;
  resize: vertical;
}

.contact-box div:last-child {
  margin-top: 1.5rem;
  font-style: italic;
  color: #666;
}
.submit-btn {
  margin-top: 1rem;
  padding: 0.6rem 1.5rem;
  background-color: var(--header_footer);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: var(--header_footer_text_hover);
}



/* --PAYMENT-- */
.center {
    text-align: center;
}



/* Other Pages Styling */
/* ------------------------------------------------------------------------ */
/* --Portal-- */
#portal p{
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 25px;
}



/* --- From styling --- */
.align {
    background-color: var(--light-bg);
    padding: 10px 30px;
    min-width: fit-content;
    min-height: auto;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.card{
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background-color: var(--light);
}

.card-header {
    background-color: var(--header_footer);
    color: var(--header_footer_text);
    padding: 20px 15px;
    border-bottom: 3px solid var(--header_footer_text_hover);
    text-align: center;
    font-size: 1.5em;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.card-header h3{
    margin: 0;
    color: inherit;
    font-size: 1.8rem;
}

.card-body {
    padding: 30px;
    text-align: center;
}

.card-body p {
    font-size: 1.1em;
    color: var(--p);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px; 
}

.form-group label {
    font-weight: 600; 
    color: var(--heading_color); 
    margin-bottom: 8px; 
    display: block; 
}

.form-control {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1.1em;
    color: var(--p);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form .form-control:focus {
    border-color: var(--header_footer_text_hover);
    box-shadow: 0 0 0 0.2rem rgba(165, 48, 37, 0.25);
    outline: none;
}

form input {
    margin-bottom: 15px;
}

.btn-primary {
    background-color: var(--header_footer); 
    border-color: var(--header_footer); 
    color: var(--header_footer_text); 
    padding: 12px 25px;
    font-size: 1.1em; 
    font-weight: bold;
    border-radius: 8px; 
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--header_footer_text_hover); 
    border-color: var(--header_footer_text_hover);
    transform: translateY(-2px); 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); 
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(29, 43, 79, 0.5); 
}

/* Form Footer */
.card-footer {
    background-color: var(--light-bg); 
    padding: 15px; 
    border-top: 1px solid var(--border-color); 
    color: var(--p);
    font-size: 0.9em; 
}

.card-footer small {
    color: inherit; 
}



/* --Error and Sucess Massage-- */
.message {
    padding: 15px 25px; 
    margin-bottom: 5px;
    border-radius: 8px; 
    font-size: 1.05em; 
    font-weight: 500;
    text-align: center; 
    opacity: 1; 
    transition: opacity 0.5s ease-in-out, transform 0.3s ease-out, all 0.5s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); 
    display: flex; 
    align-items: center;
    justify-content: center;
    gap: 5px; 
}

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

.message-success::before {
    font-family: "Font Awesome 5 Free"; 
    font-weight: 900; 
    content: "\f058"; 
    color: #28a745;
    font-size: 1.2em; 
}

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

.message-error::before {
    font-family: "Font Awesome 5 Free"; 
    font-weight: 900;
    content: "\f00d"; 
    color: #dc3545;
    font-size: 1.2em;
}

.message-body {
    padding: 10px;
    display: flex; 
    align-items: center;
    justify-content: center;
    text-align: center;
}

.message.hidden {
    opacity: 0;
    transform: translateY(-10px); 
    pointer-events: none; 
    height: 0; 
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden; 
}



/* --DELETE BUTTON--  */
.note-item .delete-note-btn {
    background-color: #dc3545; /* Red color for delete */
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 15px; /* Space above the button */
    align-self: flex-end; /* Align button to the right */
    transition: background-color 0.3s ease;
}

.note-item .delete-note-btn:hover {
    background-color: #c82333; /* Darker red on hover */
}



/* --DASHBOARD-- */
/* Dashboard General Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #eef2f5; /* Light, calming background */
    color: #333;
    line-height: 1.6;
}

.dashboard-container {
    max-width: 1400px; /* Wider container for the whole dashboard */
    margin: 30px auto; /* Centered with top/bottom margin */
    padding: 0 25px; /* Inner padding */
    display: flex;
    flex-direction: column;
    gap: 40px; /* Space between main sections */
}

.dashboard-welcome {
    font-size: 2.8rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    padding-top: 15px;
}

.dashboard-login-prompt {
    font-size: 1.2rem;
    text-align: center;
    color: #777;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.dashboard-section {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.dashboard-section h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}



/* --User Notes Section-- */
.user-notes-section .note-list {
    max-height: 300px; /* Fixed height for scrollable notes list */
    overflow-y: auto; /* Adds scrollbar if notes overflow */
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
}

.user-notes-section .note-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-notes-section .note-item {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: #555;
}

.user-notes-section .note-item:last-child {
    margin-bottom: 0;
}

.delete-note-button {
    background: none;
    border: none;
    color: #a53025; /* Your accent color for deletion */
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
    padding: 0 5px;
}

.delete-note-button:hover {
    color: #cc0000;
}

.add-note-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.add-note-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    min-height: 80px;
    resize: vertical;
}



/* --Content Management and Data Display Sections-- */
.content-management-section,
.data-display-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Responsive grid for cards */
    gap: 30px; /* Space between cards */
    padding: 20px; /* Inner padding for the grid */
    background-color: #fcfcfc; /* Lighter background for card containers */
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.03); /* Subtle inner shadow */
}

.dashboard-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.dashboard-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Forms Styling (for .dashboard-form) */
.dashboard-form {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Space between form elements */
}

.dashboard-form label {
    font-weight: bold;
    color: #555;
    font-size: 0.95rem;
    margin-top: 5px; /* Space above label */
    display: block;
}

.dashboard-form input[type="text"],
.dashboard-form input[type="email"],
.dashboard-form input[type="date"],
.dashboard-form input[type="time"],
.dashboard-form input[type="file"],
.dashboard-form textarea {
    width: calc(100% - 24px); /* Account for padding */
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    background-color: #fdfdfd;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-form input[type="file"] {
    padding: 8px 12px; /* Adjust padding for file input */
}

.dashboard-form input:focus,
.dashboard-form textarea:focus {
    border-color: var(--header_footer_text_hover);
    box-shadow: 0 0 0 3px rgba(165, 48, 37, 0.15);
    outline: none;
}

.dashboard-form textarea {
    min-height: 60px; /* Smaller default height for admin textareas */
    resize: vertical;
}

/* General Button Styling */
.dashboard-button {
    background-color: var(--header_footer_text_hover); /* Your accent color */
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 15px; /* Space above buttons */
}

.dashboard-button:hover {
    background-color: #c74030; /* Slightly darker */
    transform: translateY(-1px);
}

/* Delete/Edit Buttons within Lists */
.inline-form {
    display: inline-block; /* Keeps forms next to list content */
    margin-left: 10px; /* Space between content and action buttons */
}

.delete-button, .edit-button {
    background-color: #dc3545; /* Red for delete */
    color: #fff;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.edit-button {
    background-color: #007bff; /* Blue for edit */
    margin-left: 5px;
}

.delete-button:hover { background-color: #c82333; }
.edit-button:hover { background-color: #0056b3; }

.edit-input {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-right: 5px;
}

/* Data Display Lists */
.data-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.data-item {
    background-color: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow items to wrap on small screens */
    font-size: 0.95rem;
    color: #444;
}

.data-item p {
    margin: 0; /* Remove default paragraph margin */
    flex-grow: 1; /* Allow content to take available space */
    padding-right: 15px; /* Space before buttons */
}

.data-item .item-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 5px; /* Space if actions wrap */
}


.no-data-message {
    font-style: italic;
    color: #777;
    text-align: center;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 8px;
    margin-top: 20px;
}

/* Parishioner Display */
.parishioner-display-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Smaller cards for admin */
    gap: 20px;
    margin-top: 20px;
}

.parishioner-display-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.parishioner-display-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid var(--header_footer_text_hover);
}

.parishioner-display-placeholder-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 10px;
}

.parishioner-display-item h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.parishioner-display-about {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    flex-grow: 1; /* Allow description to push delete button down */
}

/* Event Display */
.event-item-display {
    flex-direction: column; /* Stack event details vertically */
    align-items: flex-start; /* Align details to the left */
}

.event-item-display h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.event-desc-display {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 10px;
}

.event-meta-display {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 5px;
}

/* Bulletin Display */
.bulletin-display-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.bulletin-display-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%; /* Ensure consistent height in grid */
}

.bulletin-embed-wrapper {
    width: 100%;
    height: 200px; /* Fixed height for display embed */
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
    flex-shrink: 0; /* Prevent it from shrinking */
}

.bulletin-pdf-display {
    width: 100%;
    height: 100%;
    display: block;
}


/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .dashboard-container {
        padding: 0 15px;
    }
    .content-management-section,
    .data-display-section {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        margin: 20px auto;
        padding: 0 10px;
    }
    .dashboard-section {
        padding: 20px;
    }
    .dashboard-section h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    .dashboard-card {
        padding: 20px;
    }
    .dashboard-card h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    .content-management-section,
    .data-display-section {
        grid-template-columns: 1fr; /* Stack cards vertically on mobile */
        padding: 15px;
    }
    .parishioner-display-grid,
    .bulletin-display-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjust grid for smaller screens */
    }
}

@media (max-width: 480px) {
    .dashboard-welcome {
        font-size: 2rem;
    }
    .dashboard-section {
        padding: 15px;
    }
    .dashboard-section h2 {
        font-size: 1.6rem;
    }
    .dashboard-card {
        padding: 15px;
    }
    .dashboard-form label,
    .dashboard-form input,
    .dashboard-form textarea,
    .data-item p,
    .delete-button, .edit-button {
        font-size: 0.9rem;
    }
    .dashboard-button {
        padding: 10px 15px;
        font-size: 0.95rem;
    }
    .note-item {
        font-size: 0.9rem;
    }
    .delete-note-button {
        font-size: 1.3rem;
    }
}


/* --Back to top-- */
#backToTopBtn {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: var(--header_footer_text_hover);
  color: white;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow */
  transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.8;
}

#backToTopBtn:hover {
  background-color: #555;
  transform: translateY(-8px) scale(1.01); /* Lift slightly on hover */
    opacity: 1; /* Fully opaque on hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Animation class */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

/* When the element becomes visible */
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.modal {
  /* Centers contents */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Does not move */
    position: fixed;
    /* Centers actual popup */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Basic styling */
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    padding: 1.5rem; 
    text-align: center;
    /* Prepares it to get hidden */
    visibility: visible;
    /* Puts the popup above other elements */
    z-index: 100;
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-button {
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background-color: var(--header_footer);
  color: var(--home_text);
  text-decoration: none;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  font-family: "Helvetica Neue", Arial, sans-serif;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 15px;
}