/* =========================================================
   BASE STYLES
========================================================= */
.bg-section {
  width: 100%;
  padding: 50px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  box-sizing: border-box;
  position: relative;
  height: 100vh;
  /* Full screen */
  overflow: hidden;
}

/* Text elements */
.bg-section h1,
.bg-section h2,
.bg-section p {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.5em;
  z-index: 3;
  position: relative;
}

/* =========================================================
   COLOR VARIANTS
========================================================= */
.blackBg_Section {
  background: #000;
  color: #fff;
}

.redBg_Section {
  background: #b30000;
  color: #fff;
}

.orangeBg_Section {
  background: #ff8c00;
  color: #fff;
}

.yellowBg_Section {
  background: #ffd700;
  color: #000;
}

.greenBg_Section {
  background: #007a3d;
  color: #fff;
}

.blueBg_Section {
  background: #0044cc;
  color: #fff;
}

.indigoBg_Section {
  background: #4b0082;
  color: #fff;
}

.violetBg_Section {
  background: #c37de7;
  color: #000;
}

.whiteBg_Section {
  background: #fff;
  color: #000;
}

/* =========================================================
   TEXTURED / DIRTY BACKGROUND OVERLAY
========================================================= */


.bg-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.45));
  mix-blend-mode: overlay;
  opacity: 0.4;
  z-index: 1;
}

@keyframes subtleMove {
  from {
    background-position: 0 0, 0 0, 0 0;
  }

  to {
    background-position: 200px 200px, -150px 100px, 100px -150px;
  }
}

/* =========================================================
   SECTION CONTENT
========================================================= */
.section-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1500px;
  width: 100%;
  gap: 50px;
  z-index: 3;
}

.section-content.reverse {
  flex-direction: row-reverse;
}

/* =========================================================
   IMAGES (70:30 Ratio)
========================================================= */
.section-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.4));
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* =========================================================
   DECORATIVE FLOATING ELEMENTS
========================================================= */
.circle-shape {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05));
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  z-index: 0;
  animation: floatCircle 6s ease-in-out infinite alternate;
}

.reverse .circle-shape {
  left: auto;
  right: 8%;
}

@keyframes floatCircle {
  from {
    transform: translateY(-50%) translateX(0);
  }

  to {
    transform: translateY(-55%) translateX(10px);
  }
}

/* =========================================================
   CARDS
========================================================= */
.square-card {
  background: linear-gradient(135deg, #ff9a9e, #fad0c4);
  padding: 55px;
  border-radius: 24px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  max-width: 460px;
  z-index: 3;
  text-align: left;
  color: #222;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.square-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* =========================================================
   CENTER IMAGE SECTION
========================================================= */
.center-image-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  gap: 2rem;
  z-index: 10;
}

.center-img {
  width: 70%;
  max-width: 850px;
  border-radius: 20px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s ease;
}

.center-img:hover {
  transform: scale(1.05);
}

.center-text {
  max-width: 700px;
  color: #fff;
  z-index: 3;
}

.center-text h2 {
  font-size: 2.6rem;
  margin-bottom: 10px;
  color: #ffb366;
}

.center-text p {
  font-size: 1.2rem;
  color: #eee;
  line-height: 1.6em;
}

/* =========================================================
   RESPONSIVE DESIGN
========================================================= */
@media (max-width: 992px) {
  .section-content {
    flex-direction: column;
    text-align: center;
  }

  .section-image {
    width: 85%;
    order: -1;
  }

  .square-card {
    text-align: center;
    padding: 40px;
  }

  .center-img {
    width: 85%;
  }

  .center-text h2 {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .bg-section {
    padding: 50px 20px;
  }

  .center-text h2 {
    font-size: 1.6rem;
  }

  .center-text p {
    font-size: 1rem;
  }
}

/* ===== 40/60 LAYOUT (Image + Video Section) ===== */
.fortySixty-section {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fortySixty-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
  max-width: 1500px;
}

.image-side {
  flex: 0 0 40%;
  display: flex;
  justify-content: center;
}

.image-side img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
}

.text-side {
  flex: 0 0 60%;
  color: #333;
}

.text-side h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

/* Responsive YouTube Embed */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  min-width: 330px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .fortySixty-content {
    flex-direction: column;
    text-align: center;
  }

  .image-side,
  .text-side {
    flex: 0 0 100%;
  }

  .text-side h2 {
    font-size: 1.6rem;
  }

  .video-wrapper {
    padding-bottom: 60%;
  }
}

.container_panther {
  width: 100%;
  height: 100%;
  --s: 37px;
  /* control the size */

  --c: #0000, #282828 0.5deg 119.5deg, #0000 120deg;
  --g1: conic-gradient(from 60deg at 56.25% calc(425% / 6), var(--c));
  --g2: conic-gradient(from 180deg at 43.75% calc(425% / 6), var(--c));
  --g3: conic-gradient(from -60deg at 50% calc(175% / 12), var(--c));
  background: var(--g1), var(--g1) var(--s) calc(1.73 * var(--s)), var(--g2),
    var(--g2) var(--s) calc(1.73 * var(--s)), var(--g3) var(--s) 0,
    var(--g3) 0 calc(1.73 * var(--s)) #1e1e1e;
  background-size: calc(2 * var(--s)) calc(3.46 * var(--s));
}

.container_fox {
  width: 100%;
  height: 100%;

  background: #000000;
  --gap: 5em;
  --line: 1px;
  --color: rgba(255, 255, 255, 0.2);

  background-image: linear-gradient(-90deg,
      transparent calc(var(--gap) - var(--line)),
      var(--color) calc(var(--gap) - var(--line) + 1px),
      var(--color) var(--gap)),
    linear-gradient(0deg,
      transparent calc(var(--gap) - var(--line)),
      var(--color) calc(var(--gap) - var(--line) + 1px),
      var(--color) var(--gap));
  background-size: var(--gap) var(--gap);
}

.container_orange {
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, orange, transparent 20%, orangered);
  background-size: cover;
  background-repeat: no-repeat;
  background-color: orange;
}

.futuristic-pattern {
  position: relative;
  width: 100%;
  min-height: 2500px;
  /* fallback height; adjust as needed */
  overflow: hidden;
}

/* create the background + filter on a separate layer (::before) */
.futuristic-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  /* top:0; right:0; bottom:0; left:0; */
  z-index: 1;
  /* underneath the images */
  background: linear-gradient(145deg,
      rgb(0, 0, 0),
      rgb(255, 196, 0),
      rgb(50, 50, 50));
  background-size: cover;
  background-position: center;
  /* apply the SVG filter to the pseudo-element only */
  filter: url(#advanced-texture);
  pointer-events: none;
  /* so clicks go through if needed */
  will-change: filter, opacity;
  opacity: 0.95;
  /* tweak as needed */
}

.invite-section {
  background: linear-gradient(135deg, #fffaf5, #fdf2e9);
  text-align: center;
  padding: 50px 20px;
  position: relative;
  overflow: hidden;
}

.invite-text {
  max-width: 750px;
  margin: 0 auto;
  z-index: 2;
  position: relative;
  animation: fadeInUp 1.2s ease;
}

.invite-text h2 {
  font-size: 2.8rem;
  color: #4a3c28;
  margin-bottom: 20px;
  font-weight: 700;
}

.invite-text p {
  font-size: 1.2rem;
  color: #5f4b32;
  margin-bottom: 35px;
  line-height: 1.8;
}

.btn-invite {
  display: inline-block;
  background-color: #e8a24c;
  color: #fff;
  padding: 14px 35px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.btn-invite:hover {
  background-color: #d18c38;
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Subtle fade-up animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

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

.background_grad {
  width: 100%;
  height: 100%;
  background: white;
  background: radial-gradient(125% 125% at 50% 10%, #fff 40%, rgb(235, 153, 30) 100%);
}


.background_grad_up {
  width: 100%;
  height: 100%;
  background: rgb(235, 153, 30);
  background: radial-gradient(125% 125% at 50% 89.1%, #fff 40%, rgb(235, 153, 30) 100%);
}

/* From Uiverse.io by jeremyssocial */
.container_blackstripe {
  /* Basic dimensions and centering */
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;

  /* Dark mode colors and gradient */
  background: #121212;
  /* Fallback for browsers that don't support gradients */
  background: linear-gradient(135deg,
      #121212 25%,
      #1a1a1a 25%,
      #1a1a1a 50%,
      #121212 50%,
      #121212 75%,
      #1a1a1a 75%,
      #1a1a1a);
  background-size: 40px 40px;

  /* Animation */
  animation: move 4s linear infinite;
}

@keyframes move {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 40px 40px;
  }
}

.service-times {
  padding: 20px 60px;
  background: #fff;
  font-family: 'Poppins', sans-serif;
  color: #111;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  /* <-- centers left side vertically */
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}

/* LEFT SIDE */
.service-left {
  flex: 1 1 35%;
  display: flex;
  justify-content: center;
  /* centers horizontally inside its column */
  align-items: center;
  /* centers vertically */
  height: 100%;
  /* ensures full height alignment */
}

.service-left h2 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

/* RIGHT SIDE */
.service-right {
  flex: 1 1 55%;
  text-align: left;
}

.service-right h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 15px;
  line-height: 1.2;
}

.service-schedule {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 25px;
}

/* TIME ITEM */
.time-item {
  display: flex;
  align-items: baseline;
  gap: 15px;
  line-height: 1.2;
}

.time-item h1 {
  font-size: 4rem;
  font-weight: 700;
  margin: 0;
  line-height: 1;
  min-width: 120px;
}

.time-item p {
  margin: 0;
  font-size: 1rem;
  color: #ff6600;
  font-weight: 500;
}



.directions a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-left {
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .service-left h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

  .time-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .time-item h1 {
    font-size: 2.4rem;
  }

  .time-item p {
    font-size: 0.95rem;
  }
}


/* Responsive YouTube video */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  text-align: center;
}

.ministry {
  border: 2px solid #111;
  /* solid dark border */
  border-radius: 10px;
  /* optional rounded edges */
  padding: 20px;
  background-color: #fff;
  /* clean white background */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ministry:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* subtle hover effect */
}

.ministry img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
}

.ministry p {
  font-size: 16px;
  color: #222;
  font-weight: 500;
  margin: 0;
}


.ministry:hover {
  transform: translateY(-5px);
}

.ministry:hover img {
  transform: scale(1.1);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .community-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .community-grid {
    grid-template-columns: 1fr;
  }

  .ministry img {
    width: 70px;
    height: 70px;
  }

  .ministry p {
    font-size: 0.95rem;
  }
}


.sticky-section {
  position: sticky;
  top: 0;
  height: 100vh;
  background-color: #fff;
  background-image: url("../images/ourServices_Main.png");
  background-size: 80%;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}


@media (max-width: 1900px) {
  .sticky-section {
    height: 70vh; /* smaller height for tablet landscape / iPad Pro */
    background-size: 85%;
  }

}
@media (max-width: 992px) {
  .sticky-section {
    height: 50vh;
    background-size: 90%;
  }
}


/* Mobile */
@media (max-width: 768px) {
  .sticky-section {
    height: auto; /* let it fit content naturally */
    background-image: url("../images/ourServices_Main_P.png");
    background-size: contain; /* ensures full image visible */
    background-position: center top;
    background-repeat: no-repeat;
    padding: 80px 20px; /* adds breathing room */
    width: 400px; height: 800px;
    
  }

    .futuristic-pattern{
    min-height: 1300px;
  }
}



.sticky-section .content {
  text-align: center;
  font-size: 2rem;
  color: white;
}

.next-section {
  position: relative;
  margin-top: -100vh;
  /* makes it overlap the sticky section */
  height: 200vh;
  background: linear-gradient(180deg, #333, #000);
  z-index: 0;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}