/* ==========================================================
COMMUNITY OUTREACH PAGE — extends homepage design system
========================================================== */

.page-community {
    overflow-x: hidden;
}

.page-community section {
    padding: 0;
    overflow-x: hidden;
}

/* ----------------------------------------------------------
PAGE BANNER
---------------------------------------------------------- */

.page-community .co-banner {
    position: relative;
    padding: 185px 0 145px;
    overflow: hidden;
    background: none;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.page-community .co-banner-bg {
    position: absolute;
    inset: 0;
    background: url("../images/banner/community-banner.jpg") center center / cover no-repeat;
    transform: scale(1);
    animation: coBannerKenBurns 14s ease-out forwards;
    will-change: transform;
}

@keyframes coBannerKenBurns {
    from { transform: scale(1); }
    to   { transform: scale(1.06); }
}

.page-community .co-banner .banner-overlay {
    background:
        linear-gradient(105deg,
            rgba(18, 30, 46, 0.88) 0%,
            rgba(32, 50, 72, 0.72) 45%,
            rgba(18, 30, 46, 0.84) 100%),
        radial-gradient(ellipse at 25% 25%,
            rgba(132, 147, 15, 0.16) 0%,
            transparent 55%),
        radial-gradient(ellipse at 80% 70%,
            rgba(212, 175, 55, 0.1) 0%,
            transparent 50%);
    z-index: 1;
}

.page-community .co-banner-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        #84930F 20%,
        #D4AF37 50%,
        #84930F 80%,
        transparent 100%);
    z-index: 3;
}

.page-community .co-banner .container {
    position: relative;
    z-index: 2;
}

.page-community .co-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    margin-bottom: 26px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.page-community .co-banner-badge i {
    color: #D4AF37;
    font-size: 11px;
}

.page-community .co-banner h1 {
    font-family: "Cormorant Garamond", serif;
    color: #fff;
    font-size: clamp(42px, 5.5vw, 64px);
    font-weight: 600;
    margin-bottom: 0;
    letter-spacing: -0.5px;
    line-height: 1.08;
}

.page-community .co-banner h1 span {
    color: #D4AF37;
}

.page-community .co-banner-divider {
    display: flex;
    justify-content: center;
    margin: 22px 0 24px;
}

.page-community .co-banner-divider span {
    display: block;
    width: 64px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #84930F, #D4AF37, #84930F);
}

.page-community .co-banner p {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(18px, 2.2vw, 24px);
    font-style: italic;
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, 0.88);
}

.page-community .co-breadcrumb {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 10px 22px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.page-community .co-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.45);
}

.page-community .co-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-community .co-breadcrumb a:hover {
    color: #D4AF37;
}

.page-community .co-breadcrumb .breadcrumb-item.active {
    color: #D4AF37;
}

.page-community .co-banner-curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 72px;
    background: linear-gradient(180deg, #FCFAF6 0%, #F7F3EC 100%);
    clip-path: ellipse(78% 100% at 50% 100%);
    z-index: 2;
}

/* ----------------------------------------------------------
SHARED SECTION STYLES
---------------------------------------------------------- */

.page-community .co-label {
    display: inline-block;
    padding: 8px 20px;
    margin-bottom: 16px;
    border-radius: 40px;
    background: rgba(132, 147, 15, 0.1);
    border: 1px solid rgba(132, 147, 15, 0.22);
    color: #84930F;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.page-community .co-section-divider {
    display: flex;
    justify-content: center;
    margin: 16px 0 20px;
}

.page-community .co-section-divider span {
    display: block;
    width: 56px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #84930F, #D4AF37, #84930F);
}

.page-community .co-section-header {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.page-community .co-section-header h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(32px, 3.8vw, 44px);
    color: #243447;
    margin-bottom: 16px;
}

.page-community .co-section-header p {
    font-size: 17px;
    line-height: 1.75;
    color: #5a6a7a;
    margin: 0;
}

.page-community .co-block h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(30px, 3.5vw, 40px);
    color: #243447;
    margin-bottom: 20px;
    line-height: 1.15;
}

.page-community .co-block p {
    font-size: 16px;
    line-height: 1.85;
    color: #5a6a7a;
    margin-bottom: 18px;
}

.page-community .co-block p:last-child {
    margin-bottom: 0;
}

.page-community .co-block .lead {
    font-size: 18px;
    color: #243447;
    font-weight: 500;
}

.page-community .co-img-frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(34, 50, 72, 0.14);
}

.page-community .co-img-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    z-index: 2;
    pointer-events: none;
}

.page-community .co-img-frame img {
    width: 100%;
    display: block;
    border-radius: 24px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.page-community .co-checklist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 28px;
}

.page-community .co-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(67, 102, 145, 0.08);
    box-shadow: 0 6px 20px rgba(34, 50, 72, 0.05);
    font-size: 14px;
    font-weight: 500;
    color: #243447;
}

.page-community .co-check-item i {
    color: #84930F;
    font-size: 16px;
    flex-shrink: 0;
}

/* ----------------------------------------------------------
SECTION BACKGROUNDS
---------------------------------------------------------- */

.page-community .co-intro {
    padding: 110px 0;
    background: linear-gradient(180deg, #FCFAF6 0%, #F7F3EC 100%);
}

.page-community .co-oottupura,
.page-community .co-community,
.page-community .co-chapel {
    padding: 110px 0;
    background: #fff;
    position: relative;
}

.page-community .co-santhwanam {
    padding: 110px 0;
    background: linear-gradient(180deg, #FCFAF6 0%, #F7F3EC 100%);
    position: relative;
}

.page-community .co-education,
.page-community .co-funeral {
    padding: 110px 0;
    background: linear-gradient(180deg, #FCFAF6 0%, #F7F3EC 100%);
    position: relative;
}

.page-community .co-equipment {
    padding: 110px 0 120px;
    background: linear-gradient(165deg, #365271 0%, #2F4866 48%, #243447 100%);
    position: relative;
    overflow: hidden;
}

.page-community .co-equipment::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    top: -160px;
    right: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.page-community .co-equipment::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    bottom: -140px;
    left: -100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(132, 147, 15, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.page-community .co-equipment .container {
    position: relative;
    z-index: 1;
}

.page-community .co-equipment .co-label {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
    color: #D4AF37;
}

.page-community .co-equipment .co-section-header h2 {
    color: #fff;
}

.page-community .co-equipment .co-section-header p {
    color: rgba(255, 255, 255, 0.78);
}

.page-community .co-equipment .co-section-divider span {
    background: linear-gradient(90deg, #84930F, #D4AF37, #84930F);
}

/* ----------------------------------------------------------
EQUIPMENT CARDS
---------------------------------------------------------- */

.page-community .co-equip-card {
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 28px 16px 24px;
    text-align: center;
    height: 100%;
    transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
    overflow: hidden;
}

.page-community .co-equip-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #84930F, #D4AF37);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.page-community .co-equip-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(212, 175, 55, 0.35);
}

.page-community .co-equip-card:hover::before {
    opacity: 1;
}

.page-community .co-equip-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(132, 147, 15, 0.2);
    color: #D4AF37;
    font-size: 24px;
    transition: transform 0.35s ease, background 0.35s ease;
}

.page-community .co-equip-card:hover .co-equip-icon {
    transform: scale(1.06);
    background: linear-gradient(135deg, #84930F, #6d7c0d);
    color: #fff;
}

.page-community .co-equip-card h4 {
    font-family: "Cormorant Garamond", serif;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

/* ----------------------------------------------------------
FUNERAL SECTION
---------------------------------------------------------- */

.page-community .co-funeral-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        #84930F 20%,
        #D4AF37 50%,
        #84930F 80%,
        transparent 100%);
}

.page-community .co-note {
    margin-top: 24px;
    padding: 22px 26px;
    border-radius: 16px;
    background: #fff;
    border-left: 4px solid #84930F;
    box-shadow: 0 10px 32px rgba(34, 50, 72, 0.06);
}

.page-community .co-note p {
    font-size: 15px;
    line-height: 1.75;
    color: #5a6a7a;
    margin: 0;
    font-style: italic;
}

/* ----------------------------------------------------------
CHAPEL SECTION
---------------------------------------------------------- */

.page-community .co-chapel-gallery {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
}

.page-community .co-chapel-img-main .co-img-frame img {
    aspect-ratio: 16 / 11;
}

.page-community .co-chapel-img-saint .co-img-frame img {
    aspect-ratio: 3 / 4;
}

.page-community .co-chapel-caption {
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #84930F;
    letter-spacing: 0.3px;
}

.page-community .co-prayer-times {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 32px;
}

.page-community .co-prayer-time {
    text-align: center;
    padding: 22px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #FCFAF6 0%, #F7F3EC 100%);
    border: 1px solid rgba(67, 102, 145, 0.08);
    box-shadow: 0 8px 28px rgba(34, 50, 72, 0.06);
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.page-community .co-prayer-time:hover {
    transform: translateY(-4px);
    border-color: rgba(132, 147, 15, 0.25);
}

.page-community .co-prayer-time i {
    display: block;
    font-size: 22px;
    color: #84930F;
    margin-bottom: 10px;
}

.page-community .co-prayer-time strong {
    display: block;
    font-family: "Cormorant Garamond", serif;
    font-size: 26px;
    font-weight: 700;
    color: #243447;
    line-height: 1.1;
    margin-bottom: 4px;
}

.page-community .co-prayer-time span {
    font-size: 13px;
    font-weight: 600;
    color: #84930F;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-community .co-chapel-open {
    margin-top: 28px;
    padding: 20px 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(67, 102, 145, 0.08), rgba(132, 147, 15, 0.1));
    border: 1px solid rgba(132, 147, 15, 0.18);
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.page-community .co-chapel-open i {
    font-size: 22px;
    color: #84930F;
    margin-top: 2px;
    flex-shrink: 0;
}

.page-community .co-chapel-open p {
    font-size: 15px;
    line-height: 1.75;
    color: #5a6a7a;
    margin: 0;
}

/* ----------------------------------------------------------
VERSE & CTA
---------------------------------------------------------- */

.page-community .co-verse {
    padding: 100px 0;
}

.page-community .co-cta-wrap {
    padding: 100px 0 110px;
    background: linear-gradient(180deg, #F7F3EC 0%, #FCFAF6 100%);
}

.page-community .co-cta-box h3 {
    font-size: clamp(26px, 3.5vw, 34px);
    line-height: 1.25;
}

.page-community .co-cta-box p {
    margin-bottom: 24px;
}

.page-community .co-cta-phones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.page-community .co-cta-phone {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.page-community .co-cta-phone:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(212, 175, 55, 0.45);
    color: #fff;
    transform: translateY(-2px);
}

.page-community .co-cta-phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.18);
    color: #D4AF37;
    flex-shrink: 0;
}

.page-community .co-cta-phone-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.page-community .co-cta-phone-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.page-community .co-cta-phone-number {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.3px;
}

.page-community .btn-co {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    background: linear-gradient(135deg, #84930F 0%, #6d7c0d 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 24px rgba(132, 147, 15, 0.3);
}

.page-community .btn-co:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(132, 147, 15, 0.4);
}

/* ----------------------------------------------------------
RESPONSIVE
---------------------------------------------------------- */

@media (max-width: 991px) {
    .page-community .co-banner {
        padding: 155px 0 120px;
        min-height: 460px;
    }

    .page-community .co-intro,
    .page-community .co-oottupura,
    .page-community .co-santhwanam,
    .page-community .co-equipment,
    .page-community .co-education,
    .page-community .co-community,
    .page-community .co-funeral,
    .page-community .co-chapel {
        padding: 80px 0;
    }

    .page-community .co-chapel-gallery {
        grid-template-columns: 1fr;
    }

    .page-community .co-chapel-img-saint .co-img-frame img {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 767px) {
    .page-community .co-banner {
        padding: 135px 0 105px;
    }

    .page-community .co-intro,
    .page-community .co-oottupura,
    .page-community .co-santhwanam,
    .page-community .co-equipment,
    .page-community .co-education,
    .page-community .co-community,
    .page-community .co-funeral,
    .page-community .co-chapel {
        padding: 64px 0;
    }

    .page-community .co-checklist {
        grid-template-columns: 1fr;
    }

    .page-community .co-prayer-times {
        grid-template-columns: 1fr;
    }

    .page-community .co-cta-wrap {
        padding: 70px 0 80px;
    }

    .page-community .co-cta-phones {
        flex-direction: column;
    }

    .page-community .co-cta-phone {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-community .co-banner-bg {
        animation: none;
    }

    .page-community .co-equip-card,
    .page-community .co-prayer-time,
    .page-community .co-check-item {
        transition: none;
    }
}
