/* ============================================
   CHRIST IMAGE TRANSFORMATION ASSEMBLY
   Creative Church Website Styles
   ============================================ */

:root {
  --primary: #6B0F8A;
  --primary-dark: #4A0A63;
  --primary-light: #8B1FA8;
  --gold: #D4A843;
  --gold-light: #E8C46A;
  --gold-dark: #B8922E;
  --dark: #1A0A2E;
  --dark-alt: #2D1452;
  --light: #FCF8FF;
  --gray: #F5F0F8;
  --gray-text: #6E6B7B;
  --white: #FFFFFF;
  --black: #0D0218;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-sm: 0 2px 8px rgba(107, 15, 138, 0.08);
  --shadow-md: 0 8px 30px rgba(107, 15, 138, 0.12);
  --shadow-lg: 0 20px 60px rgba(107, 15, 138, 0.15);
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul, ol {
  list-style: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  margin-bottom: 60px;
}

.section-header.center {
  text-align: center;
}

.section-subtitle {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 12px;
}

.section-subtitle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.center .section-subtitle::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle.light {
  color: rgba(255,255,255,0.8);
}

.section-subtitle.light::after {
  background: var(--gold-light);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 16px;
}

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

.text-gold {
  color: var(--gold);
}

.section-desc {
  font-size: 16px;
  color: var(--gray-text);
  max-width: 600px;
  line-height: 1.8;
}

.center .section-desc {
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-sm {
  padding: 10px 24px;
  font-size: 13px;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

.btn-accent:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 168, 67, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

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

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

.btn-outline.light:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn-link {
  background: transparent;
  color: var(--primary);
  padding: 0;
  border: none;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-link:hover {
  color: var(--gold);
  gap: 12px;
}

/* ===== PRELOADER ===== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
}

.cross-container {
  width: 60px;
  height: 60px;
  position: relative;
  margin: 0 auto 24px;
  animation: crossPulse 1.5s ease-in-out infinite;
}

.cross-vertical, .cross-horizontal {
  position: absolute;
  background: var(--gold);
  border-radius: 2px;
}

.cross-vertical {
  width: 6px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.cross-horizontal {
  width: 100%;
  height: 6px;
  top: 50%;
  transform: translateY(-50%);
}

@keyframes crossPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

.preloader-text {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 2px;
  animation: fadeInUp 1s ease 0.3s both;
}

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--dark);
  padding: 10px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar-left {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.top-bar-left span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-left i {
  color: var(--gold);
  font-size: 12px;
}

.top-bar-right {
  display: flex;
  gap: 12px;
}

.top-bar-right a {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  transition: var(--transition);
}

.top-bar-right a:hover {
  background: var(--gold);
  color: var(--dark);
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(107, 15, 138, 0.08);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  max-height: 44px;
  width: auto;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-cross {
  width: 20px;
  height: 20px;
  position: relative;
}

.logo-cross::before {
  content: '';
  position: absolute;
  width: 4px;
  height: 100%;
  background: var(--gold);
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.logo-cross::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 4px;
  background: var(--gold);
  top: 50%;
  transform: translateY(-50%);
  border-radius: 2px;
}

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

.logo-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: 1px;
}

.logo-subtitle {
  font-size: 10px;
  color: var(--gray-text);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.2;
}

/* ===== NAVIGATION ===== */
.navbar {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu {
  display: flex;
  gap: 4px;
}

.nav-item a {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  border-radius: 8px;
  position: relative;
  letter-spacing: 0.3px;
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: var(--transition);
}

.nav-item:hover a::after,
.nav-item.active a::after {
  transform: scaleX(1);
}

.nav-item a:hover {
  color: var(--primary);
}

.nav-item.active a {
  color: var(--primary);
}

.nav-cta .btn-accent {
  background: var(--gold);
  color: var(--dark);
  border: none;
}

.nav-cta .btn-accent:hover {
  background: var(--gold-dark);
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 26px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 4px;
  transition: var(--transition);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  height: 100%;
  width: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--dark);
  opacity: 0;
  transition: opacity 1.2s ease, transform 8s ease;
  transform: scale(1.05);
}

.slide:nth-child(1) {
  background-image: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
}

.slide:nth-child(2) {
  background-image: linear-gradient(135deg, #1a0a2e 0%, #2d1452 100%);
}

.slide:nth-child(3) {
  background-image: linear-gradient(135deg, #0d0218 0%, #4a0a63 100%);
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 2, 30, 0.85) 0%, rgba(107, 15, 138, 0.5) 50%, rgba(10, 2, 30, 0.7) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 700px;
}

.slide-subtitle {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}

.slide-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.slide-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 560px;
}

.slide-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.slide.active .slide-subtitle { animation-delay: 0.3s; }
.slide.active .slide-title { animation-delay: 0.5s; }
.slide.active .slide-desc { animation-delay: 0.7s; }
.slide.active .slide-buttons { animation-delay: 0.9s; }

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

.hero-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 3;
}

.hero-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.hero-arrow:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--transition);
}

.hero-dots .dot.active {
  background: var(--gold);
  width: 32px;
  border-radius: 5px;
}

/* ===== ABOUT ===== */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
}

.about-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light), var(--dark));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  gap: 16px;
  border-radius: var(--radius);
}

.about-image-placeholder i {
  font-size: 64px;
  color: var(--gold);
  opacity: 0.6;
}

.about-image-placeholder span {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--gold);
}

.about-image-decor {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 4px solid var(--gold);
  border-radius: var(--radius);
  z-index: -1;
}

.about-text {
  padding-right: 20px;
}

.about-desc {
  font-size: 15px;
  color: var(--gray-text);
  line-height: 1.9;
  margin-bottom: 20px;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid rgba(107, 15, 138, 0.1);
  border-bottom: 1px solid rgba(107, 15, 138, 0.1);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--gray-text);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ===== SERVICES SECTION ===== */
.services-section {
  background: var(--gray);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.flip-card {
  perspective: 1000px;
  height: 300px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  text-align: center;
}

.flip-card-front {
  background: var(--white);
  border: 1px solid rgba(107, 15, 138, 0.08);
  box-shadow: var(--shadow-sm);
}

.flip-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.flip-icon i {
  font-size: 28px;
  color: var(--white);
}

.flip-card-front h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--dark);
}

.flip-card-back {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  transform: rotateY(180deg);
  border: 2px solid rgba(255,255,255,0.1);
}

.flip-card-back h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--gold);
}

.flip-time {
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.9);
}

.flip-time i {
  color: var(--gold);
}

.flip-desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
}

/* ===== QUICK LINKS ===== */
.quicklinks-section {
  background: var(--white);
}

.quicklinks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.quicklink-card {
  background: var(--gray);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.quicklink-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold);
  transform: scaleX(0);
  transition: var(--transition);
}

.quicklink-card:hover::before {
  transform: scaleX(1);
}

.quicklink-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(107, 15, 138, 0.1);
}

.quicklink-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.quicklink-card:hover .quicklink-icon {
  background: var(--primary);
}

.quicklink-icon i {
  font-size: 24px;
  color: var(--primary);
  transition: var(--transition);
}

.quicklink-card:hover .quicklink-icon i {
  color: var(--white);
}

.quicklink-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 6px;
}

.quicklink-card p {
  font-size: 13px;
  color: var(--gray-text);
}

/* ===== PRAYER SECTION ===== */
.prayer-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
  text-align: center;
  overflow: hidden;
}

.prayer-overlay {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>') repeat;
  background-size: 60px 60px;
  opacity: 0.5;
}

.prayer-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.prayer-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.9;
  margin-bottom: 36px;
}

.prayer-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.prayer-shape-top, .prayer-shape-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 80px;
  pointer-events: none;
}

.prayer-shape-top {
  top: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80'%3E%3Cpath d='M0,40 C300,0 600,0 1200,40 L1200,0 L0,0 Z' fill='%23FFFFFF'/%3E%3C/svg%3E") no-repeat;
  background-size: cover;
}

.prayer-shape-bottom {
  bottom: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80'%3E%3Cpath d='M0,40 C300,80 600,80 1200,40 L1200,80 L0,80 Z' fill='%23FFFFFF'/%3E%3C/svg%3E") no-repeat;
  background-size: cover;
}

/* ===== PARTNERS SECTION ===== */
.partners-section {
  background: var(--gray);
  overflow: hidden;
}

/* ===== GALLERY CAROUSEL (Homepage) ===== */
.gallery-carousel-section {
  background: var(--gray);
}

.gallery-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.carousel-wrapper {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.carousel-track {
  display: flex;
  gap: 16px;
  padding: 8px 0;
}

.carousel-item {
  flex: 0 0 auto;
  width: 280px;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
}

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

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .carousel-item {
    width: 240px;
    height: 170px;
  }
}

.partner-carousel {
  overflow: hidden;
  position: relative;
}

.partner-track {
  display: flex;
  gap: 40px;
  animation: scrollPartners 20s linear infinite;
  width: max-content;
}

.partner-slide {
  flex: 0 0 auto;
}

.partner-logo {
  width: 180px;
  height: 90px;
  background: var(--white);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(107, 15, 138, 0.06);
  transition: var(--transition);
}

.partner-logo:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.partner-logo i {
  font-size: 24px;
  color: var(--primary);
}

.partner-logo span {
  font-size: 12px;
  color: var(--gray-text);
  font-weight: 500;
}

@keyframes scrollPartners {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== DEVOTIONAL SECTION ===== */
.devotional-section {
  background: var(--white);
}

.devotional-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.devotional-card {
  background: var(--gray);
  border-radius: var(--radius);
  padding: 36px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.devotional-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(107, 15, 138, 0.1);
  background: var(--white);
}

.devotional-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.devotional-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.devotional-excerpt {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ===== MINISTRIES SECTION ===== */
.ministries-section {
  background: var(--gray);
}

.ministries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.ministry-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 36px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(107, 15, 138, 0.06);
}

.ministry-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.ministry-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ministry-icon i {
  font-size: 32px;
  color: var(--white);
}

.ministry-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 12px;
}

.ministry-card p {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* ===== MEDIA SECTION ===== */
.media-section {
  background: var(--white);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.media-card {
  background: var(--gray);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.media-art {
  aspect-ratio: 1;
  overflow: hidden;
}

.media-art-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--dark), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-art-placeholder i {
  font-size: 56px;
  color: var(--gold);
  opacity: 0.5;
}

.media-info {
  padding: 24px;
}

.media-info h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--dark);
  margin-bottom: 4px;
}

.media-info > p {
  font-size: 13px;
  color: var(--gray-text);
  margin-bottom: 16px;
}

.media-tracks {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(107, 15, 138, 0.08);
}

.media-tracks span {
  font-size: 13px;
  color: var(--gray-text);
}

/* ===== BOOKS SECTION ===== */
.books-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.books-overlay {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="10" y="10" width="80" height="80" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>') repeat;
  background-size: 40px 40px;
  opacity: 0.4;
}

.books-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin: 0 auto;
}

.books-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.9;
  margin-bottom: 36px;
}

/* ===== COUNTERS SECTION ===== */
.counters-section {
  background: var(--white);
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.counter-item {
  text-align: center;
  padding: 48px 24px;
  background: var(--gray);
  border-radius: var(--radius);
  transition: var(--transition);
}

.counter-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.counter-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.counter-icon i {
  font-size: 26px;
  color: var(--white);
}

.counter-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.counter-label {
  font-size: 14px;
  color: var(--gray-text);
  font-weight: 500;
}

.counter-suffix {
  font-size: 24px;
  color: var(--gold);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background: var(--gray);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-item i {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 18px;
  box-shadow: var(--shadow-sm);
}

.contact-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 14px;
  color: var(--gray-text);
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

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

.form-group {
  margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid rgba(107, 15, 138, 0.08);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--dark);
  background: var(--gray);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(107, 15, 138, 0.08);
}

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

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  padding: 80px 0 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo img {
  max-height: 40px;
  width: auto;
}

.footer-logo .logo-title {
  color: var(--white);
}

.footer-logo .logo-subtitle {
  color: rgba(255,255,255,0.5);
}

.footer-about p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.6);
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}

.footer h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--white);
  margin-bottom: 24px;
}

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

.footer-links ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links ul li a:hover {
  color: var(--gold);
  transform: translateX(4px);
}

.footer-newsletter p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.6);
}

.newsletter-form {
  display: flex;
  background: rgba(255,255,255,0.06);
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.35);
}

.newsletter-form button {
  width: 50px;
  background: var(--gold);
  border: none;
  color: var(--dark);
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: var(--gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--gold);
  color: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(212, 168, 67, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold-dark);
  transform: translateY(-3px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid { gap: 40px; }
  .quicklinks-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .top-bar-left span:last-child { display: none; }

  .hamburger { display: flex; }

  .navbar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 100px 32px 40px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    transition: var(--transition);
    z-index: 1000;
    gap: 0;
    align-items: stretch;
  }

  .navbar.open {
    right: 0;
  }

  .nav-menu {
    flex-direction: column;
    gap: 4px;
    margin-bottom: 32px;
  }

  .nav-item a {
    padding: 12px 16px;
    font-size: 16px;
    display: block;
  }

  .nav-item a::after { display: none; }
  .nav-cta { margin-top: auto; }

  .hero { height: 70vh; min-height: 500px; }
  .slide-title { font-size: 32px; }
  .slide-desc { font-size: 15px; }

  .about-grid { grid-template-columns: 1fr; }
  .about-text { padding-right: 0; }
  .about-stats { gap: 20px; }
  .stat-number { font-size: 28px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .quicklinks-grid { grid-template-columns: repeat(2, 1fr); }

  .devotional-grid,
  .ministries-grid,
  .media-grid,
  .counters-grid { grid-template-columns: 1fr; }

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

  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer { text-align: center; }
  .footer-logo { justify-content: center; }
  .footer-social { justify-content: center; }
}

@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .container { padding: 0 16px; }

  .hero { height: 60vh; min-height: 400px; }

  .services-grid { grid-template-columns: 1fr; }
  .quicklinks-grid { grid-template-columns: 1fr 1fr; }

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

  .slide-buttons { flex-direction: column; }
  .slide-buttons .btn { width: 100%; justify-content: center; }

  .contact-form { padding: 24px; }
}

/* ===== PAGE BANNER ===== */
.page-banner {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>') repeat;
  background-size: 60px 60px;
  opacity: 0.5;
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { font-family: var(--font-serif); font-size: clamp(36px, 5vw, 56px); font-weight: 700; color: var(--white); margin-bottom: 12px; }
.page-banner p { font-size: 17px; color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto; }

.giving-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.giving-card { background: var(--white); border-radius: var(--radius); padding: 36px 28px; text-align: center; border: 1px solid rgba(107,15,138,0.06); transition: var(--transition); }
.giving-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.giving-card-icon { width: 70px; height: 70px; margin: 0 auto 20px; background: linear-gradient(135deg, var(--gold), var(--gold-light)); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.giving-card-icon i { font-size: 28px; color: var(--dark); }
.giving-card h3 { font-family: var(--font-serif); font-size: 20px; color: var(--dark); margin-bottom: 8px; }
.giving-card p { font-size: 14px; color: var(--gray-text); line-height: 1.8; }
.giving-card .details { margin-top: 16px; padding: 12px; background: var(--gray); border-radius: 8px; font-size: 13px; color: var(--dark); font-weight: 500; }

/* ===== GALLERY PAGE ===== */
.gallery-page-section {
  background: var(--gray);
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 50px;
}

.gallery-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--white);
  border: 2px solid rgba(107, 15, 138, 0.08);
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-text);
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gallery-tab i {
  font-size: 16px;
  color: var(--primary);
  transition: var(--transition);
}

.gallery-tab:hover {
  border-color: var(--primary);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.gallery-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.gallery-tab.active i {
  color: var(--gold);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.gallery-batch-divider {
  grid-column: 1 / -1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 8px 0;
}

.gallery-batch-label {
  grid-column: 1 / -1;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  text-align: left;
  padding: 14px 24px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(107, 15, 138, 0.2);
}

.gallery-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(107, 15, 138, 0.06);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-item-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.gallery-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.gallery-item-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light), var(--dark));
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item-placeholder i {
  font-size: 56px;
  color: var(--gold);
  opacity: 0.5;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 2, 30, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-zoom {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  transform: scale(0.8);
}

.gallery-item:hover .gallery-item-zoom {
  transform: scale(1);
}

.gallery-item-zoom:hover {
  background: var(--white);
  transform: scale(1.1) !important;
}

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
}

.gallery-empty i {
  font-size: 64px;
  color: var(--primary);
  opacity: 0.3;
  margin-bottom: 20px;
}

.gallery-empty h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--dark);
  margin-bottom: 8px;
}

.gallery-empty p {
  font-size: 15px;
  color: var(--gray-text);
}

/* ===== LIGHTBOX ===== */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(10, 2, 30, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 40px;
}

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

.gallery-lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 40px;
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}

.gallery-lightbox-close:hover {
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}

.gallery-lightbox-content {
  max-width: 900px;
  max-height: 90vh;
  text-align: center;
}

.gallery-lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.gallery-lightbox-caption {
  margin-top: 20px;
  color: var(--white);
}

.gallery-lightbox-caption h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 6px;
}

.gallery-lightbox-caption p {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
}

/* ===== GALLERY VIDEOS ===== */
/* ===== VIDEO ITEMS INSIDE GALLERY GRID ===== */
.gallery-item-video .gallery-item-image {
  aspect-ratio: 16 / 9;
  background: var(--dark);
}

.gallery-item-video .gallery-item-image iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gallery-video-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(212, 168, 67, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: var(--transition);
}

.gallery-item-video:hover .gallery-video-badge {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--gold);
}

.gallery-video-badge i {
  font-size: 20px;
  color: var(--dark);
  margin-left: 3px;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .gallery-tabs {
    gap: 8px;
  }
  .gallery-tab {
    padding: 10px 18px;
    font-size: 12px;
  }
  .gallery-tab span {
    display: none;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-lightbox {
    padding: 20px;
  }
}
