/* ══════════════════════════════════════════════════════════════
   JESUS COMMUNITY · Premium Dark Theme Design System
   Based on WAJC Logo: Black · Crimson · Gold
   ══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
    /* Backgrounds */
    --jc-bg:              #0A0A0A;
    --jc-bg-elevated:     #141414;
    --jc-bg-card:         #1A1A1A;
    --jc-bg-card-hover:   #1F1F1F;
    --jc-border:          rgba(255, 255, 255, 0.07);
    --jc-border-accent:   rgba(200, 50, 31, 0.30);

    /* Brand Red & Fire Gradient */
    --jc-red:             #C8321F;
    --jc-red-hover:       #E04428;
    --jc-red-light:       rgba(200, 50, 31, 0.12);
    --jc-fire:            #E8733A;
    --jc-gradient:        linear-gradient(135deg, #C8321F 0%, #E8733A 100%);
    --jc-gradient-soft:   linear-gradient(135deg, rgba(200,50,31,0.15) 0%, rgba(232,115,58,0.08) 100%);

    /* Gold (Cross Element) */
    --jc-gold:            #B8963E;
    --jc-gold-light:      #D4AF5A;

    /* Text */
    --jc-text:            #F5F0E8;
    --jc-text-secondary:  #C8C0B4;
    --jc-text-muted:      #888888;
    --jc-text-dim:        #555555;

    /* Typography */
    --jc-font-heading:    'Cormorant Garamond', Georgia, serif;
    --jc-font-body:       'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --jc-xs:   8px;
    --jc-sm:   16px;
    --jc-md:   32px;
    --jc-lg:   64px;
    --jc-xl:   100px;

    /* Radius */
    --jc-r-sm: 6px;
    --jc-r-md: 12px;
    --jc-r-lg: 20px;
    --jc-r-full: 50px;

    /* Shadows */
    --jc-shadow-sm:    0 2px 8px rgba(0,0,0,0.3);
    --jc-shadow-md:    0 4px 20px rgba(0,0,0,0.4);
    --jc-shadow-lg:    0 8px 40px rgba(0,0,0,0.5);
    --jc-shadow-glow:  0 0 30px rgba(200,50,31,0.25);
    --jc-shadow-gold:  0 0 20px rgba(184,150,62,0.2);

    /* Transitions */
    --jc-ease:     cubic-bezier(0.4, 0, 0.2, 1);
    --jc-ease-out: cubic-bezier(0, 0, 0.2, 1);
    --jc-duration: 0.3s;

    /* Layout */
    --jc-max-width: 1200px;
    --jc-header-h:  80px;
}


/* ══════════════════════════════════════════════
   1. CSS RESET & BASE
══════════════════════════════════════════════ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    background-color: var(--jc-bg);
    color: var(--jc-text);
    font-family: var(--jc-font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

::selection {
    background: var(--jc-red);
    color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--jc-red);
    text-decoration: none;
    transition: color var(--jc-duration) var(--jc-ease);
}

a:hover {
    color: var(--jc-red-hover);
}

ul, ol {
    list-style: none;
}

address {
    font-style: normal;
}


/* ══════════════════════════════════════════════
   2. TYPOGRAPHY
══════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--jc-font-heading);
    font-weight: 600;
    line-height: 1.15;
    color: var(--jc-text);
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
}

h3 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
}

h4 {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
}

h5 {
    font-size: 1.1rem;
    font-family: var(--jc-font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

h6 {
    font-size: 0.95rem;
    font-family: var(--jc-font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--jc-text-muted);
}

p {
    margin-bottom: 1em;
    color: var(--jc-text-secondary);
}

blockquote {
    font-family: var(--jc-font-heading);
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-style: italic;
    line-height: 1.5;
    color: var(--jc-text);
    border-left: 3px solid var(--jc-red);
    padding-left: var(--jc-md);
    margin: var(--jc-md) 0;
}

blockquote cite {
    display: block;
    margin-top: var(--jc-sm);
    font-size: 0.85rem;
    font-style: normal;
    font-family: var(--jc-font-body);
    color: var(--jc-gold);
    letter-spacing: 0.02em;
}


/* ══════════════════════════════════════════════
   3. LAYOUT & CONTAINER
══════════════════════════════════════════════ */

.jc-container {
    width: 100%;
    max-width: var(--jc-max-width);
    margin: 0 auto;
    padding: 0 var(--jc-md);
}

.jc-section {
    padding: var(--jc-xl) 0;
    position: relative;
}

.jc-section + .jc-section {
    border-top: 1px solid var(--jc-border);
}

.section-dark {
    background: var(--jc-bg-elevated);
    color: var(--jc-text);
}

.section-light {
    background: #FFFFFF;
    color: #111111;
}

.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4,
.section-light h5,
.section-light h6 {
    color: #0A0A0A;
}

.section-light p,
.section-light .text-secondary,
.section-light .text-muted {
    color: #555555;
}

.section-light .card,
.section-light .value-card,
.section-light .module-card {
    background: #F9F9F9;
    border-color: #EAEAEA;
    color: #111111;
}

.section-light .card-title a {
    color: #0A0A0A;
}

.section-light .card-title a:hover {
    color: var(--jc-red);
}

.section-accent {
    background: var(--jc-gradient-soft);
}

.jc-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--jc-md);
}

.jc-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--jc-md);
}

.jc-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--jc-md);
}

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

@media (max-width: 640px) {
    .jc-container { padding: 0 var(--jc-sm); }
    .jc-section { padding: var(--jc-lg) 0; }
    .jc-grid-2,
    .jc-grid-3,
    .jc-grid-4 { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════
   4. HEADER & NAVIGATION
══════════════════════════════════════════════ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--jc-header-h);
    z-index: 1000;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--jc-border);
    transition: background var(--jc-duration) var(--jc-ease),
                box-shadow var(--jc-duration) var(--jc-ease);
}

.site-header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: var(--jc-shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--jc-md);
}

/* Logo */
.site-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.site-logo .logo-img {
    height: 45px;
    width: auto;
    transition: opacity var(--jc-duration) var(--jc-ease);
}

.site-logo:hover .logo-img {
    opacity: 0.85;
}

/* Desktop Nav */
.primary-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--jc-xs);
}

.nav-list li a {
    display: block;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--jc-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    transition: color var(--jc-duration) var(--jc-ease);
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--jc-gradient);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--jc-duration) var(--jc-ease);
}

.nav-list li a:hover,
.nav-list li.current-menu-item a,
.nav-list li.current_page_item a {
    color: var(--jc-text);
}

.nav-list li a:hover::after,
.nav-list li.current-menu-item a::after,
.nav-list li.current_page_item a::after {
    transform: scaleX(1);
}

/* Give Now CTA in header */
.nav-cta {
    flex-shrink: 0;
    padding: 10px 24px !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.08em;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--jc-text);
    border-radius: 2px;
    transition: transform var(--jc-duration) var(--jc-ease),
                opacity var(--jc-duration) var(--jc-ease);
}

.hamburger.is-open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.is-open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--jc-ease),
                visibility 0.4s var(--jc-ease);
}

.mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-inner {
    text-align: center;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-list li a {
    display: block;
    padding: 14px 20px;
    font-size: 1.4rem;
    font-family: var(--jc-font-heading);
    font-weight: 500;
    color: var(--jc-text-secondary);
    letter-spacing: 0.02em;
    transition: color var(--jc-duration) var(--jc-ease),
                transform var(--jc-duration) var(--jc-ease);
}

.mobile-nav-list li a:hover {
    color: var(--jc-text);
    transform: translateX(8px);
}

.mobile-nav-cta {
    margin-top: var(--jc-md);
    padding-top: var(--jc-md);
    border-top: 1px solid var(--jc-border);
}

@media (max-width: 1024px) {
    .primary-nav,
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

/* Push content below fixed header */
.site-content {
    padding-top: var(--jc-header-h);
}


/* ══════════════════════════════════════════════
   5. HERO SECTIONS
══════════════════════════════════════════════ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: calc(-1 * var(--jc-header-h));
    padding-top: var(--jc-header-h);
}

.hero-video,
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: var(--jc-md);
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--jc-red);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: var(--jc-sm);
    padding: 6px 16px;
    border: 1px solid var(--jc-border-accent);
    border-radius: var(--jc-r-full);
    background: var(--jc-red-light);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: var(--jc-md);
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--jc-text-secondary);
    max-width: 600px;
    margin: 0 auto var(--jc-md);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: var(--jc-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Page Hero (shorter, for inner pages) */
.page-hero {
    position: relative;
    padding: calc(var(--jc-xl) + var(--jc-lg)) 0 var(--jc-xl);
    background: var(--jc-bg-elevated);
    text-align: center;
    overflow: hidden;
    margin-top: calc(-1 * var(--jc-header-h));
    padding-top: calc(var(--jc-header-h) + var(--jc-xl));
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200,50,31,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero .hero-eyebrow {
    margin-bottom: var(--jc-sm);
}

.page-hero .hero-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    color: var(--jc-text);
}

.page-hero .hero-subtitle {
    max-width: 560px;
    margin: var(--jc-sm) auto 0;
}


/* ══════════════════════════════════════════════
   6. BUTTONS
══════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--jc-font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    border-radius: var(--jc-r-sm);
    cursor: pointer;
    transition: all var(--jc-duration) var(--jc-ease);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.btn-primary {
    background: var(--jc-gradient);
    color: #fff;
    box-shadow: 0 2px 12px rgba(200, 50, 31, 0.25);
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--jc-shadow-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--jc-text);
    border: 1px solid var(--jc-border-accent);
}

.btn-outline:hover {
    background: var(--jc-red-light);
    border-color: var(--jc-red);
    color: var(--jc-text);
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--jc-gold), var(--jc-gold-light));
    color: #0A0A0A;
}

.btn-gold:hover {
    color: #0A0A0A;
    transform: translateY(-2px);
    box-shadow: var(--jc-shadow-gold);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 0.9rem;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
}


/* ══════════════════════════════════════════════
   7. CARDS
══════════════════════════════════════════════ */

.card {
    background: var(--jc-bg-card);
    border: 1px solid var(--jc-border);
    border-radius: var(--jc-r-md);
    overflow: hidden;
    transition: transform var(--jc-duration) var(--jc-ease),
                border-color var(--jc-duration) var(--jc-ease),
                box-shadow var(--jc-duration) var(--jc-ease);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--jc-border-accent);
    box-shadow: var(--jc-shadow-md), 0 0 20px rgba(200, 50, 31, 0.08);
}

.card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--jc-ease);
}

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

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--jc-bg-elevated);
}

.card-content {
    padding: var(--jc-sm) var(--jc-md) var(--jc-md);
}

.card-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    background: var(--jc-red);
    border-radius: var(--jc-r-full);
    margin-bottom: var(--jc-xs);
}

.card-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: var(--jc-xs);
    line-height: 1.3;
}

.card-title a {
    color: var(--jc-text);
    transition: color var(--jc-duration) var(--jc-ease);
}

.card-title a:hover {
    color: var(--jc-red);
}

.card-meta {
    font-size: 0.82rem;
    color: var(--jc-text-muted);
    margin-bottom: var(--jc-sm);
}

.card-meta .meta-sep {
    margin: 0 6px;
    color: var(--jc-text-dim);
}

.card-description {
    font-size: 0.9rem;
    color: var(--jc-text-secondary);
    margin-bottom: var(--jc-sm);
    line-height: 1.6;
}


/* ══════════════════════════════════════════════
   8. SERMON-SPECIFIC
══════════════════════════════════════════════ */

.sermon-card .card-image {
    position: relative;
}

.sermon-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity var(--jc-duration) var(--jc-ease);
}

.sermon-card:hover .sermon-play-overlay {
    opacity: 1;
}

.sermon-play-overlay svg {
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
    transition: transform var(--jc-duration) var(--jc-ease);
}

.sermon-card:hover .sermon-play-overlay svg {
    transform: scale(1.15);
}

/* Featured Sermon — large 2-col layout */
.sermon-featured {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--jc-md);
    align-items: center;
    background: var(--jc-bg-card);
    border: 1px solid var(--jc-border);
    border-radius: var(--jc-r-md);
    overflow: hidden;
    margin-bottom: var(--jc-lg);
}

.sermon-featured .embed-wrap {
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    border-radius: var(--jc-r-md) 0 0 var(--jc-r-md);
}

.sermon-featured .embed-wrap iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    border: none;
}

.sermon-featured .sermon-info {
    padding: var(--jc-md);
}

@media (max-width: 768px) {
    .sermon-featured {
        grid-template-columns: 1fr;
    }
    .sermon-featured .embed-wrap {
        border-radius: var(--jc-r-md) var(--jc-r-md) 0 0;
    }
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: var(--jc-sm);
    flex-wrap: wrap;
    margin-bottom: var(--jc-md);
    padding: var(--jc-sm) 0;
}

.filter-bar select {
    padding: 10px 16px;
    font-family: var(--jc-font-body);
    font-size: 0.85rem;
    color: var(--jc-text);
    background: var(--jc-bg-card);
    border: 1px solid var(--jc-border);
    border-radius: var(--jc-r-sm);
    cursor: pointer;
    transition: border-color var(--jc-duration) var(--jc-ease);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    min-width: 160px;
}

.filter-bar select:focus {
    outline: none;
    border-color: var(--jc-red);
    box-shadow: 0 0 0 2px var(--jc-red-light);
}

/* Sermons Grid */
.sermons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--jc-md);
}

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

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


/* ══════════════════════════════════════════════
   9. EVENT-SPECIFIC
══════════════════════════════════════════════ */

.event-card {
    display: flex;
    gap: var(--jc-md);
    align-items: flex-start;
    background: var(--jc-bg-card);
    border: 1px solid var(--jc-border);
    border-radius: var(--jc-r-md);
    padding: var(--jc-md);
    transition: transform var(--jc-duration) var(--jc-ease),
                border-color var(--jc-duration) var(--jc-ease),
                box-shadow var(--jc-duration) var(--jc-ease);
}

.event-card:hover {
    transform: translateY(-3px);
    border-color: var(--jc-border-accent);
    box-shadow: var(--jc-shadow-md);
}

.date-badge {
    flex-shrink: 0;
    width: 72px;
    text-align: center;
    background: var(--jc-gradient);
    border-radius: var(--jc-r-sm);
    padding: 12px 8px;
    color: #fff;
}

.date-badge .date-day {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--jc-font-heading);
    line-height: 1;
}

.date-badge .date-month {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.event-details {
    flex: 1;
}

.event-details h3 {
    font-size: 1.3rem;
    margin-bottom: var(--jc-xs);
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--jc-text-muted);
    margin-bottom: 4px;
}

/* Country Filter Pills */
.country-filter {
    display: flex;
    gap: var(--jc-xs);
    flex-wrap: wrap;
    margin-bottom: var(--jc-md);
}

.country-filter .filter-pill {
    padding: 8px 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--jc-text-muted);
    background: var(--jc-bg-card);
    border: 1px solid var(--jc-border);
    border-radius: var(--jc-r-full);
    cursor: pointer;
    transition: all var(--jc-duration) var(--jc-ease);
}

.country-filter .filter-pill:hover,
.country-filter .filter-pill.active {
    color: #fff;
    background: var(--jc-red);
    border-color: var(--jc-red);
}

@media (max-width: 640px) {
    .event-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}


/* ══════════════════════════════════════════════
   10. PARTNER / GIVING
══════════════════════════════════════════════ */

.partner-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--jc-border);
    margin-bottom: var(--jc-md);
}

.partner-tabs .tab-btn {
    padding: 14px 24px;
    font-family: var(--jc-font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--jc-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color var(--jc-duration) var(--jc-ease);
}

.partner-tabs .tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--jc-gradient);
    transform: scaleX(0);
    transition: transform var(--jc-duration) var(--jc-ease);
}

.partner-tabs .tab-btn.active,
.partner-tabs .tab-btn:hover {
    color: var(--jc-text);
}

.partner-tabs .tab-btn.active::after {
    transform: scaleX(1);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.4s var(--jc-ease);
}

.partner-card {
    text-align: center;
    padding: var(--jc-md);
    background: var(--jc-bg-card);
    border: 1px solid var(--jc-border);
    border-radius: var(--jc-r-md);
    transition: transform var(--jc-duration) var(--jc-ease),
                border-color var(--jc-duration) var(--jc-ease);
}

.partner-card:hover {
    transform: translateY(-4px);
    border-color: var(--jc-border-accent);
}

.partner-card .partner-icon {
    font-size: 2.5rem;
    margin-bottom: var(--jc-sm);
}

/* Giving Form */
.giving-form {
    max-width: 500px;
    margin: 0 auto;
}

.amount-input-wrap {
    position: relative;
    margin-bottom: var(--jc-sm);
}

.amount-input-wrap .currency-symbol {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--jc-text-muted);
    font-family: var(--jc-font-heading);
}

.amount-input {
    width: 100%;
    padding: 20px 20px 20px 48px;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--jc-font-heading);
    color: var(--jc-text);
    background: var(--jc-bg-card);
    border: 2px solid var(--jc-border);
    border-radius: var(--jc-r-md);
    text-align: center;
    transition: border-color var(--jc-duration) var(--jc-ease);
}

.amount-input:focus {
    outline: none;
    border-color: var(--jc-red);
    box-shadow: 0 0 0 3px var(--jc-red-light);
}

.frequency-toggle {
    display: flex;
    gap: 4px;
    background: var(--jc-bg);
    border-radius: var(--jc-r-sm);
    padding: 4px;
    margin-bottom: var(--jc-md);
}

.frequency-toggle button {
    flex: 1;
    padding: 12px 16px;
    font-family: var(--jc-font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--jc-text-muted);
    background: none;
    border: none;
    border-radius: var(--jc-r-sm);
    cursor: pointer;
    transition: all var(--jc-duration) var(--jc-ease);
}

.frequency-toggle button.active {
    color: #fff;
    background: var(--jc-gradient);
    box-shadow: var(--jc-shadow-sm);
}

/* Impact Stats */
.stat-block {
    text-align: center;
    padding: var(--jc-md);
}

.stat-block .stat-number {
    font-family: var(--jc-font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--jc-text);
    line-height: 1;
    background: var(--jc-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-block .stat-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--jc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 8px;
}


/* ══════════════════════════════════════════════
   11. FOOTER
══════════════════════════════════════════════ */

.site-footer {
    background: var(--jc-bg-elevated);
    border-top: 1px solid var(--jc-border);
}

.footer-top {
    padding: var(--jc-xl) 0 var(--jc-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--jc-lg);
}

/* Footer Logo */
.footer-logo {
    display: inline-block;
    margin-bottom: var(--jc-md);
}

.footer-logo img {
    height: 42px;
    width: auto;
    opacity: 0.9;
}

/* Footer Quote */
.footer-quote {
    border-left: 2px solid var(--jc-red);
    padding-left: var(--jc-sm);
    margin: 0;
}

.footer-quote p {
    font-family: var(--jc-font-heading);
    font-size: 0.95rem;
    font-style: italic;
    color: var(--jc-text-muted);
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-quote cite {
    display: block;
    font-size: 0.8rem;
    font-style: normal;
    color: var(--jc-gold);
}

/* Footer Column */
.footer-heading {
    font-family: var(--jc-font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--jc-gold);
    margin-bottom: var(--jc-md);
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--jc-text-muted);
    transition: color var(--jc-duration) var(--jc-ease),
                padding-left var(--jc-duration) var(--jc-ease);
}

.footer-links a:hover {
    color: var(--jc-text);
    padding-left: 4px;
}

/* Footer Social */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: var(--jc-md);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--jc-text-muted);
    padding: 6px 0;
    transition: color var(--jc-duration) var(--jc-ease);
}

.footer-social a:hover {
    color: var(--jc-text);
}

.footer-social svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity var(--jc-duration) var(--jc-ease);
}

.footer-social a:hover svg {
    opacity: 1;
}

/* Footer Contact */
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: var(--jc-sm);
    font-size: 0.85rem;
    color: var(--jc-text-muted);
}

.footer-contact-list a {
    color: var(--jc-text-muted);
}

.footer-contact-list a:hover {
    color: var(--jc-text);
}

.contact-icon {
    flex-shrink: 0;
    font-size: 1rem;
}

/* Newsletter Form */
.newsletter-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--jc-text-muted);
    margin-bottom: var(--jc-xs);
}

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

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 10px 14px;
    font-family: var(--jc-font-body);
    font-size: 0.85rem;
    color: var(--jc-text);
    background: var(--jc-bg-card);
    border: 1px solid var(--jc-border);
    border-radius: var(--jc-r-sm);
    transition: border-color var(--jc-duration) var(--jc-ease);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--jc-red);
    box-shadow: 0 0 0 2px var(--jc-red-light);
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--jc-text-dim);
}

.newsletter-msg {
    font-size: 0.8rem;
    margin-top: 8px;
}

.newsletter-msg.success {
    color: #4ade80;
}

.newsletter-msg.error {
    color: var(--jc-red);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--jc-border);
    padding: var(--jc-md) 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--jc-text-dim);
    margin: 0;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--jc-md);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-top { padding: var(--jc-lg) 0 var(--jc-md); }
}


/* ══════════════════════════════════════════════
   12. FORM ELEMENTS
══════════════════════════════════════════════ */

.form-group {
    margin-bottom: var(--jc-md);
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--jc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--jc-xs);
}

.form-row {
    display: flex;
    gap: var(--jc-sm);
}

@media (max-width: 640px) {
    .form-row { flex-direction: column; }
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--jc-font-body);
    font-size: 0.9rem;
    color: var(--jc-text);
    background: var(--jc-bg-card);
    border: 1px solid var(--jc-border);
    border-radius: var(--jc-r-sm);
    transition: border-color var(--jc-duration) var(--jc-ease),
                box-shadow var(--jc-duration) var(--jc-ease);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--jc-red);
    box-shadow: 0 0 0 3px var(--jc-red-light);
}

input::placeholder,
textarea::placeholder {
    color: var(--jc-text-dim);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Checkbox / Radio custom */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--jc-red);
    cursor: pointer;
}


/* ══════════════════════════════════════════════
   13. PHOTO GALLERY
══════════════════════════════════════════════ */

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--jc-xs);
}

.photo-gallery .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--jc-r-sm);
    cursor: pointer;
    aspect-ratio: 1;
}

.photo-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--jc-ease);
}

.photo-gallery .gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(200, 50, 31, 0.4), rgba(232, 115, 58, 0.2));
    opacity: 0;
    transition: opacity var(--jc-duration) var(--jc-ease);
}

.photo-gallery .gallery-item:hover img {
    transform: scale(1.08);
}

.photo-gallery .gallery-item:hover::after {
    opacity: 1;
}

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

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--jc-ease),
                visibility 0.3s var(--jc-ease);
    cursor: pointer;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--jc-r-md);
    box-shadow: var(--jc-shadow-lg);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--jc-duration) var(--jc-ease);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}


/* ══════════════════════════════════════════════
   14. ACCORDION
══════════════════════════════════════════════ */

.accordion {
    border: 1px solid var(--jc-border);
    border-radius: var(--jc-r-md);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--jc-border);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--jc-md);
    font-family: var(--jc-font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--jc-text);
    background: var(--jc-bg-card);
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background var(--jc-duration) var(--jc-ease);
}

.accordion-header:hover {
    background: var(--jc-bg-card-hover);
}

.accordion-header::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--jc-text-muted);
    transition: transform var(--jc-duration) var(--jc-ease);
    flex-shrink: 0;
    margin-left: var(--jc-sm);
}

.accordion-item.is-open .accordion-header::after {
    transform: rotate(45deg);
    color: var(--jc-red);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--jc-ease);
}

.accordion-body-inner {
    padding: 0 var(--jc-md) var(--jc-md);
    color: var(--jc-text-secondary);
    line-height: 1.7;
}


/* ══════════════════════════════════════════════
   15. PAGE-SPECIFIC STYLES
══════════════════════════════════════════════ */

/* ── Mission Statement (Home) ── */
.mission-section {
    text-align: center;
    padding: var(--jc-xl) 0;
}

.mission-quote {
    font-family: var(--jc-font-heading);
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-style: italic;
    line-height: 1.45;
    color: var(--jc-text);
    max-width: 800px;
    margin: 0 auto var(--jc-lg);
    border: none;
    padding: 0;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--jc-md);
    max-width: 700px;
    margin: 0 auto;
}

.pillar-item {
    text-align: center;
    padding: var(--jc-md);
}

.pillar-icon {
    font-size: 2.2rem;
    margin-bottom: var(--jc-xs);
}

.pillar-label {
    font-family: var(--jc-font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--jc-text);
}

@media (max-width: 640px) {
    .pillars-grid { grid-template-columns: 1fr; max-width: 300px; }
}

/* ── Founder Quote Section ── */
.founder-section {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--jc-lg);
    align-items: center;
}

.founder-photo {
    border-radius: var(--jc-r-md);
    overflow: hidden;
    aspect-ratio: 3/4;
}

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

.founder-quote {
    font-family: var(--jc-font-heading);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-style: italic;
    line-height: 1.5;
    color: var(--jc-text);
    border-left: 3px solid var(--jc-gold);
    padding-left: var(--jc-md);
}

@media (max-width: 768px) {
    .founder-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .founder-photo { max-width: 320px; margin: 0 auto; }
    .founder-quote { border-left: none; padding-left: 0; border-top: 3px solid var(--jc-gold); padding-top: var(--jc-md); }
}

/* ── About Page ── */
.about-story {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--jc-lg);
    align-items: center;
}

.about-story-img {
    border-radius: var(--jc-r-md);
    overflow: hidden;
}

@media (max-width: 768px) {
    .about-story { grid-template-columns: 1fr; }
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--jc-md);
}

.value-card {
    text-align: center;
    padding: var(--jc-lg) var(--jc-md);
    background: var(--jc-bg-card);
    border: 1px solid var(--jc-border);
    border-radius: var(--jc-r-md);
    transition: transform var(--jc-duration) var(--jc-ease),
                border-color var(--jc-duration) var(--jc-ease);
}

.value-card:hover {
    transform: translateY(-4px);
    border-color: var(--jc-border-accent);
}

.value-card .value-icon {
    font-size: 2.5rem;
    margin-bottom: var(--jc-sm);
}

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

/* Europe Map */
.europe-map {
    max-width: 600px;
    margin: 0 auto var(--jc-md);
    text-align: center;
}

.europe-map svg {
    width: 100%;
    height: auto;
}

/* ── Books Page ── */
.book-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--jc-md);
    background: var(--jc-bg-card);
    border: 1px solid var(--jc-border);
    border-radius: var(--jc-r-md);
    overflow: hidden;
    padding: var(--jc-md);
    transition: transform var(--jc-duration) var(--jc-ease),
                border-color var(--jc-duration) var(--jc-ease);
}

.book-card:hover {
    transform: translateY(-3px);
    border-color: var(--jc-border-accent);
}

.book-cover {
    border-radius: var(--jc-r-sm);
    overflow: hidden;
    aspect-ratio: 2/3;
    box-shadow: var(--jc-shadow-md);
}

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

.book-buttons {
    display: flex;
    gap: var(--jc-xs);
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .book-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .book-cover {
        max-width: 180px;
        margin: 0 auto;
    }
}

/* ── Programs Page ── */
.program-modules {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--jc-md);
    counter-reset: module;
}

.module-card {
    padding: var(--jc-md);
    background: var(--jc-bg-card);
    border: 1px solid var(--jc-border);
    border-radius: var(--jc-r-md);
    position: relative;
    transition: transform var(--jc-duration) var(--jc-ease),
                border-color var(--jc-duration) var(--jc-ease);
}

.module-card:hover {
    transform: translateY(-3px);
    border-color: var(--jc-border-accent);
}

.module-card .module-icon {
    font-size: 2rem;
    margin-bottom: var(--jc-sm);
}

@media (max-width: 768px) {
    .program-modules { grid-template-columns: 1fr; }
}

/* Testimonials */
.testimonial-card {
    background: var(--jc-bg-card);
    border: 1px solid var(--jc-border);
    border-radius: var(--jc-r-md);
    padding: var(--jc-md);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-family: var(--jc-font-heading);
    font-size: 4rem;
    color: var(--jc-red);
    opacity: 0.3;
    position: absolute;
    top: 8px;
    left: 16px;
    line-height: 1;
}

.testimonial-card blockquote {
    border: none;
    padding: var(--jc-md) 0 0;
    font-size: 1rem;
    margin: 0;
}

/* ── Contact Page ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--jc-lg);
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: var(--jc-md);
    font-size: 0.95rem;
}

.contact-social {
    display: flex;
    gap: var(--jc-sm);
    margin-top: var(--jc-md);
}

.contact-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--jc-border);
    border-radius: 50%;
    color: var(--jc-text-muted);
    transition: all var(--jc-duration) var(--jc-ease);
}

.contact-social a:hover {
    color: #fff;
    background: var(--jc-red);
    border-color: var(--jc-red);
}

.map-embed {
    width: 100%;
    height: 400px;
    border-radius: var(--jc-r-md);
    overflow: hidden;
    border: 1px solid var(--jc-border);
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(0.8) invert(0.92) contrast(0.85);
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
    .map-embed { height: 300px; }
}


/* ══════════════════════════════════════════════
   16. UTILITY CLASSES
══════════════════════════════════════════════ */

.text-gradient {
    background: var(--jc-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gold    { color: var(--jc-gold); }
.text-red     { color: var(--jc-red); }
.text-muted   { color: var(--jc-text-muted); }
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

.fire-glow {
    box-shadow: var(--jc-shadow-glow);
}

.gold-glow {
    box-shadow: var(--jc-shadow-gold);
}

.mt-sm { margin-top: var(--jc-sm); }
.mt-md { margin-top: var(--jc-md); }
.mt-lg { margin-top: var(--jc-lg); }
.mb-sm { margin-bottom: var(--jc-sm); }
.mb-md { margin-bottom: var(--jc-md); }
.mb-lg { margin-bottom: var(--jc-lg); }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ══════════════════════════════════════════════
   17. ANIMATIONS & KEYFRAMES
══════════════════════════════════════════════ */

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.6; }
}

@keyframes fireGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(200, 50, 31, 0.2); }
    50%      { box-shadow: 0 0 40px rgba(200, 50, 31, 0.4), 0 0 60px rgba(232, 115, 58, 0.15); }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Scroll-triggered reveal classes */
.fade-in {
    opacity: 0;
    transition: opacity 0.7s var(--jc-ease-out);
}

.fade-in.is-visible {
    opacity: 1;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--jc-ease-out),
                transform 0.7s var(--jc-ease-out);
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children in grids */
.jc-grid-3 .fade-in-up:nth-child(2),
.sermons-grid .fade-in-up:nth-child(2) { transition-delay: 0.1s; }

.jc-grid-3 .fade-in-up:nth-child(3),
.sermons-grid .fade-in-up:nth-child(3) { transition-delay: 0.2s; }

.jc-grid-3 .fade-in-up:nth-child(4),
.sermons-grid .fade-in-up:nth-child(4) { transition-delay: 0.3s; }

.jc-grid-3 .fade-in-up:nth-child(5),
.sermons-grid .fade-in-up:nth-child(5) { transition-delay: 0.4s; }

.jc-grid-3 .fade-in-up:nth-child(6),
.sermons-grid .fade-in-up:nth-child(6) { transition-delay: 0.5s; }

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--jc-bg-card) 25%, var(--jc-bg-card-hover) 50%, var(--jc-bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--jc-r-sm);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fade-in,
    .fade-in-up {
        opacity: 1;
        transform: none;
    }
}


/* ══════════════════════════════════════════════
   18. WORDPRESS SPECIFIC
══════════════════════════════════════════════ */

/* Screen reader text (WordPress default class) */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    word-wrap: normal;
}

/* Post navigation */
.nav-links {
    display: flex;
    justify-content: space-between;
    gap: var(--jc-md);
    padding: var(--jc-md) 0;
    border-top: 1px solid var(--jc-border);
}

/* Page pagination */
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 0.85rem;
    color: var(--jc-text-muted);
    background: var(--jc-bg-card);
    border: 1px solid var(--jc-border);
    border-radius: var(--jc-r-sm);
    margin: 0 2px;
    transition: all var(--jc-duration) var(--jc-ease);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    color: #fff;
    background: var(--jc-red);
    border-color: var(--jc-red);
}

/* Audio player */
.sermon-audio-player {
    width: 100%;
    margin: var(--jc-md) 0;
}

.sermon-audio-player audio {
    width: 100%;
    border-radius: var(--jc-r-sm);
}

/* Share buttons */
.share-buttons {
    display: flex;
    gap: var(--jc-xs);
    flex-wrap: wrap;
    margin-top: var(--jc-md);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--jc-text);
    background: var(--jc-bg-card);
    border: 1px solid var(--jc-border);
    border-radius: var(--jc-r-sm);
    cursor: pointer;
    transition: all var(--jc-duration) var(--jc-ease);
}

.share-btn:hover {
    border-color: var(--jc-border-accent);
    background: var(--jc-bg-card-hover);
}

/* Podcast Banner */
.podcast-banner {
    background: var(--jc-gradient-soft);
    border: 1px solid var(--jc-border-accent);
    border-radius: var(--jc-r-md);
    padding: var(--jc-md) var(--jc-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--jc-md);
    flex-wrap: wrap;
}

.podcast-links {
    display: flex;
    gap: var(--jc-sm);
}

@media (max-width: 640px) {
    .podcast-banner {
        flex-direction: column;
        text-align: center;
        padding: var(--jc-md);
    }
}


/* ══════════════════════════════════════════════
   19. CTA SECTIONS
══════════════════════════════════════════════ */

.cta-section {
    text-align: center;
    padding: var(--jc-xl) 0;
    background: var(--jc-bg-elevated);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(200,50,31,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: var(--jc-sm);
}

.cta-text {
    font-size: 1.05rem;
    color: var(--jc-text-secondary);
    max-width: 550px;
    margin: 0 auto var(--jc-md);
}
