/*
Theme Name: Ark of Charity Bible Church International
Theme URI: https://arkofcharity.org
Author: Ark of Charity Bible Church International
Author URI: https://arkofcharity.org
Description: A professional, fully Gutenberg-editable block theme for Ark of Charity Bible Church International — Doha, Qatar. Features full site editing, custom page templates for every page, department management, sermon library, event listings, online giving, and more.
Version: 4.0.0
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ark-of-charity
Tags: church, religion, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, one-column, two-columns, three-columns, wide-blocks

Ark of Charity Bible Church International Theme
Copyright (C) 2024 Ark of Charity Bible Church International
*/

/* ============================================
   GLOBAL CUSTOM PROPERTIES
============================================ */
:root {
  --acbc-red: #C41E3A;
  --acbc-red-dark: #8B0000;
  --acbc-red-light: #E8324A;
  --acbc-gold: #C9A84C;
  --acbc-gold-light: #F0D080;
  --acbc-gold-dark: #A67C32;
  --acbc-white: #FFFFFF;
  --acbc-off-white: #FDF8F0;
  --acbc-cream: #FAF3E0;
  --acbc-dark: #1A1A1A;
  --acbc-gray: #6B6B6B;
  --acbc-light-gray: #F5F0E8;
  --acbc-border: rgba(201, 168, 76, 0.3);

  --acbc-font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --acbc-font-heading: 'Montserrat', 'Helvetica Neue', sans-serif;
  --acbc-font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;

  --acbc-shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --acbc-shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --acbc-shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --acbc-shadow-gold: 0 4px 20px rgba(201,168,76,0.25);

  --acbc-radius-sm: 4px;
  --acbc-radius-md: 8px;
  --acbc-radius-lg: 16px;
  --acbc-radius-pill: 50px;

  --acbc-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --acbc-transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--acbc-font-body);
  color: var(--acbc-dark);
  background-color: var(--acbc-white);
  line-height: 1.7;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--acbc-red);
  text-decoration: none;
  transition: var(--acbc-transition);
}

a:hover {
  color: var(--acbc-gold-dark);
}

/* ============================================
   TYPOGRAPHY
============================================ */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
  font-family: var(--acbc-font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--acbc-dark);
  margin-top: 0;
}

h1, .h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2, .h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3, .h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4, .h4 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h5, .h5 { font-size: 1.1rem; }
h6, .h6 { font-size: 1rem; }

p { margin-bottom: 1.25rem; }

.acbc-display-font {
  font-family: var(--acbc-font-display);
}

.acbc-heading-font {
  font-family: var(--acbc-font-heading);
}

/* ============================================
   GOLD DIVIDER
============================================ */
.acbc-gold-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 1.5rem 0;
}

.acbc-gold-divider::before,
.acbc-gold-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--acbc-gold), transparent);
}

.acbc-gold-divider span {
  color: var(--acbc-gold);
  font-size: 1.2rem;
}

/* ============================================
   SECTION LABEL (EYEBROW TEXT)
============================================ */
.acbc-section-label {
  font-family: var(--acbc-font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acbc-gold-dark);
  display: block;
  margin-bottom: 0.75rem;
}

/* ============================================
   BUTTONS
============================================ */
.wp-block-button .wp-block-button__link,
.acbc-btn {
  font-family: var(--acbc-font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: var(--acbc-radius-pill);
  transition: var(--acbc-transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid transparent;
  text-decoration: none;
}

/* Primary Button */
.wp-block-button.is-style-primary .wp-block-button__link,
.acbc-btn-primary {
  background: var(--acbc-red);
  color: var(--acbc-white);
  border-color: var(--acbc-red);
}

.wp-block-button.is-style-primary .wp-block-button__link:hover,
.acbc-btn-primary:hover {
  background: var(--acbc-red-dark);
  border-color: var(--acbc-red-dark);
  transform: translateY(-2px);
  box-shadow: var(--acbc-shadow-md);
}

/* Gold Button */
.wp-block-button.is-style-gold .wp-block-button__link,
.acbc-btn-gold {
  background: var(--acbc-gold);
  color: var(--acbc-dark);
  border-color: var(--acbc-gold);
}

.wp-block-button.is-style-gold .wp-block-button__link:hover,
.acbc-btn-gold:hover {
  background: var(--acbc-gold-dark);
  border-color: var(--acbc-gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--acbc-shadow-gold);
}

/* Outline Button */
.wp-block-button.is-style-outline .wp-block-button__link,
.acbc-btn-outline {
  background: transparent;
  color: var(--acbc-white);
  border-color: var(--acbc-white);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.acbc-btn-outline:hover {
  background: var(--acbc-white);
  color: var(--acbc-red);
  transform: translateY(-2px);
}

/* Gold Outline Button */
.acbc-btn-outline-gold {
  background: transparent;
  color: var(--acbc-gold);
  border: 2px solid var(--acbc-gold);
}

.acbc-btn-outline-gold:hover {
  background: var(--acbc-gold);
  color: var(--acbc-dark);
}

/* ============================================
   NAVIGATION / HEADER
============================================ */
.acbc-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--acbc-dark);
  border-bottom: 3px solid var(--acbc-gold);
  transition: var(--acbc-transition);
  overflow: visible;  /* CRITICAL: allows dropdowns to escape the header */
}

.acbc-site-header.scrolled {
  box-shadow: var(--acbc-shadow-lg);
}

.acbc-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  overflow: visible;  /* allow dropdown sub-menus to escape */
  flex-wrap: nowrap;
}

.acbc-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.acbc-logo-wrap img {
  height: 60px;
  width: auto;
}

.acbc-logo-text {
  display: flex;
  flex-direction: column;
}

.acbc-logo-text .name {
  font-family: var(--acbc-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--acbc-gold);
  line-height: 1.1;
}

.acbc-logo-text .tagline {
  font-family: var(--acbc-font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* Primary Nav */
.acbc-primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.acbc-primary-nav > li {
  position: relative;
}

.acbc-primary-nav > li > a {
  font-family: var(--acbc-font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: var(--acbc-radius-sm);
  display: block;
  transition: var(--acbc-transition);
  white-space: nowrap;
}

.acbc-primary-nav > li > a:hover,
.acbc-primary-nav > li.current-menu-item > a {
  color: var(--acbc-gold);
  background: rgba(201,168,76,0.1);
}

/* Dropdown */
.acbc-primary-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--acbc-dark);
  border: 1px solid var(--acbc-border);
  border-top: 3px solid var(--acbc-gold);
  border-radius: 0 0 var(--acbc-radius-md) var(--acbc-radius-md);
  box-shadow: var(--acbc-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--acbc-transition);
  z-index: 1001;
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.acbc-primary-nav > li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.acbc-primary-nav .sub-menu li a {
  font-family: var(--acbc-font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.8);
  padding: 10px 20px;
  display: block;
  transition: var(--acbc-transition);
}

.acbc-primary-nav .sub-menu li a:hover {
  color: var(--acbc-gold);
  background: rgba(201,168,76,0.1);
  padding-left: 28px;
}

/* Header CTA */
.acbc-header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.acbc-header-give-btn {
  font-family: var(--acbc-font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--acbc-gold);
  color: var(--acbc-dark);
  padding: 10px 22px;
  border-radius: var(--acbc-radius-pill);
  transition: var(--acbc-transition);
  white-space: nowrap;
}

.acbc-header-give-btn:hover {
  background: var(--acbc-gold-dark);
  color: var(--acbc-white);
  transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.acbc-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.acbc-menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--acbc-white);
  border-radius: 2px;
  transition: var(--acbc-transition);
}

/* ============================================
   HERO SECTION
============================================ */
.acbc-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--acbc-dark);
}

.acbc-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.acbc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26,26,26,0.88) 0%,
    rgba(139,0,0,0.55) 50%,
    rgba(26,26,26,0.80) 100%
  );
}

.acbc-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.acbc-hero-eyebrow {
  font-family: var(--acbc-font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--acbc-gold);
  display: block;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.acbc-hero-title {
  font-family: var(--acbc-font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--acbc-white);
  line-height: 1.05;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

.acbc-hero-title em {
  color: var(--acbc-gold);
  font-style: italic;
}

.acbc-hero-scripture {
  font-family: var(--acbc-font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-style: italic;
  color: rgba(255,255,255,0.8);
  max-width: 680px;
  margin: 0 auto 12px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.6s forwards;
  line-height: 1.6;
}

.acbc-hero-scripture-ref {
  font-family: var(--acbc-font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--acbc-gold);
  display: block;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.7s forwards;
}

.acbc-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.9s forwards;
}

.acbc-hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-family: var(--acbc-font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s ease infinite;
}

.acbc-hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

/* ============================================
   SECTION STYLES
============================================ */
.acbc-section {
  padding: 96px 24px;
}

.acbc-section-sm {
  padding: 60px 24px;
}

.acbc-section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.acbc-section-header {
  text-align: center;
  margin-bottom: 64px;
}

.acbc-section-title {
  font-family: var(--acbc-font-display);
  color: var(--acbc-dark);
  margin-bottom: 16px;
}

.acbc-section-subtitle {
  font-family: var(--acbc-font-body);
  color: var(--acbc-gray);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Dark section */
.acbc-section-dark {
  background: var(--acbc-dark);
}

.acbc-section-dark .acbc-section-title {
  color: var(--acbc-white);
}

.acbc-section-dark .acbc-section-subtitle {
  color: rgba(255,255,255,0.65);
}

/* Red section */
.acbc-section-red {
  background: var(--acbc-red);
}

.acbc-section-red .acbc-section-title {
  color: var(--acbc-white);
}

/* Cream section */
.acbc-section-cream {
  background: var(--acbc-cream);
}

/* ============================================
   CARDS
============================================ */
.acbc-card {
  background: var(--acbc-white);
  border: 1px solid var(--acbc-border);
  border-radius: var(--acbc-radius-lg);
  overflow: hidden;
  transition: var(--acbc-transition);
  position: relative;
}

.acbc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--acbc-shadow-lg);
  border-color: var(--acbc-gold);
}

.acbc-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.acbc-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.acbc-card-body {
  padding: 28px;
}

/* ============================================
   FAITH WALK (QUICK LINKS)
============================================ */
.acbc-faith-walk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.acbc-faith-walk-item {
  background: var(--acbc-white);
  border: 1px solid var(--acbc-border);
  border-radius: var(--acbc-radius-lg);
  padding: 40px 28px;
  text-align: center;
  text-decoration: none;
  transition: var(--acbc-transition);
  position: relative;
  overflow: hidden;
}

.acbc-faith-walk-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--acbc-gold);
  transform: scaleX(0);
  transition: var(--acbc-transition);
}

.acbc-faith-walk-item:hover::before {
  transform: scaleX(1);
}

.acbc-faith-walk-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--acbc-shadow-gold);
  border-color: var(--acbc-gold);
}

.acbc-faith-walk-icon {
  width: 64px;
  height: 64px;
  background: var(--acbc-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
}

.acbc-faith-walk-label {
  font-family: var(--acbc-font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--acbc-gold-dark);
  display: block;
  margin-bottom: 8px;
}

.acbc-faith-walk-title {
  font-family: var(--acbc-font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--acbc-dark);
  margin: 0;
}

/* ============================================
   SERVICE TIMES
============================================ */
.acbc-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.acbc-service-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--acbc-radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: var(--acbc-transition);
}

.acbc-service-card:hover {
  background: rgba(201,168,76,0.08);
  border-color: var(--acbc-gold);
  transform: translateY(-4px);
}

.acbc-service-day {
  font-family: var(--acbc-font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--acbc-gold);
  display: block;
  margin-bottom: 12px;
}

.acbc-service-name {
  font-family: var(--acbc-font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--acbc-white);
  margin-bottom: 12px;
}

.acbc-service-time {
  font-family: var(--acbc-font-heading);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ============================================
   DEPARTMENT CARDS
============================================ */
.acbc-dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.acbc-dept-card {
  background: var(--acbc-white);
  border: 1px solid var(--acbc-border);
  border-radius: var(--acbc-radius-lg);
  padding: 40px 28px;
  text-align: center;
  text-decoration: none;
  transition: var(--acbc-transition);
  position: relative;
  overflow: hidden;
}

.acbc-dept-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--acbc-red), var(--acbc-gold));
  transform: scaleX(0);
  transition: var(--acbc-transition);
}

.acbc-dept-card:hover::after {
  transform: scaleX(1);
}

.acbc-dept-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--acbc-shadow-lg);
}

.acbc-dept-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--acbc-red), var(--acbc-red-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  box-shadow: 0 4px 16px rgba(196,30,58,0.3);
}

.acbc-dept-name {
  font-family: var(--acbc-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--acbc-dark);
  margin-bottom: 10px;
}

.acbc-dept-desc {
  font-family: var(--acbc-font-body);
  font-size: 0.9rem;
  color: var(--acbc-gray);
  line-height: 1.6;
  margin-bottom: 20px;
}

.acbc-dept-link {
  font-family: var(--acbc-font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--acbc-red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.acbc-dept-link:hover {
  color: var(--acbc-gold-dark);
  gap: 10px;
}

/* ============================================
   TESTIMONIALS
============================================ */
.acbc-testimonial-card {
  background: var(--acbc-white);
  border: 1px solid var(--acbc-border);
  border-radius: var(--acbc-radius-lg);
  padding: 36px 32px;
  position: relative;
}

.acbc-testimonial-card::before {
  content: '\201C';
  font-family: var(--acbc-font-display);
  font-size: 5rem;
  color: var(--acbc-gold-light);
  line-height: 0.6;
  display: block;
  margin-bottom: 16px;
}

.acbc-testimonial-text {
  font-family: var(--acbc-font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--acbc-dark);
  line-height: 1.7;
  margin-bottom: 24px;
}

.acbc-testimonial-author {
  font-family: var(--acbc-font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--acbc-red);
  text-transform: uppercase;
}

/* ============================================
   SERMONS
============================================ */
.acbc-sermon-card {
  background: var(--acbc-white);
  border: 1px solid var(--acbc-border);
  border-radius: var(--acbc-radius-lg);
  overflow: hidden;
  transition: var(--acbc-transition);
}

.acbc-sermon-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--acbc-shadow-lg);
}

.acbc-sermon-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--acbc-dark);
  overflow: hidden;
}

.acbc-sermon-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: var(--acbc-transition-slow);
}

.acbc-sermon-card:hover .acbc-sermon-thumb img {
  opacity: 0.85;
  transform: scale(1.03);
}

.acbc-sermon-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.acbc-sermon-play-btn {
  width: 64px;
  height: 64px;
  background: var(--acbc-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--acbc-transition);
  font-size: 1.5rem;
  color: white;
}

.acbc-sermon-card:hover .acbc-sermon-play-btn {
  transform: scale(1.1);
  background: var(--acbc-gold);
  color: var(--acbc-dark);
}

.acbc-sermon-meta {
  padding: 24px;
}

.acbc-sermon-category {
  font-family: var(--acbc-font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--acbc-gold-dark);
  margin-bottom: 8px;
  display: block;
}

.acbc-sermon-title {
  font-family: var(--acbc-font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--acbc-dark);
  margin-bottom: 10px;
}

.acbc-sermon-date {
  font-size: 0.85rem;
  color: var(--acbc-gray);
}

.acbc-sermon-actions {
  display: flex;
  gap: 10px;
  padding: 0 24px 24px;
  flex-wrap: wrap;
}

/* ============================================
   EVENTS
============================================ */
.acbc-event-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--acbc-white);
  border: 1px solid var(--acbc-border);
  border-radius: var(--acbc-radius-lg);
  padding: 24px;
  transition: var(--acbc-transition);
}

.acbc-event-card:hover {
  border-color: var(--acbc-gold);
  box-shadow: var(--acbc-shadow-md);
}

.acbc-event-date-box {
  background: var(--acbc-red);
  color: var(--acbc-white);
  border-radius: var(--acbc-radius-md);
  padding: 12px 16px;
  text-align: center;
  min-width: 72px;
  flex-shrink: 0;
}

.acbc-event-month {
  font-family: var(--acbc-font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}

.acbc-event-day {
  font-family: var(--acbc-font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.acbc-event-info { flex: 1; }

.acbc-event-title {
  font-family: var(--acbc-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--acbc-dark);
  margin-bottom: 6px;
}

.acbc-event-meta {
  font-size: 0.85rem;
  color: var(--acbc-gray);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   FORMS
============================================ */
.acbc-form-section {
  background: var(--acbc-off-white);
  border: 1px solid var(--acbc-border);
  border-radius: var(--acbc-radius-lg);
  padding: 48px;
}

.acbc-form-title {
  font-family: var(--acbc-font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--acbc-dark);
  margin-bottom: 8px;
}

.acbc-form-subtitle {
  color: var(--acbc-gray);
  margin-bottom: 36px;
}

.acbc-form-group {
  margin-bottom: 24px;
}

.acbc-form-label {
  display: block;
  font-family: var(--acbc-font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--acbc-dark);
  margin-bottom: 8px;
}

.acbc-form-label .required {
  color: var(--acbc-red);
  margin-left: 3px;
}

.acbc-form-input,
.acbc-form-select,
.acbc-form-textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--acbc-font-body);
  font-size: 0.95rem;
  color: var(--acbc-dark);
  background: var(--acbc-white);
  border: 1.5px solid #DDD;
  border-radius: var(--acbc-radius-md);
  transition: var(--acbc-transition);
  outline: none;
  appearance: none;
}

.acbc-form-input:focus,
.acbc-form-select:focus,
.acbc-form-textarea:focus {
  border-color: var(--acbc-gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.acbc-form-textarea {
  resize: vertical;
  min-height: 140px;
}

.acbc-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.acbc-form-submit {
  font-family: var(--acbc-font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--acbc-red);
  color: var(--acbc-white);
  border: none;
  padding: 16px 48px;
  border-radius: var(--acbc-radius-pill);
  cursor: pointer;
  transition: var(--acbc-transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.acbc-form-submit:hover {
  background: var(--acbc-red-dark);
  transform: translateY(-2px);
  box-shadow: var(--acbc-shadow-md);
}

.acbc-form-notice {
  padding: 16px 20px;
  border-radius: var(--acbc-radius-md);
  font-size: 0.9rem;
  margin-bottom: 24px;
  display: none;
}

.acbc-form-notice.success {
  background: #f0fff4;
  border: 1px solid #68d391;
  color: #276749;
  display: block;
}

.acbc-form-notice.error {
  background: #fff5f5;
  border: 1px solid #fc8181;
  color: #742a2a;
  display: block;
}

/* ============================================
   GIVE PAGE
============================================ */
.acbc-give-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.acbc-give-card {
  background: var(--acbc-white);
  border: 1px solid var(--acbc-border);
  border-radius: var(--acbc-radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: var(--acbc-transition);
}

.acbc-give-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--acbc-shadow-gold);
  border-color: var(--acbc-gold);
}

.acbc-give-currency {
  font-family: var(--acbc-font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--acbc-gold-dark);
  display: block;
  margin-bottom: 12px;
}

.acbc-give-flag {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.acbc-give-name {
  font-family: var(--acbc-font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--acbc-dark);
  margin-bottom: 20px;
}

.acbc-qr-wrap {
  background: var(--acbc-light-gray);
  border-radius: var(--acbc-radius-md);
  padding: 20px;
  margin-bottom: 16px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.acbc-qr-wrap img {
  max-width: 160px;
  height: auto;
  border-radius: var(--acbc-radius-sm);
}

.acbc-qr-placeholder {
  color: var(--acbc-gray);
  font-size: 0.85rem;
  text-align: center;
}

/* ============================================
   LIVESTREAM PAGE
============================================ */
.acbc-livestream-embed {
  position: relative;
  border-radius: var(--acbc-radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--acbc-dark);
  box-shadow: var(--acbc-shadow-lg);
}

.acbc-livestream-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   PASTOR PROFILE
============================================ */
.acbc-pastor-section {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: center;
  overflow: hidden;
}

.acbc-pastor-img-wrap {
  position: relative;
  overflow: hidden;
}

.acbc-pastor-img {
  border-radius: var(--acbc-radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
}

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

.acbc-pastor-img-deco {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 80%;
  height: 80%;
  border: 3px solid var(--acbc-gold);
  border-radius: var(--acbc-radius-lg);
  z-index: -1;
}

/* ============================================
   PAGE BANNER (INNER PAGES)
============================================ */
.acbc-page-banner {
  background: linear-gradient(135deg, var(--acbc-dark) 0%, var(--acbc-red-dark) 100%);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.acbc-page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.acbc-page-banner-title {
  font-family: var(--acbc-font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--acbc-white);
  margin-bottom: 12px;
  position: relative;
}

.acbc-page-banner-breadcrumb {
  font-family: var(--acbc-font-heading);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  position: relative;
}

.acbc-page-banner-breadcrumb a {
  color: var(--acbc-gold);
}

.acbc-page-banner-breadcrumb span {
  margin: 0 8px;
}

/* ============================================
   QUOTE SECTION
============================================ */
.acbc-quote-section {
  background: var(--acbc-cream);
  padding: 80px 24px;
  text-align: center;
  border-top: 1px solid var(--acbc-border);
  border-bottom: 1px solid var(--acbc-border);
}

.acbc-quote-text {
  font-family: var(--acbc-font-display);
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  font-style: italic;
  color: var(--acbc-dark);
  max-width: 800px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.acbc-quote-author {
  font-family: var(--acbc-font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acbc-red);
}

/* ============================================
   FOOTER
============================================ */
.acbc-footer {
  background: var(--acbc-dark);
  color: rgba(255,255,255,0.7);
  padding: 80px 24px 0;
}

.acbc-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
}

.acbc-footer-brand .logo {
  height: 70px;
  width: auto;
  margin-bottom: 16px;
}

.acbc-footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 280px;
}

.acbc-footer-social {
  display: flex;
  gap: 10px;
}

.acbc-footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--acbc-transition);
}

.acbc-footer-social a:hover {
  background: var(--acbc-gold);
  border-color: var(--acbc-gold);
  color: var(--acbc-dark);
  transform: translateY(-2px);
}

.acbc-footer-col-title {
  font-family: var(--acbc-font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--acbc-gold);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}

.acbc-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.acbc-footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--acbc-transition);
}

.acbc-footer-links a::before {
  content: '›';
  color: var(--acbc-gold);
  font-size: 1rem;
}

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

.acbc-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.88rem;
}

.acbc-footer-contact-icon {
  color: var(--acbc-gold);
  margin-top: 2px;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.acbc-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.acbc-footer-bottom p { margin: 0; }

.acbc-footer-credit a {
  color: var(--acbc-gold);
}

/* ============================================
   RESOURCES PAGE
============================================ */
.acbc-resource-card {
  background: var(--acbc-white);
  border: 1px solid var(--acbc-border);
  border-radius: var(--acbc-radius-lg);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: center;
  transition: var(--acbc-transition);
}

.acbc-resource-card:hover {
  border-color: var(--acbc-gold);
  box-shadow: var(--acbc-shadow-md);
}

.acbc-resource-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--acbc-red), var(--acbc-red-dark));
  border-radius: var(--acbc-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  color: white;
}

.acbc-resource-info { flex: 1; }

.acbc-resource-title {
  font-family: var(--acbc-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--acbc-dark);
  margin-bottom: 4px;
}

.acbc-resource-meta {
  font-size: 0.82rem;
  color: var(--acbc-gray);
}

/* ============================================
   FELLOWSHIP PAGE
============================================ */
.acbc-fellowship-card {
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: var(--acbc-radius-lg);
  padding: 48px;
  text-align: center;
  color: white;
}

.acbc-fellowship-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
}

/* ============================================
   CONTACT PAGE
============================================ */
.acbc-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
  overflow: hidden;
}

.acbc-contact-info-card {
  background: var(--acbc-dark);
  border-radius: var(--acbc-radius-lg);
  padding: 48px 36px;
  color: white;
}

.acbc-contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.acbc-contact-info-icon {
  width: 48px;
  height: 48px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--acbc-gold);
  font-size: 1rem;
  flex-shrink: 0;
}

.acbc-contact-info-label {
  font-family: var(--acbc-font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--acbc-gold);
  display: block;
  margin-bottom: 4px;
}

.acbc-contact-info-value {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.acbc-map-embed {
  border-radius: var(--acbc-radius-lg);
  overflow: hidden;
  height: 300px;
  margin-top: 28px;
}

.acbc-map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

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

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes shimmer {
  from { background-position: -200% 0; }
  to { background-position: 200% 0; }
}

.acbc-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================
   UTILITIES
============================================ */
.acbc-text-red { color: var(--acbc-red); }
.acbc-text-gold { color: var(--acbc-gold); }
.acbc-text-white { color: var(--acbc-white); }
.acbc-text-center { text-align: center; }

.acbc-bg-red { background-color: var(--acbc-red); }
.acbc-bg-gold { background-color: var(--acbc-gold); }
.acbc-bg-dark { background-color: var(--acbc-dark); }
.acbc-bg-cream { background-color: var(--acbc-cream); }

.acbc-separator {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--acbc-red), var(--acbc-gold));
  border-radius: 2px;
  margin: 0 auto;
}

.acbc-separator-left {
  margin: 0;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .acbc-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .acbc-pastor-section {
    grid-template-columns: 1fr;
  }

  .acbc-pastor-img {
    max-width: 400px;
    margin: 0 auto;
  }

  .acbc-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .acbc-primary-nav,
  .acbc-header-give-btn {
    display: none;
  }

  .acbc-menu-toggle {
    display: flex;
  }

  .acbc-section {
    padding: 64px 20px;
  }

  .acbc-form-row {
    grid-template-columns: 1fr;
  }

  .acbc-footer-grid {
    grid-template-columns: 1fr;
  }

  .acbc-footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .acbc-form-section {
    padding: 28px 20px;
  }

  .acbc-faith-walk-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .acbc-hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .acbc-faith-walk-grid {
    grid-template-columns: 1fr;
  }

  .acbc-dept-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   MOBILE MENU
============================================ */
.acbc-mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 88vw;
  height: 100%;
  height: 100dvh;
  background: #111111;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.6);
}

.acbc-mobile-nav.open {
  transform: translateX(0);
}

/* Backdrop overlay behind the mobile nav */
.acbc-mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 99998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.acbc-mobile-nav-backdrop.open {
  display: block;
  opacity: 1;
}

.acbc-mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.acbc-mobile-nav-close {
  background: rgba(255,255,255,0.08);
  border: none;
  color: white;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.acbc-mobile-nav-close:hover { background: rgba(255,255,255,0.15); }

.acbc-mobile-nav-links {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.acbc-mobile-nav-links li {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.acbc-mobile-nav-links li a {
  font-family: var(--acbc-font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.9);
  padding: 14px 20px;
  display: block;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acbc-mobile-nav-links li a:hover {
  color: var(--acbc-gold);
  background: rgba(255,255,255,0.04);
}

.acbc-mobile-nav-sub {
  list-style: none;
  padding: 0;
  margin: 0;
  background: rgba(255,255,255,0.03);
  display: none;
}
.acbc-mobile-has-sub.open .acbc-mobile-nav-sub {
  display: block;
}

.acbc-mobile-nav-sub li { border-bottom: 1px solid rgba(255,255,255,0.04); }

.acbc-mobile-nav-sub a {
  font-family: var(--acbc-font-heading) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,0.55) !important;
  padding: 11px 20px 11px 36px !important;
  letter-spacing: 0.01em !important;
}
.acbc-mobile-nav-sub a:hover {
  color: var(--acbc-gold) !important;
  background: rgba(201,168,76,0.05) !important;
}

/* ============================================
   ADMIN BAR OFFSET
============================================ */
.admin-bar .acbc-site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .acbc-site-header {
    top: 46px;
  }
}

/* ============================================
   WP CORE OVERRIDES
============================================ */
.wp-block-image img {
  border-radius: var(--acbc-radius-md);
}

.wp-block-quote {
  border-left: 4px solid var(--acbc-gold);
  padding-left: 24px;
  font-family: var(--acbc-font-display);
  font-style: italic;
}

.wp-block-separator {
  border-color: var(--acbc-border);
}

.wp-block-pullquote {
  border-top: 3px solid var(--acbc-gold);
  border-bottom: 3px solid var(--acbc-gold);
}

.has-red-color { color: var(--acbc-red) !important; }
.has-gold-color { color: var(--acbc-gold) !important; }
.has-red-background-color { background-color: var(--acbc-red) !important; }
.has-gold-background-color { background-color: var(--acbc-gold) !important; }
.has-dark-background-color { background-color: var(--acbc-dark) !important; }

/* ============================================================
   LIVESTREAM ADMIN TIP — hidden for non-admins
============================================================ */
.acbc-admin-tip { display: none; }
.logged-in.wp-admin .acbc-admin-tip,
.logged-in .acbc-admin-tip { display: flex; }

/* ============================================================
   SERVICE TIMES STRIP — RESPONSIVE
============================================================ */
.acbc-service-strip {
  background: var(--acbc-red);
  padding: 18px 24px;
}
.acbc-service-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.acbc-service-strip-times {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.acbc-service-strip-item {
  text-align: center;
}
.acbc-service-strip-label {
  font-family: var(--acbc-font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  display: block;
}
.acbc-service-strip-name {
  font-family: var(--acbc-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: white;
  display: block;
}
.acbc-service-strip-time {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
}

/* ================================================================
   RESPONSIVE — COMPLETE MOBILE-FIRST FIX v3.0
   Fixes: overflow, grid collapse, image sticking out on mobile
================================================================ */

/* Global overflow prevention — most critical fix */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

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

/* Prevent any element from exceeding viewport */
.acbc-section-container,
.acbc-section,
section,
header,
footer,
main {
  max-width: 100%;
  overflow-x: hidden;
}

/* Fix all inline grids that may overflow */
[style*="grid-template-columns"],
[style*="display:grid"] {
  max-width: 100%;
}

/* ---- DESKTOP: 1280px+ ---- */
@media (min-width: 1280px) {
  .acbc-header-inner { padding: 0 48px; }
}

/* ---- TABLET LANDSCAPE: max 1024px ---- */
@media (max-width: 1024px) {
  .acbc-primary-nav > li > a { padding: 8px 9px; font-size: 0.7rem; }

  .acbc-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }

  /* Force all two-column layout to single column */
  .acbc-pastor-section { grid-template-columns: 1fr !important; gap: 40px !important; }
  .acbc-pastor-img-wrap { max-width: 420px !important; margin: 0 auto !important; }
  .acbc-contact-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
}

/* ---- MEDIUM HEADER: max 1100px — switch to hamburger, never wrap nav into rows ---- */
@media (max-width: 1100px) {
  .acbc-primary-nav,
  .acbc-header-give-btn { display: none !important; }
  .acbc-menu-toggle { display: flex !important; }
  .acbc-header-inner { min-height: 72px; }
}

/* ---- TABLET PORTRAIT: max 768px ---- */
@media (max-width: 768px) {
  .acbc-primary-nav,
  .acbc-header-give-btn { display: none !important; }
  .acbc-menu-toggle { display: flex !important; }

  .acbc-section { padding: 52px 18px; }
  .acbc-section-sm { padding: 40px 18px; }
  .acbc-section-header { margin-bottom: 36px; }

  /* Force ALL inline-style grids to stack on tablet */
  [style*="display:grid"],
  [style*="grid-template-columns"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }

  /* Exceptions — keep these as grids */
  .acbc-dept-grid { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
  .acbc-faith-walk-grid { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
  .acbc-give-grid { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
  .acbc-services-grid { display: grid !important; grid-template-columns: 1fr !important; gap: 14px !important; }
  .acbc-form-row { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
  .acbc-footer-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 28px !important; }

  .acbc-two-col,
  .acbc-col-2,
  .acbc-pastor-section,
  .acbc-contact-grid,
  .acbc-form-row,
  .acbc-dept-grid,
  .acbc-faith-walk-grid,
  .acbc-give-grid,
  .acbc-services-grid,
  .acbc-event-card,
  .acbc-resource-card,
  .acbc-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .acbc-two-col > *,
  .acbc-col-2 > *,
  .acbc-contact-grid > *,
  .acbc-form-row > *,
  .acbc-dept-grid > *,
  .acbc-faith-walk-grid > *,
  .acbc-give-grid > *,
  .acbc-services-grid > * {
    width: 100% !important;
    max-width: 100% !important;
  }

  .acbc-pastor-img-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    overflow: hidden !important;
  }

  .acbc-pastor-img {
    aspect-ratio: 4 / 3 !important;
    min-height: auto !important;
  }

  .acbc-map-embed {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 220px !important;
  }

  /* Remove overflow-causing absolute positioned decorators */
  .acbc-pastor-img-deco,
  [style*="position:absolute;bottom:-16px"],
  [style*="position:absolute;top:24px;left:-16px"] { display: none !important; }

  /* Fix any element that could overflow */
  .acbc-pastor-img-wrap { max-width: 100% !important; overflow: hidden !important; position: static !important; }
  .acbc-pastor-img { border-radius: 12px !important; aspect-ratio: 4/3 !important; }

  /* Event cards */
  .acbc-event-card { flex-direction: column !important; }
  .acbc-event-card > div[style*="width:180px"] { width: 100% !important; }
  .acbc-event-card > div[style*="width:180px"] img { height: 180px !important; width: 100% !important; }

  /* Hero */
  .acbc-hero { min-height: 90svh; }
  .acbc-hero-content { padding: 80px 18px 60px; }
  .acbc-hero-actions { flex-direction: column; align-items: center; gap: 12px; }
  .acbc-hero-actions .acbc-btn { width: 100%; max-width: 280px; justify-content: center; }

  /* Page banner */
  .acbc-page-banner { padding: 48px 18px; }

  /* Footer */
  .acbc-footer { padding: 48px 18px 0; }
  .acbc-footer-grid { grid-template-columns: 1fr !important; }
  .acbc-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Forms */
  .acbc-form-section { padding: 24px 18px; }
  .acbc-form-submit { width: 100%; justify-content: center; }
}

/* ---- MOBILE: max 480px ---- */
@media (max-width: 480px) {
  html, body { overflow-x: hidden; }

  .acbc-header-inner { min-height: 62px; padding: 0 14px; }
  .acbc-logo-text .name { font-size: 0.8rem; }
  .acbc-logo-text .tagline { font-size: 0.48rem; }

  .acbc-section { padding: 44px 14px; }

  /* All grids → single column */
  .acbc-dept-grid { grid-template-columns: 1fr !important; }
  .acbc-faith-walk-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .acbc-give-grid { grid-template-columns: 1fr !important; }
  .acbc-form-row { grid-template-columns: 1fr !important; gap: 0 !important; }
  .acbc-footer-grid { grid-template-columns: 1fr !important; }

  /* Hero */
  .acbc-hero { min-height: 100svh; }
  .acbc-hero-title { font-size: clamp(1.8rem, 8vw, 2.8rem); }
  .acbc-hero-scripture { font-size: 0.9rem; }
  .acbc-hero-eyebrow { font-size: 0.65rem; letter-spacing: 0.1em; }

  /* Service times strip */
  .acbc-service-strip-inner { flex-direction: column !important; text-align: center; gap: 12px !important; }
  .acbc-service-strip-times { flex-direction: column !important; gap: 12px !important; }

  /* Department cards */
  .acbc-dept-card { padding: 28px 20px; }
  .acbc-dept-icon { width: 64px; height: 64px; }

  /* Sermons */
  .acbc-sermon-actions { flex-wrap: wrap; gap: 8px; }
  .acbc-sermon-actions .acbc-btn { font-size: 0.72rem !important; padding: 9px 14px !important; }

  /* Testimonials */
  .acbc-testimonial-card { padding: 22px 16px; }
  .acbc-testimonial-text { font-size: 0.95rem; }

  /* Quote */
  .acbc-quote-section { padding: 44px 14px; }
  .acbc-quote-text { font-size: clamp(1rem, 4.5vw, 1.4rem); }

  /* Page banner */
  .acbc-page-banner { padding: 40px 14px; }
  .acbc-page-banner-title { font-size: clamp(1.4rem, 7vw, 2rem); }

  /* Forms */
  .acbc-form-section { padding: 20px 14px; }

  /* Contact info card */
  .acbc-contact-info-card { padding: 28px 20px; }

  /* Map */
  .acbc-map-embed,
  [style*="height:400px"],
  [style*="height:460px"],
  [style*="height:220px"] { height: 240px !important; }

  /* Resource cards */
  .acbc-resource-card { flex-direction: column; gap: 12px; }

  /* Force side-by-side panels to stack cleanly */
  .acbc-two-col,
  .acbc-col-2,
  .acbc-pastor-section,
  .acbc-contact-grid,
  .acbc-form-row,
  .acbc-dept-grid,
  .acbc-faith-walk-grid,
  .acbc-give-grid,
  .acbc-services-grid,
  .acbc-event-card,
  .acbc-resource-card,
  .acbc-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .acbc-two-col > *,
  .acbc-col-2 > *,
  .acbc-contact-grid > *,
  .acbc-form-row > *,
  .acbc-dept-grid > *,
  .acbc-faith-walk-grid > *,
  .acbc-give-grid > *,
  .acbc-services-grid > * {
    width: 100% !important;
    max-width: 100% !important;
  }

  .acbc-pastor-img-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    overflow: hidden !important;
  }

  .acbc-pastor-img {
    aspect-ratio: 4 / 3 !important;
    min-height: auto !important;
  }

  .acbc-map-embed {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 220px !important;
  }

  /* Footer */
  .acbc-footer { padding: 40px 14px 0; }
  .acbc-footer-social { justify-content: center; flex-wrap: wrap; gap: 10px; }
  .acbc-footer-bottom { padding: 18px 0; }

  /* Fix service times strip overflow */
  section[style*="background:var(--acbc-red)"] > div {
    flex-direction: column !important;
    text-align: center !important;
  }
  section[style*="background:var(--acbc-red)"] div[style*="gap:32px"] {
    gap: 12px !important;
    flex-direction: column !important;
  }

  /* CTA button groups */
  div[style*="display:flex;gap:16px;flex-wrap:wrap"]:not(.acbc-hero-actions):not(.acbc-footer-social) {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  div[style*="display:flex;gap:16px;flex-wrap:wrap"]:not(.acbc-hero-actions):not(.acbc-footer-social) a {
    text-align: center !important;
    justify-content: center !important;
  }
}

/* ---- VERY SMALL: max 360px ---- */
@media (max-width: 360px) {
  .acbc-header-inner { padding: 0 10px; }
  .acbc-logo-text { display: none; }
  .acbc-hero-title { font-size: 1.65rem; }
  .acbc-section { padding: 36px 10px; }
  .acbc-faith-walk-grid { grid-template-columns: 1fr !important; }
  .acbc-btn { padding: 11px 18px !important; font-size: 0.75rem !important; }
}

/* ---- SAFE AREA (notched phones) ---- */
@supports (padding: env(safe-area-inset-bottom)) {
  .acbc-footer { padding-bottom: env(safe-area-inset-bottom); }
  .acbc-mobile-nav { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}

/* ---- ADMIN BAR OFFSETS ---- */
.admin-bar .acbc-site-header { top: 32px; }
.admin-bar .acbc-mobile-nav { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .acbc-site-header { top: 46px; }
  .admin-bar .acbc-mobile-nav { top: 46px; }
}
@media (max-width: 600px) {
  .admin-bar .acbc-site-header { top: 0; position: sticky; }
  .admin-bar .acbc-mobile-nav { top: 0; }
}

/* ---- PRINT ---- */
@media print {
  .acbc-site-header, .acbc-footer, .acbc-mobile-nav { display: none !important; }
  .acbc-hero { min-height: auto; padding: 40px 20px; }
  .acbc-hero-bg, .acbc-hero-overlay { display: none; }
  .acbc-hero-title, .acbc-hero-scripture { color: #000 !important; }
}

/* ================================================================
   RESPONSIVE GRID UTILITY CLASSES
   All grids collapse to 1-column on mobile (≤768px)
================================================================ */

/* Two equal columns (1fr 1fr) — e.g. Vision/Mission, Connect CTAs */
.acbc-col-2 {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* Two asymmetric columns (text + image) — mandate, pastor, about */
.acbc-two-col {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  overflow: hidden;
}

/* Three equal columns */
.acbc-col-3 {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

/* ================================================================
   MOBILE COLLAPSE — all grid utilities ≤ 768px
================================================================ */
@media (max-width: 768px) {
  /* Two-col asymmetric */
  .acbc-two-col {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    overflow: hidden !important;
  }
  .acbc-two-col > div {
    max-width: 100% !important;
    overflow: hidden !important;
  }
  /* Hide gold border decorators on mobile */
  .acbc-two-col div[style*="position:absolute;bottom:-16px"],
  .acbc-two-col div[style*="z-index:-1"] { display: none !important; }

  /* Two equal columns → single column */
  .acbc-col-2 {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Three columns → single column */
  .acbc-col-3 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Asymmetric 2-col grids (text+image layouts) without a helper class */
  [style*="grid-template-columns:1.1fr 1fr"]:not(.acbc-two-col),
  [style*="grid-template-columns:1fr 1.2fr"]:not(.acbc-two-col),
  [style*="grid-template-columns:1fr 1.3fr"]:not(.acbc-two-col),
  [style*="grid-template-columns:1.3fr 1fr"]:not(.acbc-two-col),
  [style*="grid-template-columns:1fr 1.4fr"]:not(.acbc-two-col),
  [style*="grid-template-columns:1fr 1.6fr"]:not(.acbc-two-col),
  [style*="grid-template-columns:1fr 1.1fr"]:not(.acbc-two-col) {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Hide decorative absolute-positioned border elements inside any grid */
  [style*="grid-template-columns"] div[style*="position:absolute"][style*="border:3px solid"],
  [style*="grid-template-columns"] div[style*="z-index:-1"] {
    display: none !important;
  }
}

/* Ensure no section overflows */
.acbc-section-container { overflow: hidden; }

/* ================================================================
   CARD SPACING — when stacked cards inside sections
================================================================ */

/* Vision/Mission cards — equal height on desktop */
.acbc-col-2 > div {
  display: flex;
  flex-direction: column;
}

/* On mobile, cards get good spacing between them */
@media (max-width: 768px) {
  .acbc-col-2 > * + * {
    margin-top: 0; /* gap handles spacing */
  }
  /* Each card full-width */
  .acbc-col-2 > div,
  .acbc-col-2 > a {
    width: 100% !important;
  }
}

/* Department link buttons — wrap well on mobile */
@media (max-width: 480px) {
  div[style*="display:flex;gap:10px;flex-wrap:wrap;justify-content:center"] a.acbc-btn {
    font-size: 0.78rem !important;
    padding: 9px 14px !important;
  }
}

/* ================================================================
   ADDITIONAL RESPONSIVE FIXES v4.0
================================================================ */

/* Livestream embed — always 16:9, never overflows */
.acbc-livestream-embed {
  width: 100%;
  max-width: 100%;
}

/* Service times grid — ensure even column sizing */
.acbc-services-grid {
  width: 100%;
}

/* Event cards on mobile — stack nicely */
@media (max-width: 600px) {
  .acbc-event-card {
    flex-direction: column;
  }
  .acbc-event-date-box {
    align-self: flex-start;
  }
}

/* Give grid — always single column on small mobile */
@media (max-width: 400px) {
  .acbc-give-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Forms — full-width submit on mobile */
@media (max-width: 480px) {
  .acbc-form-submit {
    width: 100%;
    justify-content: center;
  }
  .acbc-form-section {
    padding: 20px 14px;
    border-radius: 8px;
  }
}

/* Navigation — prevent logo text overflow on mid-size tablets */
@media (max-width: 900px) and (min-width: 769px) {
  .acbc-logo-text .name { font-size: 0.85rem; }
  .acbc-primary-nav > li > a { padding: 8px 6px; font-size: 0.68rem; }
  .acbc-header-give-btn { padding: 9px 14px; font-size: 0.7rem; }
}

/* Admin tip box — responsive */
@media (max-width: 480px) {
  .acbc-admin-tip {
    flex-direction: column;
    gap: 8px;
  }
}

/* Fellowship card — responsive padding */
@media (max-width: 480px) {
  .acbc-fellowship-card {
    padding: 28px 20px;
  }
}

/* Resource cards — stack on mobile */
@media (max-width: 480px) {
  .acbc-resource-card {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* Service strip responsive */
@media (max-width: 768px) {
  .acbc-service-strip-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .acbc-service-strip-times {
    gap: 16px;
    flex-direction: column;
  }
}

/* Sermon actions wrap correctly */
.acbc-sermon-actions {
  flex-wrap: wrap;
}

/* ================================================================
   EVENT CARD — image stacks below on mobile
================================================================ */
.acbc-event-thumb-wrap {
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .acbc-event-card {
    flex-direction: column !important;
    gap: 0 !important;
  }
  .acbc-event-thumb-wrap {
    width: 100% !important;
    order: -1; /* image goes on top */
    border-radius: 12px 12px 0 0 !important;
  }
  .acbc-event-thumb-wrap img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
  }
  .acbc-event-info {
    padding-top: 16px;
  }
  .acbc-event-meta {
    flex-direction: column !important;
    gap: 6px !important;
  }
}

@media (max-width: 480px) {
  .acbc-event-date-box {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 14px !important;
    min-width: auto !important;
    margin-bottom: 12px;
  }
  .acbc-event-month { margin-right: 4px; }
  .acbc-event-day { font-size: 1.4rem !important; }
}

/* ================================================================
   AUDIO PLAYER — stack download button on mobile
================================================================ */
.acbc-audio-player {
  width: 100%;
}

@media (max-width: 540px) {
  .acbc-audio-player > * {
    flex-wrap: wrap !important;
    gap: 12px !important;
  }
  /* Progress bar takes full width */
  .acbc-audio-player div[style*="flex:1"] {
    width: 100% !important;
    flex: 0 0 100% !important;
    order: 2;
  }
  /* Play button stays left */
  .acbc-audio-play {
    order: 1;
  }
  /* Download button goes full width below */
  .acbc-audio-player a[download] {
    width: 100% !important;
    order: 3;
    text-align: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }
}

/* ================================================================
   SERMON NAVIGATION (prev/next) — stack on small screens
================================================================ */
@media (max-width: 480px) {
  .acbc-sermon-nav {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  .acbc-sermon-nav a,
  .acbc-sermon-nav span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* ================================================================
   SERMON GRID — min 280px per card (allows 1-col on phones)
================================================================ */
div[style*="grid-template-columns:repeat(auto-fill,minmax(300px,1fr))"],
div[style*="grid-template-columns:repeat(auto-fit,minmax(280px,1fr))"] {
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)) !important;
}

/* ================================================================
   CORE VALUES & FEATURE CARDS (auto-fit grids)
   Ensure at most 2 columns on tablet, 1 on phone
================================================================ */
@media (max-width: 600px) {
  div[style*="grid-template-columns:repeat(auto-fit,minmax(180px,1fr))"],
  div[style*="grid-template-columns:repeat(auto-fit,minmax(160px,1fr))"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }
}
@media (max-width: 400px) {
  div[style*="grid-template-columns:repeat(auto-fit,minmax(180px,1fr))"],
  div[style*="grid-template-columns:repeat(auto-fit,minmax(160px,1fr))"] {
    grid-template-columns: 1fr !important;
  }
}

/* ================================================================
   SERVICE TIMES STRIP (homepage inline divs)
================================================================ */
@media (max-width: 640px) {
  section[style*="background:var(--acbc-red)"] > div > div:first-child {
    /* "Service Times" label — keep visible */
    width: 100%;
    justify-content: center;
  }
  section[style*="background:var(--acbc-red)"] > div > div[style*="display:flex;gap:32px"] {
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
  }
  section[style*="background:var(--acbc-red)"] > div {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 20px !important;
  }
}

/* ================================================================
   HOMEPAGE CONNECT CTAs (Prayer + WhatsApp)
   Already uses acbc-two-col but gap/alignment needed
================================================================ */
@media (max-width: 768px) {
  /* Ensure the connect section stacks */
  .acbc-two-col > div[style*="background:white"],
  .acbc-two-col > div[style*="background:linear-gradient(135deg,#25D366"] {
    width: 100% !important;
  }
}

/* ================================================================
   HOMEPAGE LIVESTREAM CTA BUTTONS
================================================================ */
@media (max-width: 480px) {
  section[style*="background:linear-gradient(135deg,var(--acbc-red-dark)"] div[style*="display:flex;gap:16px"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  section[style*="background:linear-gradient(135deg,var(--acbc-red-dark)"] div[style*="display:flex;gap:16px"] a {
    text-align: center !important;
    justify-content: center !important;
    width: 100% !important;
  }
}

/* ================================================================
   PASTOR SECTION — ensure image doesn't overflow after collapse
================================================================ */
@media (max-width: 1024px) {
  .acbc-pastor-section { grid-template-columns: 1fr !important; gap: 36px !important; }
  .acbc-pastor-img-wrap { max-width: 480px !important; margin: 0 auto !important; }
  .acbc-pastor-img { aspect-ratio: 4/3 !important; }
  .acbc-pastor-img-deco { display: none !important; }
}

/* ================================================================
   ABOUT PAGE MAIN SECTION — ensure proper image sizing after stack
================================================================ */
@media (max-width: 768px) {
  /* About main two-col stacked image — limit height */
  .acbc-two-col > div > div[style*="aspect-ratio:4/5"] {
    aspect-ratio: 4/3 !important;
    min-height: 260px !important;
  }
  /* About pastor image */
  .acbc-pastor-img[style*="min-height:520px"] {
    min-height: 280px !important;
    aspect-ratio: 4/3 !important;
  }
  .acbc-pastor-img[style*="min-height:480px"] {
    min-height: 280px !important;
    aspect-ratio: 4/3 !important;
  }
}

/* ================================================================
   FIND US MAP — height on mobile
================================================================ */
@media (max-width: 768px) {
  .acbc-two-col > div[style*="height:400px"],
  .acbc-two-col > div > iframe {
    height: 280px !important;
  }
  div[style*="border-radius:16px;overflow:hidden;height:400px"] {
    height: 260px !important;
  }
}

/* Two-column grids on contact, about pages */
@media (max-width: 768px) {
  .acbc-contact-grid,
  .acbc-pastor-section {
    grid-template-columns: 1fr !important;
  }
}

/* Prevent footer social icons from overflowing */
.acbc-footer-social {
  flex-wrap: wrap;
}

/* Quote section always centered */
.acbc-quote-section {
  overflow: hidden;
}

/* Page banner text doesn't overflow */
.acbc-page-banner-title {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Buttons — never wider than viewport */
.acbc-btn {
  max-width: 100%;
  word-break: break-word;
}

/* iframe embeds — always responsive */
iframe {
  max-width: 100%;
}

/* =================================================================
   V3 FIXES — Navigation, Mobile Stacking, Scroll Indicator, Misc
================================================================= */

/* ---- HERO SCROLL INDICATOR: positioned below the action buttons, not overlapping ---- */
.acbc-hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--acbc-font-heading);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  z-index: 5;
  pointer-events: none;
}
.acbc-hero-scroll::after {
  content: '';
  display: block;
  width: 1.5px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: acbc-scroll-line 1.8s ease-in-out infinite;
}
@keyframes acbc-scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  80%  { transform: scaleY(1); transform-origin: bottom; opacity: 0.3; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ---- DESKTOP: header nowrap already set in base rule above ---- */

/* ---- MOBILE SUBMENU TOGGLE ---- */
.acbc-mobile-has-sub .acbc-mobile-nav-sub {
  display: none;
  padding-left: 16px;
}
.acbc-mobile-has-sub.open .acbc-mobile-nav-sub {
  display: block;
}
.acbc-mobile-sub-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  border-radius: 4px;
  padding: 0 8px;
  font-size: 1rem;
  line-height: 1.6;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
}
.acbc-mobile-parent-link {
  display: flex;
  align-items: center;
  gap: 8px;
}
.acbc-mobile-has-sub.open .acbc-mobile-sub-toggle {
  transform: rotate(45deg);
}

/* ---- GLOBAL OVERFLOW GUARD ---- */
.acbc-section-container,
.acbc-section {
  max-width: 100%;
  overflow-x: hidden;
}

/* ---- MOBILE: all two-column layouts stack ---- */
@media (max-width: 768px) {

  /* Target ALL grid wrappers with named classes */
  .acbc-two-col,
  .acbc-col-2,
  .acbc-pastor-section,
  .acbc-contact-grid,
  .acbc-connect-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    width: 100% !important;
  }

  /* Children fill full width */
  .acbc-two-col > *,
  .acbc-col-2 > *,
  .acbc-pastor-section > *,
  .acbc-contact-grid > *,
  .acbc-connect-grid > * {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Target remaining inline-style grids that aren't caught by named classes */
  /* (Uses the attribute selector already in the theme, reinforced here) */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1.2fr"],
  [style*="grid-template-columns:1fr 1.3fr"],
  [style*="grid-template-columns:1fr 1.5fr"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns:repeat(2"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }

  /* Exceptions — keep these as intended grids on tablet */
  .acbc-dept-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    flex-direction: unset !important;
  }
  .acbc-faith-walk-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
    flex-direction: unset !important;
  }

  /* Pastors image full width, no overflow */
  .acbc-pastor-img-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    position: static !important;
  }
  .acbc-pastor-img-deco { display: none !important; }
  .acbc-pastor-img {
    aspect-ratio: 4/3 !important;
    min-height: auto !important;
  }

  /* Connect grid: 2 columns on tablet */
  .acbc-connect-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    flex-direction: unset !important;
  }
}

/* ---- MOBILE: single column everything ---- */
@media (max-width: 600px) {

  /* All grids → single column */
  .acbc-two-col,
  .acbc-col-2,
  .acbc-pastor-section,
  .acbc-contact-grid,
  .acbc-connect-grid,
  .acbc-dept-grid,
  .acbc-faith-walk-grid,
  .acbc-give-grid,
  .acbc-form-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    grid-template-columns: unset !important;
  }

  .acbc-two-col > *,
  .acbc-col-2 > *,
  .acbc-pastor-section > *,
  .acbc-contact-grid > *,
  .acbc-connect-grid > *,
  .acbc-dept-grid > *,
  .acbc-give-grid > *,
  .acbc-form-row > * {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Inline-style grids → stack */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1.2fr"],
  [style*="grid-template-columns:1fr 1.3fr"],
  [style*="grid-template-columns:1fr 1.5fr"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns:repeat(2"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  /* Faith walk stays 2-col on small mobile — icons look good */
  .acbc-faith-walk-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    flex-direction: unset !important;
  }

  /* Hero actions full-width stack */
  .acbc-hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .acbc-hero-actions .acbc-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  /* Service strip */
  .acbc-service-strip-inner {
    flex-direction: column !important;
    text-align: center;
    gap: 12px !important;
  }
}

/* ---- VIDEO RESPONSIVE (Livestream) ---- */
.acbc-livestream-embed .acbc-video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 16px 60px rgba(0,0,0,0.5);
}
.acbc-livestream-embed .acbc-video-responsive iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* (mobile nav styles consolidated into original section above) */

/* ---- ADMIN BAR FIX ---- */
.admin-bar .acbc-site-header { top: 32px !important; }
@media (max-width: 782px) {
  .admin-bar .acbc-site-header { top: 46px !important; }
}

/* ---- CONTACT FORM ROW: 2-col on tablet, 1-col on mobile ---- */
.acbc-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .acbc-form-row {
    grid-template-columns: 1fr !important;
  }
}

/* ---- CONNECT PAGE SOCIAL CARDS ---- */
.acbc-social-card:hover {
  background: rgba(255,255,255,0.08) !important;
  transform: translateY(-3px);
}

