/* ========== CSS VARIABLES ========== */
:root {
  --primary: #8B0000;
  --primary-light: #A52A2A;
  --primary-dark: #5C0000;
  --accent: #DAA520;
  --accent-light: #FFD700;
  --text-main: #2C2C2C;
  /* Dark Charcoal for Headings */
  --text-body: #4a4a4a;
  --text-light: #6b6b6b;
  --bg-white: #ffffff;
  --bg-light: #fafafa;
  --bg-gray: #f5f5f5;
  --border: #e5e5e5;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', sans-serif;
  /* Clean Sans-Serif */
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

/* ========== TYPOGRAPHY ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
  /* Dark Charcoal */
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 1rem;
}

/* ========== UTILITIES ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.section-label {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  /* Increased Kerning */
  margin-bottom: 16px;
}

.section-title {
  color: var(--text-main);
  margin-bottom: 16px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.938rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--bg-white);
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 0, 0, 0.4);
}

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

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

.btn-white {
  background: rgba(255, 255, 255, 0.15);
  color: var(--bg-white);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-white:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ========== PRELOADER ========== */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-white);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

.loader {
  width: 80px;
  height: 80px;
  position: relative;
}

.loader-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.loader-ring {
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-top-color: var(--primary);
  border-right-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 20px 0;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.logo-text h4 {
  font-size: 1.125rem;
  margin: 0;
  color: var(--bg-white);
  transition: var(--transition);
}

.logo-text small {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.header.scrolled .logo-text h4 {
  color: var(--primary);
}

.header.scrolled .logo-text small {
  color: var(--text-light);
}

.nav-menu {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-link {
  color: var(--bg-white);
  font-weight: 600;
  font-size: 0.938rem;
  position: relative;
  padding: 8px 0;
  display: inline-block;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: var(--transition);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--accent-light);
  transform: translateY(-2px);
  text-shadow: 0 0 15px rgba(218, 165, 32, 0.4);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header.scrolled .nav-link {
  color: var(--text-main);
}

.header.scrolled .nav-link:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--bg-white);
  cursor: pointer;
  z-index: 1001;
}

.header.scrolled .menu-toggle {
  color: var(--text-main);
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('assets/images/Service moments VII.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding-top: 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(139, 0, 0, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(218, 165, 32, 0.1) 0%, transparent 50%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

.hero-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  color: var(--bg-white);
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-text .highlight {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  margin-bottom: 32px;
  max-width: 540px;
}

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

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-logo {
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--accent);
  box-shadow: 0 0 60px rgba(218, 165, 32, 0.4);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
  height: 500px;
}

.about-card {
  position: absolute;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 100%;
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-10px);
}

.about-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(218, 165, 32, 0.08), transparent 60%),
    radial-gradient(circle at bottom left, rgba(139, 0, 0, 0.05), transparent 60%);
  border-radius: var(--radius-xl);
}

.about-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.about-card h3 {
  font-size: 1.75rem;
  color: var(--primary);
  /* Keep Brand Red Here */
  position: relative;
  z-index: 1;
}

.stats {
  display: flex;
  gap: 40px;
  margin: 32px 0;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat h4 {
  font-size: 2.5rem;
  color: var(--primary);
  margin: 0;
}

.stat p {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  /* Increased Kerning */
  font-weight: 600;
  color: var(--text-light);
  margin: 0;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 16px;
}

.about-link:hover {
  gap: 12px;
  color: var(--accent);
}

/* ========== SERVICES ========== */
/* ========== SERVICES SLIDER ========== */
.services-slider-wrapper {
  position: relative;
  padding: 0 60px;
  /* Space for side buttons */
}

.services-grid {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
}

.services-grid::-webkit-scrollbar {
  display: none;
}

.service-card {
  flex: 0 0 350px;
  scroll-snap-align: start;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 10;
  opacity: 1;
  /* Ensure visible */
}

.slider-btn.prev {
  left: -25px;
  /* Offset for better visibility on white space */
}

.slider-btn.next {
  right: -25px;
}

.slider-btn:hover {
  background: var(--primary);
  color: var(--bg-white);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
  .services-slider-wrapper {
    padding: 0 16px;
  }

  .service-card {
    flex: 0 0 85%;
  }

  .slider-btn {
    display: none;
    /* Hide side buttons on mobile to save space */
  }

  /* Optimize service card height for mobile */
  .service-banner {
    height: 160px;
  }

  .service-content {
    padding: 20px;
  }

  .service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
  }

  .service-card p {
    font-size: 0.875rem;
    margin-bottom: 12px;
  }

  .service-time {
    font-size: 0.813rem;
    margin-bottom: 12px;
  }

  .service-tag {
    padding: 6px 16px;
    font-size: 0.688rem;
  }
}

.service-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.service-banner {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.service-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-banner img {
  transform: scale(1.1);
}

.service-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.service-time {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 0.938rem;
  margin-bottom: 16px;
}

.service-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--bg-gray);
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
  margin-top: auto;
}

.service-tag:hover {
  background: var(--primary);
  color: var(--bg-white);
  border-color: var(--primary);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px rgba(103, 75, 23, 0.2);
}

.service-tag i {
  font-size: 0.875rem;
}

.service-tag.whatsapp-tag:hover {
  background: #25D366;
  color: #ffffff;
  border-color: #25D366;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.service-card.featured {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.service-card.featured h3,
.service-card.featured p,
.service-card.featured .service-time {
  color: var(--bg-white);
}

.service-card.featured .service-tag {
  background: var(--accent);
  color: var(--primary-dark);
}

.service-card.featured .service-tag {
  background: var(--accent);
  color: var(--primary-dark);
  /* High Contrast Text */
}

/* ========== EVENTS ========== */
.events-marquee {
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
  position: relative;
}

.events-marquee::before,
.events-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.events-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-white), transparent);
}

.events-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-white), transparent);
}

.events-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.events-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(calc(-50% - 12px));
  }

  100% {
    transform: translateX(0);
  }
}

.event-card {
  min-width: 320px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.event-flyer {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.event-flyer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-card:hover .event-flyer img {
  transform: scale(1.15);
}

.event-details {
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--bg-white);
  padding: 16px;
  border-radius: var(--radius-sm);
  min-width: 70px;
  text-align: center;
}

.event-date .day {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.event-date .month {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.event-info h4 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.event-info p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.event-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.event-link:hover {
  color: var(--accent);
}

/* ========== TESTIMONIES ========== */
.testimonies-slider-wrapper {
  position: relative;
  width: 100%;
}

.testimonies-slider-wrapper .slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.testimonies-slider-wrapper .slider-btn.prev {
  left: -20px;
}

.testimonies-slider-wrapper .slider-btn.next {
  right: -20px;
}

.testimonies-grid {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px; /* Space for shadows */
  scrollbar-width: none; /* Firefox */
}

.testimonies-grid::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.testimonies-grid .testimony-card {
  flex: 0 0 calc((100% - 60px) / 3); /* 3 cards */
  scroll-snap-align: start;
  height: auto;
}

@media (max-width: 1024px) {
  .testimonies-grid .testimony-card {
    flex: 0 0 calc((100% - 30px) / 2); /* 2 cards */
  }
}

@media (max-width: 768px) {
  .testimonies-grid .testimony-card {
    flex: 0 0 calc(100% - 10px); /* 1 card on mobile */
  }
}

.testimony-card {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.testimony-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.testimony-icon {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(218, 165, 32, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.testimony-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
  padding-right: 40px;
}

.testimony-card p {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 24px;
  flex-grow: 1;
}

.testimony-card .testimony-author {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
  font-style: normal;
  margin-bottom: 0;
}

/* ========== SPIRITUAL NOURISHMENT (BULLETIN) ========== */
.bulletin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.bulletin-card {
  background: var(--bg-white);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.bulletin-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 12px;
}

.bulletin-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
  line-height: 1.4;
}

.bulletin-card p {
  font-family: 'Inter', sans-serif;
  font-size: 0.938rem;
  color: var(--text-body);
  margin-bottom: 24px;
  line-height: 1.6;
  flex-grow: 1;
}

.bulletin-card .read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  margin-top: auto;
}

.bulletin-card .read-more:hover {
  color: var(--accent);
  gap: 12px;
}

.bulletin-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.bulletin-btn-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* ========== CONTACT ========== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.contact-info {
  padding: 60px;
  background: var(--bg-light);
}

.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-item-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-item h5 {
  font-size: 1rem;
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
}

.contact-item p {
  font-size: 0.938rem;
}

.contact-item a {
  color: var(--primary);
  font-weight: 500;
}

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

.map-container {
  margin-top: 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 280px;
}

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

.contact-form-section {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: var(--transition);
  box-sizing: border-box;
}

.contact-form-section:hover {
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

.form-header {
  padding: 0;
  margin-bottom: 30px;
  text-align: left;
  color: var(--text-main);
  position: relative;
}

/* Removed pulse animation */

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.form-icon-wrapper {
  display: none;
}

.form-header h3 {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  margin-bottom: 10px;
  font-size: 2.25rem;
  font-weight: 800;
}

.form-header p {
  color: var(--text-body);
  margin-bottom: 0;
  font-size: 1.1rem;
}

.premium-form {
  padding: 0;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 32px;
  position: relative;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

.form-label i {
  color: var(--primary);
  font-size: 1rem;
}

.form-control {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-white);
  color: var(--text-main);
}

.form-control:hover {
  border-color: rgba(139, 0, 0, 0.3);
  background: var(--bg-white);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(218, 165, 32, 0.15);
  transform: translateY(-2px);
}

.form-control::placeholder {
  color: var(--text-body);
  font-style: italic;
  opacity: 0.8;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238B0000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 45px;
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.btn-submit {
  width: 100%;
  padding: 18px;
  font-size: 1.05rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-submit:hover::before {
  left: 100%;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(139, 0, 0, 0.4);
}

.btn-submit:active {
  transform: translateY(-1px);
}

.btn-icon {
  transition: transform 0.3s;
}

.btn-submit:hover .btn-icon {
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-header {
    padding: 30px 25px;
  }

  .form-icon-wrapper {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }

  .form-header h3 {
    font-size: 1.5rem;
  }

  .premium-form {
    padding: 0;
  }

  .contact-form-section {
    padding: 20px;
  }

  .form-control {
    padding: 14px 16px;
  }

  .btn-submit {
    padding: 16px;
  }
}

/* ========== FOOTER ========== */
.footer {
  background: #0a0a0a;
  color: #a0a0a0;
  padding: 80px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand h4 {
  color: var(--bg-white);
  font-size: 1.5rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.footer-brand p {
  color: #808080;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0a0a0;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.footer-col h5 {
  color: var(--bg-white);
  font-size: 1rem;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #808080;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.875rem;
  color: #606060;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .section {
    padding: 80px 0;
  }

  .hero-content-wrapper,
  .about-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-logo {
    max-width: 300px;
  }
}

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

  .container {
    padding: 0 20px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    box-shadow: var(--shadow-xl);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    color: var(--text-primary);
    font-size: 1.125rem;
  }

  .hero {
    padding-top: 100px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .bulletin-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

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

  /* Testimonies slider adjustments on mobile menu view */
  .testimonies-slider-wrapper .slider-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .testimonies-slider-wrapper .slider-btn.prev {
    left: -10px;
  }

  .testimonies-slider-wrapper .slider-btn.next {
    right: -10px;
  }

  .about-visual {
    height: 400px;
  }

  .about-card {
    padding: 40px;
  }

  .stats {
    flex-direction: column;
    gap: 24px;
  }

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

  .footer-brand h4,
  .social-links {
    justify-content: center;
  }

  /* Optimize contact section for mobile */
  .contact-wrapper {
    gap: 30px;
    padding: 20px;
  }

  .contact-info {
    padding: 30px 20px;
  }

  .contact-form-section {
    width: 100%;
    margin: 0;
  }

  .map-container {
    margin-top: 20px;
    height: 250px;
  }
}

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

  h2 {
    font-size: 1.75rem;
  }

  .hero-logo {
    max-width: 250px;
  }

  .about-icon {
    width: 100px;
    height: 100px;
  }

  .service-card {
    padding: 0;
  }

  .testimony-card {
    padding: 30px 20px; /* Increased internal padding for breathing room */
  }

  .testimony-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .testimony-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .testimony-card p {
    font-size: 0.813rem;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .testimony-author {
    font-size: 0.75rem;
  }
}

/* ========== GALLERY LIGHTBOX ========== */
.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  padding: 40px;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 85vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-modal.active .modal-content img {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 30px;
  right: 40px;
  color: var(--bg-white);
  font-size: 2.5rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2001;
}

.close-modal:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--bg-white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: var(--transition);
  z-index: 2001;
  backdrop-filter: blur(5px);
}

.modal-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.modal-nav.prev {
  left: 40px;
}

.modal-nav.next {
  right: 40px;
}

@media (max-width: 768px) {
  .gallery-modal {
    padding: 20px;
  }

  .modal-nav {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  .modal-nav.prev {
    left: 15px;
  }

  .modal-nav.next {
    right: 15px;
  }

  .close-modal {
    top: 20px;
    right: 20px;
    font-size: 2rem;
  }
}

/* ========== BANK TRANSFER CARD ========== */
.bank-transfer-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.bank-transfer-card:hover {
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.bank-card-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  padding: 25px 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #ffffff;
}

.bank-icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.bank-header-text h3 {
  margin: 0 0 5px 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.bank-header-text p {
  margin: 0;
  opacity: 1;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.bank-card-body {
  padding: 30px 40px;
}

.bank-detail-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bank-detail-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  transition: var(--transition);
  text-align: center;
  align-items: center;
}

.bank-detail-item:hover {
  background: rgba(0, 0, 0, 0.02);
  border-left-color: var(--accent);
}

.bank-detail-item.highlight {
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
  border-left-color: var(--accent);
  border-left-width: 5px;
}

.detail-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #555555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  justify-content: center;
}

.detail-label i {
  color: var(--primary);
  font-size: 0.9rem;
}

.detail-value {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
  text-align: center;
}

.account-number {
  font-family: 'Courier New', monospace;
  font-size: 1.25rem;
  color: #8B0000;
  letter-spacing: 1.5px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-weight: 700;
  align-items: center;
  text-align: center;
}

.copy-btn {
  background: var(--primary);
  color: var(--bg-white);
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  align-self: flex-start;
}

.copy-btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
}

.copy-btn:active {
  transform: translateY(0);
}

.bank-card-footer {
  background: rgba(0, 0, 0, 0.02);
  padding: 15px 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-light);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.bank-card-footer i {
  color: var(--accent);
  font-size: 1rem;
}

@media (max-width: 992px) {
  .bank-detail-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .account-number {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .copy-btn {
    align-self: auto;
  }
}

@media (max-width: 768px) {
  .bank-card-header {
    padding: 20px 25px;
    flex-direction: column;
    text-align: center;
  }

  .bank-icon-wrapper {
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
  }

  .bank-header-text h3 {
    font-size: 1.35rem;
  }

  .bank-card-body {
    padding: 20px 25px;
  }

  .bank-detail-item {
    padding: 15px;
  }

  .account-number {
    font-size: 1.1rem;
    letter-spacing: 1px;
    flex-direction: column;
    align-items: flex-start;
  }

  .copy-btn {
    width: 100%;
  }

  .bank-card-footer {
    padding: 12px 25px;
    font-size: 0.8rem;
  }
}

/* ============================================================
   TOAST NOTIFICATION SYSTEM
   ============================================================ */

/* Container (stacks toasts bottom-right) */
#toast-container {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99999;
    display: flex;
    flex-direction: column-reverse; /* newest child at bottom = stacks up */
    gap: 12px;
    pointer-events: none; /* let clicks pass through empty space */
}

/* Individual Toast */
.toast {
    pointer-events: all;
    min-width: 300px;
    max-width: 380px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid var(--toast-accent, #22c55e);
    animation: toast-slide-in 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.toast--exiting {
    animation: toast-slide-out 0.45s cubic-bezier(0.6, -0.28, 0.74, 0.05) forwards;
}

/* Body layout */
.toast-body {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 16px 14px;
}

/* SVG Icon */
.toast-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

/* Text */
.toast-text {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-family: 'Inter', 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.toast-message {
    font-family: 'Inter', 'Poppins', sans-serif;
    font-size: 0.82rem;
    color: #555;
    line-height: 1.4;
}

/* Close button */
.toast-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
    flex-shrink: 0;
    font-family: system-ui, sans-serif;
}

.toast-close:hover {
    color: #333;
}

/* Progress bar track */
.toast-progress {
    height: 3px;
    background: rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

/* Animated shrinking bar */
.toast-progress-bar {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    right: 0;
    transform-origin: left center;
    background: var(--toast-accent, #22c55e);
    opacity: 0.75;
    animation: toast-progress-shrink linear forwards;
    /* duration is set inline per toast duration */
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateX(120%) scale(0.92);
    }
    60% {
        transform: translateX(-10px) scale(1.02);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toast-slide-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
}

@keyframes toast-progress-shrink {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 600px) {
    #toast-container {
        bottom: 16px;
        right: 16px;
        left: 16px;
        align-items: center;
    }
    .toast {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }
}