:root {
  /* Primary Colors */
  --primary-color: #ff9800;
  --secondary-color: goldenrod;

  /* Backgrounds */
  --dark-bg: #1a1a1a;
  --light-bg: #f9f9f9;

  /* Text Colors */
  --text-main: #333333;
  --text-muted: #666666;
  --text-light: #ffffff;

  /* Accent Colors */
  --accent-hover: #e68900;
  --alert-color: #d32f2f;
  --success-color: #4caf50;

  /* Borders */
  --border-color: #dddddd;
}

/* ====================================
   GLOBAL RESET (CRITICAL)
==================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

/* Prevent rogue elements */
img,
video,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ====================================
   NAVBAR
==================================== */
.navbar-nav .nav-item {
  background-color: #212529;
  margin: 0 5px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.navbar-nav .nav-item:hover {
  background-color: #343a40;
}

.navbar-nav .nav-link {
  padding: 10px 15px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #ffc107 !important;
  text-decoration: underline;
}

/* Dropdown */
.dropdown-menu {
  background-color: #212529;
  border-radius: 6px;
}

.dropdown-menu .dropdown-item {
  color: #fff;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #343a40;
  color: #ffc107;
}

/* ====================================
   BACKGROUND VIDEO FIX
==================================== */
#bgVideo {
  position: fixed;
  inset: 0; /* replaces top/left/width/height */
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.7;
  pointer-events: none;
}

/* Giving section video */
#giving {
  position: relative;
  overflow: hidden;
}

#giving video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ====================================
   ABOUT SECTION
==================================== */
#aboutus ul.list-group li {
  line-height: 2.7;
  font-size: 1rem;
}

/* ====================================
   GALLERY
==================================== */
.card-img-top {
  transition: transform 0.4s ease;
}

.card:hover .card-img-top {
  transform: scale(1.03);
}

.gallery-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* ====================================
   EVENT DETAILS
==================================== */
.event-box {
  flex: 1;
  min-width: 150px;
  margin-bottom: 10px;
}

/* Prevent cards stretching */
.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ====================================
   SERMONS SECTION
==================================== */
.sermons-section {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
}

.sermons-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.sermons-overlay {
  position: relative;
  min-height: 70vh;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.content-wrapper {
  max-width: 600px;
  width: 100%;
}

.hover-scale:hover {
      transform: scale(1.02);
      transition: transform 0.3s ease-in-out;
    }
    .accordion-button:focus {
      box-shadow: none;
    }
    .bg-gradient-light {
      background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    }
    .bg-gradient-danger {
      background: linear-gradient(135deg, #f85032, #e73827);
    }
    .bg-gradient-warning {
      background: linear-gradient(135deg, #fceabb, #f8b500);
    }
    .bg-gradient-success {
      background: linear-gradient(135deg, #43e97b, #38f9d7);
    }
    .bg-gradient-info {
      background: linear-gradient(135deg, #00c6ff, #0072ff);
    }
    .bg-gradient-secondary {
      background: linear-gradient(135deg, #d7d2cc, #304352);
      color: white;
    }
    .accordion-button {
      font-size: 1.1rem;
    }


  .btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  }

  .gallery-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  .gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }
  .gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
  }
  .gallery-img:hover {
    transform: scale(1.05);
  }

  .ministry-card {
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
  }

  .ministry-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
  }

  .ministry-card .icon i {
    transition: transform 0.3s, color 0.3s;
  }

  .ministry-card:hover .icon i {
    transform: scale(1.2);
    color: #ffb74d; /* Lighter orange on hover */
  }

  @media (max-width: 768px) {
    .ministry-card {
      text-align: center;
    }
  }

  /* <!-- Pastor Section Styles --> */ 
  .pastor-img-wrapper {
    max-width: 320px;
    padding: 8px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff9800, #ffc107);
  }

  .pastor-img-wrapper img {
    border-radius: 16px;
    width: 100%;
    object-fit: cover;
  }

  @media (max-width: 768px) {
    #pastor {
      background-attachment: scroll;
    }
  }

  /* <!-- Sermons Section Styles --> */
  .sermons-section {
    min-height: 80vh;
  }

  .sermons-video {
    object-fit: cover;
    filter: brightness(0.45);
  }

  .sermons-overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.75),
      rgba(0, 0, 0, 0.6)
    );
    z-index: 1;
  }

  .sermon-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .sermon-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  }

  .sermon-btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .sermon-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 152, 0, 0.5);
  }

  @media (max-width: 768px) {
    .sermons-section {
      min-height: 70vh;
    }
  }


  /* <!-- Giving Section Styles --> */

  .giving-section {
    min-height: 70vh;
  }

  .giving-video {
    object-fit: cover;
    filter: brightness(0.45);
  }

  .giving-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.8),
      rgba(0, 0, 0, 0.65)
    );
    z-index: 1;
  }

  .giving-btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .giving-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 152, 0, 0.6);
  }

  @media (max-width: 768px) {
    .giving-section {
      min-height: 60vh;
    }
  }

  .hero {
      background: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.7)),
                  url('Img/giving-bg.jpg') center/cover no-repeat;
      min-height: 70vh;
      color: #fff;
    }
    .icon-box i {
      font-size: 2.5rem;
      color: #ff9800;
    }
    .testimony-card {
      transition: transform .3s, box-shadow .3s;
    }
    .testimony-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 12px 30px rgba(0,0,0,.15);
    }

    .book-card {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.book-card img {
  height: 260px;
  object-fit: cover;
}


.daily-manna {
      position: absolute;
      top: 100px;
      right: 20px;
      background: #fff3cd;
      padding: 8px 12px;
      border-radius: 5px;
      font-weight: 500;
      box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }


    
    #prophecies {
      background: var(--light-bg);
      padding: 60px 0;
    }

    #prophecies h2 {
      font-size: 2.5rem;
      margin-bottom: 0.5rem;
    }

    #prophecies p.lead {
      font-size: 1.1rem;
      color: var(--text-muted);
    }

    .card {
      border: 1px solid var(--border-color);
      border-radius: 12px;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      background-color: var(--text-light);
    }

    .card:hover {
      transform: translateY(-5px);
      box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
      border-color: var(--primary-color);
    }

    .card-text {
      font-size: 1.05rem;
      line-height: 1.6;
      color: var(--text-main);
    }

    .card-subtitle {
      color: var(--secondary-color);
      font-weight: 500;
      margin-top: 10px;
    }

    @media (max-width: 768px) {
      #prophecies h2 {
        font-size: 2rem;
      }
      .card-text {
        font-size: 1rem;
      }
    }

    /* prayer Css */

     .btn-prayer {
      background: var(--primary-color);
      color: var(--text-light);
      padding: 12px 30px;
      font-size: 1.2rem;
      border-radius: 8px;
      border: none;
      transition: all 0.3s ease;
    }
    .btn-prayer:hover {
      background: var(--accent-hover);
      transform: translateY(-2px);
    }

    .prayer-card {
      background-color: var(--text-light);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      padding: 20px;
      margin-bottom: 15px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
      position: relative;
    }
    .prayer-card h6 {
      color: var(--secondary-color);
      margin-top: 10px;
    }

    .btn-delete {
      position: absolute;
      top: 10px;
      right: 10px;
      background: var(--alert-color);
      border: none;
      color: white;
      padding: 4px 8px;
      font-size: 0.8rem;
      border-radius: 5px;
      cursor: pointer;
      display: none; /* hidden by default */
    }

    .btn-delete:hover {
      background: darkred;
    }
/* ====================================
   MOBILE FIXES
==================================== */
@media (max-width: 768px) {
  .sermons-section,
  .sermons-overlay {
    min-height: 90vh;
  }

  .content-wrapper h2 {
    font-size: 1.8rem;
  }
}
