﻿@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Nunito', system-ui, Arial, sans-serif;
}

nav a {
    border-radius: 999px;
    padding: .55rem .9rem;
    color: #043c57;
    font-weight: 700
}

nav a:hover {
    background: #043c57;
    color: #fff
}

.icon-btn {
    height: 36px;
    width: 36px;
    border-radius: 5px;
    background: #075f7f;
    color: #fff
}

#menuBtn {
    background: #043c57;
    color: #fff;
}

.loader-logo {
    animation: pulse 1s infinite alternate
}

@keyframes pulse {
    to {
        transform: scale(1.08)
    }
}

.hero {
    margin: 14px auto 0;
    max-width: 1180px;
    border-radius: 20px
}

.slider {
    height: 470px;
    position: relative
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    transition: opacity .5s;
}

.slide.active {
    opacity: 1
}

.slide h1 {
    max-width: 650px;
    padding: 2rem;
    color: white;
    font-size: clamp(1.5rem, 1.5vw, 3rem);
    font-weight: 900;
    line-height: 1.2;
    text-align: right;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 42px;
    width: 42px;
    border-radius: 999px;
    background: #fff;
    color: #043c57;
    font-size: 32px;
    box-shadow: 0 8px 30px #0003
}

.arrow.left {
    left: 12px
}

.arrow.right {
    right: 12px
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 42px;
    width: 42px;
    border-radius: 999px;
    background: #ffffff38;
    box-shadow: 0 8px 30px #0003;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

#announcement {
    overflow: hidden;
    position: relative;
}

.announce-track {
    display: inline-flex;
    gap: 2rem;
    white-space: nowrap;
    width: max-content;
    animation: marquee 20s linear infinite;
}

#announcement:hover .announce-track {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-20%);
    }
}

.section {
    padding: 30px 16px;
}

.section h2 {
    text-align: center;
    color: #075f7f;
    font-family: 'Nunito', system-ui, Arial, sans-serif;
    font-weight: 700;
    margin-bottom: 34px;
    font-size: 40px;
}

/* News Slider */
.news-slider-wrap {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.news-slider-viewport {
    overflow: hidden;
    flex: 1;
}

.news-slider-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: stretch;
}

.news-slider-track .news-card {
    flex: 0 0 calc((100% - 48px) / 3);
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

.news-slider-track .news-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.news-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-body h3 {
    font-weight: 800;
    color: #062f44;
    font-size: 16px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.news-card-body p {
    color: #111;
    font-size: 14px;
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 16px;
    border-radius: 999px;
    background: #075f7f;
    color: white;
    padding: 9px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    width: fit-content;
    transition: background 0.2s;
}

.news-read-more:hover {
    background: #043c57;
}

.news-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #dde8ee;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.news-arrow:hover {
    background: #043c57;
}

.news-arrow:hover svg {
    stroke: #fff;
}

.news-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

@media(max-width: 1024px) {
    .news-slider-track .news-card {
        flex: 0 0 calc((100% - 24px) / 2);
    }
}

@media(max-width: 640px) {
    .news-slider-track .news-card {
        flex: 0 0 100%;
    }

    .news-slider-wrap {
        gap: 8px;
    }
}

.card-grid {
    max-width: 1180px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

.card-grid.small {
    grid-template-columns: repeat(5, 1fr)
}

.mini-card,
.news-card {
    border-radius: 18px;
    background: white;
    box-shadow: 0 8px 28px #0b38521a;
    overflow: hidden
}

.mini-card {
    min-height: 120px;
    display: grid;
    place-items: end center;
    padding: 18px;
    text-align: center;
    font-weight: 800;
    color: #043c57;
    background: linear-gradient(145deg, #fff, #eef8fb)
}

.news-card img {
    height: 190px;
    width: 100%;
    object-fit: cover
}

.news-card {
    padding-bottom: 18px
}

.news-card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 14px 16px 8px;
    font-weight: 800;
    color: #062f44;
    font-size: 17.5px;
}

.news-card p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 16px;
    color: #111
}

/* Offcanvas redesign */
.offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e8f2f7;
    background: #e8f2f7;
}

.offcanvas-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #043c57;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.offcanvas-topinfo {
    background: #f7fbfc;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-bottom: 1px solid #e8f2f7;
}

.offcanvas-topinfo a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #043c57;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.offcanvas-topinfo a:hover {
    color: #075f7f;
}

.offcanvas-nav {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.offcanvas-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: #043c57;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.15s;
}

.offcanvas-nav a:hover {
    background: #e8f2f7;
}

.offcanvas-nav a.active,
.mobile-menu-group.active>summary {
    background: #e8f2f7;
    color: #c91462;
}

.mobile-menu-group {
    border-radius: 10px;
}

.mobile-menu-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    color: #043c57;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.mobile-menu-group summary::-webkit-details-marker {
    display: none;
}

.mobile-menu-group summary:hover {
    background: #e8f2f7;
}

.mobile-menu-arrow {
    transition: transform 0.15s ease;
}

.mobile-menu-group[open]>summary .mobile-menu-arrow {
    transform: rotate(90deg);
}

.mobile-submenu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 4px 0 4px 14px;
    padding-left: 10px;
    border-left: 1px solid #dbe9ee;
}

.mobile-submenu a,
.mobile-submenu .mobile-menu-group summary {
    font-size: 14px;
    font-weight: 600;
}

.offcanvas-footer {
    padding: 16px 20px;
    border-top: 1px solid #e8f2f7;
}

.btn {
    /* display: inline-block; */
    margin: 12px 16px 0;
    border-radius: 5px;
    background: #361435;
    color: white;
    padding: .65rem 1rem;
    font-size: 16px;
    font-weight: 700
}

.texture {
    background: radial-gradient(circle at 10% 10%, #f5e3b355, transparent 30%), #faf7ef
}

.message-box {
    min-height: 260px;
    border-radius: 24px;
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 28px
}

.message-box div {
    max-height: 170px;
    overflow: auto;
    scrollbar-width: none;
}

.message-box img {
    height: 150px;
    width: 150px;
    border-radius: 24px;
    object-fit: cover
}

.parish-grid {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px
}

.parish-grid span {
    aspect-ratio: 1;
    border-radius: 999px;
    background: #c91462;
    color: white;
    display: grid;
    place-items: center;
    text-align: center;
    font-weight: 800;
    padding: 10px
}

#offcanvas.open {
    transform: translateX(0)
}

/* Top bar */
.topbar {
    background: linear-gradient(90deg, #361435, #361435);
    font-size: 13px;
}

.topbar-inner {
    max-width: 1180px;
    margin: auto;
    padding: 8px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left,
.topbar-right {
    display: flex;
    gap: 20px;
}

.topbar a {
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    font-size: 15.5px;
}

.topbar a:hover {
    color: #f5ecd9;
}

/* Nav pill */
.nav-pill {
    /* background: #e8f2f7;
    border-radius: 999px; */
    padding: 8px 20px;
    align-items: center;
    gap: 2px;
}

.nav-pill a {
    padding: 7px 14px;
    border-radius: 999px;
    color: #961b48;
    font-weight: 700;
    font-size: 17.5px;
    text-decoration: none;
    transition: background 0.18s;
}

.nav-pill a {
    position: relative;
}

.nav-pill a:hover,
.nav-pill a.active {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    color: #c91462;
}

.nav-pill a:hover::after,
.nav-pill a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 2px;
    background: #c91462;
}

/* Fix dropdown gap so hover doesn't break */
.nav-dropdown .dropdown-menu {
    top: 100%;
    padding-top: 12px;
}

/* Icon & sign-in buttons */
.icon-btn-round {
    height: 44px;
    width: 44px;
    border-radius: 50%;
    background: #043c57;
    color: #fff;
    font-size: 20px;
    display: grid;
    place-items: center;
}

.signin-btn {
    background: #043c57;
    color: #fff;
    border-radius: 999px;
    padding: 10px 22px;
    font-weight: 700;
    font-size: 17.5px;
    display: flex;
    align-items: center;
    gap: 7px;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown>a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 7px 14px;
    border-radius: 999px;
    color: #961b48;
    font-weight: 700;
    font-size: 17.5px;
    text-decoration: none;
    transition: background 0.18s;
}

.nav-dropdown:hover>a,
.nav-dropdown>a.active {
    background: none !important;
    box-shadow: none !important;
    color: #c91462;
}

.nav-pill a.active:hover {
    color: #c91462 !important;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
    padding: 8px;
    min-width: 170px;
    z-index: 200;
}

.nav-dropdown:hover>.dropdown-menu {
    display: flex;
    flex-direction: column;
}

.nav-dropdown>.dropdown-menu {
    gap: 2px;
}

.nav-dropdown>a {
    justify-content: space-between;
}

.nav-dropdown:not(.nested-dropdown)>a .dropdown-arrow {
    transform: rotate(90deg);
}

.dropdown-arrow {
    display: inline-flex;
    font-size: 18px;
    line-height: 1;
}

.dropdown-menu .nav-dropdown {
    position: relative;
}

.dropdown-menu .nav-dropdown>a,
.dropdown-menu>a {
    min-width: 190px;
    white-space: nowrap;
}

.dropdown-menu .nav-dropdown>a::after,
.dropdown-menu>a::after {
    display: none;
}

.dropdown-menu .nested-dropdown>.dropdown-menu {
    top: 0;
    left: calc(100% + 8px);
}

.dropdown-menu a {
    padding: 9px 16px;
    border-radius: 10px;
    color: #043c57;
    font-weight: 600;
    font-size: 17.5px;
    text-decoration: none;
    transition: background 0.15s;
}

.dropdown-menu a:hover {
    background: #e8f2f7;
}

.dropdown-menu a.active {
    background: #e8f2f7;
    color: #c91462;
}

/* Mobile dropdown */
.mobile-dropdown-btn {
    width: 100%;
    text-align: left;
    font-weight: 700;
    color: #043c57;
    font-size: 15px;
    padding: 4px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
}

.mobile-dropdown-menu {
    padding-left: 14px;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-dropdown-menu a {
    color: #075f7f;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.mobile-dropdown-menu.hidden {
    display: none;
}

/* Programs Layout */
.programs-layout {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 5fr 4fr;
    gap: 28px;
    align-items: start;
}

.program-feature {
    border-radius: 20px;
    background: #361435;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.program-feature img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.program-feature-body {
    padding: 24px;
    color: #fff;
}

.program-feature-body h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
    /* text-decoration: underline; */
    text-underline-offset: 4px;
}

.program-feature-body p,
.common,
.news-card p {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 16px;
}

.program-feature-body a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}

.program-feature-body a:hover {
    opacity: 0.8;
}

/* Right scrolling list */
.program-list-wrap {
    height: 420px;
    overflow: hidden;
    position: relative;
}

.program-list-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
    z-index: 1;
}

.program-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: scrollList 12s linear infinite;
}

.program-list:hover {
    animation-play-state: paused;
}

@keyframes scrollList {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

.program-item {
    display: flex;
    gap: 14px;
    background: #361435;
    border-radius: 16px;
    overflow: hidden;
    color: #fff;
    padding-right: 16px;
    align-items: center;
}

.program-item img {
    width: 110px;
    height: 100px;
    object-fit: cover;
    flex-shrink: 0;
}

.program-item h4 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 6px;
    /* text-decoration: underline; */
    text-underline-offset: 3px;
}

.program-item p {
    font-size: 0.8rem;
    line-height: 1.5;
    opacity: 0.85;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.program-item a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
}

.program-item a:hover {
    opacity: 0.8;
}

.from-the-desk {
    background-image: linear-gradient(rgb(253 253 253 / 36%), rgb(245 236 217 / 33%)),
        url(../images/testimonial-v1-pattern.jpg);
    background-color: #faf7ef;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.from-the-desk .message-box {
    color: #fff;
    box-shadow: 0 16px 42px rgba(4, 60, 87, 0.18);
}

.from-the-desk .message-box:first-child {
    background: #043c57;
}

.from-the-desk .message-box:nth-child(2) {
    background: #075f7f;
}

.feature-news {
    background-image: linear-gradient(rgb(253 253 253 / 79%), rgb(255 239 200 / 62%)),
        url(../images/news-bg.jpg);
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
}

.saints {
    background-image: linear-gradient(rgb(48 15 53 / 79%), rgb(244 236 217 / 72%)), url(../images/saints.jpg);
    background-color: #361435;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.saints>div {
    background: #043c57;
    color: #fff;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

/* Testimonial Section */
.testimonial-section,
.saints {
    position: relative;
    overflow: hidden;
    padding: 64px 16px;
}

.testimonial-section {
    background-image: linear-gradient(rgb(250 220 255 / 58%), rgb(244 236 217 / 72%)),
        url(../images/salesians-speak.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.testimonial-inner {
    position: relative;
    z-index: 1;
}

.text-left {
    text-align: left !important;
}

.testimonial-bg-left,
.testimonial-bg-right {
    position: absolute;
    top: 0;
    height: 100%;
    width: 220px;
    opacity: 0.13;
    pointer-events: none;
}

.testimonial-bg-left {
    left: 0;
}

.testimonial-bg-right {
    right: 0;
}

.testimonial-bg-left img,
.testimonial-bg-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.testimonial-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Art side */
.testimonial-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.art-brush {
    position: absolute;
    width: 160px;
    height: 200px;
    background: #8e0038;
    border-radius: 40% 60% 60% 40% / 50% 50% 60% 40%;
    left: 10px;
    top: 50%;
    transform: translateY(-50%) rotate(-10deg);
    opacity: 0.85;
    z-index: 0;
}

.art-img {
    position: relative;
    z-index: 1;
    /* width: 260px;
    height: 300px; */
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

/* Content side */
.testimonial-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #075f7f;
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.testimonial-heading {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    color: #1a1a2e;
    margin-bottom: 28px;
}

.testimonial-heading span {
    color: #075f7f;
}

/* Carousel */
.testimonial-carousel {
    position: relative;
    min-height: 200px;
}

.testimonial-slide {
    display: none;
    animation: fadeSlide 0.4s ease;
}

.testimonial-slide.active {
    display: block;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.speaker-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.speaker-info img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e8f2f7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.speaker-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.speaker-role {
    font-size: 0.85rem;
    color: #075f7f;
    font-weight: 600;
    margin-bottom: 12px;
}

.speaker-quote {
    font-size: 18px;
    line-height: 1.75;
    color: #111;
    font-style: italic;
}

/* Nav */
.testimonial-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
}

.testimonial-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
}

.counter-sep {
    color: #aaa;
}

.counter-total {
    color: #aaa;
}

.testimonial-btns {
    display: flex;
    gap: 10px;
}

.t-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid #ccc;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #043c57;
    transition: all 0.2s;
}

.t-btn:hover {
    background: #043c57;
    color: #fff;
    border-color: #043c57;
}

/* Gallery Section */
.gallery-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-style: italic;
    font-size: 1rem;
    color: #043c57;
    font-weight: 600;
    margin-bottom: 10px;
}

.gallery-grid {
    max-width: 1180px;
    margin: 0 auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.gallery-card {
    background: #f9f0f5;
    border-radius: 20px;
    padding: 36px 28px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    transition: box-shadow 0.2s;
}

.gallery-card:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

.gallery-icon-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.gallery-icon-bg {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #e8d5e8;
    opacity: 0.5;
    transform: scale(1.2);
}

.gallery-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgb(142 0 56 / var(--tw-bg-opacity, 1));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 16px rgba(4, 60, 87, 0.25);
}

.gallery-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0;
}

.gallery-card p {
    font-size: 17.5px;
    line-height: 1.7;
    color: #111;
    flex: 1;
    margin: 0;
}

.news-card a,
.gallery-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #043c57;
    color: #fff;
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: auto;
    transition: background 0.2s;
}

.gallery-btn:hover {
    background: #075f7f;
}

/* Excellence Section */
.excellence-section {
    background: linear-gradient(135deg, #ceeaf7 0%, #f7d6e8 100%);
}

.excellence-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-style: italic;
    font-size: 0.9rem;
    color: #043c57;
    font-weight: 600;
    margin-bottom: 10px;
    flex-wrap: wrap;
    text-align: center;
}

.excellence-panel {
    max-width: 1100px;
    margin: 0 auto;
    background: #043c57;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(4, 60, 87, 0.2);
}

/* Tabs */
.excellence-tabs {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}

.ex-tab {
    flex: 1;
    padding: 16px 20px;
    background-image: linear-gradient(135deg, #a01e50 0%, #f5576c 100%);
    color: #fff;
    font-weight: 700;
    font-size: 17.5px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    text-align: center;
    cursor: pointer;
    min-width: 120px;
}

.ex-tab:hover {
    background: #043c57;
    color: #fff;
}

.ex-tab.active {
    background: #043c57;
    color: #fff;
    border-bottom: 3px solid #dd4764;
}

/* Content */
.ex-content {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    animation: fadeSlide 0.35s ease;
}

.ex-content.active {
    display: grid;
}

.ex-text {
    padding: 40px 36px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ex-text h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 900;
    line-height: 1.3;
    color: #fff;
}

.ex-text p {
    font-size: 17.5px;
    line-height: 1.75;
    color: #b8d8e8;
}

.ex-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}

.ex-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17.5px;
    color: #d0eaf5;
}

.ex-list li svg {
    flex-shrink: 0;
    color: #75c6e0;
}

.ex-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #043c57;
    border-radius: 999px;
    padding: 11px 24px;
    font-size: 17.5px;
    font-weight: 800;
    text-decoration: none;
    margin-top: 8px;
    width: fit-content;
    transition: background 0.2s, color 0.2s;
}

.ex-btn:hover {
    background: #75c6e0;
    color: #043c57;
}

.ex-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

.ex-actions .ex-btn {
    margin-top: 8px;
}

.ex-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .75);
}

.ex-btn-outline:hover {
    background: #fff;
    border-color: #fff;
}

.ex-image {
    overflow: hidden;
    border-radius: 0 0 24px 0;
}

.ex-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 320px;
    display: block;
}

.message-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px;
    border-radius: 30px;
    min-height: 260px;
}

.message-content {
    max-width: 70%;
}

.message-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.message-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: #fff;
    color: #043c57;
    transform: translateX(3px);
}

.message-box img {
    width: 120px;
    height: 150px;
    object-fit: cover;
    border-radius: 24px;
    border: 4px solid rgba(255, 255, 255, 0.15);
}

.footer-section {
    position: relative;
    background:
        linear-gradient(rgb(7 95 127), rgb(7 95 127 / 78%)),
        url(../images/footer-bg.jpg) center / cover no-repeat;
    overflow: hidden;
}

.footer-wave {
    height: 45px;
    background: #faf7ef;
    clip-path: polygon(0 0, 12% 25%, 25% 5%, 40% 28%, 55% 10%, 70% 25%, 85% 8%, 100% 20%, 100% 0);
}

.footer-container {
    max-width: 1180px;
    margin: auto;
    padding: 40px 20px 25px;
}

.newsletter-row,
.footer-contact,
.footer-main {
    display: grid;
    gap: 30px;
}

.newsletter-row {
    grid-template-columns: 1fr 420px;
    align-items: center;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.8);
    padding-bottom: 38px;
}

.newsletter-row h3 {
    font-size: 30px;
    font-weight: 900;
}

.newsletter-row p {
    color: rgba(255, 255, 255, 0.75);
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input,
.login-box input {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 13px 18px;
    color: #043c57;
}

.newsletter-form button,
.login-box button,
.login-btn {
    border-radius: 999px;
    background: #043c57;
    color: #fff;
    padding: 12px 22px;
    font-weight: 800;
    white-space: nowrap;
}

.footer-contact {
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding: 35px 0;
}

.footer-contact>div {
    display: flex;
    align-items: center;
    gap: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.footer-contact>div:last-child {
    border-right: 0;
}

.footer-contact span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: #fff;
    color: #075f7f;
    border-radius: 50%;
}

.footer-contact small {
    opacity: 0.75;
}

.footer-main {
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
    padding-top: 35px;
}

.footer-about h2 {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: 2px;
}

.footer-about p,
.footer-main li {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.footer-main h4 {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.45);
    width: fit-content;
}

.footer-main ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-login-now p {
    font-size: 15px;
    margin: 18px 0;
}

.footer-login-form {
    margin: 0;
}

.login-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 8px;
}

.login-box input {
    background: #eef4ff;
    color: #111827;
    font-weight: 600;
}

.login-box input::placeholder {
    color: #5f6b7a;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0;
    font-size: 15px;
}

.remember input {
    width: 14px;
    height: 14px;
    accent-color: #043c57;
}

.footer-login-error {
    margin: 10px 0 0;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .16);
    color: #ffd7d7;
    font-size: 13px;
    font-weight: 700;
}

.login-btn {
    border-radius: 50px;
}

.login-btn {
    padding: 10px 28px;
}

.footer-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
    padding: 18px 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.social-widget {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}


.social-icon:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.ministry-grid {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.ministry-card {
    position: relative;
    min-height: 250px;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-decoration: none;
    background: #f5f5f5;
    border-top: 3px solid #c91462;
    box-shadow: 0 8px 24px rgba(4, 60, 87, 0.12);
    transition: all 0.3s ease;
}

.ministry-card img {
    position: absolute;
    inset: 0;
    transition: transform 0.4s ease;

    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.ministry-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.25), transparent 55%);
}

.ministry-title {
    position: relative;
    z-index: 2;
    width: calc(100% - 24px);
    margin-bottom: 18px;
    padding: 5px 12px;
    border-radius: 5px;
    background: #fff;
    color: #222;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    /* single line */
    overflow: hidden;
    text-overflow: ellipsis;
    /* ... if too long */
    box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
}

.ministry-title span {
    display: block;
}

.ministry-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(4, 60, 87, 0.22);
}

.ministry-card:hover img {
    transform: scale(1.08);
}

.parishes-section {
    background: linear-gradient(135deg, #fff 0%, #eaf8fc 100%);
}

.parish-carousel-wrap {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.parish-carousel {
    overflow: hidden;
    width: 100%;
}

.parish-track {
    display: flex;
    gap: 22px;
    transition: transform 0.5s ease;
}

.parish-card {
    flex: 0 0 calc((100% - 88px) / 5);
    min-height: 170px;
    border-radius: 15px;
    background-image: linear-gradient(135deg, #a01e50 0%, #f5576c 100%);
    box-shadow: 0 10px 28px rgba(4, 60, 87, 0.13);
    border: 1px solid #e8f2f7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    padding: 22px;
}

.parish-icon {
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 34px;
}

.parish-card h3 {
    font-size: 18px;
    font-weight: 900;
    color: #f5ecd9;
}

.parish-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #043c57;
    color: #fff;
    font-size: 34px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    line-height: 1;
    box-shadow: 0 8px 24px rgba(4, 60, 87, 0.25);
}

.parish-arrow:hover {
    background: #361435;
}

#backToTop {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #043c57;
    color: #fff;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .2);
    transition: all 0.3s ease;
}

#backToTop:hover {
    background: #361435;
    transform: translateY(-4px);
}

#backToTop.show {
    display: flex;
}

.parish-item {
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(135deg, #f4ecd9, #f5ecd9);
    color: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    padding: 22px;
    text-decoration: none;
    overflow: hidden;
}

.parish-icon {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: #111;
}

.parish-icon svg {
    width: 34px;
    height: 34px;
    stroke: currentColor;
}

.parish-item h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    max-width: 120px;
}

.parish-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(189, 40, 91, 0.25);
}

.footer-container a:hover {
    color: #f4ecd9;
}

.desktop-none {
    display: none;
}

.desktop-none h3 {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
}

.news-card .news-read-more {
    margin-left: 15px;
}

.search-wrapper {
    position: relative;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 24px);
    right: -8px;
    width: min(280px, calc(100vw - 32px));
    background: #fff;
    padding: 10px 12px;
    border: 1.5px solid #b21f2d;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(4, 60, 87, 0.16);
    display: none;
    align-items: center;
    gap: 8px;
    z-index: 999;
}

.search-dropdown::before {
    content: '';
    position: absolute;
    top: -9px;
    right: 18px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-left: 1.5px solid #b21f2d;
    border-top: 1.5px solid #b21f2d;
    transform: rotate(45deg);
}

.search-dropdown.show {
    display: flex;
}

.search-dropdown input {
    flex: 1;
    min-width: 0;
    padding: 8px 4px;
    border: 0;
    outline: none;
    color: #043c57;
    font-size: 15px;
    font-weight: 600;
}

.search-dropdown input::placeholder {
    color: #9aa6b2;
}

.search-dropdown button {
    position: relative;
    z-index: 1;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #b21f2d;
    transition: background 0.15s, color 0.15s;
}

.search-dropdown button:hover {
    background: #b21f2d;
    color: #fff;
}

.message-box a:hover {
    color: rgb(255, 255, 255)
}

.message-box a {
    color: rgb(245 236 217)
}

@media (max-width: 1024px) {
    .parish-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .parish-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .parish-item h3 {
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    .parish-card {
        flex: 0 0 calc((100% - 44px) / 3);
    }
}

@media (max-width: 640px) {
    .parish-carousel-wrap {
        gap: 8px;
    }

    .parish-card {
        flex: 0 0 100%;
        min-height: 160px;
    }

    .parish-arrow {
        width: 38px;
        height: 38px;
        font-size: 28px;
    }
}

@media (max-width: 1200px) {
    .ministry-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .ministry-grid {
        grid-template-columns: 1fr;
    }

    .ministry-card {
        min-height: 260px;
    }
}

@media (max-width: 991px) {

    .newsletter-row,
    .footer-contact,
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-contact>div {
        border-right: 0;
    }
}

@media (max-width: 640px) {

    .newsletter-row,
    .footer-contact,
    .footer-main {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-row h3 {
        font-size: 24px;
    }

    .footer-about h2 {
        font-size: 30px;
    }

    .footer-container {
        padding: 30px 16px 20px;
    }
}

/* Responsive */
@media(max-width: 768px) {
    .btn {
        display: inline-block;
    }

    .slide h1 {
        padding: 1.2rem;
        font-size: 1rem !important;
    }

    .sticky img {
        width: 3.5rem;
        height: auto;
    }

    .desktop-none {
        display: block !important;
    }

    .section h2 {
        font-size: 25px;
    }

    .programs-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .program-feature {
        width: 100%;
    }

    .program-list-wrap {
        width: 100%;
        height: auto;
        overflow: visible;
    }

    .program-list {
        animation: none;
    }

    .program-item {
        width: 100%;
    }

    .message-box img {
        margin: 0px auto;
        margin-top: 15px;
    }

    #backToTop {
        width: 45px;
        height: 45px;
        right: 15px;
        bottom: 15px;
    }

    .ministry-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 18px;
    }

    .ministry-card {
        min-height: 220px;
    }

    .testimonial-inner {
        grid-template-columns: 1fr;
    }

    .testimonial-art {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .message-box {
        flex-direction: column-reverse;
        text-align: center;
        gap: 20px;
    }

    .message-content {
        max-width: 100%;
    }

    .message-box img {
        width: 100px;
        height: 120px;
    }

    .topbar-inner,
    .mobile-none {
        display: none;
    }

    .ex-content.active {
        grid-template-columns: 1fr;
    }

    .ex-image {
        border-radius: 0 0 24px 24px;
    }

    .ex-image img {
        min-height: 220px;
    }

    .ex-text {
        padding: 28px 20px;
    }

    .ex-list {
        grid-template-columns: 1fr;
    }

    .ex-tab {
        font-size: 0.8rem;
        padding: 12px 10px;
    }
}


@media(max-width: 1024px) and (min-width: 769px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:1024px) {

    .card-grid,
    .card-grid.small {
        grid-template-columns: repeat(2, 1fr)
    }

    .slider {
        height: 390px
    }

    .parish-grid {
        grid-template-columns: repeat(4, 1fr)
    }
}

@media(max-width:640px) {

    header .max-w-7xl,
    header .max-w-\[75rem\] {
        justify-content: space-between
    }

    .hero {
        margin: 8px;
        border-radius: 14px
    }

    .slider {
        height: 330px
    }

    .slide h1 {
        padding: 1.2rem;
        font-size: 2rem
    }

    .section {
        padding: 42px 12px
    }

    .card-grid,
    .card-grid.small {
        grid-template-columns: 1fr
    }

    .message-box {
        display: block
    }

    .message-box img {
        margin-top: 18px
    }

    .parish-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px
    }

    .parish-grid span {
        font-size: 12px
    }

    .news-card img {
        height: 160px
    }
}

/* =========================
   Subpage Common Styles
   ========================= */
.subpage-main {
    background: #fff;
}

.breadcrumb-section {
    position: relative;
    min-height: 190px;
    display: grid;
    place-items: center;
    text-align: center;
    overflow: hidden;
    background-size: cover;
    margin-top: 14px;
    isolation: isolate;
}

.breadcrumb-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(54, 20, 53, .9), rgba(4, 60, 87, .76)),
        radial-gradient(circle at 20% 20%, rgba(245, 227, 179, .22), transparent 34%);
}

.breadcrumb-content {
    position: relative;
    z-index: 1;
    color: #fff;
    width: min(100%, 1180px);
    padding: 42px 24px;
    margin: 0 auto;
}

.breadcrumb-content h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 12px;
    color: #fff;
}

.breadcrumb-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 5px 12px;
    border: 1px solid rgba(245, 227, 179, .48);
    border-radius: 999px;
    color: #f5e3b3;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.breadcrumb-content p,
.breadcrumb-content a {
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.breadcrumb-content p {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    font-size: .98rem;
}

.breadcrumb-content a:hover {
    color: #f5e3b3;
}

.breadcrumb-content p span {
    color: #f5e3b3;
    margin: 0 8px;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
    vertical-align: -0.08em;
}

.breadcrumb-about {
    background-image: url('../images/slider/slider2.jpg');
    background-position: center;
}

.breadcrumb-gallery {
    background-image: url('../images/slider/slider3.jpg');
    background-position: center;
}

.breadcrumb-single-gallery {
    background-image: url('../images/resources/resources3.jpg');
}

.error-page-section {
    background: #f7fbfc;
    padding: 72px 24px 88px;
}

.error-page-card {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 48px;
    border: 1px solid #dbe9ee;
    border-radius: 18px;
    background: #fff;
    text-align: center;
    box-shadow: 0 18px 48px rgba(4, 60, 87, .1);
}

.error-code {
    color: #c91462;
    font-size: clamp(4.5rem, 13vw, 9rem);
    font-weight: 900;
    line-height: .9;
}

.error-page-card h2 {
    margin: 18px 0 10px;
    color: #043c57;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    font-weight: 900;
}

.error-page-card p {
    max-width: 560px;
    margin: 0 auto;
    color: #405661;
    font-size: 1.03rem;
    line-height: 1.7;
}

.error-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.error-primary-btn,
.error-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
}

.error-primary-btn {
    background: #043c57;
    color: #fff;
}

.error-primary-btn:hover {
    background: #c91462;
    color: #fff;
}

.error-secondary-btn {
    border: 2px solid #043c57;
    color: #043c57;
}

.error-secondary-btn:hover {
    border-color: #c91462;
    color: #c91462;
}

.search-results-section {
    background: #fff;
    padding: 56px 24px 80px;
}

.search-results-container {
    width: min(100%, 900px);
    margin: 0 auto;
}

.search-results-container h2 {
    color: #043c57;
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    font-weight: 900;
}

.search-results-container h2 span {
    color: #c91462;
}

.search-count {
    margin: 10px 0 24px;
    color: #405661;
    font-size: 1.05rem;
}

.search-result-card,
.search-empty-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border: 1px solid #dbe9ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(4, 60, 87, .06);
}

.search-result-card+.search-result-card {
    margin-top: 14px;
}

.search-result-type {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f5e3b3;
    color: #043c57;
    font-size: .78rem;
    font-weight: 900;
}

.search-result-card h3,
.search-empty-card h3 {
    margin: 0;
    color: #043c57;
    font-size: 1.18rem;
    font-weight: 900;
}

.search-result-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    min-height: 40px;
    border: 1.5px solid #c91462;
    border-radius: 999px;
    color: #c91462;
    font-weight: 900;
    text-decoration: none;
}

.search-result-link:hover {
    background: #c91462;
    color: #fff;
}

.search-empty-card {
    display: block;
    text-align: center;
}

.search-empty-card p {
    margin: 8px 0 0;
    color: #405661;
}

.breadcrumb-news {
    background-image: url('../images/slider/slider2.jpg');
    background-position: center;
}

.breadcrumb-single-news {
    background-image: url('../images/slider/slider4.jpg');
    background-position: top;

}

.breadcrumb-events {
    background-image: url('../images/slider/slider2.jpg');
    background-position: center;
}

.breadcrumb-single-events {
    background-image: url('../images/slider/slider3.jpg');
    background-position: center;
}

.breadcrumb-contact {
    background-image: url('../images/slider/slider4.jpg');
}

.sub-section h1,
.sub-section h2,
.sub-section h3,
.sub-section h4,
.sub-section h5,
.sub-section h6,
.detail-page h1,
.detail-page h2,
.detail-page h3 {
    font-family: 'Nunito', system-ui, Arial, sans-serif;
    line-height: 1.2;
}

.sub-section h3 {
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    font-weight: 800;
    color: #043c57;
    margin-bottom: 12px;
}

.sub-section h4 {
    font-size: 18px;
    font-weight: 800;
    color: #361435;
    margin-bottom: 12px;
}

.sub-section p,
.detail-page p {
    font-size: 17.5px;
    line-height: 1.75;
    color: #1f2937;
}

.sub-section img,
.detail-page img {
    transition: transform .35s ease, filter .35s ease;
}

.sub-section img:hover,
.detail-page img:hover {
    transform: scale(1.04);
    filter: brightness(.96);
}

.detail-content-section {
    padding-top: 46px;
    padding-bottom: 56px;
}

.detail-content-container {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 0 24px;
}

.detail-article {
    width: 100%;
    margin: 0 auto;
}

.detail-article>.block-item:first-child,
.detail-page-content .detail-article>.block-item:first-child {
    padding-bottom: 8px;
}

.detail-article>.block-item:first-child h2,
.detail-page-content .detail-article>.block-item:first-child h1,
.detail-page-content .detail-article>.block-item:first-child h2,
.detail-page-content .detail-article>.block-item:first-child h3 {
    margin: 0 0 8px;
    text-align: left;
    color: #043c57;
    font-size: clamp(1.9rem, 3vw, 2.55rem);
    font-weight: 900;
}

.detail-article .news-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 28px;
    color: #8e0038;
    font-size: 16.5px;
    font-weight: 900;
}

.detail-article .news-meta-item i,
.detail-article .news-meta-item span {
    font-size: 16.5px !important;
}

.detail-article .block-item,
.detail-page-content .block-item {
    width: 100%;
}

.detail-article .content-text,
.detail-article .tiptap-content,
.detail-page-content .content-text,
.detail-page-content .tiptap-content {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.about-layout {
    max-width: 1180px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: center;
}

.about-layout img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 16px 48px rgba(4, 60, 87, .18);
}

.info-grid {
    max-width: 1180px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.info-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 28px #0b38521a;
    border-top: 5px solid #8e0038;
}

.table-wrap {
    max-width: 950px;
    margin: auto;
    overflow-x: auto;
    border-radius: 18px;
    box-shadow: 0 8px 28px #0b38521a;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 600px;
}

.custom-table th,
.custom-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #e8f2f7;
    text-align: left;
}

.custom-table th {
    background: #043c57;
    color: #fff;
    width: 220px;
}

.album-grid {
    max-width: 1180px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
}

.album-card {
    display: block;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: #043c57;
    box-shadow: 0 8px 28px #0b38521a;
}

.album-img {
    height: 150px;
    overflow: hidden;
}

.album-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-card h3 {
    font-size: 1rem;
    padding: 14px 14px 2px;
    margin: 0;
    color: #043c57;
}

.album-card p {
    padding: 0 14px 16px;
    margin: 0;
    font-size: 14px;
    color: #8e0038;
    font-weight: 800;
}

.media-grid {
    max-width: 1180px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.media-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e1edf2;
    border-radius: 8px;
    box-shadow: 0 8px 28px #0b38521a;
}

.media-video {
    aspect-ratio: 16 / 9;
    background: #111;
}

.media-video iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.media-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.media-card-body {
    padding: 16px;
}

.media-card-body h3 {
    margin: 0;
    color: #043c57;
    font-size: 1.08rem;
    line-height: 1.35;
}

.media-card-body p {
    margin: 8px 0 14px;
    color: #405661;
    font-size: .95rem;
    line-height: 1.55;
}

.media-card audio {
    width: 100%;
    display: block;
}

.media-empty {
    max-width: 720px;
    margin: auto;
    padding: 34px 24px;
    border: 1px solid #dbe9ee;
    border-radius: 8px;
    text-align: center;
    background: #fff;
    box-shadow: 0 8px 28px #0b38521a;
}

.media-empty h3 {
    margin: 0 0 8px;
    color: #043c57;
}

.media-empty p {
    margin: 0;
    color: #405661;
}

.single-gallery-grid {
    max-width: 1180px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.gallery-content-offset {
    margin-top: 28px;
}

.single-gallery-item {
    display: block;
    height: 170px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px #0b38521a;
}

.single-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, .82);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.lightbox.open {
    display: flex;
}

.lightbox-open {
    overflow: hidden;
}

.lightbox-frame {
    max-width: min(100%, 1040px);
    max-height: 86vh;
    display: grid;
    place-items: center;
}

.lightbox img {
    max-width: 100%;
    max-height: 86vh;
    border-radius: 16px;
    object-fit: contain;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    background: transparent;
    cursor: pointer;
    z-index: 1;
}

.post-two-col {
    max-width: 1180px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

.list-post {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 18px;
    background: #fff;
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 18px;
    box-shadow: 0 8px 28px #0b38521a;
    overflow: hidden;
    border-left: 4px solid #043c57;
}

.list-post.event-post {
    border-left-color: #8e0038;
    background: linear-gradient(90deg, #fff, #fff8ed);
}

.list-post-img {
    height: 130px;
    border-radius: 14px;
    overflow: hidden;
    display: block;
}

.list-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8e0038;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 6px;
}

.list-post h3 {
    margin: 0 0 6px;
    font-size: 1.08rem;
}

.list-post h3 a {
    color: #043c57;
    text-decoration: none;
}

.list-post p {
    font-size: 15px;
    line-height: 1.55;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.parish-title-post {
    grid-template-columns: 1fr;
    min-height: 92px;
    place-items: center;
    text-align: center;
}

.parish-title-post .list-post-body {
    width: 100%;
}

.parish-title-post h3 {
    margin: 0;
    font-size: 1.15rem;
}

.read-text {
    color: #043c57;
    font-weight: 900;
    text-decoration: none;
}

.events-bg {
    background: linear-gradient(135deg, #fff 0%, #f5e3b3 100%);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 34px 0 0;
    clear: both;
}

.pagination a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: #043c57;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 6px 18px #0b38521a;
}

.pagination span {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: #043c57;
    font-weight: 900;
    box-shadow: 0 6px 18px #0b38521a;
}

.pagination span.active {
    background: #043c57;
    color: #fff;
}

.pagination span.disabled {
    opacity: .45;
}

.pagination a:first-child,
.pagination a:last-child {
    font-size: 1.75rem;
    line-height: 1;
}

.pagination a.active,
.pagination a:hover {
    background: #043c57;
    color: #fff;
}

.detail-page {
    max-width: 1180px;
    margin: auto;
    background: #fff;
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 10px 38px #0b38521a;
}

.detail-page h2 {
    text-align: left;
    color: #043c57;
    margin: 10px 0 20px;
}

.detail-page img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 24px;
}

.go-back {
    display: inline-flex;
    margin-top: 14px;
    background: #361435;
    color: #fff;
    padding: 12px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
}

.event-detail {
    border-top: 6px solid #8e0038;
}

.news-detail {
    border-top: 6px solid #043c57;
}

.contact-layout {
    max-width: 1180px;
    margin: auto;
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 28px;
    align-items: stretch;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-card {
    background: #f7fbfc;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 28px #0b38521a;
}

.contact-card span {
    font-size: 28px;
}

.contact-card h3 {
    margin: 10px 0 6px;
}

.contact-card p,
.contact-card a {
    font-size: 15px;
    line-height: 1.55;
    color: #1f2937;
    text-decoration: none;
}

.contact-social {
    grid-column: 1/-1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-social a {
    background: #043c57;
    color: #fff;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 800;
    text-decoration: none;
}

.contact-form {
    background: #fff;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 10px 38px #0b38521a;
    display: grid;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #d9e7ee;
    border-radius: 14px;
    padding: 14px 16px;
    font: inherit;
    outline: none;
}

.contact-form textarea {
    min-height: 145px;
    resize: vertical;
}

.contact-form button {
    background: #361435;
    color: #fff;
    padding: 14px 20px;
    border-radius: 999px;
    font-weight: 900;
}

.map-box {
    max-width: 1180px;
    margin: 28px auto 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 38px #0b38521a;
}

.map-box iframe {
    width: 100%;
    height: 360px;
    border: 0;
    display: block;
}

.sub-section .btn {
    margin: 12px 0 0;
}

.contact-social-media a {
    color: #361435;
}

.contact-social-media h3 {
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 1024px) {

    .album-grid,
    .media-grid,
    .single-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-layout,
    .contact-layout,
    .post-two-col {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .breadcrumb-section {
        min-height: 180px;
    }

    .breadcrumb-content {
        padding: 34px 18px;
    }

    .breadcrumb-content h1 {
        font-size: 2rem;
    }

    .breadcrumb-content p {
        font-size: .9rem;
    }

    .breadcrumb-content p span {
        margin: 0 4px;
    }

    .error-page-section {
        padding: 46px 16px 64px;
    }

    .error-page-card {
        padding: 34px 22px;
        border-radius: 14px;
    }

    .album-grid,
    .media-grid,
    .single-gallery-grid,
    .contact-info {
        grid-template-columns: 1fr;
    }

    .single-gallery-item {
        height: 220px;
    }

    .list-post {
        grid-template-columns: 1fr;
    }

    .list-post-img {
        height: 210px;
    }

    .detail-page {
        padding: 22px;
        border-radius: 18px;
    }

    .about-layout img {
        height: 280px;
    }

    .sub-section p,
    .detail-page p {
        font-size: 16px;
    }
}

.newsletter-row {
    position: relative;
}

.newsletter-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(2, 25, 37, .62);
    backdrop-filter: blur(3px);
    animation: fadeIn .25s ease;
}

.newsletter-popup-card {
    position: relative;
    width: min(100%, 440px);
    padding: 34px 30px 30px;
    border-radius: 20px;
    background: #fff;
    color: #043c57;
    text-align: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.newsletter-popup-card.success {
    border-top: 6px solid #16865b;
}

.newsletter-popup-card.error {
    border-top: 6px solid #c92f49;
}

.newsletter-popup-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    border-radius: 50%;
    color: #fff;
    font-size: 30px;
    font-weight: 900;
}

.newsletter-popup-card.success .newsletter-popup-icon {
    background: #16865b;
}

.newsletter-popup-card.error .newsletter-popup-icon {
    background: #c92f49;
}

.newsletter-popup-card h3 {
    margin: 0 0 8px;
    color: #043c57;
    font-size: 1.35rem;
    font-weight: 900;
}

.newsletter-popup-card p {
    margin: 0;
    color: #405661;
    line-height: 1.6;
}

.newsletter-popup-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: transparent;
    color: #647780;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.newsletter-popup-overlay.hide {
    animation: fadeOut .25s ease forwards;
}

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

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}
