/* ============================================
   Portfolio/Gallery Page CSS — LB Physiotherapy
   Case Studies + Official Sports Partnership
   ============================================ */

/* ============================================
   Case Studies / Recovery Stories Card Grid
   ============================================ */
.portfolio-page-section {
  padding: 80px 0;
  background: #F8F9FA;
}

.card-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}

.service-card .card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.service-card:hover .card-image {
  transform: scale(1.04);
}

.service-card .card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card .card-caption {
  font-size: 18px;
  font-weight: 700;
  color: #1A365D;
  margin-top: 0;
  margin-bottom: 16px;
  line-height: 1.35;
}

.service-card .learn-more-btn {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: #FFFFFF;
  background: #258AA7;
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-shadow: 0 4px 16px rgba(37, 138, 167, 0.25);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  margin-top: auto;
  text-decoration: none;
}

.service-card .learn-more-btn:hover {
  background: #1e7a96;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 138, 167, 0.35);
}

.service-card .learn-more-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(37, 138, 167, 0.25);
}

.service-card .details {
  display: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #EDEDED;
  animation: fadeInDown 0.3s ease;
}

.service-card .details.open,
.service-card .details.active {
  display: block;
}

.service-card .learn-more-btn .toggle-icon {
  font-size: 11px;
  margin-left: 4px;
  transition: transform 0.3s ease;
}

.service-card .learn-more-btn[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

.service-card .learn-more-btn:focus-visible,
.belt-card:focus-visible,
.lightbox-close-btn:focus-visible,
.lightbox-nav-btn:focus-visible {
  outline: 3px solid #00E5FF;
  outline-offset: 2px;
}

.service-card .details h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1A365D;
  margin-bottom: 8px;
}

.service-card .details ul {
  list-style: none;
  padding: 0;
  margin-bottom: 14px;
}

.service-card .details ul li {
  font-size: 14px;
  color: #555;
  margin-bottom: 4px;
  line-height: 1.5;
}

.service-card .details ul li strong {
  color: #222;
}

.service-card .details h4 {
  font-size: 14px;
  font-weight: 700;
  color: #258AA7;
  margin-bottom: 6px;
}

.service-card .details p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   Official Sports Partnership — Two-Way Sliding Photo Belt
   The Wanderers Club × LB Physiotherapy
   ============================================ */
#chiefs-gallery {
  background: #0B0E11;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(37, 138, 167, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(37, 138, 167, 0.12) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 36px 36px, 36px 36px;
  color: #FFFFFF;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

#chiefs-gallery::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 138, 167, 0.5), transparent);
}

.collab-intro {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 48px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.collab-intro .partnership-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 138, 167, 0.15);
  border: 1px solid rgba(37, 138, 167, 0.4);
  color: #62c3dd;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.collab-intro .partnership-badge i {
  color: #258AA7;
}

.collab-logo {
  max-width: 200px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.collab-logo:hover {
  transform: scale(1.02);
}

.collab-intro h1,
.collab-intro h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.collab-intro .collab-subhead {
  font-size: 18px;
  font-weight: 600;
  color: #258AA7;
  margin-bottom: 12px;
}

.collab-intro .collab-desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  max-width: 620px;
  margin: 0 auto;
}

/* ============================================
   Two-Way Sliding Photo Belt
   ============================================ */
.photo-belt-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 10px 0;
  mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.belt-track-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 6px 0;
}

.belt-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}

/* Line 1: Slide to Left */
.belt-move-left .belt-track {
  animation: slideBeltLeft 38s linear infinite;
}

/* Line 2: Slide to Right */
.belt-move-right .belt-track {
  animation: slideBeltRight 38s linear infinite;
}

/* Pause on hover, focus-within, or manual toggle */
.belt-track-container:hover .belt-track,
.belt-track-container:focus-within .belt-track,
.photo-belt-wrapper.is-paused .belt-track {
  animation-play-state: paused;
}

.gallery-controls-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 18px;
}

.btn-pause-belt {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 100px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-pause-belt:hover {
  background: #258AA7;
  border-color: #258AA7;
  color: #fff;
}

.btn-pause-belt:focus-visible {
  outline: 3px solid #00E5FF;
  outline-offset: 2px;
}

@keyframes slideBeltLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes slideBeltRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.belt-card {
  position: relative;
  width: 340px;
  height: 230px;
  flex: 0 0 340px;
  border-radius: 18px;
  overflow: hidden;
  background: #13171B;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  outline: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease, 
              box-shadow 0.35s ease;
}

.belt-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.belt-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(37, 138, 167, 0.7);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(37, 138, 167, 0.25);
}

.belt-card:hover img {
  transform: scale(1.06);
}

.belt-card-hover {
  position: absolute;
  inset: 0;
  background: rgba(13, 16, 19, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.belt-card:hover .belt-card-hover {
  opacity: 1;
}

.belt-card-hover i {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #258AA7;
  color: #FFFFFF;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  transform: scale(0.85);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.belt-card:hover .belt-card-hover i {
  transform: scale(1);
}

/* ============================================
   Clean Photo Lightbox Modal
   ============================================ */
.photo-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 7, 9, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-lightbox-overlay.open {
  display: flex;
  opacity: 1;
}

.photo-lightbox-container {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: lightboxPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxPop {
  0% { transform: scale(0.96); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.lightbox-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 12px;
  gap: 16px;
}

.lightbox-counter {
  font-size: 13px;
  font-family: monospace;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.5px;
}

.lightbox-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: #258AA7;
  border-color: #258AA7;
  transform: rotate(90deg);
}

.lightbox-image-stage {
  max-width: 88vw;
  max-height: 76vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(37, 138, 167, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
}

.lightbox-image-stage img {
  display: block;
  max-width: 100%;
  max-height: 74vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Lightbox Navigation Buttons */
.lightbox-nav-btn {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(21, 24, 28, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lightbox-nav-btn.prev {
  left: -60px;
}

.lightbox-nav-btn.next {
  right: -60px;
}

.lightbox-nav-btn:hover {
  background: #258AA7;
  border-color: #258AA7;
  transform: translateY(-50%) scale(1.08);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 60px 24px;
    gap: 24px;
  }
  .belt-card {
    width: 290px;
    height: 195px;
    flex: 0 0 290px;
  }
  .lightbox-nav-btn.prev { left: 12px; }
  .lightbox-nav-btn.next { right: 12px; }
  .lightbox-nav-btn { background: rgba(13, 16, 19, 0.85); }
}

@media (max-width: 768px) {
  .belt-card {
    width: 240px;
    height: 165px;
    flex: 0 0 240px;
    border-radius: 14px;
  }
  .photo-belt-wrapper {
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr;
    padding: 48px 16px;
    gap: 20px;
  }
  #chiefs-gallery {
    padding: 60px 0;
  }
  .collab-intro h1,
  .collab-intro h2 {
    font-size: 1.75rem;
  }
  .belt-card {
    width: 210px;
    height: 145px;
    flex: 0 0 210px;
  }
  .photo-lightbox-overlay {
    padding: 12px;
  }
  .lightbox-image-stage img {
    max-height: 65vh;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .float-card,
  .service-card img,
  .float-card img {
    transition: none !important;
    transform: none !important;
  }
  .belt-track {
    animation: none !important;
  }
  .belt-track-container {
    overflow-x: auto;
    scroll-behavior: smooth;
  }
}

/* Client slider inline styles (moved from index.html) */
.single-clients img {
  filter: brightness(0) invert(1);
  max-height: 100px;
  width: auto;
  object-fit: contain;
  opacity: 0.6;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.single-clients {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
  padding: 20px;
  max-width: 200px;
  margin: 0 auto;
}
.single-clients:hover img {
  opacity: 1;
  transform: scale(1.05);
}
.owl-carousel .single-clients {
  margin: 0 15px;
}
@media (max-width: 768px) {
  .single-clients img {
    max-height: 60px;
  }
  .single-clients {
    height: 100px;
    padding: 15px;
  }
}