/* =========================
   GLOBAL
   ========================= */
:root {
  --nav-h: 80px;
  --primary-color: #1d44b8;
}

html,
body {
  width: 100%;
  margin: 0;
  overflow-x: hidden;
  background: white;
  font-family: Arial, sans-serif;
}

body {
  min-height: 100vh;
}

html {
  overflow-y: scroll;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.page-home {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.page-home,
.page-home .page-content,
.page-content .page-home {
  padding-top: 0 !important;
}

/* Global default: no gap */
.page-content {
  padding-top: 0;
}

/* Only pages that need the nav offset (example class) */
.has-fixed-nav .page-content {
  padding-top: var(--nav-h);
}

/* =========================
   SLIDER
   ========================= */

/* Only for sections that truly need edge-to-edge */
.slider-container,
.slider-container .container {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.slider-container {
  width: 100%;
  margin: 0 !important;
  height: calc(100vh - var(--nav-h)) !important;
  overflow: hidden;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  overscroll-behavior: none;
  /*touch-action: pan-x;*/
}

.slide {
  width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* =========================
   MINISTRY
   ========================= */
.scroll-wrapper {
  position: relative;
  z-index: 0;
}

#ministry {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
  padding: 2rem 56px;
  scroll-padding-left: 56px;
  scroll-padding-right: 56px;
  cursor: grab;
  /* touch-action: pan-x; */

  /* hide scrollbars */
  scrollbar-width: none;
}

#ministry:active {
  cursor: grabbing;
}

#ministry::-webkit-scrollbar {
  display: none;
}

#ministry .scroll-item {
  flex-shrink: 0;
  width: 25%;
  padding: 16px;
  text-align: center;
}

.scroll-item img {
  width: 140px;
  height: 140px;
  max-width: none;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
}

/* Arrow overlays */
.scroll-overlay {
  position: absolute;
  top: 0;
  height: 100%;
  width: 56px;
  z-index: 5;
  pointer-events: auto;
}

.scroll-overlay.left {
  left: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.9), rgba(255,255,255,0));
}

.scroll-overlay.right {
  right: 0;
  background: linear-gradient(to left, rgba(255,255,255,0.9), rgba(255,255,255,0));
}

.scroll-overlay .scroll-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  font-size: 2em;
  cursor: pointer;
  color: #333;
  z-index: 6;
  pointer-events: auto;
  transition: opacity 0.3s;
}

.scroll-overlay .scroll-btn:hover:not(.disabled) {
  opacity: 1;
}

.scroll-overlay .scroll-btn.disabled {
  opacity: 0.3;
  cursor: default;
}

/* =========================
   CONTACT
   ========================= */
.w3-col.m5 {
  position: relative;
}

.w3-col.m5 .removePic {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 90%;
  object-fit: contain;
  display: block;
}

.form-control {
  width: 100%;
  background-color: #eee;
  border-radius: 5px;
  border: 1px solid #ccc;
  padding: 10px 12px;
  font-size: 15px;
  height: 44px;
  line-height: 1.4;
}

/* =========================
   PODCAST GRID
   ========================= */
.podcast-grid {
  display: grid;
  background-color: #333;
  padding: 64px 16px;
  gap: 32px;
}

.podcast-item {
  color: white;
  text-align: center;
}

.podcast-item img {
  display: block;
  margin: 0 auto;
}

.youtube-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: white;
}

.youtube-icon {
  height: 30px;
  width: auto;
  display: inline-block;
  margin: 0;
}

.w3-card,
.w3-card-2 {
  box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),
              0 2px 10px 0 rgba(0,0,0,0.12);
}

.w3-card-4,
.w3-hover-shadow:hover {
  box-shadow: 0 4px 10px 0 rgba(0,0,0,0.2),
              0 4px 20px 0 rgba(0,0,0,0.19);
}

.w3-card img {
  display: block;
  width: 100%;
  border: 4px solid #fff;
  border-bottom: none;
}

/* =========================
   GO TO TOP BUTTON
   ========================= */
.go-to-top-button {
  position: fixed !important;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: none;
}

/* =========================
   OAKS OF RIGHTEOUSNESS
    - Page oaks.astro 
   ========================= */
.image-wrapper {
  display: flex;
  justify-content: center;
  padding-top: 20px;
  padding-bottom: 0;
}

.centerImg {
  width: 25%;
  height: auto;
  -webkit-mask-image: linear-gradient(
    to bottom,
    black 60%,
    rgba(0,0,0,0.8) 75%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    black 60%,
    rgba(0,0,0,0.8) 75%,
    transparent 100%
  );
}

#oaks p {
  font-size: 18px;
  padding: 0 10px 15px 20px;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (min-width: 601px) {
  .podcast-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 993px) {
  .podcast-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 601px) and (max-width: 992px) {
  #ministry .scroll-item {
    width: 50%;
  }
}

@media (max-width: 600px) {
  .slider-container {
    height: clamp(240px, calc(100vh - var(--nav-h)), 380px) !important;
  }

  #ministry .scroll-item {
    width: 100%;
  }

  .w3-col.m5 .removePic {
    display: none !important;
  }

  .image-wrapper {
    padding-top: 40px;
  }
}
