/**
 * PTW Custom UI Enhancements
 * - Page-scoped styles to avoid CSS conflicts
 * - Responsive centering for small and extra-large devices
 * - Improved hero slider sizing (no runaway height / internal scroll)
 * - Animated stats counters styling
 * - Swiper multi-card carousels (Featured Events, Banquet Gallery)
 * - Team accordion + image contain
 * - Partnership Africa map background + modal forms
 */

:root {
  --ptw-max-width: 1200px;
  --ptw-max-width-xl: 1320px;
  --ptw-radius-xl: 18px;
  --ptw-shadow-soft: 0 10px 30px rgba(0,0,0,.12);
  --ptw-glass: rgba(255,255,255,.08);
}

/* Global layout centering */
body .container {
  max-width: var(--ptw-max-width);
}
@media (min-width: 1400px) {
  body .container {
    max-width: var(--ptw-max-width-xl);
  }
}

/* Add a bit more breathing room under sticky header */
main.main {
  padding-top: 6px;
}

/* Better section contrast using subtle backgrounds */
.section.ptw-contrast {
  background-color: rgba(7, 21, 46, 0.88);
  background-blend-mode: overlay;

  position: relative;
  overflow: hidden;
}
.section.ptw-contrast::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 400px at 10% 20%, rgba(255,255,255,.08), transparent 60%),
              radial-gradient(900px 500px at 90% 30%, rgba(255,255,255,.08), transparent 60%),
              linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,0));
  pointer-events: none;
}
.section.ptw-contrast > * {
  position: relative;
}

/* HOME: Hero improvements */
.page-index #hero .hero-container {
  max-width: var(--ptw-max-width-xl);
  margin-inline: auto;
}
.page-index #hero.hero {
  padding-top: 40px;
  padding-bottom: 40px;
}
@media (min-width: 992px) {
  .page-index #hero.hero {
    min-height: calc(100vh - 92px);
    display: flex;
    align-items: center;
  }
}
.page-index .hero-swiper {
  border-radius: var(--ptw-radius-xl);
  overflow: hidden;
  box-shadow: var(--ptw-shadow-soft);
}
.page-index .hero-swiper .img-container {
  height: clamp(320px, 42vw, 520px);
}
.page-index .hero-swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* HOME: Stats container polish + counter emphasis */
.page-index .stats-container {
  border-radius: var(--ptw-radius-xl);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
  backdrop-filter: blur(8px);
}
.page-index .stat-item .stat-number {
  font-variant-numeric: tabular-nums;
  letter-spacing: .3px;
}

/* Featured events carousel */
.page-index .featured-events .swiper {
  padding-bottom: 34px;
}
.page-index .featured-events .swiper-button-next,
.page-index .featured-events .swiper-button-prev {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}
.page-index .featured-events .swiper-button-next:after,
.page-index .featured-events .swiper-button-prev:after {
  font-size: 16px;
  font-weight: 900;
  color: rgba(0,0,0,.8);
}
.page-index .featured-events .swiper-pagination-bullet {
  opacity: .35;
}
.page-index .featured-events .swiper-pagination-bullet-active {
  opacity: 1;
}

/* TEAM: accordion layout + image contain */
.page-team .accordion-item {
  border-radius: var(--ptw-radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.page-team .accordion-button {
  font-weight: 700;
}
.page-team .chef-card .chef-img img,
.page-team .chef-highlight .chef-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* BANQUET: layout, modal, gallery */
.page-banquet .banquet-hero {
  border-radius: var(--ptw-radius-xl);
  overflow: hidden;
  box-shadow: var(--ptw-shadow-soft);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}
.page-banquet .banquet-gallery .swiper {
  padding-bottom: 34px;
}
.page-banquet .banquet-gallery .gallery-card {
  border-radius: var(--ptw-radius-xl);
  overflow: hidden;
  box-shadow: var(--ptw-shadow-soft);
  background: rgba(0,0,0,.15);
  border: 1px solid rgba(255,255,255,.12);
}
.page-banquet .banquet-gallery .gallery-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.page-banquet .banquet-gallery .gallery-caption {
  padding: 12px 14px;
  font-size: 14px;
  opacity: .95;
}
.page-banquet .modal .modal-content {
  border-radius: 18px;
}

/* PARTNERSHIP: Travel to Africa background */
.page-partnership .travel-africa {
  position: relative;
  border-radius: var(--ptw-radius-xl);
  overflow: hidden;
}
.page-partnership .travel-africa::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/img/africa-map.svg');
  background-repeat: no-repeat;
  background-position: 90% 20%;
  background-size: 520px;
  opacity: .10;
  filter: grayscale(1);
  pointer-events: none;
}
.page-partnership .travel-africa > * { position: relative; }
.page-partnership .modal-dialog.modal-dialog-scrollable .modal-body {
  max-height: 70vh;
}

/* Forms: consistent spacing */
.ptw-form .form-control,
.ptw-form .form-select {
  border-radius: 12px;
}
.ptw-form .btn {
  border-radius: 999px;
  padding-inline: 16px;
}

/* Prevent any overflow on small devices */
html, body { overflow-x: hidden; }



/* HOME: Hero swiper navigation + pagination (inside image) */
.page-index .hero-swiper { position: relative; }
.page-index .hero-swiper .swiper-button-next,
.page-index .hero-swiper .swiper-button-prev {
  display: flex !important;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
  top: 50%;
  transform: translateY(-50%);
}
.page-index .hero-swiper .swiper-button-next { right: 14px; }
.page-index .hero-swiper .swiper-button-prev { left: 14px; }
.page-index .hero-swiper .swiper-button-next:after,
.page-index .hero-swiper .swiper-button-prev:after {
  font-size: 18px;
  font-weight: 900;
  color: rgba(255,255,255,.95);
}
.page-index .hero-swiper .swiper-pagination {
  bottom: 10px !important;
}
.page-index .hero-swiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  opacity: .45;
  background: #2ecc71;
}
.page-index .hero-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.15);
}


/* HOME: Video fallback card (prevents YouTube embed errors) */
.page-index .ptw-video-fallback {
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--ptw-radius-xl);
  overflow: hidden;
  box-shadow: var(--ptw-shadow-soft);
  border: 1px solid rgba(255,255,255,.12);
}
.page-index .ptw-video-fallback img {
  width: 100%;
  height: auto;
  display: block;
}
.page-index .ptw-video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 64px;
  color: #fff;
  background: radial-gradient(circle at center, rgba(0,0,0,.35), rgba(0,0,0,.55));
}
.page-index .ptw-video-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  background: rgba(0,0,0,.55);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
}

/* HOME: Featured events single-slide carousel */
.page-index .featured-events .swiper-slide {
  display: flex;
  justify-content: center;
}
.page-index .featured-events .featured-event-card {
  width: min(760px, 100%);
}
.page-index .featured-events .featured-events-prev,
.page-index .featured-events .featured-events-next {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 18px rgba(0,0,0,.18);
}
.page-index .featured-events .featured-events-prev::after,
.page-index .featured-events .featured-events-next::after {
  font-size: 16px;
  color: #fff;
}

/* TEAM: Fix font contrast + image cropping */
/* Scope to the actual accordion used on team.html */
.page-team #teamAccordion .accordion-item {
  background: rgba(255, 255, 255, .92) !important;
  border: 1px solid rgba(0, 0, 0, .08);
}
.page-team #teamAccordion .accordion-button {
  background: rgba(255, 255, 255, .92) !important;
  color: #0b1220 !important;
}
.page-team #teamAccordion .accordion-button:not(.collapsed) {
  background: rgba(255, 255, 255, .98) !important;
  box-shadow: none;
}
.page-team #teamAccordion .accordion-body {
  background: rgba(255, 255, 255, .92) !important;
  color: #0b1220;
}
.page-team #teamAccordion .accordion-body .chef-details,
.page-team #teamAccordion .accordion-body .chef-info,
.page-team #teamAccordion .accordion-body .chef-info h4,
.page-team #teamAccordion .accordion-body .chef-info .details,
.page-team #teamAccordion .accordion-body .chef-highlight h2,
.page-team #teamAccordion .accordion-body .chef-highlight h3 {
  color: #0b1220 !important;
}
.page-team #teamAccordion .accordion-body .chef-info .role {
  color: var(--accent-color) !important;
}

/* Prevent team photos from cropping and stop the template hover-zoom */
.page-team .chefs .chef-card .chef-img img {
  object-fit: contain !important;
  background: #fff;
}
.page-team .chefs .chef-card .chef-img img:hover {
  transform: none !important;
}

/* BANQUET: Better gallery proportions */
.page-banquet .banquet-gallery .gallery-card img {
  height: 340px;
}
@media (min-width: 992px) {
  .page-banquet .banquet-gallery .gallery-card img {
    height: 300px;
  }
}

/* MODALS: Sectioned forms styling */
.ptw-form-section {
  padding: 14px 0;
  border-top: 1px solid rgba(0,0,0,.08);
}
.ptw-form-section:first-child {
  border-top: 0;
}
.ptw-form-section-title {
  font-weight: 800;
  letter-spacing: .4px;
  margin-bottom: 10px;
}
.ptw-radio-grid {
  display: grid;
  gap: 8px;
}
.ptw-radio-grid label,
.ptw-radio-inline label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 500;
}
.ptw-radio-inline {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* PARTNERSHIP: remove blue focus/active highlight */
.page-partnership .btn:focus,
.page-partnership .btn:active,
.page-partnership .btn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* PARTNERSHIP: unify CTA button look across cards */
.page-partnership .ptw-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .3px;
  background: var(--accent-color) !important;
  border: 0 !important;
  color: #0b1220 !important;
}
.page-partnership .ptw-card-btn:hover {
  filter: brightness(1.05);
}

/* PARTNERSHIP: Make Travel to Africa card background more subtle */
.page-partnership .travel-africa {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}


/* --- Home: Hero Swiper controls (chevrons inside photo + dots) --- */
#hero .hero-swiper { position: relative; }
#hero .hero-swiper .swiper-wrapper { border-radius: 22px; }
#hero .hero-swiper .img-container { position: relative; overflow: hidden; border-radius: 22px; }
#hero .hero-swiper .hero-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:10;
  width:44px;
  height:44px;
  border-radius:999px;
  background:rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border:1px solid rgba(255,255,255,.22);
}
#hero .hero-swiper .hero-prev{ left:14px; }
#hero .hero-swiper .hero-next{ right:14px; }

/* ensure Swiper default arrow icons are visible */
#hero .hero-swiper .swiper-button-prev:after,
#hero .hero-swiper .swiper-button-next:after{
  font-size:18px;
  font-weight:700;
  color:#fff;
}
#hero .hero-swiper .hero-pagination{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:12px;
  z-index:10;
  width:auto;
}
#hero .hero-swiper .hero-pagination .swiper-pagination-bullet{
  width:10px;
  height:10px;
  opacity:1;
  background: rgba(36, 193, 101, .55);
  border:1px solid rgba(36, 193, 101, .9);
}
#hero .hero-swiper .hero-pagination .swiper-pagination-bullet-active{
  background: rgba(36, 193, 101, 1);
}


/* ===========================
   Policy Pages (Terms/Privacy/Faith)
   =========================== */
.policy .section-title { margin-bottom: .35rem; }
.policy .section-subtitle { max-width: 48rem; margin: 0 auto; opacity: .9; }
.policy-toc li { padding: .35rem 0; }
.policy-toc a { text-decoration: none; }
.policy-toc a:hover { text-decoration: underline; }
.policy-card .h5 { letter-spacing: .2px; }

