/*
Theme Name: Metro Davao ICC
Theme URI: https://staging.mdicc.net
Author: Metro Davao ICC Team
Description: Modern custom theme for The Metro Davao International Christian Church.
Version: 1.0.0
*/

/* ==========================================================================
   METRO DAVAO INTERNATIONAL CHRISTIAN CHURCH - DESIGN SYSTEM & THEME
   Palette:
   - Primary Deep Blue: #0D5C75
   - Primary Ocean Blue: #199FB1
   - Light Blue:        #A5D1E1
   - Dominant White:    #FFFFFF
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-deep: #0D5C75;
    --primary-deep-dark: #083c4d;
    --primary-deep-rgb: 13, 92, 117;
    
    --ocean-blue: #199FB1;
    --ocean-blue-hover: #148392;
    --ocean-blue-rgb: 25, 159, 177;
    
    --light-blue: #A5D1E1;
    --light-blue-rgb: 165, 209, 225;
    --light-blue-surface: #f2f8fb;
    --light-blue-tint: rgba(165, 209, 225, 0.25);
    
    --white: #FFFFFF;
    --off-white: #FAFCFD;
    
    --text-primary: #1E293B;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    
    --border-color: #E2E8F0;
    --border-subtle: rgba(165, 209, 225, 0.4);
    
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 3px rgba(13, 92, 117, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 14px rgba(13, 92, 117, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 12px 30px rgba(13, 92, 117, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 40px rgba(13, 92, 117, 0.16);
    
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Headings & Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-deep);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }

p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

p.lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 400;
}

a {
    color: var(--ocean-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--ocean-blue-hover);
}

/* Layout Utilities */
.church-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.church-container-narrow {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-py {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
}

.section-py-sm {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.bg-surface {
    background-color: var(--light-blue-surface);
}

.bg-white {
    background-color: var(--white);
}

.bg-deep-blue {
    background-color: var(--primary-deep);
    color: var(--white);
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem auto;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    background-color: rgba(165, 209, 225, 0.3);
    color: var(--primary-deep);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    border: 1px solid var(--border-subtle);
}

.section-badge.badge-white {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.25);
}

.section-title {
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Buttons */
.btn-church {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.85rem 1.85rem;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
}

.btn-primary-deep {
    background-color: var(--primary-deep);
    color: var(--white);
    border-color: var(--primary-deep);
    box-shadow: 0 4px 12px rgba(13, 92, 117, 0.2);
}

.btn-primary-deep:hover {
    background-color: var(--primary-deep-dark);
    border-color: var(--primary-deep-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(13, 92, 117, 0.3);
}

.btn-ocean {
    background-color: var(--ocean-blue);
    color: var(--white);
    border-color: var(--ocean-blue);
    box-shadow: 0 4px 12px rgba(25, 159, 177, 0.25);
}

.btn-ocean:hover {
    background-color: var(--ocean-blue-hover);
    border-color: var(--ocean-blue-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(25, 159, 177, 0.35);
}

.btn-outline-church {
    background-color: transparent;
    color: var(--primary-deep);
    border-color: var(--primary-deep);
}

.btn-outline-church:hover {
    background-color: var(--primary-deep);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.8);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary-deep);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.55rem 1.25rem;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.church-header {
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.church-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
}

.church-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--primary-deep);
}

.church-logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-deep), var(--ocean-blue));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 10px rgba(13, 92, 117, 0.25);
}

.church-brand-text {
    display: flex;
    flex-direction: column;
}

.church-brand-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-deep);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.church-brand-sub {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--ocean-blue);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Desktop Navigation */
.church-desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.church-nav-link {
    display: inline-block;
    padding: 0.6rem 0.95rem;
    font-family: var(--font-heading);
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--primary-deep);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.church-nav-link:hover {
    color: var(--ocean-blue);
    background-color: var(--light-blue-surface);
}

.church-nav-link.active {
    color: var(--ocean-blue);
    font-weight: 700;
}

.church-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 15%;
    right: 15%;
    height: 2.5px;
    background-color: var(--ocean-blue);
    border-radius: 2px;
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--primary-deep);
    border-radius: var(--radius-sm);
}

.mobile-nav-toggle:hover {
    background-color: var(--light-blue-surface);
    color: var(--ocean-blue);
}

/* Mobile Drawer */
.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(13, 92, 117, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-drawer-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: var(--white);
    z-index: 1050;
    transform: translateX(100%);
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    padding: 1.5rem;
    overflow-y: auto;
}

.mobile-drawer.open {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.mobile-drawer-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--primary-deep);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    background-color: var(--light-blue-surface);
    color: var(--ocean-blue);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.church-hero {
    position: relative;
    background-color: var(--primary-deep);
    color: var(--white);
    padding: 6.5rem 0 6rem 0;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(135deg, rgba(13, 92, 117, 0.9) 0%, rgba(13, 92, 117, 0.78) 55%, rgba(25, 159, 177, 0.8) 100%), url('assets/images/church-hero.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.95;
}

.hero-content-box {
    position: relative;
    z-index: 10;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.25rem;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.hero-title {
    color: var(--white);
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.hero-service-pill {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 1rem 2rem;
    color: var(--white);
    flex-wrap: wrap;
    justify-content: center;
}

.hero-service-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.hero-service-item svg {
    color: var(--light-blue);
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */
.church-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.church-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--light-blue);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background-color: var(--light-blue-surface);
}

.card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.church-card:hover .card-img {
    transform: scale(1.04);
}

.card-badge-floating {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(13, 92, 117, 0.85);
    backdrop-filter: blur(6px);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.78rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.03em;
}

.card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-deep);
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.card-title a {
    color: inherit;
}

.card-title a:hover {
    color: var(--ocean-blue);
}

.card-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-footer-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.75rem;
}

/* ==========================================================================
   FEATURED SECTIONS (HOME)
   ========================================================================== */
/* Welcome / Mission Highlight */
.welcome-feature-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 3.5rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.welcome-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.pillar-item {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.pillar-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background-color: var(--light-blue-surface);
    color: var(--primary-deep);
    border: 1px solid var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pillar-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-deep);
    margin-bottom: 0.25rem;
}

.pillar-text {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Sunday Service Highlight Banner */
.sunday-banner-box {
    background: linear-gradient(135deg, var(--primary-deep) 0%, #083c4d 100%);
    color: var(--white);
    border-radius: var(--radius-xl);
    padding: 3.5rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.sunday-banner-box::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(25, 159, 177, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.sunday-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 1.75rem 0 2rem 0;
}

.sunday-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.sunday-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-blue);
    flex-shrink: 0;
}

/* Latest Sermon Showcase */
.sermon-spotlight-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.sermon-spotlight-media {
    position: relative;
    background-color: #000;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sermon-spotlight-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.btn-play-trigger {
    position: absolute;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background-color: var(--ocean-blue);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.btn-play-trigger:hover {
    transform: scale(1.1);
    background-color: var(--white);
    color: var(--ocean-blue);
}

.sermon-spotlight-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Call to Action Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-deep) 0%, var(--ocean-blue) 100%);
    color: var(--white);
    border-radius: var(--radius-xl);
    padding: 4.5rem 3rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.cta-banner h2 {
    color: var(--white);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin-bottom: 1.25rem;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
    max-width: 680px;
    margin: 0 auto 2.5rem auto;
}

.cta-banner-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   BELIEFS & ACCORDION (ABOUT PAGE)
   ========================================================================== */
.belief-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    border-left: 4px solid var(--ocean-blue);
}

.belief-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-left-color: var(--primary-deep);
}

.belief-scriptures {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--light-blue-surface);
    color: var(--primary-deep);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 1rem;
    border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   GALLERY & LIGHTBOX
   ========================================================================== */
.gallery-filter-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.filter-tab-btn {
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--primary-deep);
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab-btn:hover {
    background: var(--light-blue-surface);
    color: var(--ocean-blue);
    border-color: var(--light-blue);
}

.filter-tab-btn.active {
    background: var(--primary-deep);
    color: var(--white);
    border-color: var(--primary-deep);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-photo-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background-color: var(--light-blue-surface);
    box-shadow: var(--shadow-sm);
}

.gallery-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 92, 117, 0.88) 0%, rgba(13, 92, 117, 0.2) 60%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: var(--white);
}

.gallery-photo-item:hover .gallery-photo-overlay {
    opacity: 1;
}

.gallery-photo-item:hover .gallery-photo-img {
    transform: scale(1.06);
}

.gallery-photo-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.gallery-photo-caption {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(13, 92, 117, 0.94);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-modal.open {
    display: flex;
}

.lightbox-dialog {
    position: relative;
    max-width: 900px;
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.lightbox-img-container {
    width: 100%;
    max-height: 70vh;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-container img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.lightbox-details {
    padding: 1.5rem 2rem;
}

.lightbox-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.lightbox-close-btn:hover {
    background: var(--ocean-blue);
}

/* ==========================================================================
   VIDEO PLAYER MODAL
   ========================================================================== */
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(13, 92, 117, 0.92);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.video-modal.open {
    display: flex;
}

.video-dialog {
    position: relative;
    width: 100%;
    max-width: 860px;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.video-responsive-wrap {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.video-responsive-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   BLOG / ARTICLES (MATCHING REFERENCE SPEC)
   ========================================================================== */
.blog-header {
    text-align: left;
    margin-bottom: 3.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.blog-heading-main {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--primary-deep);
    margin-bottom: 0.5rem;
}

.article-single-reading {
    font-size: 1.12rem;
    line-height: 1.85;
    color: var(--text-secondary);
}

.article-single-reading h2, .article-single-reading h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-quote {
    margin: 2.5rem 0;
    padding: 1.75rem 2rem;
    background: var(--light-blue-surface);
    border-left: 4px solid var(--ocean-blue);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-quote p {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--primary-deep);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.article-quote cite {
    font-size: 0.95rem;
    font-style: normal;
    font-weight: 600;
    color: var(--ocean-blue);
}

/* ==========================================================================
   FORMS & CONTROLS
   ========================================================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-deep);
    margin-bottom: 0.5rem;
}

.form-control-church {
    width: 100%;
    padding: 0.85rem 1.15rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    background-color: var(--white);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    transition: var(--transition);
}

.form-control-church:focus {
    border-color: var(--ocean-blue);
    box-shadow: 0 0 0 3px rgba(25, 159, 177, 0.18);
}

.form-select-church {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230D5C75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
}

.form-feedback-alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: none;
}

.form-feedback-alert.success {
    display: block;
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* Search and Filters Bar */
.search-filter-bar {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 2.5rem;
}

.search-input-wrap {
    position: relative;
    flex-grow: 1;
    min-width: 240px;
}

.search-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input-field {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.85rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-input-field:focus {
    border-color: var(--ocean-blue);
    box-shadow: 0 0 0 3px rgba(25, 159, 177, 0.15);
}

/* ==========================================================================
   FOOTER (SPACIOUS & IN ACCORDANCE WITH FIGMA PROMPT)
   ========================================================================== */
.church-footer {
    background-color: var(--primary-deep);
    color: var(--white);
    padding-top: 5rem;
    padding-bottom: 2.5rem;
    margin-top: auto;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand-title {
    color: var(--white);
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.footer-brand-movement {
    color: var(--light-blue);
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: block;
}

.footer-brand-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-col-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link-item a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.93rem;
    transition: var(--transition);
}

.footer-link-item a:hover {
    color: var(--ocean-blue);
    padding-left: 4px;
}

.footer-social-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-social-btn:hover {
    background: var(--ocean-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-bottom-bar {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    .church-desktop-nav {
        display: none;
    }
    .mobile-nav-toggle {
        display: flex;
    }
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    .sermon-spotlight-card {
        grid-template-columns: 1fr;
    }
    .sunday-banner-box {
        grid-template-columns: 1fr;
        padding: 2.5rem;
    }
}

@media (max-width: 640px) {
    .section-py {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .btn-church {
        width: 100%;
    }
    .welcome-feature-card {
        padding: 2rem 1.5rem;
    }
    .sermon-spotlight-content {
        padding: 1.75rem 1.25rem;
    }
}
