:root{
    --yellow: #FFC107;
    --red: #A6192E;
    --red_trans: #a6192e79;
}

.text-red{
    color: var(--red);
}

.text-yellow{
    /* color: #ce9e0f; */
    /* color: #000000; */
    color: #fff;
    /* color: #ffca08; */
    font-weight:700;
}

.size-up{
    font-size: large;
}

.active-link{
    color: var(--red);
}

.bg-red{
    background-color: var(--red);
    color: white;
}

.custom-toggler-icon {
    background-image: url('data:image/svg+xml,%3csvg xmlns%3d"http://www.w3.org/2000/svg" viewBox%3d"0 0 30 30"%3e%3cpath stroke%3d"rgba%28166,25,46,1%29" stroke-width%3d"2" stroke-linecap%3d"round" stroke-miterlimit%3d"10" d%3d"M4 7h22M4 15h22M4 23h22"/%3e%3c/svg%3e');
}

.custom-toggler,
.custom-toggler:focus,
.nav-item.dropdown:focus-within {
    border-color: transparent; /* Remove the border when focused */
}

.nav-item.dropdown .dropdown-toggle:focus {
    outline: none; /* Remove the outline around the dropdown toggle */
    box-shadow: none; /* Remove the box-shadow if any */
}


/* Optional: Change the background color of the dropdown when it is focused */
.nav-item.dropdown:focus-within .dropdown-menu {
    background-color: #f8f9fa; /* Adjust background color when focused */
}

.navbar-brand img {
    height: 40px;
}

.dropdown-item:hover, .state1:hover {
    background-color: var(--red);
    color: #fff !important;
}

.nav-link:hover {
    color: var(--red);
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}
.nav-item.dropdown .dropdown-menu {
    display: none;
    border: none; /* Remove any border on the dropdown menu */
}

.navbar.shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-theme, .btn-theme-2{
    background-color: var(--red);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 12px 40px;
    text-decoration-line: none;
}

.btn-theme-3{
    background-color: var(--red);
    color: #fff;
    padding: 12px 40px;
    border: none;
}

.btn-theme:hover{
    background-color: transparent;
    color: var(--red);
    border: 2px solid var(--red);
}

.btn-theme-2:hover, .btn-theme-4:hover{
    background-color: black;
    color: #fff;
}

.btn-theme-4{
    background-color: var(--red);
    color: #fff;
    border: none;
}



/* Gallery */

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.5s ease;
    width: 100%; /* Ensure responsive width */
    height: auto; /* Maintain aspect ratio */
}

.gallery-item:hover img {
    transform: scale(1.1); /* Zoom-in effect */
}

.gallery-title {
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay */
    color: #fff; /* White text */
    opacity: 0; /* Initially hidden */
    transition: opacity 0.5s ease;
    text-align: center;
}

.gallery-item:hover .gallery-title {
    opacity: 1; /* Show text on hover */
}

.gallery-title span {
    padding: 0.5rem 1rem;
    background: #900016d2; /* Dark background for better contrast */
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bold;
}

.gallery-item:hover{
    cursor: pointer;
}



/* News Section */


#news-events {
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for better readability */
    padding: 4rem 2rem;
    border-radius: 8px;
}


#news-events .news-scroll-container {
    display: flex;
    gap: 1rem;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    overflow-x: hidden; /* Hides the scrollbar */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}

#news-events .news-scroll-container::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, and Opera */
}

#news-events .news-item {
    flex: 0 0 300px; /* Fixed width for each item */
    height: 400px; /* Set a fixed height for uniformity */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


#news-events .news-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

#news-events .news-title {
    font-size: 1.25rem;
    font-weight: bold;
}

#news-events .news-item img {
    height: 200px; /* Adjust the height to match the layout */
    object-fit: cover; /* Ensures the image fills the area without distortion */
    width: 100%; /* Full width to fit container */
    border-radius: 5px;
}

#news-events .news-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

#news-events .news-description {
    flex-grow: 1; /* Allows description to fill remaining space */
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

#news-events .btn-outline-warning {
    align-self: flex-start; /* Align button at the bottom */
}


/* Announcement */


/* Announcement Section */
#announcement {
    background: #f9f9f9;
    padding: 20px 0;
}

#announcement h2 {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

/* Announcement Container */
#announcement .announcement-container {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    max-height: 400px; /* Allows scrolling */
    overflow-y: auto; /* Enables vertical scrolling if needed */
    display: flex;
    flex-direction: column; /* Stack announcements properly */
    gap: 15px;
}

/* Individual Announcement Items */
#announcement .announcement-item {
    opacity: 1;
    position: relative;
    padding: 15px;
    border-left: 4px solid #dc3545;
    background: #fff;
    border-radius: 5px;
    word-break: break-word; /* Prevents text from overflowing */
    transition: all 0.3s ease-in-out;
}

/* Announcement Title */
#announcement .announcement-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
}

/* Announcement Date */
#announcement .announcement-date {
    font-size: 0.85rem;
    color: #666;
}

/* Announcement Description */
#announcement .announcement-description {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Button for Loading More Announcements */
#load-more-announcements {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    text-align: center;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    background-color: #ffc107;
    color: #333;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

#load-more-announcements:hover {
    background-color: #e0a800;
}

/* Responsive Design */
@media (max-width: 768px) {
    #announcement h2 {
        font-size: 1.5rem;
    }

    #announcement .announcement-container {
        max-height: none; /* Allow full height */
        overflow-y: visible; /* No scrollbar on mobile */
        padding: 10px;
    }

    #announcement .announcement-item {
        font-size: 1rem;
        padding: 10px;
    }

    #load-more-announcements {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
}



/* contact us */


#contact-us {
    background-color: #f9f9f9;
}

#contact-us .map-container iframe {
    border-radius: 10px;
}

#contact-us .contact-form {
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#contact-us .contact-form:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

#contact-us .form-label {
    font-weight: bold;
}

#contact-us .form-control {
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* #contact-us .form-control:focus {
    border-color: var(--red);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
} */

#contact-us .btn-primary {
    background-color: #f0ad4e;
    border-color: #f0ad4e;
    padding: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

#contact-us .btn-primary:hover {
    background-color: #d98f2e;
    border-color: #d98f2e;
}

@media (max-width: 767px) {
    #contact-us .row {
        flex-direction: column-reverse;
    }

    #contact-us .map-container iframe {
        height: 300px;
    }
}



/* Newsletter section */

#newsletter {
    background-color: #333;
}

#newsletter .form-label {
    font-weight: bold;
}

#newsletter .form-control {
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#newsletter .form-control:focus {
    border-color: #f0ad4e;
    box-shadow: 0 0 8px rgba(240, 173, 78, 0.6);
}

#newsletter .btn-warning {
    background-color: #f0ad4e;
    border-color: #f0ad4e;
    padding: 12px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

#newsletter .btn-warning:hover {
    background-color: #d98f2e;
    border-color: #d98f2e;
}

#newsletter .newsletter-form {
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#newsletter .newsletter-form:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
    #newsletter .row {
        flex-direction: column-reverse;
    }

    #newsletter .newsletter-form {
        margin-top: 20px;
    }
}


.fade-on-scroll {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fade-on-scroll.fade-in {
    opacity: 1;
}



/* Initial state: off-screen and invisible */
.fade-on-scroll1 {
    opacity: 0;
    transform: translateX(-100%); /* Move to the left for slide-in effect */
    transition: opacity 1s ease-out, transform 1s ease-out; /* Fade and slide effect */
}

/* For slide-in from right */
.fade-on-scroll1.slide-from-right {
    transform: translateX(100%); /* Move to the right for slide-in effect */
}

/* On scroll into view: fade and slide into the normal position */
.fade-on-scroll1.fade-in {
    opacity: 1;
    transform: translateX(0); /* Move to the original position */
}



/* scroll to top */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: transparent;
    color: var(--red);
    border: 3px solid var(--yellow);
    /*border-radius: 50%;*/
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1000;
    font-size: 24px;
}
.scroll-to-top:hover {
    background-color: var(--yellow);
    color: white;
}


/* Team section */
.team-member img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-member:hover img {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.team-member h4, .team-member p {
    transition: color 0.3s ease;
}
.team-member:hover h4, .team-member:hover p {
    color: var(--red);
}


#home .sacraments-list {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#home .sacraments-list h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

#home .list-group-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 8px;
}

#home .list-group-item a {
    text-decoration-line: none;
    color: black;
    display: block;
    padding: 8px;
}

#home .list-group-item:hover a {
    color: white;  /* Ensure the text changes to white on hover */
}

#home .list-group-item.active-sac {
    background-color: var(--red);
    color: #fff !important;
}

#home .list-group-item:hover {
    background-color: var(--red_trans);  /* Apply a transparent red on hover */
}

#home .list-group-item.active-sac a {
    color: white !important;  /* Ensure the active link text is white */
}


.responsive-img {
    width: 100%;  /* Ensures the image width is responsive */
    height: auto;  /* Maintains the aspect ratio */
    max-height: 350px;  /* Optionally, set a max height */
    object-fit: cover;  /* Ensures the image fills the container without distortion */
    object-position: top;
}




/* Accordion  */
/* Custom Red Accordion Button */
.red-accordion-button {
    background-color: #d9534f;  /* Red background */
    border-color: #d9534f;      /* Red border */
    color: #fff;                /* White text */
}

/* Custom focus effect */
.red-accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(217, 53, 78, 0.5); /* Red focus outline */
    border-color: #d9534f; /* Keep the red border when focused */
    color: black;
}

/* Hover effect */
.red-accordion-button:hover {
    background-color: #c9302c;  /* Darker red on hover */
    border-color: #c9302c;      /* Darker red border on hover */
    color: white;
}

.hover-zoom {
    transition: transform 0.3s ease;
}
.hover-zoom:hover {
    transform: scale(1.1);
}



.pagination .page-link {
    border-radius: 0.25rem;
    background-color: transparent;
    border: 1px solid #A6192E;
    color: #A6192E;
}

.pagination .page-item.active .page-link {
    background-color: #A6192E;
    border-color: #A6192E;
    color: white;
}

.pagination .page-link:hover {
    background-color: #A6192E;
    color: white !important;
}


.card {
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
}
.card-header {
    font-weight: bold;
    border-bottom: 1px solid #ddd;
}
.category-item {
    padding: 0.5rem;
    transition: background-color 0.3s ease;
}
.category-item:hover {
    background-color: #f8f9fa;
}
.category-item span {
    color: #A6192E; /* Cross sign color */
}
.category-item a {
    font-size: 1rem;
}
.category-item a:hover {
    color: #A6192E; /* Hover color for link */
}



.recent-post-item {
    padding: 0.5rem 0;
    transition: background-color 0.3s ease;
}
.recent-post-item:hover {
    background-color: #f8f9fa;
}
.post-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.25rem;
}
.recent-post-item a:hover {
    color: #A6192E;
}
.recent-post-item p {
    margin-bottom: 0;
}




.gal-item {
    position: relative;
    overflow: hidden;
}
.overlay-container {
    position: relative;
}
.gal-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    pointer-events: none;
}
.overlay-container:hover .overlay {
    opacity: 1;
}
.overlay-container {
    cursor: pointer;
}
.fullscreen-image {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.fullscreen-image img {
    max-height: 80%;
    max-width: 90%;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}


.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding-bottom: 56.25%; /* Aspect ratio 16:9 */
    height: 0;
    overflow: hidden;
}
.embed-responsive-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


.icon {
    display: inline-block;
}
.card {
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}
.card-title {
    font-weight: bold;
}



    .accord {
        border: 1px solid var(--red_trans);
        border-radius: 5px;
        background: #f9f9f9;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }
    .accord-header {
        padding: 8px 10px;
        cursor: pointer;
        background: var(--red);
        color: white;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: background-color 0.3s ease, color 0.3s ease;
    }
    .accord-header:hover {
        background-color: #b31d38;
    }
    .accord-body {
        padding: 15px;
        height: 0;
        overflow: hidden;
        background: #ffffff;
        transition: height 0.4s ease, padding 0.3s ease;
    }
    .accord-body.open {
        height: auto;
        padding: 15px;
    }
    .accord-icon {
        font-size: 1.5rem;
        transition: transform 0.3s ease;
    }
    .accord-icon.open {
        transform: rotate(45deg);
    }


    .blog-title:hover{
        color: var(--red);
    }



    .icon {
        display: inline-block;
    }
    .card {
        border-radius: 12px;
        transition: transform 0.2s, box-shadow 0.2s;
    }
    .card:hover {
        transform: scale(1.02);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    }
    .card-title {
        font-weight: bold;
    }