﻿/*
Theme Name: Christ Embassy Tema Newtown
Theme URI: https://healingstreams.tv/
Description: Ultra-modern, high-impact theme for Christ Embassy Tema Newtown, featuring floating glassmorphism navigation, dynamic bento media showcases, live Healing Streams broadcast integration, and mobile money giving.
Author: LoveWorld Media & Tech Team
Author URI: https://healingstreams.tv/
Version: 1.2.0
Text Domain: ce-temanewtown
License: GNU General Public License v2 or later
*/

:root {
  /* Luminous Daytime Foundation */
  --bg-page: #FFFFFF;
  --bg-surface: #F8FAFC;
  --bg-surface-soft: #F0F6FF;
  --bg-surface-alt: #EFF6FF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --bg-obsidian: #001844; /* Deep Loveworld Navy for grounded sections & footer */
  --border-subtle: rgba(212, 175, 55, 0.22);
  --border-card: #E2E8F0;
  --border-glow: rgba(0, 56, 168, 0.18);
  --border-active: #D4AF37;

  /* Executive Typography Contrast */
  --text-primary: #002060;     /* Deep Loveworld Navy for Headings */
  --text-body: #334155;        /* Crisp Charcoal Slate for Paragraphs */
  --text-secondary: #475569;   /* Readable Mid Slate */
  --text-muted: #64748B;       /* Subtitle Muted */

  /* Official Christ Embassy / Loveworld Brand Colors */
  --accent-gold: #D4AF37;
  --accent-gold-light: #F5C443;
  --accent-gold-dark: #996515;
  --accent-royal: #0038A8;
  --accent-royal-deep: #002060;
  --accent-sky: #0084FF;
  --accent-cyan: #00AEEF;
  --accent-orange: #F97316;
  --accent-amber: #F59E0B;
  --accent-blue: #0052D4;
  --accent-emerald: #10B981;

  /* Legacy aliases safely mapped to brand tokens */
  --accent-pink: #F5B82E;
  --accent-purple: #0038A8;

  /* Brand Signature Gradients */
  --grad-primary: linear-gradient(135deg, #FFE29A 0%, #D4AF37 45%, #F5C443 80%, #C99700 100%);
  --grad-gold: linear-gradient(135deg, #FFE29A 0%, #F5C443 35%, #D4AF37 70%, #C99700 100%);
  --grad-gold-radiant: linear-gradient(135deg, #FFF0B3 0%, #F5C443 45%, #D4AF37 80%, #B8860B 100%);
  --grad-royal: linear-gradient(135deg, #0052D4 0%, #0038A8 50%, #001F60 100%);
  --grad-royal-glow: linear-gradient(135deg, #0066FF 0%, #0038A8 100%);
  --grad-warm: linear-gradient(135deg, #FDB813 0%, #F59E0B 50%, #EA580C 100%);
  --grad-healing: linear-gradient(135deg, #0052D4 0%, #0038A8 45%, #D4AF37 100%);
  --grad-faith: linear-gradient(135deg, #FFE082 0%, #D4AF37 50%, #996515 100%);
  --grad-worship: linear-gradient(135deg, #002060 0%, #0047AB 50%, #00AEEF 100%);
  --grad-higher-life: linear-gradient(135deg, #FFE082 0%, #D4AF37 40%, #0038A8 100%);
  --grad-sunday: linear-gradient(135deg, #0038A8 0%, #0052D4 45%, #D4AF37 100%);

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;

  --dock-height: 64px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-dock: 0 10px 30px -10px rgba(0, 32, 96, 0.15), 0 0 20px rgba(212, 175, 55, 0.1);
  --shadow-card: 0 10px 30px -10px rgba(0, 32, 96, 0.08);
  --shadow-card-hover: 0 18px 40px -10px rgba(0, 32, 96, 0.14);
  --shadow-glow: 0 0 25px rgba(212, 175, 55, 0.3);
  --shadow-royal: 0 0 25px rgba(0, 56, 168, 0.4);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  position: relative;
  width: 100%;
  max-width: 100%;
  font-family: var(--font-main);
  background-color: var(--bg-surface);
  color: var(--text-body);
  line-height: 1.6;
  /* `clip` keeps the page from scrolling sideways without creating a scroll
     container; `hidden` is the fallback for older browsers. */
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Fluid, wrapping-friendly rhythm for narrow screens */
@media (max-width: 480px) {
  body {
    line-height: 1.58;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SITE-WIDE TOP LIVE BROADCAST ALERT BAR
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.ce-top-live-bar {
  position: relative;
  z-index: 999;
  width: 100%;
  background: linear-gradient(90deg, #991B1B 0%, #DC2626 50%, #B91C1C 100%);
  color: #FFFFFF;
  padding: 8px 16px;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.ce-top-live-bar.is-dismissed {
  display: none !important;
}

.ce-live-alert-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  font-size: 13.5px;
  font-weight: 500;
}

.ce-live-alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.ce-live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 10px #FFFFFF;
  animation: cePulseRed 1.5s infinite;
}

@keyframes cePulseRed {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.ce-live-alert-viewers {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #FEE2E2;
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 8px;
  border-radius: 6px;
}

.ce-live-alert-text {
  color: #FFFFFF;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ce-live-alert-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  color: #DC2626;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.ce-live-alert-btn:hover {
  background: #FEF2F2;
  color: #991B1B;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.ce-live-btn-arrow {
  transition: transform 0.2s ease;
}

.ce-live-alert-btn:hover .ce-live-btn-arrow {
  transform: translateX(3px);
}

.ce-live-alert-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: auto;
  transition: all 0.2s ease;
}

.ce-live-alert-close:hover {
  color: #FFFFFF;
  background: rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .ce-live-alert-container {
    gap: 8px;
    font-size: 12.5px;
    justify-content: flex-start;
  }
  .ce-live-alert-close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SITE-WIDE FLOATING CORNER LIVE CARD
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.ce-floating-live-card {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: rgba(10, 16, 32, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(220, 38, 38, 0.25);
  z-index: 998;
  overflow: hidden;
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ce-floating-live-card.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.ce-floating-live-card.is-dismissed {
  display: none !important;
}

.ce-card-dismiss-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ce-card-dismiss-btn:hover {
  background: #DC2626;
  border-color: #EF4444;
  transform: scale(1.1);
}

.ce-floating-live-inner {
  display: flex;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.ce-floating-live-inner:hover {
  background: rgba(255, 255, 255, 0.04);
}

.ce-card-thumb-wrap {
  position: relative;
  width: 84px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #000000;
}

.ce-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ce-floating-live-inner:hover .ce-card-thumb {
  transform: scale(1.06);
}

.ce-card-live-tag {
  position: absolute;
  top: 4px;
  left: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(220, 38, 38, 0.95);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.ce-card-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #FFFFFF;
  animation: cePulseRed 1.2s infinite;
}

.ce-card-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ce-card-church-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.ce-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.ce-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}

.ce-card-viewers {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #94A3B8;
}

.ce-card-cta-btn {
  color: #F87171;
  font-weight: 700;
  transition: transform 0.2s ease, color 0.2s ease;
}

.ce-floating-live-inner:hover .ce-card-cta-btn {
  color: #EF4444;
  transform: translateX(2px);
}

@media (max-width: 640px) {
  .ce-floating-live-card {
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MOBILE-FIRST RESPONSIVE OPTIMIZATIONS (ALL SMARTPHONES)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* 1. Global Viewport, Spacing Rhythm & Container */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  /* Compact section vertical rhythm: reduce desktop 80px+ gaps to an energetic mobile rhythm */
  .community-welcome-section,
  .branches-section,
  .pillars-section,
  .commission-section,
  .happening-section,
  .online-exp-section,
  .healing-miracles-section,
  .content-rail-section,
  .partner-section-wrap,
  .sunday-banner-section {
    padding: clamp(34px, 5.5vw, 48px) 0;
  }

  /* Guarantee min 44px touch targets on buttons */
  .btn {
    min-height: 44px;
    touch-action: manipulation;
  }
}

/* 2. Floating Dock Navigation on Mobile */
@media (max-width: 768px) {
  .floating-dock-wrapper {
    top: 10px;
    padding: 0 12px;
  }

  .floating-dock {
    height: 54px;
    padding: 6px 12px;
    gap: 8px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 24px -6px rgba(0, 32, 96, 0.14), 0 2px 6px rgba(0, 0, 0, 0.04);
  }

  .dock-logo {
    gap: 8px;
    padding-right: 0;
    border-right: none;
    max-width: calc(100% - 105px);
  }

  .dock-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .dock-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .dock-brand-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.15;
  }

  .dock-brand-sub {
    font-size: 0.56rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
  }

  .dock-right-cluster {
    gap: 8px;
    align-items: center;
  }

  .btn-sign-in {
    padding: 6px 12px;
    font-size: 0.75rem;
    height: 34px;
    border-radius: var(--radius-full);
  }

  .mobile-nav-toggle {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
  }
}

/* 3. Hero Section Typography & Action Matrix */
@media (max-width: 768px) {
  .hero-unified-wrap {
    padding-top: clamp(82px, 12vh, 104px);
    padding-bottom: 28px;
  }

  .hero-pill-badge {
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    padding: 5px 12px;
    margin-bottom: 14px;
  }

  .hero-main-title {
    font-size: clamp(2.05rem, 7.4vw, 2.75rem);
    line-height: 1.14;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
  }

  .hero-main-title br {
    display: none;
  }

  .hero-unified-sub {
    font-size: clamp(0.92rem, 3.4vw, 1.02rem);
    line-height: 1.55;
    margin-bottom: 20px;
  }

  /* 2x2 Ergonomic Action Matrix */
  .hero-unified-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-bottom: 22px;
  }

  .hero-unified-actions .btn {
    width: 100%;
    min-height: 46px;
    padding: 10px 8px;
    font-size: 0.84rem;
    font-weight: 700;
    gap: 6px;
    text-align: center;
    border-radius: var(--radius-full);
  }

  .hero-unified-actions .btn svg {
    width: 16px;
    height: 16px;
  }

  /* Location & Phone Quick Strip */
  .hero-meta-simple {
    padding-top: 14px;
    gap: 8px;
    font-size: 0.82rem;
    border-top: 1px solid rgba(203, 213, 225, 0.7);
  }

  .hero-meta-simple-item {
    align-items: flex-start;
    gap: 8px;
    line-height: 1.45;
  }

  .hero-meta-simple-icon {
    margin-top: 3px;
    flex-shrink: 0;
  }

  /* Featured Promo Video Card */
  .featured-show-card {
    border-radius: 16px;
    margin-top: 10px;
  }

  .featured-show-img-wrap {
    aspect-ratio: 16 / 9;
  }

  .featured-show-body {
    padding: 16px;
  }

  .featured-show-title {
    font-size: 1.08rem;
    line-height: 1.3;
    margin-bottom: 6px;
  }
}

/* 4. Countdown Timer Bar */
@media (max-width: 768px) {
  .countdown-section {
    margin-top: -10px;
    margin-bottom: 32px;
  }

  .countdown-bar {
    padding: 18px 14px;
    border-radius: 18px;
    gap: 14px;
  }

  .countdown-headline {
    font-size: 1.12rem;
    line-height: 1.3;
  }

  .countdown-units-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    width: 100%;
  }

  .timer-box {
    padding: 8px 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
  }

  .timer-val {
    font-size: clamp(1.2rem, 5.2vw, 1.55rem);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
  }

  .timer-label {
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    margin-top: 3px;
  }

  .countdown-action-box,
  .countdown-action-box .btn {
    width: 100%;
    min-height: 46px;
  }
}

/* 5. Community Welcome Section */
@media (max-width: 768px) {
  .community-welcome-card {
    border-radius: 18px;
    overflow: hidden;
  }

  .community-photo-side {
    min-height: 190px;
    padding: 20px;
    background-size: cover;
    background-position: center 25%;
  }

  .community-overlay-text {
    font-size: 1.55rem;
    line-height: 1.15;
  }

  .community-content-side {
    padding: 22px 16px;
  }

  .community-headline {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
    line-height: 1.25;
    margin-bottom: 12px;
  }

  .community-text {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 18px;
  }

  .community-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .community-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    font-size: 0.88rem;
  }
}

/* Global Button Hardening for Mobile */
@media (max-width: 768px) {
  .btn {
    white-space: nowrap !important;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .btn svg {
    flex-shrink: 0;
  }
}

/* 6. Branches / Worship Locations */
@media (max-width: 768px) {
  .branches-header-center {
    margin-bottom: 24px;
  }

  .branches-header-badge {
    font-size: clamp(0.58rem, 2.5vw, 0.72rem) !important;
    letter-spacing: 0.04em !important;
    padding: 5px 12px !important;
    white-space: nowrap !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    border-radius: var(--radius-full) !important;
  }

  .branches-header-badge .badge-icon {
    font-size: 0.85rem !important;
    flex-shrink: 0 !important;
  }

  .branches-header-badge span {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .branches-section-title {
    font-size: clamp(1.4rem, 5.2vw, 1.85rem);
    line-height: 1.25;
  }

  .branches-section-sub {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .branches-grid {
    gap: 18px;
    margin-bottom: 24px;
  }

  .branch-card {
    border-radius: 18px;
  }

  .branch-card-media {
    height: 190px;
    aspect-ratio: 16 / 10;
  }

  .branch-card-body {
    padding: 18px 16px;
  }

  .branch-name {
    font-size: 1.22rem;
    margin-bottom: 4px;
  }

  .branch-tagline {
    font-size: 0.82rem;
    margin-bottom: 14px;
    min-height: auto;
  }

  .branch-info-list {
    margin-bottom: 16px;
    gap: 10px;
  }

  .branch-info-item {
    font-size: 0.84rem;
  }

  .branch-info-item.schedule-box {
    padding: 10px 12px;
    border-radius: 10px;
  }

  .schedule-title {
    font-size: 0.74rem;
  }

  .schedule-main-time {
    font-size: 0.84rem;
  }

  .branch-actions {
    padding-top: 14px;
    gap: 8px;
  }

  .branch-actions-row {
    gap: 8px;
  }

  .branch-actions-row .btn {
    min-height: 44px;
    font-size: clamp(0.74rem, 2.5vw, 0.82rem) !important;
    padding: 8px 10px;
    white-space: nowrap !important;
    flex: 1;
  }

  .branch-map-full-btn {
    min-height: 46px !important;
    font-size: clamp(0.74rem, 2.5vw, 0.84rem) !important;
    padding: 11px 12px !important;
    gap: 6px !important;
    white-space: nowrap !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Bottom Church Locator Callout Card */
  .branches-bottom-cta {
    padding: 24px 18px !important;
    border-radius: 20px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
  }

  .branches-bottom-left {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 14px !important;
    width: 100% !important;
  }

  .branches-bottom-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 12px !important;
    font-size: 1.25rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  .branches-bottom-title {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    margin-bottom: 6px !important;
  }

  .branches-bottom-desc {
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
    color: rgba(255, 255, 255, 0.82) !important;
  }

  .branches-bottom-right {
    width: 100% !important;
    margin-top: 4px !important;
  }

  .branches-bottom-right .btn-primary {
    width: 100% !important;
    min-height: 48px !important;
    padding: 11px 16px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    justify-content: center !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
  }
}

/* 7. Ministry Pillars & Discipleship */
@media (max-width: 768px) {
  .pillars-section .section-header-row {
    margin-bottom: 20px;
  }

  .pillars-section .section-title {
    font-size: clamp(1.4rem, 5.2vw, 1.85rem);
    line-height: 1.25;
  }

  .pillar-card {
    border-radius: 16px;
  }

  .pillar-img-wrap {
    aspect-ratio: 16 / 10;
  }

  .pillar-body {
    padding: 18px 16px;
  }

  .pillar-title {
    font-size: 1.15rem;
  }

  .pillar-text {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  /* Great Commission Card */
  .commission-card {
    border-radius: 18px;
    overflow: hidden;
  }

  .commission-photo-side {
    min-height: 310px !important;
    padding: 20px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 16px !important;
  }

  .commission-photo-badge {
    position: relative !important;
    z-index: 2 !important;
    align-self: flex-start !important;
    margin-bottom: auto !important;
    font-size: 0.68rem !important;
    padding: 5px 12px !important;
    white-space: nowrap !important;
  }

  .commission-quote-wrap {
    position: relative !important;
    z-index: 2 !important;
    padding: 14px 16px !important;
    border-radius: 14px !important;
    background: rgba(0, 24, 68, 0.72) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
  }

  .commission-scripture {
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
    margin-bottom: 4px !important;
  }

  .commission-scripture-ref {
    font-size: 0.76rem !important;
    opacity: 0.85 !important;
  }

  .commission-content-side {
    padding: 22px 16px;
  }

  .commission-headline {
    font-size: clamp(1.35rem, 5.2vw, 1.75rem);
    line-height: 1.25;
  }

  .commission-description {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 18px;
  }

  .commission-highlights {
    gap: 12px;
    margin-bottom: 20px;
  }

  .commission-highlight-item {
    gap: 10px;
    align-items: flex-start;
  }

  .commission-highlight-icon {
    width: 28px;
    height: 28px;
    margin-top: 2px;
    flex-shrink: 0;
  }

  .commission-highlight-title {
    font-size: 0.94rem;
  }

  .commission-highlight-text {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .commission-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .commission-actions .btn {
    width: 100%;
    min-height: 46px;
    white-space: nowrap !important;
    justify-content: center;
  }
}

/* 8. What's Happening & Church Calendar */
@media (max-width: 768px) {
  .happening-section {
    padding: clamp(34px, 5.5vw, 48px) 0;
    overflow-x: clip;
  }

  .happening-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .happening-sidebar,
  .calendar-cards-stack {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .happening-section .section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    line-height: 1.15;
    margin-bottom: 8px;
  }

  .happening-section .section-subtitle {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 16px;
  }

  .happening-next-badge {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    gap: 12px !important;
    margin: 14px 0 18px !important;
    display: flex !important;
    align-items: center !important;
  }

  .happening-next-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    flex-shrink: 0 !important;
  }

  .happening-next-content {
    min-width: 0 !important;
    flex: 1 !important;
    overflow: hidden !important;
  }

  .happening-next-label {
    font-size: 0.70rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
  }

  .happening-next-val {
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    margin-top: 2px !important;
  }

  .happening-sidebar-cta {
    margin-bottom: 20px !important;
    width: 100% !important;
  }

  .happening-sidebar-cta .btn {
    width: 100% !important;
    min-height: 48px !important;
    white-space: nowrap !important;
    font-size: clamp(0.78rem, 2.7vw, 0.88rem) !important;
    font-weight: 700 !important;
    padding: 11px 16px !important;
    justify-content: center !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }

  .happening-socials {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
  }

  .social-circle-btn {
    width: 42px;
    height: 42px;
  }

  .calendar-cards-stack {
    gap: 14px;
    display: flex !important;
    flex-direction: column !important;
  }

  .calendar-card {
    padding: 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .calendar-card-header-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 14px 0 !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .cal-category-chip,
  .cal-sub-tag,
  .cal-flagship-tag {
    font-size: 0.68rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 55% !important;
  }

  .calendar-card-body {
    padding: 12px 14px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .calendar-left-wrap {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .cal-date-pill {
    width: 48px !important;
    height: 50px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    border-radius: 12px !important;
    flex-shrink: 0 !important;
  }

  .cal-month {
    font-size: 0.62rem !important;
  }

  .cal-day {
    font-size: 1.05rem !important;
    line-height: 1.1 !important;
  }

  .cal-info {
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .cal-title {
    font-size: clamp(0.95rem, 3.2vw, 1.05rem) !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
    color: #0F172A !important;
    word-break: break-word !important;
  }

  .cal-meta-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    color: #64748B !important;
    font-size: 0.78rem !important;
  }

  .cal-meta-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .cal-actions-cluster {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-sizing: border-box !important;
  }

  .cal-action-btn {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    min-height: 44px !important;
    font-size: clamp(0.72rem, 2.5vw, 0.82rem) !important;
    font-weight: 700 !important;
    padding: 8px 12px !important;
    white-space: nowrap !important;
    justify-content: center !important;
    text-align: center !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .cal-action-btn span {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .btn-cal-sync {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    flex-shrink: 0 !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
}

/* 9. Online Experience & Miracle Showcase */
@media (max-width: 768px) {
  .online-exp-card {
    padding: 24px 16px;
    border-radius: 18px;
    gap: 22px;
  }

  .online-exp-text {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 16px;
  }

  .exp-check-list {
    margin-bottom: 20px;
    gap: 10px;
  }

  .exp-check-item {
    font-size: 0.86rem;
    gap: 10px;
  }

  .check-icon-box {
    width: 22px;
    height: 22px;
    min-width: 22px;
    font-size: 0.75rem;
  }

  .online-video-glow-frame {
    border-radius: 14px;
    aspect-ratio: 16 / 9;
  }

  /* Miracle Section */
  .healing-miracles-header {
    margin-bottom: 20px;
  }

  .miracle-badge-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: clamp(0.58rem, 2.5vw, 0.68rem) !important;
    letter-spacing: 0.04em !important;
    padding: 5px 12px !important;
    white-space: nowrap !important;
    max-width: 100% !important;
    line-height: 1.2 !important;
    overflow: hidden !important;
    border-radius: var(--radius-full) !important;
  }

  .miracle-badge-pill .live-pulse-dot {
    flex-shrink: 0 !important;
    width: 8px !important;
    height: 8px !important;
  }

  .miracle-badge-pill span {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .miracle-section-title {
    font-size: clamp(1.4rem, 5.2vw, 1.85rem);
    line-height: 1.25;
  }

  .miracle-section-sub {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .miracle-header-cta {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .miracle-header-cta .btn {
    width: 100% !important;
    min-height: 46px !important;
    justify-content: center !important;
    white-space: nowrap !important;
    font-size: 0.88rem !important;
  }

  /* Horizontal Filter Tabs */
  .miracle-tabs-wrap {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 22px;
  }

  .miracle-tab-btn {
    padding: 7px 14px;
    font-size: 0.82rem;
    border-radius: var(--radius-full);
    flex-shrink: 0;
  }

  .miracle-card {
    border-radius: 16px;
  }

  .miracle-thumb-wrap {
    aspect-ratio: 16 / 9;
  }

  .miracle-content {
    padding: 16px;
  }

  .miracle-headline {
    font-size: 1.05rem;
    line-height: 1.35;
  }

  .miracle-excerpt {
    font-size: 0.85rem;
    line-height: 1.45;
  }

  .miracle-cta-strip {
    padding: 20px 16px;
    border-radius: 18px;
    gap: 16px;
  }

  .miracle-strip-title {
    font-size: 1.22rem;
  }

  .miracle-strip-sub {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .miracle-strip-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .miracle-strip-actions .btn {
    width: 100% !important;
    min-height: 46px !important;
    justify-content: center !important;
    white-space: nowrap !important;
    font-size: 0.88rem !important;
  }
}

/* 10. Partner & Giving Section */
@media (max-width: 768px) {
  .partner-headline-serif {
    font-size: clamp(1.85rem, 6.2vw, 2.5rem);
    line-height: 1.2;
  }

  .partner-subtext {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 18px;
  }

  .partner-highlight-badge {
    font-size: 0.82rem;
    padding: 8px 14px;
    line-height: 1.4;
    margin-bottom: 22px;
  }

  .partner-actions-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
  }

  .partner-action-box {
    padding: 14px 10px;
    border-radius: 14px;
    gap: 8px;
  }

  .partner-icon-circle {
    width: 38px;
    height: 38px;
  }

  .partner-action-title {
    font-size: 0.72rem;
  }
}

/* 11. Sunday Banner Finale & Footer */
@media (max-width: 768px) {
  .sunday-banner-card {
    padding: 24px 16px 28px !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .sunday-badge-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: clamp(0.52rem, 2.2vw, 0.64rem) !important;
    letter-spacing: 0.02em !important;
    padding: 4px 10px !important;
    white-space: nowrap !important;
    max-width: 100% !important;
    line-height: 1.2 !important;
    border-radius: var(--radius-full) !important;
  }

  .sunday-badge-pill .sunday-pulse-dot {
    flex-shrink: 0 !important;
    width: 8px !important;
    height: 8px !important;
  }

  .sunday-badge-pill span {
    white-space: nowrap !important;
  }

  .sunday-title {
    font-size: clamp(1.4rem, 5.5vw, 1.95rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 10px !important;
  }

  .sunday-subtitle {
    font-size: 0.86rem !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
    opacity: 0.9 !important;
  }

  .sunday-schedule-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 18px !important;
    width: 100% !important;
  }

  .sunday-schedule-card {
    padding: 12px 14px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .sunday-schedule-tag {
    font-size: 0.64rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
    color: #D4AF37 !important;
    text-transform: uppercase !important;
  }

  .sunday-schedule-day {
    font-size: 1.0rem !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    line-height: 1.25 !important;
  }

  .sunday-schedule-time {
    font-size: 0.94rem !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .sunday-schedule-meta {
    font-size: 0.74rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .sunday-meta-pill {
    padding: 2px 7px !important;
    font-size: 0.68rem !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.12) !important;
  }

  .sunday-perks-strip {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px 12px !important;
    padding: 14px !important;
    border-radius: 14px !important;
    background: rgba(0, 24, 68, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-bottom: 22px !important;
    box-sizing: border-box !important;
  }

  .sunday-perk-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    font-size: 0.76rem !important;
    line-height: 1.35 !important;
    color: #FFFFFF !important;
  }

  .sunday-perk-icon {
    font-size: 1rem !important;
    flex-shrink: 0 !important;
    margin-top: 1px !important;
  }

  .sunday-cta-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .sunday-cta-group .btn {
    width: 100% !important;
    min-height: 48px !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: clamp(0.78rem, 2.6vw, 0.88rem) !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    padding: 12px 14px !important;
    box-sizing: border-box !important;
    border-radius: var(--radius-full) !important;
    text-align: center !important;
  }

  .sunday-cta-group .btn svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  .sunday-cta-group .btn span {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .sunday-venue-strip {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 6px !important;
    font-size: 0.80rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-top: 18px !important;
  }

  .sunday-venue-link {
    color: #D4AF37 !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    text-decoration: underline !important;
  }

  .sunday-venue-divider {
    display: none;
  }

  /* Footer on mobile */
  .site-footer {
    padding-top: 40px;
    padding-bottom: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 28px;
  }

  .footer-heading {
    font-size: 1rem;
    margin-bottom: 14px;
  }

  .footer-links li a {
    padding: 4px 0;
    display: inline-block;
    font-size: 0.88rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .footer-legal-links {
    justify-content: center;
    font-size: 0.82rem;
  }
}

/* 12. Ultra-Compact Phones (â‰¤ 380px) */
@media (max-width: 380px) {
  .hero-main-title {
    font-size: 1.95rem;
  }

  .hero-unified-actions {
    gap: 8px;
  }

  .hero-unified-actions .btn {
    font-size: 0.76rem !important;
    padding: 8px 4px !important;
    white-space: nowrap !important;
  }

  .branch-map-full-btn {
    font-size: 0.72rem !important;
    padding: 10px 8px !important;
  }

  .cal-action-btn {
    font-size: 0.70rem !important;
    padding: 8px 6px !important;
  }

  .sunday-perks-strip {
    grid-template-columns: 1fr;
  }

  .partner-actions-row {
    grid-template-columns: 1fr;
  }
}


/* ===============================================================
   MEMBER ACCOUNTS: SOCIAL OAUTH BUTTONS (KINGSCHAT & GOOGLE)
   =============================================================== */
.ce-social-auth-cluster {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.ce-btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.ce-social-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.ce-social-icon-wrap svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* KingsChat Brand Button */
.ce-btn-kingschat {
  background: #0057FF;
  color: #FFFFFF !important;
  border: 1px solid #0047D4;
  box-shadow: 0 4px 14px rgba(0, 87, 255, 0.22);
}

.ce-btn-kingschat:hover {
  background: #0047D4;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 87, 255, 0.35);
}

.ce-btn-kingschat:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 87, 255, 0.25);
}

/* Google OAuth Button */
.ce-btn-google {
  background: #FFFFFF;
  color: #1F2937 !important;
  border: 1px solid #D1D5DB;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ce-btn-google:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
  color: #0F172A !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.ce-btn-google:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Divider: or continue with email */
.ce-auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0 12px;
  color: #94A3B8;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ce-auth-divider::before,
.ce-auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #E2E8F0;
}

.ce-auth-divider span {
  padding: 0 14px;
}
