.upi-btn {
    display: inline-block;
    padding: 10px 16px;
    background: #28a745;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-family: sans-serif;
    cursor: pointer;
}

/* Popup styling */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 300px;
}

.popup img {
    width: 200px;
    height: 200px;
}

.close-btn {
    margin-top: 12px;
    padding: 8px 14px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* END OF THE ONLINE OFFERING */

/* church administration */
#church-administration p {
    text-align: center;
    width: 100%;
    font-size: 32px;
    font-family: 'FontAwesome';
    padding: 20px;
    color: var(--color-text-pri);
}

.admin-images .col-md-12 {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
}

.admin-images .col-md-12 img {
    max-width: 350px;
    border-radius: 20px;
}

.admin-images .col-md-6 {
    text-align: center;
    padding: 10px;
}

.admin-images .col-md-6 img {
    max-width: 350px;
    border-radius: 20px;
}

.admin-images p {
    font-size: 24px !important;
    padding: 0px !important;
    padding-top: 10px !important;
}

.admin-images h5 {
    padding: 5px;
    font-size: 12px;
    color: var(--color-text-sec);
}


/* #novena  */
#novena p {
    text-align: center;
    width: 100%;
    font-size: 14px;
    font-family: 'FontAwesome';
    padding: 5px;
    color: var(--color-text-pri);
}

.pdf-container {
    width: 100%;
    max-width: 800px;
    height: 80vh;
    overflow-y: auto;
    border: 1px solid #ccc;
    margin: auto;
    scrollbar-width: none;
}



canvas {
    width: 100% !important;
    height: auto !important;
    display: block;
    margin-bottom: 20px;
}

/* END OF #novena  */

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--color-header), var(--color-header));
    color: #ffffff;
    padding: 20px 10px;
    text-align: center;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 14px;
    border-top: 2px solid #444;
}

.site-footer p {
    color: var(--color-text-pri);
}

.site-footer a {
    color: var(--color-text-sec);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--color-bg-sec);
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: var(--color-text-sec);
    margin: 0 8px;
    font-size: 20px;
}

.footer-links a:hover {
    color: var(--color-bg-sec);
}

/* END Of Footer */

/* online offerings */
#online-offering p {
    text-align: center;
    width: 100%;
    font-size: 32px;
    font-family: 'FontAwesome';
    padding: 20px;
    color: var(--color-text-pri);
}

/* Container for each payment section */
.payment-block {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* padding: 15px; */
    border-radius: 8px;
    margin-bottom: 20px;

}

.payment-block .qr {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
    /* space below image */
}



/* UPI button container */
.payment-block .upi-button {
    margin-top: 15px;
}

/* Style for the payment button */
.payment-block .upi-button button {
    padding: 12px 24px;
    font-size: 16px;
    background-color: var(--color-header) !important;
    color: var(--color-text-sec) !important;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.payment-block .upi-button button:hover {
    background-color: var(--color-header);
}

.payment-block p {
    font-size: 18px !important;
    color: var(--color-text-pri) !important;
}

/* END */

/* ****** ActiveORG ******* */
.activeorg {
    background-color: var(--color-bg-sec) !important;
}

/* END */

/* 
.tpopup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 999;
    overflow-y: auto;
    padding: 20px;
}

.tpopup-box {
    background-color: var(--color-header);
    padding: 25px 35px;
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
    color: var(--color-white);
    margin: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tpopup-box h2 {
    color: var(--color-text-sec);
    margin-bottom: 15px;
    font-size: 22px;
}

.tpopup-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.tpopup-box ul li {
    margin: 8px 0;
    color: var(--color-white);
    font-size: 16px;
    line-height: 1.4;
}

.tpopup-box ul li span {
    color: var(--color-text-pri);
    font-weight: 600;
    display: inline-block;
    width: 110px;
}

.tclose-btn {
    display: inline-block;
    margin-top: 20px;
    background-color: var(--color-bg-sec);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    padding: 8px 25px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
}

.tclose-btn:hover {
    background-color: var(--color-bg-pri);
    color: var(--color-text-pri);
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .tpopup-box {
        width: 85%;
        max-width: none;
        padding: 20px;
        border-radius: 10px;
        font-size: 14px;
    }

    .tpopup-box h2 {
        font-size: 18px;
    }

    .tpopup-box ul li {
        display: flex;
        justify-content: space-between;
        font-size: 14px;
    }

    .tclose-btn {
        padding: 8px 18px;
        font-size: 14px;
    }
} */
/* Timing POP UP - Glass Effect */
.tpopup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.308);
    justify-content: center;
    align-items: center;
    z-index: 999;
    overflow-y: auto;
    padding: 20px;
    backdrop-filter: blur(6px);
    /* soft blur on background */
    -webkit-backdrop-filter: blur(6px);
}

.tpopup-box {
    background: rgba(255, 249, 249, 0.105);
    /* translucent base */
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 25px 35px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
    color: var(--color-white);
    margin: auto;
    transition: all 0.3s ease;
}

/* Smooth entrance animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tpopup-box h2 {
    color: var(--color-text-sec);
    margin-bottom: 15px;
    font-size: 22px;
}

.tpopup-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.tpopup-box ul li {
    margin: 8px 0;
    color: var(--color-white);
    font-size: 16px;
    line-height: 1.4;
}

.tpopup-box ul li span {
    color: var(--color-text-pri);
    font-weight: 600;
    display: inline-block;
    width: 110px;
}

.tclose-btn {
    display: inline-block;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    border-radius: 8px;
    padding: 8px 25px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.tclose-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--color-text-pri);
    transform: scale(1.05);
}

/* ----- Responsive Popup (Mobile View) ----- */
@media (max-width: 600px) {
    .tpopup-box {
        width: 85%;
        max-width: none;
        padding: 20px;
        border-radius: 10px;
        font-size: 14px;
    }

    .tpopup-box h2 {
        font-size: 18px;
    }

    .tpopup-box ul li {
        display: flex;
        justify-content: space-between;
        font-size: 14px;
    }

    .tclose-btn {
        padding: 8px 18px;
        font-size: 14px;
    }
}

/* header glass effect */
.glass-header {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
    transition: all 0.3s ease;
}

.glass-header:hover {
    background: rgba(255, 255, 255, 0.25);
    /* Slightly stronger on hover */
}

/* Glass effect when scrolled */
.background-header.glass-scrolled {
    background: rgba(233, 228, 228, 0.441) !important;
    /* semi-transparent white */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    /* optional subtle edge */
    transition: all 0.3s ease;
}

/* Optional: slightly stronger on hover */
.background-header.glass-scrolled:hover {
    background: rgba(183, 181, 181, 0.837) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


/* Message of Vicar */
#msgofvicar .vicar-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
    padding: 10px;
    margin: 20px;
}

#msgofvicar .vicar-img {
    flex: 0 0 35%;
    text-align: center;
}

#msgofvicar .vicar-text {
    flex: 1;
    position: relative;
}

.vicar-message {
    overflow: hidden;
    transition: max-height 0.5s ease;
}

/* For mobile: show only part of the text */
@media (max-width: 768px) {
    .vicar-message {
        max-height: 160px;
    }

    .vicar-message.expanded {
        max-height: 1000px;
        /* enough for full content */
    }

    .read-more-btn {
        background-color: var(--color-active);
        border: none;
        color: white;
        padding: 8px 15px;
        margin-top: 10px;
        border-radius: 5px;
        cursor: pointer;
        font-size: 14px;
    }

    .read-more-btn:focus {
        outline: none;
    }
}

/* On larger screens, show full message always */
@media (min-width: 769px) {
    .read-more-btn {
        display: none;
    }
}