/* Preloader overlay */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
}

/* Center wrapper for logo + spinner */
.loader-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Static logo in center */
.loader-wrapper .logo {
  width: 150px;  /* adjust logo size */
  height: auto;
  z-index: 2;
}

/* Circular spinner ring */
.spinner {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 5px solid #ddd;           /* light ring */
  border-top: 5px solid #ffa640;    /* primary color segment */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1;
}

/* Spin animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}


/* Fonts */
.anek-malayalam-thin {
    font-family: "Anek Malayalam", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
}

.arima-malayalam-head {
    font-family: "Arima", system-ui;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

.gayathri-thin {
    font-family: "Gayathri", sans-serif;
    font-weight: 100;
    font-style: normal;
}

.gayathri-regular {
    font-family: "Gayathri", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.gayathri-bold {
    font-family: "Gayathri", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.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: 220px;
    border-radius: 20px;
}


.admin-images .col-md-6 p {
    font-size: 16px !important;
    padding: 0px !important;
    padding-top: 10px !important;
}

.admin-images h5 {
    padding: 5px;
    font-size: 12px;
    color: var(--color-text-sec);
}

.admin-images .col-md-3 {
    text-align: center;
    padding: 10px;
}

.admin-images .col-md-3 img {
    max-width: 200px;
    border-radius: 20px;
}

.admin-images .col-md-3 p {
    font-size: 12px !important;
    padding: 0px !important;
    padding-top: 10px !important;
}

/* #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;
    margin-top: 10px;
}

.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 */
/* ----- Popup Overlay ----- */
.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);
    -webkit-backdrop-filter: blur(6px);
}

/* ----- Popup Box ----- */
.tpopup-box {
    background: rgba(40, 38, 38, 0.405);
    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: 480px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    color: var(--color-white);
    margin: auto;
    animation: fadeIn 0.3s ease-in-out;
    transition: all 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----- Headings ----- */
.tpopup-box h2 {
    color: #ffa640;
    text-align: center;
    margin: 18px 0 10px;
    font-size: 22px;
    font-weight: 700;
}

/* ----- List Styling ----- */
.tpopup-box ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.tpopup-box ul li {
    color: var(--color-white);
    font-size: 16px;
    line-height: 1.6;
    word-break: break-word;
}

/* Label column (like Sunday:, Tuesday:) */
.tpopup-box .fw-semibold.text-primary {
    color: var(--color-text-pri, #cc9106) !important;
    white-space: nowrap;
}

/* Time highlight */
.tpopup-box .time {
    color: #FFD54F !important;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(255, 213, 79, 0.5);
    margin-right: 4px;
    display: inline-block;
}

/* Prevent text from overlapping sections */
.tpopup-box h2+ul {
    margin-top: 10px;
    margin-bottom: 15px;
}

/* ----- Close Button ----- */
.tclose-btn {
    display: block;
    margin: 20px auto 0;
    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 View ----- */
@media (max-width: 600px) {
    .tpopup-box {
        width: 90%;
        padding: 20px;
        border-radius: 12px;
    }

    .tpopup-box h2 {
        font-size: 18px;
        margin: 15px 0 8px;
    }

    .tpopup-box ul li {
        font-size: 14px;
    }

    .tclose-btn {
        padding: 8px 18px;
        font-size: 14px;
    }
}

/* .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);
    -webkit-backdrop-filter: blur(6px);
}

.tpopup-box {
    background: rgba(255, 249, 249, 0.105);
    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;
}

@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(114, 112, 112, 0.837) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 768px) {
    .background-header .logo {
        margin-top: 10px !important;
    }
}

/* 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;
    }
}

/* Festival Section Padding */
.festival-carousel-section {
    padding: 40px 0;
}

/* Swiper container */
.festivalSwiper {
    width: 100%;
    padding-bottom: 50px;
}

/* Center slides */
.swiper-slide {
    display: flex;
    justify-content: center;
    padding-left: 20px;
    padding-right: 20px;
}

/* Festival Card */
.festival-card {
    position: relative;
    width: 100%;
    max-width: 350px;
    /* Limit card width on large screens */
    height: 300px;
    /* Slightly smaller for mobile */
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 5px 5px 10px #000;
}

/* .festival-card:hover {
    transform: scale(1.03);
} */

/* Overlay Text */
.festival-card .overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    backdrop-filter: blur(4px);
}

.festival-card .overlay h3 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    text-align: center;
}

.festival-card .overlay p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Navigation buttons */
.festival-button-next,
.festival-button-prev {
    color: var(--color-text-pri, #000) !important;
}

/* Pagination */
/* Make pagination dots bigger */
.festival-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    margin: 0 6px;
    opacity: 0.7;
    background: #ccc;
}

.festival-pagination .swiper-pagination-bullet-active {
    background: var(--color-text-pri, #000);
    opacity: 1;
    width: 18px;
    height: 18px;
}

/* --- Swiper Popup Styles --- */
.swiper-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    /* top:0; left:0; bottom:0; right:0; */
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.swiper-popup-overlay.show {
    display: flex;
    animation: swiperFadeIn 0.3s ease;
}

@keyframes swiperFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.swiper-popup-content {
    background: var(--color-bg-sec, #fff);
    color: var(--color-text-pri, #000);
    padding: 20px;
    border-radius: 12px;
    max-width: 90%;
    width: 350px;
    text-align: center;
    position: relative;
}

#swiperPopupDescription {
    color: #fff;
    font-size: 1rem;
    line-height: 1.8;
}

.swiper-close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 20px;
    cursor: pointer;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .festival-card {
        width: 100%;
        background-size: contain;
    }

    .festival-card .overlay h3 {
        font-size: 1rem;
    }

    .festival-card .overlay p {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .festival-card {
        height: 220px;
    }

    .festival-card .overlay h3 {
        font-size: 0.9rem;
    }

    .festival-card .overlay p {
        font-size: 0.7rem;
    }
}

#spacebtw {
    display: none;
    /* hide by default */
}

@media (max-width: 767px) {

    /* mobile screens */
    #spacebtw {
        display: block;
    }
}

.social-fixed {
    position: fixed;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 6px;
    background: rgba(68, 62, 62, 0.808);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    color: var(--color-active);
    font-size: 22px;
}

.social-link:hover {
    background: var(--color-text-pri);
    color: #000;
    transform: scale(1.1);
}

/* Optional: individual hover colors */
.fb:hover {
    color: #1877f2;
}

.yt:hover {
    color: #ff0000;
}

.wa:hover {
    color: #25d366;
}

.ig:hover {
    color: #e1306c;
}

.mail:hover {
    color: #ea4335;
}

@media (max-width: 767px) {
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 18px;

    }
}

.timelinebtn {
    display: inline-block;
    text-decoration: none;
    background-color: var(--color-bg-sec);
    padding: 10px 20px;
    border-radius: 20px;
    color: var(--color-text-pri) !important;
    transition: box-shadow 0.3s ease;
}

.timelinebtn:hover {
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}