/*
Theme Name: CSI St. Thomas Church Punnakkadu
Theme URI: https://csipunnakkadu.org
Author: CSI Punnakkadu Media Team
Author URI: https://csipunnakkadu.org
Description: A modern, responsive, and elegant WordPress theme for CSI St. Thomas Church, Punnakkadu (CSI Madhya Kerala Diocese). Features complete ministry management, parish community outreach ("Punnakkadu Model"), service schedules, audio/video hymn archives, announcements, and mobile-first responsive design.
Version: 2.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: csi-punnakkadu
Tags: church, custom-header, custom-menu, featured-images, full-width-template, theme-options, translation-ready, accessibility-ready
*/

/* Baseline reset and variables are loaded via assets/css/main.css and responsive.css */

/* ==========================================================================
   ANNIVERSARY FEATURE CARD & ESAF MILESTONE GALLERY
   ========================================================================== */
.anniversary-feature-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.anniv-story-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 15px 45px rgba(11, 37, 69, 0.08);
    padding: 2.75rem 2.5rem;
}

.anniv-story-header {
    margin-bottom: 1.5rem;
}

.anniv-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
    color: #854d0e;
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.82rem;
    border: 1px solid rgba(212, 175, 55, 0.45);
    margin-bottom: 0.85rem;
    box-shadow: 0 2px 6px rgba(133, 77, 14, 0.08);
}

.anniv-main-title {
    font-size: 1.85rem;
    color: #0b2545;
    font-weight: 800;
    font-family: 'Playfair Display', Georgia, serif;
    margin: 0 0 0.85rem 0;
    line-height: 1.35;
}

.anniv-lead-text {
    font-size: 1.02rem;
    line-height: 1.8;
    color: #475569;
    margin: 0;
}

.esaf-partnership-banner {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #86efac;
    border-radius: 14px;
    padding: 1.35rem 1.75rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin: 1.5rem 0 2rem 0;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.05);
}

.esaf-banner-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.esaf-banner-text {
    flex: 1;
}

.esaf-banner-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: #065f46;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.35rem;
}

.esaf-banner-text p {
    color: #1e293b;
    font-size: 0.96rem;
    line-height: 1.65;
    margin: 0 0 0.5rem 0;
}

.esaf-dignitaries-list {
    font-size: 0.85rem;
    color: #047857;
    border-top: 1px dashed rgba(5, 150, 105, 0.3);
    padding-top: 0.5rem;
    line-height: 1.5;
}

.esaf-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.esaf-gallery-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.esaf-gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(11, 43, 74, 0.12);
    border-color: #d4af37;
}

.esaf-gallery-imgwrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #0b2545;
}

.esaf-gallery-imgwrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.esaf-gallery-card:hover .esaf-gallery-imgwrap img {
    transform: scale(1.06);
}

.esaf-gallery-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
}

.esaf-gallery-tag {
    background: rgba(11, 37, 69, 0.85);
    backdrop-filter: blur(4px);
    color: #fef08a;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.esaf-gallery-info {
    padding: 0.85rem 1rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.esaf-gallery-info h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0b2545;
    margin: 0 0 0.3rem 0;
    line-height: 1.35;
}

.esaf-gallery-info p {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.45;
    margin: 0;
}

/* ==========================================================================
   MESSAGES PAGE STYLES (INTEGRATED HERO-BANNER & EDITORIAL READING)
   ========================================================================== */
.episcopal-editorial-article {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 15px 50px rgba(11, 43, 74, 0.08);
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 3.25rem;
}

.vicar-editorial-theme {
    border-color: rgba(11, 43, 74, 0.15);
}

.episcopal-hero-banner {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 2.75rem;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f1ece1;
    margin-bottom: 2rem;
}

.episcopal-hero-photo-col {
    display: flex;
    justify-content: center;
}

.episcopal-photo-frame {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(11, 43, 74, 0.14);
    border: 3px solid #ffffff;
    outline: 1px solid rgba(212, 175, 55, 0.45);
    position: relative;
    background: #f8fafc;
    width: 100%;
    max-width: 230px;
}

.vicar-photo-border {
    outline-color: rgba(11, 43, 74, 0.25);
}

.episcopal-photo-frame img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.episcopal-photo-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(11, 37, 69, 0.92);
    color: #fef08a;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #d4af37;
    white-space: nowrap;
}

.vicar-badge-tag {
    background: rgba(6, 78, 59, 0.92);
    color: #ffffff;
    border-color: #34d399;
}

.episcopal-hero-content-col {
    display: flex;
    flex-direction: column;
}

.episcopal-meta-tagline {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.episcopal-tag-pill {
    background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
    color: #854d0e;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vicar-pill-color {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #065f46;
    border-color: #86efac;
}

.episcopal-motto-txt {
    font-size: 0.85rem;
    font-style: italic;
    color: #64748b;
    font-weight: 600;
}

.episcopal-main-headline {
    font-size: 1.85rem;
    color: #0b2545;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 800;
    line-height: 1.32;
    margin: 0 0 0.95rem 0;
    letter-spacing: -0.01em;
}

.malayalam-hero-title {
    font-size: 1.7rem;
    line-height: 1.4;
}

.episcopal-author-name {
    font-size: 1.18rem;
    font-weight: 800;
    color: #0b2545;
    font-family: 'Playfair Display', Georgia, serif;
    margin: 0 0 0.15rem 0;
    line-height: 1.35;
}

.episcopal-author-role {
    font-size: 0.88rem;
    font-weight: 700;
    color: #173d6a;
    margin: 0 0 0.45rem 0;
}

.episcopal-heritage-badge {
    font-size: 0.76rem;
    font-weight: 600;
    color: #854d0e;
    background: #fffdf5;
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    display: inline-block;
}

.episcopal-verse-banner {
    background: linear-gradient(135deg, #fffdf8 0%, #fefcf3 100%);
    border: 1px solid #f1ece1;
    border-left: 4px solid #d4af37;
    border-radius: 12px;
    padding: 1.25rem 1.75rem;
    margin-bottom: 2.25rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.verse-quote-mark {
    font-size: 3rem;
    line-height: 0.8;
    color: #d4af37;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    flex-shrink: 0;
    opacity: 0.85;
    margin-top: 0.2rem;
}

.verse-text {
    font-size: 1.05rem;
    font-style: italic;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.6;
    margin: 0 0 0.35rem 0;
}

.verse-ref {
    font-size: 0.82rem;
    font-weight: 800;
    color: #854d0e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
}

.episcopal-reading-body {
    max-width: 860px;
    margin: 0 auto 2.5rem;
}

.episcopal-reading-body p {
    font-size: 1.05rem;
    line-height: 1.95;
    color: #334155;
    margin-bottom: 1.35rem;
}

.salutation-lead {
    font-size: 1.12rem;
    color: #0b2545;
    margin-bottom: 1rem !important;
}

.episcopal-formal-signoff {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.35rem 1.75rem;
    background: #fdfbf7;
    border: 1px solid #f1ece1;
    border-radius: 14px;
}

.signoff-seal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0b2545;
    color: #d4af37;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border: 2px solid #d4af37;
    flex-shrink: 0;
}

.signoff-lead {
    font-size: 0.84rem;
    color: #64748b;
    font-style: italic;
    display: block;
    margin-bottom: 0.2rem;
}

.signoff-bishop-name {
    margin: 0;
    font-size: 1.18rem;
    color: #0b2545;
    font-weight: 800;
    font-family: 'Playfair Display', Georgia, serif;
}

.signoff-diocese-desc {
    font-size: 0.82rem;
    color: #173d6a;
    font-weight: 700;
}

.vicar-bottom-action-bar {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.vicar-sign-pre {
    font-size: 0.88rem;
    color: #64748b;
    display: block;
    margin-bottom: 0.2rem;
}

.vicar-sign-nm {
    margin: 0;
    font-size: 1.25rem;
    color: #0b2545;
    font-weight: 800;
}

.vicar-sign-dsg {
    font-size: 0.85rem;
    color: #173d6a;
    font-weight: 600;
}

/* ==========================================================================
   ABOUT US & HERITAGE PAGE STYLES
   ========================================================================== */

/* Key Stats Bar */
.about-stats-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 1.75rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.about-stat-box {
    text-align: center;
    padding: 0.75rem;
    border-right: 1px solid var(--border-color);
}

.about-stat-box:last-child {
    border-right: none;
}

.about-stat-num {
    font-size: 2.25rem;
    font-weight: 800;
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.stat-maroon { color: #800020; }
.stat-navy { color: #0b2545; }
.stat-gold { color: #b8860b; }
.stat-emerald { color: #047857; }

.about-stat-lbl {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

/* About Feature Grid (2-Column) */
.about-feature-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.about-section-badge {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.about-meta-text {
    font-size: 0.84rem;
    font-weight: 700;
    color: #64748b;
    font-style: italic;
}

.about-main-title {
    font-size: 2.2rem;
    color: #0b2545;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 800;
    line-height: 1.28;
    margin-bottom: 1.35rem;
    letter-spacing: -0.01em;
}

.about-text-lead p {
    font-size: 1.12rem;
    line-height: 1.85;
    color: #0b2545;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.about-text-body p {
    font-size: 1.02rem;
    line-height: 1.9;
    color: #334155;
    margin-bottom: 1.25rem;
}

.about-highlight-quote {
    background: linear-gradient(135deg, #fffdf8 0%, #fefcf3 100%);
    border-left: 4px solid #d4af37;
    border-radius: 0 12px 12px 0;
    border-top: 1px solid #f1ece1;
    border-right: 1px solid #f1ece1;
    border-bottom: 1px solid #f1ece1;
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.quote-symbol-gold {
    font-size: 2.5rem;
    line-height: 0.8;
    color: #d4af37;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 800;
    flex-shrink: 0;
}

.about-highlight-quote p {
    font-size: 0.95rem;
    font-style: italic;
    color: #1e293b;
    font-weight: 600;
    margin: 0;
    line-height: 1.6;
}

/* Image Showcase & Quick Milestones */
.about-visual-col {
    display: flex;
    flex-direction: column;
}

.about-image-showcase {
    background: #ffffff;
    border-radius: 20px;
    padding: 1rem;
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 15px 40px rgba(11, 43, 74, 0.08);
}

.showcase-img-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    height: 320px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.about-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.about-image-showcase:hover .about-hero-img {
    transform: scale(1.04);
}

.showcase-caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1.25rem 1rem;
    background: linear-gradient(to top, rgba(11, 37, 69, 0.92) 0%, transparent 100%);
    color: #ffffff;
}

.overlay-tag {
    display: inline-block;
    background: #d4af37;
    color: #0b2545;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    margin-bottom: 0.25rem;
}

.overlay-title {
    font-size: 1.05rem;
    color: #ffffff;
    font-weight: 700;
    margin: 0;
}

.about-quick-milestones {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1rem;
}

.milestone-chip {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.milestone-chip:hover {
    background: #ffffff;
    border-color: #d4af37;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.chip-year {
    background: #0b2545;
    color: #fef08a;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    border: 1px solid #d4af37;
    flex-shrink: 0;
}

.chip-desc {
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.35;
}

/* History Editorial Card (2-Part Grid) */
.history-editorial-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 15px 45px rgba(11, 43, 74, 0.07);
    padding: 3rem;
}

.history-heading {
    font-size: 2.1rem;
    color: #0b2545;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 800;
    margin: 0.75rem 0 0.5rem 0;
}

.history-subheading {
    font-size: 1.02rem;
    color: #64748b;
    margin: 0 auto 2.5rem;
}

.history-two-part-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.history-story-block {
    background: #fdfbf7;
    border: 1px solid #f1ece1;
    border-radius: 18px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.highlight-history-block {
    background: linear-gradient(135deg, #fffdf8 0%, #fefcf3 100%);
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 8px 25px rgba(184, 134, 11, 0.08);
}

.history-block-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.history-block-title {
    font-size: 1.35rem;
    color: #0b2545;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.35;
}

.history-paragraph {
    font-size: 0.98rem;
    line-height: 1.85;
    color: #334155;
    margin-bottom: 1rem;
}

.history-paragraph a,
.history-link {
    color: #0b2545;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #d4af37;
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.history-paragraph a:hover,
.history-link:hover {
    color: #991b1b;
    text-decoration-color: #991b1b;
}

.history-callout-note {
    background: #ffffff;
    border-left: 3px solid #64748b;
    border-radius: 0 8px 8px 0;
    padding: 0.85rem 1.1rem;
    margin-top: auto;
    font-size: 0.88rem;
    color: #475569;
}

.callout-label {
    font-weight: 800;
    color: #0b2545;
    display: block;
    margin-bottom: 0.2rem;
}

.history-callout-note p {
    margin: 0;
    line-height: 1.55;
}

.forefathers-inline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.75rem 0 1.25rem;
}

.forefather-tag {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0b2545;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.forefather-tag.tag-primary {
    background: #0b2545;
    color: #fef08a;
    border-color: #d4af37;
}

.history-result-badge {
    background: #0b2545;
    color: #fef08a;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid #d4af37;
    line-height: 1.5;
    margin-top: auto;
}

/* Timeline Components */
.timeline-container {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    padding: 1rem 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 28px;
    width: 3px;
    background: linear-gradient(to bottom, #d4af37, #0b2545);
    border-radius: 999px;
}

.timeline-item {
    position: relative;
    padding-left: 75px;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 12px;
    width: 58px;
    height: 32px;
    border-radius: 999px;
    background: #0b2545;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.dot-navy { background: #0b2545; color: #fef08a; }
.dot-sky { background: #0284c7; color: #ffffff; }
.dot-maroon { background: #800020; color: #fef08a; border-color: #d4af37; }
.dot-gold { background: #b8860b; color: #ffffff; }
.dot-emerald { background: #047857; color: #ffffff; }
.dot-gradient { background: linear-gradient(135deg, #0b2545, #d4af37); color: #ffffff; }

.timeline-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.35rem 1.65rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.timeline-card.border-navy { border-left: 4px solid #0b2545; }
.timeline-card.border-sky { border-left: 4px solid #0284c7; }
.timeline-card.border-maroon { border-left: 4px solid #800020; }
.timeline-card.border-gold { border-left: 4px solid #d4af37; }
.timeline-card.border-emerald { border-left: 4px solid #047857; }

.timeline-card h4 {
    font-size: 1.15rem;
    color: #0b2545;
    font-weight: 800;
    margin: 0 0 0.4rem 0;
}

.timeline-card p {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.65;
    margin: 0;
}

.timeline-card.card-gradient {
    background: linear-gradient(135deg, #0b2545 0%, #163e6e 100%);
    border: 1px solid #d4af37;
}

.timeline-card.card-gradient h4 { color: #fef08a; }
.timeline-card.card-gradient p { color: #e2e8f0; }

/* Forefathers Grid */
.forefathers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.forefather-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.forefather-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.07);
    border-color: #d4af37;
}

.forefather-hero-card {
    background: linear-gradient(135deg, #fffdf8 0%, #fefcf3 100%);
    border: 2px solid #d4af37;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.15);
}

.forefather-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.forefather-name {
    font-size: 1.05rem;
    color: #0b2545;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.forefather-role {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
}

.role-highlight {
    color: #854d0e;
    font-weight: 800;
    background: #fef9c3;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    margin-top: 0.25rem;
}

/* Projects Quick Nav Pills */
.project-nav-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0b2545;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.project-nav-pill:hover {
    background: #0b2545;
    color: #fef08a;
    border-color: #0b2545;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(11, 43, 74, 0.15);
}

/* ==========================================================================
   PROJECTS LUXURY GRID & SHOWCASE STYLES
   ========================================================================== */

/* Modern Quick Nav Strip */
.projects-quicknav-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    max-width: 1050px;
    margin: 0 auto 2.5rem;
    padding: 0.5rem;
    background: #f1f5f9;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
}

.project-nav-item {
    background: #ffffff;
    color: #0b2545;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.project-nav-item:hover {
    background: #0b2545;
    color: #fef08a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 37, 69, 0.15);
}

/* 3-Column Balanced Luxury Grid */
.projects-luxury-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.project-luxury-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 20px rgba(11, 43, 74, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.35s ease;
    scroll-margin-top: 115px;
}

.project-luxury-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(11, 43, 74, 0.1);
    border-color: rgba(212, 175, 55, 0.5);
}

/* Thumbnail with Overlay */
.project-card-thumb {
    position: relative;
    width: 100%;
    height: 185px;
    overflow: hidden;
    background: #0b2545;
}

.project-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.project-luxury-card:hover .project-card-thumb img {
    transform: scale(1.08);
}

.project-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.85rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, transparent 40%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.project-card-idx {
    background: rgba(11, 37, 69, 0.85);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-category-chip {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.chip-emerald { background: #047857; color: #ffffff; }
.chip-sky { background: #0284c7; color: #ffffff; }
.chip-gold { background: #d4af37; color: #0b2545; }
.chip-purple { background: #7c3aed; color: #ffffff; }
.chip-orange { background: #ea580c; color: #ffffff; }
.chip-blue { background: #2563eb; color: #ffffff; }
.chip-green { background: #16a34a; color: #ffffff; }
.chip-pink { background: #db2777; color: #ffffff; }
.chip-yellow { background: #ca8a04; color: #ffffff; }
.chip-red { background: #dc2626; color: #ffffff; }

/* Card Body */
.project-luxury-body {
    padding: 1.35rem 1.45rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-luxury-title {
    font-size: 1.18rem;
    color: #0b2545;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 0.65rem 0;
}

.project-luxury-text {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.65;
    margin: 0;
}

/* Card Footer */
.project-luxury-footer {
    padding: 0.75rem 1.45rem;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.meta-txt {
    font-size: 0.76rem;
    font-weight: 700;
    color: #475569;
    line-height: 1.35;
}

/* 12th CTA Symmetrical Card */
.card-cta-featured {
    background: linear-gradient(135deg, #0b2545 0%, #163e6e 100%);
    border: 1px solid #d4af37;
    color: #ffffff;
    justify-content: center;
}

.card-cta-inner {
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.card-cta-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.card-cta-title {
    font-size: 1.25rem;
    color: #fef08a;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 800;
    margin-bottom: 0.65rem;
    line-height: 1.3;
}

.card-cta-text {
    font-size: 0.84rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   EXECUTIVE BISHOPS FROM OUR PARISH SHOWCASE
   ========================================================================== */
.section-bishops-luxury {
    background: radial-gradient(circle at 50% 0%, #ffffff 0%, #f9f6ee 100%);
    position: relative;
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    padding: 5rem 0;
}

.bishops-executive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem;
    max-width: 1180px;
    margin: 0 auto;
}

.bishop-executive-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 12px 35px rgba(11, 37, 69, 0.08), 0 2px 8px rgba(212, 175, 55, 0.12);
    overflow: hidden;
    display: flex;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.bishop-executive-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(11, 37, 69, 0.14), 0 0 25px rgba(212, 175, 55, 0.35);
    border-color: #d4af37;
}

.bishop-executive-portrait {
    flex: 0 0 220px;
    position: relative;
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    overflow: hidden;
}

.bishop-portrait-frame {
    width: 100%;
    height: 100%;
    min-height: 330px;
    position: relative;
    overflow: hidden;
}

.bishop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.45s ease;
}

.bishop-executive-card:hover .bishop-img {
    transform: scale(1.05);
}

.bishop-seal-badge {
    position: absolute;
    bottom: 0.85rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(11, 37, 69, 0.95) 0%, rgba(22, 62, 110, 0.95) 100%);
    backdrop-filter: blur(8px);
    color: #fef08a;
    border: 1px solid rgba(212, 175, 55, 0.7);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.bishop-executive-content {
    flex: 1;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.bishop-diocese-tag {
    display: inline-block;
    align-self: flex-start;
    background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
    color: #854d0e;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    margin-bottom: 0.65rem;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 5px rgba(133, 77, 14, 0.06);
}

.bishop-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0b2545;
    margin: 0 0 0.25rem 0;
    line-height: 1.35;
    transition: color 0.3s ease;
}

.bishop-executive-card:hover .bishop-name {
    color: #991b1b;
}

.bishop-diocese-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #991b1b;
    letter-spacing: 0.4px;
    margin: 0 0 0.85rem 0;
}

.bishop-bio-snippet p {
    font-size: 0.86rem;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 1.1rem 0;
}

.bishop-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: auto;
}

.bishop-feature-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
}

@media (max-width: 992px) {
    .bishops-executive-grid {
        grid-template-columns: 1fr;
        max-width: 620px;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .bishop-executive-card {
        flex-direction: column;
    }

    .bishop-executive-portrait {
        flex: auto;
        height: 340px;
    }

    .bishop-executive-content {
        padding: 1.5rem 1.25rem;
    }

    .bishop-name {
        font-size: 1.15rem;
    }
}

.ministry-text p {
    margin: 0 0 0.5rem 0;
    font-size: inherit;
    line-height: 1.6;
}

.ministry-text p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Header Brand & Logo Styling
   ========================================================================== */
.brand-wrapper,
.custom-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 1.1rem;
    text-decoration: none;
    flex-shrink: 0;
    line-height: 1;
    transition: all 0.25s ease;
}

.brand-wrapper:hover,
.custom-logo-link:hover {
    opacity: 0.96;
    transform: translateY(-1px);
}

.brand-emblem-img {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(11, 37, 69, 0.12));
    flex-shrink: 0;
    transition: transform 0.25s ease;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}

.brand-wrapper:hover .brand-emblem-img {
    transform: scale(1.05);
}

.brand-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.25;
}

.brand-church-title {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-size: 0.93rem;
    font-weight: 700;
    color: #0b2545;
    letter-spacing: -0.015em;
    white-space: nowrap;
    line-height: 1.25;
    transition: color 0.25s ease;
}

.brand-church-sub {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: #133b6b;
    letter-spacing: 0.02em;
    margin-top: 2px;
    white-space: nowrap;
    line-height: 1.2;
    transition: color 0.25s ease;
}

.brand-wrapper:hover .brand-church-title {
    color: #133b6b;
}

.brand-wrapper:hover .brand-church-sub {
    color: #b8860b;
}

@media (max-width: 768px) {
    .brand-emblem-img {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
    }
    .brand-church-title {
        font-size: 0.88rem;
    }
    .brand-church-sub {
        font-size: 0.70rem;
    }

    /* Footer Mobile Menu */
    .footer-menu-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem 1.5rem !important;
    }

    .footer-menu {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.7rem !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    .footer-menu li {
        width: auto !important;
        display: block !important;
        margin: 0 !important;
    }

    .footer-menu li a {
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.45rem !important;
        padding: 0.25rem 0 !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        font-size: 0.88rem !important;
        font-weight: 500 !important;
        color: #cbd5e1 !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
        line-height: 1.35 !important;
    }

    .footer-menu li a::before {
        content: '›' !important;
        color: var(--accent, #d4af37) !important;
        font-size: 1.15rem !important;
        font-weight: bold !important;
        line-height: 1 !important;
        flex-shrink: 0 !important;
        margin-right: 0 !important;
    }

    .footer-menu li a:hover,
    .footer-menu li a:active {
        color: #ffffff !important;
        transform: translateX(3px) !important;
        background: transparent !important;
    }

    /* Gallery Mobile 2-Column Grid */
    .gallery-filter-nav {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
        width: 100% !important;
        max-width: 480px !important;
        margin: 0 auto 1.75rem auto !important;
        padding: 0 0.5rem !important;
        box-sizing: border-box !important;
    }

    .gallery-filter-nav .filter-btn {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        padding: 0.6rem 0.5rem !important;
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
        text-align: center !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }
}

.cal-banner-text h2,
.cal-banner-text h3,
.cal-banner-text h4 {
    color: #ffffff !important;
    font-size: 1.38rem;
    font-weight: 800;
    margin: 0 0 0.4rem 0;
    line-height: 1.3;
}

.cal-banner-text p {
    color: #e2e8f0 !important;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}


