@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
  /* NEW: Gemini-inspired Dark Theme Palette */
  --ab-primary-color: #dc143c; /* A friendly, accessible blue */
  --ab-accent-color: #38bdf8; /* Kept for secondary accents */
  --ab-tertiary-color: #ff7b01; /* A warm, inviting yellow */
  --ab-dark-bg-1: #1e1f22; /* Deep charcoal background */
  --ab-dark-bg-2: #2a2b2e; /* Lighter charcoal for cards and elevated surfaces */
  --ab-dark-bg-3: #3c3d40; /* Lighter shade for hovers */
  --ab-text-primary-dark: #e1e2e4; /* Soft, off-white for primary text */
  --ab-text-secondary-dark: #b0b1b3; /* Lighter grey for secondary text */
  --ab-border-dark: rgba(
    225,
    227,
    229,
    0.15
  ); /* A more visible, subtle border */

  --ab-font-size-base: 1rem; /* Base font size */
  /* Effects */
  --ab-card-bg-blur: rgba(
    42,
    43,
    46,
    0.75
  ); /* Dark, semi-transparent for blur */
  --ab-blur-radius: 8px;
  --ab-shadow-light: 0 4px 12px rgba(0, 0, 0, 0.3);
  --ab-shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.5);
}

body.about-page {
  font-family: 'Open Sans', sans-serif;
  background: linear-gradient(to bottom, rgb(23, 23, 26) 0%, #090a0f 100%);
  color: var(--ab-text-primary-dark);
  background-size: cover;
  position: relative;
  overflow-x: hidden;
}

body.about-page section p {
  color: var(--ab-text-secondary-dark);
  line-height: 1.7;
}

body.about-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

body.about-page main > section {
  background-color: transparent;
}

body.about-page header,
body.about-page main,
body.about-page footer {
  position: relative;
  z-index: 2; /* Ensure content is above the background */
}

/* --- Navbar --- */

body.about-page .navbar {
  background-color: transparent; /* Transparent background */
  z-index: 1020;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

body.about-page .navbar.scrolled {
  backdrop-filter: blur(var(--ab-blur-radius));
}

body.about-page .navbar-brand img {
  max-width: 60px; /* Adjust logo size */
  /* font-weight: 700;
  font-size: 1.6rem;
  color: var(--ab-primary-color) !important; */
}

body.about-page .nav-link {
  font-weight: 500;
  color: var(--ab-text-secondary-dark) !important;
  transition: color 0.3s ease;
  font-size: 1.1rem;
}

body.about-page .nav-link:hover {
  color: var(--ab-primary-color) !important;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  overflow: hidden;
  height: calc(100svh - 70px);
  background-color: transparent;
  opacity: 1;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  overflow: hidden;
  /* border-bottom: 1px solid var(--ab-border-dark); */
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1; /* below ::before */
  background-image: url('https://ik.imagekit.io/g0xkgtz2g/gift-cover.jpg?updatedAt=1750476052448');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.04; /* Optional */
  filter: grayscale(100%);
}

@media (max-width: 520px) {
  .hero-section {
    height: calc(70svh - 70px); /* Adjust height for smaller screens */
  }
}

.text-gradient {
  background: linear-gradient(
    90deg,
    var(--ab-primary-color),
    var(--ab-tertiary-color)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content {
  z-index: 2;
  max-width: 1280px;
}
.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  color: var(--ab-text-primary-dark);
  white-space: nowrap;
  /* text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5); */
}

/* .hero-title span {
  color: var(--ab-primary-color);
} */

.hero-subtitle {
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

.hero-text-small {
  font-size: 1.1rem;
  font-style: italic;
  opacity: 0.9;
}
.anniversary-badge {
  background-color: var(--ab-accent-color);
  color: #121212;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 1.5rem;
  animation: bounceIn 1s ease-out;
}

/* --- General Section Styling --- */
.section-padding {
  padding: 80px 0;
  position: relative;
}
.section-heading {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 50px;
  text-align: center;
  color: var(--ab-text-primary-dark);
  position: relative;
}
.section-heading::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--ab-primary-color),
    var(--ab-tertiary-color)
  );
  margin: 15px auto 0;
  border-radius: 2px;
}

/* --- Alternating Section Backgrounds --- */
.section-bg-light {
  background-color: var(--ab-dark-bg-1);
}
.section-bg-dark {
  background-color: var(--ab-dark-bg-2);
}
.section-bg-gradient {
  background: linear-gradient(
    to right,
    var(--ab-dark-bg-1),
    var(--ab-dark-bg-2)
  );
}
.section-bg-primary-fade {
  background-color: rgba(137, 180, 248, 0.05);
}

.img-wrapper {
  max-width: 768px;
  margin: 2rem auto 0;
}

.img-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--ab-shadow-light);
}

/* --- About Us Introduction --- */
.about-intro-text {
  font-size: var(--ab-font-size-base);
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--ab-text-secondary-dark);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.about-intro-text b {
  color: var(--ab-text-primary-dark);
  font-weight: 600;
}

@media (max-width: 767.98px) {
  .fix-bg {
    height: 40svh; /* Adjust height for smaller screens */
  }
}

/* Overlay */
.fix-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2); /* Adjust opacity as needed */
  z-index: 1;
}

/* Optional: Ensure content inside stays above overlay */
.fix-bg > * {
  position: relative;
  z-index: 2;
}

/* --- Pastor Section --- */
.pastor-section-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.pastor-image-container {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--ab-accent-color);
  /* box-shadow: var(--ab-accent-color) 0 0 12px; */
  margin-bottom: 30px;
  transition: transform 0.3s ease;
}
.pastor-image-container:hover {
  transform: scale(1.05);
}
.pastor-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.pastor-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ab-text-primary-dark);
}
.pastor-title {
  font-size: var(--ab-font-size-base);
  color: var(--ab-text-secondary-dark);
  margin-bottom: 25px;
}
.pastor-bio {
  font-size: var(--ab-font-size-base);
  line-height: 1.7;
  color: var(--ab-text-secondary-dark);
  margin-bottom: 40px;
}

/* --- Vision Section --- */
.vision-quote {
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--ab-text-primary-dark);
  border-left: 5px solid var(--ab-accent-color);
  padding-left: 20px;
  margin: 40px auto;
  max-width: 800px;
  text-align: center;
}
.vision-detail-text {
  font-size: var(--ab-font-size-base);
  line-height: 1.6;
  color: var(--ab-text-secondary-dark);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* --- What We Offer (WITH BLURRED CARDS) --- */
.offer-card {
  /* background-color: var(--ab-card-bg-blur); */
  /* backdrop-filter: blur(var(--ab-blur-radius)); */
  border-radius: 12px;
  /* box-shadow: var(--ab-shadow-light); */
  padding: 35px;
  text-align: center;
  border: 1px solid var(--ab-border-dark);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out,
    background-color 0.3s ease;
  height: 100%;
}
.offer-card:hover {
  /* transform: translateY(-10px); */
  background-color: rgba(50, 51, 54, 0.4); /* Slightly more opaque on hover */
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.offer-icon {
  font-size: 3.2rem;
  color: var(--ab-accent-color);
  margin-bottom: 20px;
}
.offer-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--ab-text-primary-dark);
}
.offer-card-text {
  color: var(--ab-text-secondary-dark);
  font-size: 0.95rem;
}

/* --- Worship Times & Foundation --- */
.schedule-table-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--ab-dark-bg-2);
  border-radius: 8px;
  /* box-shadow: var(--ab-shadow-light); */
  overflow: hidden;
  margin-bottom: 40px;
}
.schedule-table {
  width: 100%;
  border-collapse: collapse;
}
.schedule-table th,
.schedule-table td {
  padding: 15px;
  vertical-align: middle;
  border-bottom: 1px solid var(--ab-border-dark);
  text-align: left;
}
.schedule-table th {
  background-color: #1b2735; /* Darker grey header for contrast with blue text */
  color: var(--ab-accent-color);
  font-weight: 600;
  border-color: var(--ab-border-dark);
}
.schedule-table tbody tr:last-child td {
  border-bottom: none;
}
.schedule-table tbody tr {
  color: var(--ab-text-primary-dark);
}
.schedule-table tbody tr:nth-of-type(even) {
  background-color: var(--ab-dark-bg-3);
}
.schedule-table tbody tr:hover {
  background-color: #444548;
}
.table-note {
  font-size: 0.9rem;
  color: var(--ab-text-secondary-dark);
  text-align: center !important;
  padding-top: 10px;
  padding-bottom: 10px;
}
.schedule-subheading {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--ab-text-primary-dark);
  margin-top: 50px;
  margin-bottom: 30px;
  text-align: center;
}

/* --- Biblical Foundation Card Styling --- */
.biblical-foundation-card {
  /* background-color: var(--ab-dark-bg-2); */
  /* border-radius: 12px; */
  /* box-shadow: var(--ab-shadow-light); */
  padding: 40px;
  margin: 0 auto;
}

.biblical-foundation-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
}
.biblical-foundation-item {
  padding: 20px 0;
  display: flex;
  align-items: flex-start;
  border-bottom: 1px solid var(--ab-border-dark);
  margin-bottom: 0;
}
.biblical-foundation-item:first-child {
  padding-top: 0;
}
.biblical-foundation-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.foundation-icon {
  font-size: 2rem;
  margin-right: 20px;
  flex-shrink: 0;
  color: var(--ab-primary-color);
  min-width: 36px;
  text-align: center;
}
.foundation-text strong {
  display: block;
  margin-bottom: 5px;
  font-size: var(--ab-font-size-base);
  color: var(--ab-text-primary-dark);
}
.foundation-text p {
  font-size: 0.95rem;
  color: var(--ab-text-secondary-dark);
  line-height: 1.6;
}

/* --- Partnership Section & Buttons --- */
.partnership-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.partnership-text {
  font-size: var(--ab-font-size-base);
  line-height: 1.7;
  color: var(--ab-text-secondary-dark);
  margin-bottom: 30px;
}

.btn-cta {
  padding: 15px 40px;
  font-size: var(--ab-font-size-base);
  font-weight: 600;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.2s ease,
    box-shadow 0.3s ease;
  box-shadow: var(--ab-shadow-light);
  border: none;
}

.btn-cta.btn-primary {
  background-color: var(--ab-accent-color);
  color: var(--ab-dark-bg-1);
}
.btn-cta.btn-primary:hover {
  background-color: white; /* Lighter blue on hover */
  color: var(--ab-dark-bg-1);
  transform: translateY(-3px);
  box-shadow: var(--ab-shadow-medium);
}

/* --- Contact Section --- */
.contact-intro-text {
  font-size: var(--ab-font-size-base);
  color: var(--ab-text-secondary-dark);
  margin-bottom: 3rem;
}
.contact-details-list {
  display: grid;
  justify-content: center;
  font-size: var(--ab-font-size-base);
  line-height: 2.2;
  text-align: center;
}
.contact-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  text-align: center;
  margin-bottom: 1.5rem;
}
.contact-item i {
  color: var(--ab-text-primary-dark);
}
.contact-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}
.contact-item a:hover {
  color: var(--ab-primary-color);
  text-decoration: underline;
}

/* --- Footer --- */
.footer-cta {
  background-color: #282a2e; /* Use a dark card color */
  color: var(--ab-text-primary-dark);
  padding: 60px 0;
  text-align: center;
  border-top: 8px solid var(--ab-primary-color); /* Use blue for the accent line */
}
.footer-cta .lead {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 25px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.footer-text {
  font-size: var(--ab-font-size-base);
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--ab-text-secondary-dark);
}
.footer-bottom {
  background-color: transparent; /* A slightly different dark for footer bottom */
  color: var(--ab-text-secondary-dark);
  padding: 25px 0;
  font-size: 0.9rem;
  border-top: 1px solid var(--ab-border-dark);
}
.contact-info-footer {
  margin-top: 20px;
  font-size: var(--ab-font-size-base);
  font-weight: 500;
}
.contact-info-footer i {
  margin-right: 10px;
  color: var(--ab-primary-color);
}

/* --- Animations --- */
@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

/* --- Media Queries --- */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 3.5rem;
  }
  .hero-subtitle {
    font-size: 1.5rem;
  }
  .section-heading {
    font-size: 2.2rem;
  }
  .offer-card {
    padding: 30px;
  }
  .vision-quote {
    font-size: 1.3rem;
  }
  .schedule-subheading {
    font-size: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  .anniversary-badge {
    padding: 8px 18px;
    font-size: 0.9rem;
  }
  .section-padding {
    padding: 60px 0;
  }
  .section-heading {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .pastor-image-container {
    width: 150px;
    height: 150px;
  }
  .pastor-name {
    font-size: 1.5rem;
  }
  .pastor-title {
    font-size: var(--ab-font-size-base);
  }
  .vision-quote {
    font-size: 1.1rem;
    padding-left: 15px;
  }
  .offer-card {
    padding: 25px;
  }
  .offer-icon {
    font-size: 2.5rem;
  }
  .offer-card-title {
    font-size: 1.2rem;
  }
  .schedule-table th,
  .schedule-table td {
    padding: 10px;
    font-size: 0.9rem;
  }
  .biblical-foundation-item {
    padding: 15px 0;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .foundation-icon {
    margin-right: 0;
    margin-bottom: 10px;
  }
  .foundation-text strong {
    font-size: var(--ab-font-size-base);
  }
  .btn-cta {
    padding: 12px 30px;
    font-size: var(--ab-font-size-base);
  }
  .footer-cta .lead {
    font-size: 1.3rem;
  }
  .footer-text {
    font-size: 0.95rem;
  }
  .schedule-subheading {
    font-size: 1.3rem;
    margin-top: 30px;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
}

/* Animation classes */
.anim {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

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

.floating {
  animation: float 6s ease-in-out infinite;
}

.typing-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}

.cursor {
  display: inline-block;
  width: 4px;
  height: 5rem;
  background-color: white;
  animation: blink 0.7s infinite;
}

@media screen and (max-width: 768px) {
  .cursor {
    height: 3rem; /* Adjust cursor height for smaller screens */
    width: 2px; /* Adjust cursor width for smaller screens */
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* End Animation */
