/* ================================================
   Seven Churches of the Apocalypse — Main Stylesheet
   Design: Sleek, light, Mediterranean-inspired
   ================================================ */

/* --- CSS Variables --- */
:root {
  --color-bg: #FFFFFF;
  --color-bg-alt: #F1F5F9;
  --color-bg-card: #FFFFFF;
  --color-text: #0F1620;
  --color-text-secondary: #55617A;
  --color-text-light: #8A94A6;
  --color-accent: #1479C9;
  --color-accent-light: #3E9BE0;
  --color-accent-dark: #0F5C9E;
  --color-blue: #0B2A44;
  --color-blue-light: #14456B;
  --color-border: #E3E8EF;
  --color-border-light: #EEF2F7;
  --color-white: #FFFFFF;
  --color-hero-overlay: rgba(8, 12, 18, 0.55);
  --color-dark: #0C1218;
  --color-dark-2: #060A0F;
  --color-sage: #0B3D66;

  --font-heading: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --max-width: 1200px;
  --max-width-article: 780px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  --spacing-2xl: 6rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.10);
  --shadow-hover: 0 8px 25px rgba(0,0,0,0.12);

  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

h1 { font-size: 2.75rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1.25em;
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-text);
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-logo-text .accent {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
  background: rgba(20, 121, 201, 0.06);
}

.nav-cta {
  padding: 0.55rem 1.25rem !important;
  background: var(--color-accent) !important;
  color: var(--color-white) !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
}

.nav-cta:hover {
  background: var(--color-accent-dark) !important;
  color: var(--color-white) !important;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-text);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0C1218 0%, #060A0F 55%, #0E1621 100%);
  overflow: hidden;
  margin-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 12, 18, 0.25) 0%,
    rgba(8, 12, 18, 0.48) 50%,
    rgba(8, 12, 18, 0.85) 100%
  );
}

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

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.25rem;
  background: rgba(20, 121, 201, 0.2);
  border: 1px solid rgba(20, 121, 201, 0.4);
  border-radius: 50px;
  color: var(--color-accent-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
}

.hero h1 {
  color: var(--color-white);
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero h1 .accent {
  color: var(--color-accent-light);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto var(--spacing-lg);
}

.hero-author {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  font-style: italic;
}

.hero-author strong {
  color: rgba(255, 255, 255, 0.85);
  font-style: normal;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  margin-top: var(--spacing-lg);
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(20, 121, 201, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-white);
}

/* --- Sections --- */
.section {
  padding: var(--spacing-2xl) var(--spacing-md);
}

.section-alt {
  background: var(--color-bg-alt);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-header .overline {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: var(--spacing-sm);
}

.section-header p {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Seven Churches Grid (Special) --- */
.churches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.church-card {
  position: relative;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
}

.church-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent-light);
  color: var(--color-text);
}

.church-card-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.church-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.church-card .city-name {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.church-card p {
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: var(--spacing-sm);
}

.church-card .read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.church-card:hover .read-more {
  gap: 0.6rem;
}

/* --- Category Sections --- */
.category-section {
  margin-bottom: var(--spacing-xl);
}

.category-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--color-border);
}

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

.category-header h3 {
  font-size: 1.4rem;
}

.category-header p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* --- Article Cards Grid --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--spacing-md);
}

.article-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: var(--spacing-md) var(--spacing-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--color-text);
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent-light);
  color: var(--color-text);
}

.article-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.article-card-body h4 {
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.article-card-body p {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin-bottom: 0;
}

/* --- Intro / About Section --- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.intro-content h2 {
  margin-bottom: var(--spacing-sm);
}

.intro-content .lead {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

.intro-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  margin-top: 0.35rem;
}

.intro-visual {
  position: relative;
}

.intro-visual .map-placeholder {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  text-align: center;
  border: 1px solid var(--color-border);
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* --- Article Page --- */
.article-hero {
  background: linear-gradient(135deg, #0C1218 0%, #060A0F 100%);
  padding: var(--spacing-2xl) var(--spacing-md);
  margin-top: 72px;
  text-align: center;
}

.article-hero .breadcrumb {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin-bottom: var(--spacing-md);
}

.article-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
}

.article-hero .breadcrumb a:hover {
  color: var(--color-accent-light);
}

.article-hero h1 {
  color: var(--color-white);
  font-size: 2.75rem;
  max-width: 750px;
  margin: 0 auto var(--spacing-sm);
}

.article-hero .article-meta {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.article-hero .article-meta strong {
  color: var(--color-accent-light);
}

.article-body {
  max-width: var(--max-width-article);
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-md);
}

.article-body h2 {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-sm);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border-light);
  font-size: 1.75rem;
}

.article-body h2:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.article-body h3 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  font-size: 1.3rem;
}

.article-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #3a3a3a;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-lg) 0;
  font-size: 0.92rem;
}

.article-body table th,
.article-body table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.article-body table th {
  background: var(--color-bg-alt);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}

.article-body table tr:hover td {
  background: var(--color-bg-alt);
}

/* Article navigation */
.article-nav {
  max-width: var(--max-width-article);
  margin: 0 auto;
  padding: 0 var(--spacing-md) var(--spacing-xl);
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-md);
  border-top: 1px solid var(--color-border);
  padding-top: var(--spacing-lg);
}

.article-nav a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  max-width: 45%;
}

.article-nav a:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.article-nav .nav-label {
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.article-nav .nav-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

/* --- Contact / CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, #0C1218 0%, #060A0F 100%);
  color: var(--color-white);
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-md);
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 550px;
  margin: 0 auto var(--spacing-lg);
  font-size: 1.05rem;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
  margin-top: var(--spacing-lg);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.contact-item a {
  color: var(--color-accent-light);
}

/* --- Footer --- */
.site-footer {
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.5);
  padding: var(--spacing-xl) var(--spacing-md) var(--spacing-lg);
  margin-top: auto;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-xl);
}

.footer-brand {
  padding-right: var(--spacing-lg);
}

.footer-brand .nav-logo-text {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
  display: block;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.45);
}

.footer-column h4 {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-sm);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-column ul a:hover {
  color: var(--color-accent-light);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: var(--spacing-lg) auto 0;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .hero h1 { font-size: 2.25rem; }
  .hero-subtitle { font-size: 1rem; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-sm) var(--spacing-md);
    box-shadow: var(--shadow-md);
  }
  .nav-toggle { display: block; }

  .churches-grid {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .article-hero h1 {
    font-size: 2rem;
  }

  .intro-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .article-nav {
    flex-direction: column;
  }

  .article-nav a {
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .contact-info {
    flex-direction: column;
    align-items: center;
  }

  .section {
    padding: var(--spacing-xl) var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero { min-height: 70vh; }
  .stat-number { font-size: 1.75rem; }
}

/* --- Utilities --- */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

/* --- Scroll animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { transition: none; transform: none; opacity: 1; }
}

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

/* --- Search/Filter bar --- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

.filter-bar input[type="text"] {
  flex: 1;
  min-width: 240px;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-size: 0.92rem;
  background: var(--color-bg-card);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition);
}

.filter-bar input[type="text"]:focus {
  border-color: var(--color-accent);
}

.filter-btn {
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 50px;
  background: var(--color-bg-card);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(20, 121, 201, 0.06);
}

/* ================================================
   Image Styling — added for photo decoration
   ================================================ */

/* --- Hero with photographic background --- */
.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* --- Seven Churches cards with photos --- */
.church-card {
  padding: 0;
  overflow: hidden;
}

.church-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg-alt);
}

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

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

.church-card .church-card-number {
  position: absolute;
  top: var(--spacing-sm);
  left: var(--spacing-sm);
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  border: 2px solid rgba(255,255,255,0.8);
}

.church-card-content {
  padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* --- Article cards with thumbnails --- */
.article-card {
  padding: 0;
  overflow: hidden;
  align-items: stretch;
}

.article-card-thumb {
  position: relative;
  flex-shrink: 0;
  width: 120px;
  background: var(--color-bg-alt);
  overflow: hidden;
}

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

.article-card:hover .article-card-thumb img {
  transform: scale(1.07);
}

.article-card-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: rgba(20, 121, 201, 0.92);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.article-card .article-card-body {
  padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) 0;
}

.article-card-thumb + .article-card-body {
  padding-left: var(--spacing-md);
}

/* --- Article hero with background photo --- */
.article-hero.has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* --- Inline figures within article body --- */
.article-figure {
  margin: var(--spacing-lg) 0;
}

.article-figure img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.article-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-style: italic;
  text-align: center;
}

/* --- About section: map figure + author byline --- */
.map-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-md);
}

.map-figure img {
  width: 100%;
  background: #fff;
  padding: var(--spacing-md);
}

.map-figure figcaption {
  padding: 0.75rem var(--spacing-md);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  text-align: center;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
}

.church-locations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
  margin-top: var(--spacing-md);
  font-size: 0.88rem;
  color: var(--color-text-secondary);
}

.church-locations strong {
  color: var(--color-accent);
}

.author-byline {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin: var(--spacing-md) 0;
  padding: 0.75rem 1rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-accent);
}

.author-byline img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--color-white);
  box-shadow: var(--shadow-sm);
}

.author-byline strong {
  display: block;
  font-size: 1rem;
  color: var(--color-text);
}

.author-byline span {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}

/* --- Responsive image rules --- */
@media (max-width: 768px) {
  .article-card-thumb {
    width: 100px;
  }
  .church-locations {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .article-card {
    flex-direction: column;
  }
  .article-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .article-card .article-card-body,
  .article-card-thumb + .article-card-body {
    padding: var(--spacing-md);
  }
}

/* ================================================
   Article scripture epigraph, subtitle & blockquotes
   ================================================ */

.article-hero .article-scripture {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  background: rgba(20, 121, 201, 0.18);
  border: 1px solid rgba(20, 121, 201, 0.38);
  border-radius: 50px;
  padding: 0.35rem 1.1rem;
  margin-bottom: var(--spacing-md);
}

.article-hero .article-subtitle {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto var(--spacing-md);
  font-style: italic;
}

/* Scripture quotations inside the article body */
.article-body blockquote {
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-md) var(--spacing-lg);
  border-left: 4px solid var(--color-accent);
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  line-height: 1.55;
  font-style: italic;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .article-hero .article-subtitle { font-size: 1.02rem; }
  .article-body blockquote { font-size: 1.12rem; padding: var(--spacing-sm) var(--spacing-md); }
}

/* ================================================
   Author bio box (E-E-A-T) at the end of articles
   ================================================ */

.author-box {
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
  margin: var(--spacing-xl) 0 0;
  padding: var(--spacing-lg);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
}

.author-box img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--color-white);
  box-shadow: var(--shadow-sm);
}

.author-box-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.3rem;
}

.author-box-text h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.author-box-text p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 560px) {
  .author-box { flex-direction: column; align-items: center; text-align: center; }
}

/* ================================================
   End-of-page contact card (Hire Hasan)
   ================================================ */
.guide-card {
  display: flex;
  align-items: stretch;
  max-width: 880px;
  margin: 0 auto;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  text-align: left;
}
.guide-card-photo {
  flex-shrink: 0;
  width: 300px;
  background: #F5B400;
}
.guide-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* show the full graphic, uncropped */
  display: block;
}
.guide-card-body {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.guide-card-label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.35rem;
}
.guide-card-body h2 {
  color: var(--color-text);
  margin: 0 0 0.25rem;
  font-size: 1.9rem;
}
.guide-card-role {
  color: var(--color-accent-dark);
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0 0 0.9rem;
}
.guide-card-body p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 1.1rem;
  max-width: none;
}
.guide-card-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.guide-card-contact a,
.guide-card-loc {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 500;
}
.guide-card-contact a:hover { color: var(--color-accent); }
.guide-card-contact span,
.guide-card-loc span { color: var(--color-accent); font-size: 1.05rem; }
.guide-card-loc { color: var(--color-text-secondary); font-weight: 400; }

/* Contact form inside the contact card */
.contact-form { margin: 0 0 1.1rem; }
.form-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-field { margin-bottom: 0.7rem; }
.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}
.form-field .req { color: #c0392b; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(20, 121, 201, 0.15);
}
.form-field textarea { resize: vertical; min-height: 96px; }
.contact-form .btn { width: 100%; justify-content: center; cursor: pointer; }

@media (max-width: 680px) {
  .guide-card { flex-direction: column; }
  .guide-card-photo { width: 100%; max-width: 300px; margin: 0 auto; aspect-ratio: 450 / 676; }
  .guide-card-body { padding: var(--spacing-md); }
  .guide-card-body h2 { font-size: 1.6rem; }
}

/* ================================================
   Scripture verse bands
   ================================================ */
.scripture-band {
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.scripture-band .scripture-cross {
  display: block;
  color: var(--color-accent);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.scripture-band .verse {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--color-text);
  max-width: 760px;
  margin: 0 auto;
}
.scripture-band .verse-ref {
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.scripture-band.band-dark {
  background: linear-gradient(135deg, #0C1218 0%, #0A121C 60%, #0E1A28 100%);
  border-color: transparent;
}
.scripture-band.band-dark .verse { color: #fff; }
.scripture-band.band-dark .verse-ref { color: var(--color-accent-light); }
.scripture-band.band-dark .scripture-cross { color: var(--color-accent-light); }

@media (max-width: 768px) {
  .scripture-band .verse { font-size: 1.25rem; }
}

/* ================================================
   Article photo gallery
   ================================================ */
.article-gallery {
  max-width: var(--max-width-article);
  margin: var(--spacing-xl) auto 0;
}
.article-gallery h2 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border-light);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.7rem;
}
.gallery-item {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 0.6rem 0.55rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.78));
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover figcaption { opacity: 1; }

/* ================================================
   Embedded Seven Churches animation (iframe)
   ================================================ */
.animation-embed {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: var(--spacing-lg) var(--spacing-md);
  overflow: hidden;
}
/* The frame keeps the animation's native 3:2 ratio; the iframe is rendered at its true
   1200×800 size and scaled to fit by main.js, so nothing distorts or gets cut off. */
.animation-frame {
  position: relative;
  width: 100%;
  max-width: 1040px;
  aspect-ratio: 1200 / 800;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: #27406e;
}
.animation-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1200px;
  height: 800px;
  border: 0;
  transform-origin: top left;
}
/* The animation sits above the hero on the home page; clear the fixed header here
   and drop the hero's own top margin so they stack flush. */
.animation-top { margin-top: 72px; }
.home .hero { margin-top: 0; }
.animation-bottom { margin-top: 0; }

@media (max-width: 768px) {
  .animation-embed { padding: var(--spacing-md); }
}

/* ================================================
   Modernization — parallax, layered backgrounds, motion
   ================================================ */

/* Parallax: fixed background images on the hero banners */
.hero { background-attachment: fixed; }
.article-hero.has-image { background-attachment: fixed; }
@media (max-width: 900px) {
  .hero,
  .article-hero.has-image { background-attachment: scroll; }
}

/* Soft layered background on alternating sections */
.section-alt {
  background: linear-gradient(180deg, #F4F8FB 0%, #E8EFF6 100%);
}

/* Depth glow behind the hero headline */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(62, 155, 224, 0.18), transparent 62%);
  z-index: 1;
  pointer-events: none;
}

/* Warm glow + framing on the dark call-to-action band */
.cta-section { position: relative; overflow: hidden; }
.cta-section::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -8%;
  width: 55%;
  height: 160%;
  background: radial-gradient(circle at 32% 34%, rgba(20, 121, 201, 0.22), transparent 60%);
  pointer-events: none;
}
.cta-section .container { position: relative; z-index: 1; }

/* Light scripture bands get a gentle stone gradient */
.scripture-band:not(.band-dark) {
  background: linear-gradient(180deg, #F4F8FB 0%, #E9F0F7 100%);
}

/* Modern accent under section headings */
.section-header h2 {
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 0.9rem auto 0;
  background: var(--color-accent);
  border-radius: 2px;
}

/* Refined, smoother card motion */
.church-card,
.article-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}
.church-card:hover { transform: translateY(-6px); }
.article-card:hover { transform: translateY(-4px); }

/* A quiet brass keyline that grows across the top of a church card on hover */
.church-card { position: relative; }
.church-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--color-accent), var(--color-sage));
  border-radius: 0;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 3;
}
.church-card:hover::before { width: 100%; }

/* Sage secondary link accents */
.article-body a { color: var(--color-accent-dark); }
.article-body a:hover { color: var(--color-sage); }

/* ================================================
   Animated buttons
   ================================================ */
.btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -140%;
  width: 60%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0.55s ease;
}
.btn:hover::after { left: 150%; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20,121,201,0.30); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn-outline:hover { box-shadow: 0 10px 24px rgba(0,0,0,0.22); }

.nav-cta { transition: background var(--transition), transform 0.25s ease, box-shadow 0.25s ease !important; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(20,121,201,0.35); }

.church-card .read-more,
.article-card:hover h4 { transition: color 0.25s ease; }
.church-card .read-more i,
.church-card .read-more { transition: gap 0.25s ease, letter-spacing 0.25s ease; }

@media (prefers-reduced-motion: reduce) {
  .btn::after { display: none; }
  .btn:hover, .btn:active, .nav-cta:hover { transform: none; }
}

/* ================================================
   Mobile — full responsive polish
   ================================================ */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
* { -webkit-tap-highlight-color: rgba(20,121,201,0.15); }

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; gap: var(--spacing-lg); }
}

@media (max-width: 768px) {
  h1 { font-size: 1.95rem; }
  .hero { min-height: 78vh; }
  .hero h1 { font-size: 2.15rem; }
  .hero-subtitle { font-size: 1.02rem; }
  .article-hero { padding: var(--spacing-xl) var(--spacing-md); }
  .article-hero h1 { font-size: 1.8rem; }
  .article-subtitle { font-size: 1rem; }
  .section { padding: var(--spacing-xl) var(--spacing-md); }
  .section-header h2, .guide-card-body h2 { font-size: 1.55rem; }
  .article-body { padding: var(--spacing-lg) var(--spacing-md); }
  .article-body p { font-size: 1rem; line-height: 1.75; }
  .article-body h2 { font-size: 1.5rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .contact-form .btn { width: 100%; }
  .nav-links a { padding: 0.75rem 1rem; font-size: 0.95rem; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.55rem; }
  .churches-grid, .articles-grid { grid-template-columns: 1fr; }
  .intro-stats { gap: var(--spacing-sm); }
  .stat-number { font-size: 1.9rem; }
  .footer-container { grid-template-columns: 1fr 1fr; }
  .scripture-band { padding: var(--spacing-lg) var(--spacing-md); }
  .scripture-band .verse { font-size: 1.25rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.7rem; }
  .hero { min-height: 70vh; }
  .hero h1 { font-size: 1.8rem; }
  .hero-subtitle { font-size: 0.96rem; }
  .hero-badge { font-size: 0.72rem; }
  .btn { padding: 0.85rem 1.5rem; font-size: 0.92rem; }
  .section { padding: var(--spacing-lg) var(--spacing-md); }
  .section-header h2 { font-size: 1.4rem; }
  .article-hero h1 { font-size: 1.55rem; }
  .article-body h2 { font-size: 1.35rem; }
  .scripture-band .verse { font-size: 1.12rem; }
  .stat-number { font-size: 1.7rem; }
  .intro-stats { grid-template-columns: repeat(3, 1fr); }
  .footer-container { grid-template-columns: 1fr; }
  .guide-card-body { padding: var(--spacing-md); }
  .guide-card-contact a, .guide-card-loc { font-size: 0.9rem; }
  .author-box { padding: var(--spacing-md); }
  .nav-logo-text { font-size: 1.02rem; }
}
