/* ========================================
   CARE INITIATIVE FOR PASTORS - BRAND SYSTEM
   ========================================
   A dignified, prestigious design for supporting
   elderly pastors and recognizing community heroes
   ======================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Lato:wght@300;400;700;900&display=swap');

/* Brand Color Palette */
:root {
  /* Primary Colors */
  --primary-green: #1a5c38;      /* Deep forest green - main brand */
  --primary-green-dark: #0f3d24; /* Darker shade for hover states */
  --primary-green-light: #2d7a4f; /* Lighter shade for accents */
  
  /* Accent Colors */
  --accent-gold: #c9962c;        /* Warm gold/amber - prestige accent */
  --accent-gold-dark: #a67b1f;   /* Darker gold for hover */
  --accent-gold-light: #d4a642;  /* Lighter gold for highlights */
  
  /* Neutral Colors */
  --bg-cream: #faf8f4;           /* Warm off-white background */
  --text-charcoal: #2c2c2c;      /* Dark text */
  --text-gray: #5a5a5a;          /* Secondary text */
  --border-light: #e5e3df;       /* Light borders */
  
  /* Legacy support (gradual transition) */
  --primary-color: #1a5c38;
  --secondary-color: #c9962c;
  --primary-dark: #0f3d24;
  --secondary-dark: #a67b1f;
  
  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Lato', 'Segoe UI', Tahoma, sans-serif;
  
  /* Spacing & Effects */
  --transition-smooth: all 0.3s ease;
  --shadow-elegant: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}


/* ========================================
   GLOBAL TYPOGRAPHY
   ======================================== */

body {
  font-family: var(--font-body);
  color: var(--text-charcoal);
  background-color: var(--bg-cream);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
.text-cursive,
.heading-20219 h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-charcoal);
  line-height: 1.3;
}

.text-cursive {
  font-style: normal;
  font-weight: 700;
}

/* ========================================
   BUTTON STYLES
   ======================================== */

/* Primary Button - Forest Green */
.btn-primary {
  background-color: var(--primary-green) !important;
  border-color: var(--primary-green) !important;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 12px 32px;
  transition: var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

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

/* Gold Accent Button */
.btn-gold {
  background-color: var(--accent-gold) !important;
  border-color: var(--accent-gold) !important;
  color: white !important;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 12px 32px;
  transition: var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.btn-gold:hover {
  background-color: var(--accent-gold-dark) !important;
  border-color: var(--accent-gold-dark) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Outlined Gold Button */
.btn-outline-gold {
  background-color: transparent !important;
  border: 2px solid var(--accent-gold) !important;
  color: var(--accent-gold) !important;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 10px 32px;
  transition: var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.btn-outline-gold:hover {
  background-color: var(--accent-gold) !important;
  border-color: var(--accent-gold) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline-primary {
  color: var(--primary-green) !important;
  border-color: var(--primary-green) !important;
  border-width: 2px;
  padding: 10px 32px;
  font-weight: 600;
}

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

/* ========================================
   COLOR UTILITIES
   ======================================== */

.bg-primary {
  background-color: var(--primary-green) !important;
}

.bg-green-dark {
  background-color: var(--primary-green-dark) !important;
}

.bg-gold {
  background-color: var(--accent-gold) !important;
}

.bg-cream {
  background-color: var(--bg-cream) !important;
}

.text-primary {
  color: var(--primary-green) !important;
}

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

.text-charcoal {
  color: var(--text-charcoal) !important;
}

.border-primary {
  border-color: var(--primary-green) !important;
}

.border-gold {
  border-color: var(--accent-gold) !important;
}

.border-left-gold {
  border-left: 4px solid var(--accent-gold) !important;
}

/* ========================================
   HERO SECTION REDESIGN
   ======================================== */

.owl-carousel-wrapper {
  position: relative;
  min-height: 650px;
}

.box-92819 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  max-width: 1000px;
  width: 100%;
  padding: 0 20px;
}

.box-92819 h1 {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 700;
  text-shadow: 3px 5px 20px rgba(0, 0, 0, 0.9), 1px 2px 10px rgba(0, 0, 0, 0.8);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: 1px;
}

.box-92819 p.lead {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.9), 1px 2px 6px rgba(0, 0, 0, 0.7);
  font-weight: 400;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.box-92819 .btn {
  min-width: 200px;
  margin: 10px;
}


.ftco-cover-1.overlay:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95) !important;
  z-index: 1;
}

.ftco-cover-1 {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 650px;
}

/* Remove old colored overlays */
.overlay-danger:after,
.overlay-success:after,
.overlay-warning:after {
  background: rgba(0, 0, 0, 0.45) !important;
}

/* ========================================
   STAT CARDS (Replace colored feature boxes)
   ======================================== */

.stat-cards-wrapper {
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.stat-card {
  background: var(--bg-cream);
  padding: 30px;
  border-left: 4px solid var(--accent-gold);
  box-shadow: var(--shadow-elegant);
  transition: var(--transition-smooth);
  text-align: center;
  margin-bottom: 30px;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.stat-card .stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-green);
  line-height: 1;
  margin-bottom: 8px;
}

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

/* ========================================
   PROGRAM CARDS (Award-style redesign)
   ======================================== */

.cause {
  transition: var(--transition-smooth);
  background: white;
  border-radius: 0;
}

.cause:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover) !important;
}

.cause .px-3 {
  padding: 30px !important;
}

.cause h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.4;
}

.cause h3 a {
  color: var(--text-charcoal);
  transition: var(--transition-smooth);
}

.cause h3 a:hover {
  color: var(--primary-green);
  text-decoration: none;
}

/* Program category badges */
.badge-danger,
.badge-primary,
.badge-warning {
  font-family: var(--font-body);
  font-weight: 600;
  padding: 6px 14px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 3px;
}

.badge-danger {
  background-color: var(--primary-green) !important;
}

.badge-primary {
  background-color: var(--accent-gold) !important;
}

.badge-warning {
  background-color: #5a7d9a !important;
}

/* Progress bars - more elegant */
.custom-progress-wrap {
  background: rgba(0, 0, 0, 0.5);
  padding: 12px 20px;
}

.custom-progress-wrap .caption {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.custom-progress-inner {
  background: rgba(255, 255, 255, 0.3);
  height: 6px;
}

.custom-progress.bg-primary,
.custom-progress.bg-danger,
.custom-progress.bg-warning {
  background-color: var(--accent-gold) !important;
  height: 6px;
}

/* Coordinator info styling */
.cause .py-4 {
  border-top: 1px solid var(--border-light);
}

.cause .py-4 .d-flex {
  align-items: center;
}

.cause .py-4 img {
  border: 2px solid var(--border-light);
}

.cause .py-4 .div {
  font-weight: 500;
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* ========================================
   MISSION SECTION
   ======================================== */

.feature-29012 .number {
  background-color: transparent !important;
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-weight: 700;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.feature-29012 h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: white;
  margin-bottom: 12px;
}

.feature-29012 p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

/* ========================================
   EVENT CARDS (Bulletin-style)
   ======================================== */

.event-29191 {
  background: white;
  padding: 20px;
  box-shadow: var(--shadow-elegant);
  transition: var(--transition-smooth);
}

.event-29191:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.event-29191 .date {
  background-color: var(--accent-gold) !important;
  border-radius: 8px;
  min-width: 80px;
}

.event-29191 h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
}

.event-29191 h3 a {
  color: var(--text-charcoal);
  transition: var(--transition-smooth);
}

.event-29191 h3 a:hover {
  color: var(--primary-green);
  text-decoration: none;
}

.event-29191 .mb-3 span {
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  background-color: var(--primary-green-dark) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '†';
  position: absolute;
  font-size: 400px;
  color: rgba(255, 255, 255, 0.03);
  top: -100px;
  right: -50px;
  font-family: Georgia, serif;
  pointer-events: none;
}

.site-footer h2.footer-heading {
  font-family: var(--font-heading);
  color: white;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.site-footer p,
.site-footer li {
  color: rgba(255, 255, 255, 0.8);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  transition: var(--transition-smooth);
}

.site-footer a:hover {
  color: var(--accent-gold);
  text-decoration: none;
}

.site-footer .icon-facebook,
.site-footer .icon-twitter,
.site-footer .icon-instagram,
.site-footer .icon-linkedin {
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}

.site-footer .icon-facebook:hover {
  color: var(--accent-gold);
}

/* ========================================
   NAVBAR
   ======================================== */

.site-navbar {
  background-color: var(--primary-green-dark) !important;
}

.site-logo img {
  max-height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
}

.site-logo a {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.site-navigation .nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.site-navigation .nav-link:hover,
.site-navigation .active .nav-link {
  color: var(--accent-gold) !important;
}

/* ========================================
   CALL TO ACTION SECTIONS
   ======================================== */

.cta-20101 {
  background: white !important;
  border-left: 4px solid var(--accent-gold);
  box-shadow: var(--shadow-elegant);
  border-radius: 0;
}

.cta-20101 h2 {
  font-family: var(--font-heading);
  color: var(--text-charcoal);
  font-size: 2rem;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

.form-control {
  border: 1px solid var(--border-light);
  border-radius: 0;
  padding: 12px 20px;
  font-family: var(--font-body);
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 0.2rem rgba(201, 150, 44, 0.15);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.shadow-elegant {
  box-shadow: var(--shadow-elegant) !important;
}

.overlay-primary:after {
  background-color: rgba(26, 92, 56, 0.85) !important;
}

/* ========================================
   GALLERY STYLES
   ======================================== */

.gallery-row {
  margin: 0 -10px;
}

.gallery-row > [class*='col-'] {
  padding: 0 10px;
}

.gallery-item {
  display: block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.gallery-image-wrapper {
  position: relative;
  overflow: hidden;
  background: var(--text-charcoal);
  box-shadow: var(--shadow-elegant);
  transition: var(--transition-smooth);
}

.gallery-image-wrapper:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.gallery-image-wrapper img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
}

.gallery-image-wrapper:hover img {
  transform: scale(1.1);
  opacity: 0.8;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 92, 56, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

.gallery-image-wrapper:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-content {
  text-align: center;
  color: white;
  padding: 20px;
}

.gallery-overlay-content .icon-search {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 10px;
}

.gallery-overlay-content p {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Fancybox customization */
.fancybox-container {
  z-index: 99999;
}

.fancybox-caption {
  background: var(--primary-green-dark);
  color: white;
  font-family: var(--font-body);
  padding: 20px;
  text-align: center;
}

.fancybox-caption__body {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ========================================
   GALLERY FILTER BUTTONS
   ======================================== */

.gallery-filter-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.filter-btn {
  background: white;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
  padding: 12px 30px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 0;
  transition: var(--transition-smooth);
  cursor: pointer;
  box-shadow: var(--shadow-elegant);
}

.filter-btn:hover {
  background: var(--primary-green-light);
  color: white;
  border-color: var(--primary-green-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.filter-btn.active {
  background: var(--primary-green);
  color: white;
  border-color: var(--primary-green);
  box-shadow: var(--shadow-hover);
}

.filter-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 92, 56, 0.2);
}

/* Gallery Card Styling */
.gallery-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

.gallery-card:hover {
  text-decoration: none;
}

@media (max-width: 576px) {
  .gallery-filter-buttons {
    gap: 10px;
  }
  
  .filter-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

/* ========================================
   OWL CAROUSEL GALLERY STYLING
   ======================================== */

.owl-gallery {
  position: relative;
  padding: 0 50px;
}

.owl-gallery .owl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.owl-gallery .owl-nav button.owl-prev,
.owl-gallery .owl-nav button.owl-next {
  width: 50px;
  height: 50px;
  background: var(--primary-green) !important;
  color: white !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition-smooth);
  pointer-events: all;
  box-shadow: var(--shadow-elegant);
  border: none;
  outline: none;
}

.owl-gallery .owl-nav button.owl-prev:hover,
.owl-gallery .owl-nav button.owl-next:hover {
  background: var(--accent-gold) !important;
  transform: scale(1.1);
  box-shadow: var(--shadow-hover);
}

.owl-gallery .owl-nav button.owl-prev {
  margin-left: -50px;
}

.owl-gallery .owl-nav button.owl-next {
  margin-right: -50px;
}

.owl-gallery .owl-dots {
  text-align: center;
  margin-top: 30px;
}

.owl-gallery .owl-dots .owl-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background: #d4d4d4;
  border-radius: 50%;
  transition: var(--transition-smooth);
  border: none;
  outline: none;
}

.owl-gallery .owl-dots .owl-dot.active,
.owl-gallery .owl-dots .owl-dot:hover {
  background: var(--primary-green);
  transform: scale(1.2);
}

.owl-gallery .item {
  padding: 10px;
}

/* Mobile adjustments for carousel */
@media (max-width: 768px) {
  .owl-gallery {
    padding: 0 20px;
  }
  
  .owl-gallery .owl-nav button.owl-prev {
    margin-left: -20px;
  }
  
  .owl-gallery .owl-nav button.owl-next {
    margin-right: -20px;
  }
  
  .owl-gallery .owl-nav button.owl-prev,
  .owl-gallery .owl-nav button.owl-next {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .owl-gallery {
    padding: 0 10px;
  }
  
  .owl-gallery .owl-nav button.owl-prev,
  .owl-gallery .owl-nav button.owl-next {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .owl-gallery .owl-nav button.owl-prev {
    margin-left: -10px;
  }
  
  .owl-gallery .owl-nav button.owl-next {
    margin-right: -10px;
  }
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
  /* Hero Section Mobile */
  .owl-carousel-wrapper {
    min-height: 550px;
  }
  
  .ftco-cover-1 {
    min-height: 550px;
    background-position: center center;
  }
  
  .box-92819 {
    padding: 0 15px;
    width: 100%;
  }
  
  .box-92819 h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.8);
  }
  
  .box-92819 p.lead {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.7);
  }
  
  /* Stack buttons vertically on mobile */
  .box-92819 p {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  .box-92819 .btn {
    width: 100%;
    max-width: 300px;
    margin: 8px 0 !important;
    padding: 14px 20px !important;
    font-size: 0.85rem;
  }
  
  /* Stat cards mobile */
  .stat-card .stat-number {
    font-size: 2.5rem;
  }
  
  /* Program cards mobile */
  .cause h3 {
    font-size: 1.2rem;
  }
  
  /* Mission section mobile */
  .feature-29012 .number {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .feature-29012 h3 {
    font-size: 1.2rem;
  }
  
  /* CTA section mobile */
  .cta-20101 {
    flex-direction: column !important;
    text-align: center;
  }
  
  .cta-20101 h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem !important;
  }
  
  .cta-20101 .btn {
    width: 100%;
  }
  
  /* Gallery mobile */
  .gallery-image-wrapper img {
    height: 250px;
  }
}

@media (max-width: 576px) {
  .box-92819 h1 {
    font-size: 2.2rem;
  }
  
  .box-92819 p.lead {
    font-size: 1rem;
  }
  
  .owl-carousel-wrapper {
    min-height: 500px;
  }
  
  .ftco-cover-1 {
    min-height: 500px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* Tablet adjustments */
  .box-92819 h1 {
    font-size: 3.5rem;
  }
  
  .box-92819 p.lead {
    font-size: 1.2rem;
  }
}